* {
  margin: 0px;
  padding: 0px;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-padding-top: 8vh;
}

body {
  font-family: "Montserrat", sans-serif;
  background-color: #fdfdfd;
}

/* NAVIGATION BAR STYLES */

nav {
  display: flex;
  justify-content: space-around;
  align-items: center;
  min-height: 8vh;
  background-color: #0059c4;
  font-family: "Montserrat", sans-serif;
  position: fixed;
  top: 0;
  width: 100%;
}
.logo a {
  color: white;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 20px;
}
.nav-links {
  display: flex;
  justify-content: space-around;
  width: 40%;
}
.nav-links a {
  color: white;
  text-decoration: none;
  letter-spacing: 0px;
  font-weight: bold;
  font-size: 16px;
}
.nav-links li {
  list-style: none;
}
.burger {
  display: none;
  cursor: pointer;
}
.burger div {
  width: 25px;
  height: 3px;
  background-color: white;
  margin: 5px;
  transition: all 0.3s ease;
}

@media screen and (max-width: 1024px) {
  .nav-links {
    display: flex;
    justify-content: space-around;
    width: 60%;
  }

  @media screen and (max-width: 768px) {
    body {
      overflow-x: hidden;
    }
    .nav-links {
      position: absolute;
      right: 0px;
      height: 92vh;
      top: 8vh;
      background-color: #0059c4;
      display: flex;
      flex-direction: column;
      align-items: center;
      width: 50%;
      transform: translateX(100%);
      transition: transform 0.5s ease-in;
    }
    .nav-links li {
      opacity: 0;
      height: 85vh;
    }
    .burger {
      display: block;
    }
  }

  .nav-active {
    transform: translateX(0%);
  }

  @keyframes navLinkFade {
    from {
      opacity: 0;
      transform: translateX(50px);
    }
    to {
      opacity: 1;
      transform: translateX(0px);
    }
  }
}

.toggle .line1 {
  transform: rotate(-45deg) translate(-5px, 6px);
}
.toggle .line2 {
  opacity: 0;
}
.toggle .line3 {
  transform: rotate(45deg) translate(-5px, -6px);
}

/* SUB-NAVIGATION STYLES */

.subnav {
  width: 85%;
  margin: auto;
  background-color: #4a7ca8;
}

.subnav a {
  display: block;
  color: white;
  text-align: left;
  padding: 5px 5px;
  text-decoration: none;
  font-size: 16px;
}

.subnav li {
  list-style-type: none;
}

@media screen and (min-width: 769px) {
  .subnav a {
    font-size: calc(1rem + 0.1vw);
  }
}

@media screen and (min-width: 1025px) {
  .subnav {
    width: 900px;
    display: block;
  }

  .subnav ul {
    display: flex;
    justify-content: space-around;
  }

  .subnav li {
    flex-direction: row;
  }
}

/* BACK TO TOP BUTTON STYLES */

#myBtn {
  display: none;
  position: fixed;
  bottom: 10px;
  right: 0px;
  z-index: 99;
  font-size: 14px;
  border: none;
  outline: none;
  background-color: #0059c4;
  color: white;
  cursor: pointer;
  padding: 5px;
  border-radius: 4px;
}

#myBtn:hover {
  background-color: #4a7ca8;
}

@media screen and (min-width: 769px) {
  #myBtn {
    bottom: 20px;
    right: 5px;
    font-size: 16px;
    padding: 10px;
  }
}

@media screen and (min-width: 1025px) {
  #myBtn {
    bottom: 20px;
    right: 10px;
    font-size: 18px;
    padding: 10px;
  }
}

/* MAIN PAGE STYLES */

header {
  margin-top: 0px;
}

h1,
h2,
h3,
h4 {
  text-align: center;
  color: #0059c4;
}

h1 {
  font-size: 24px;
  letter-spacing: 1px;
  padding-top: 10px;
  padding-bottom: 10px;
  margin-top: 8vh;
}

h2 {
  font-size: 21px;
  padding-top: 10px;
  padding-bottom: 10px;
  margin-top: 8vh;
}

h3 {
  font-size: 18px;
  padding-top: 15px;
  padding-bottom: 7px;
}

h4 {
  font-size: 16px;
  padding-top: 10px;
  padding-bottom: 5px;
}

p {
  font-size: 16px;
  margin-left: auto;
  margin-right: auto;
  width: 85%;
  text-align: justify;
  font-family: "Karla", sans-serif;
  color: black;
  padding-top: 7px;
  padding-bottom: 7px;
}

.date-heading {
  font-size: 12px;
  text-align: left;
}

img {
  display: block;
  margin-left: auto;
  margin-right: auto;
  max-width: 85%;
  padding-top: 7px;
}

figcaption {
  font-size: 14px;
  margin-left: auto;
  margin-right: auto;
  width: 85%;
  text-align: center;
  font-family: "Karla", sans-serif;
  color: black;
  padding-bottom: 7px;
}

table,
th,
td {
  table-layout: auto;
  border: 5px;
  border-color: #0059c4;
  text-align: left;
}
table {
  margin-left: auto;
  margin-right: auto;
  width: 85%;
  margin-bottom: 10px;
  overflow-x: auto;
}

.table-overflow {
  overflow-x: auto
}

th {
  font-size: 14px;
  background-color: #4a7ca8;
  color: white;
  padding: 10px;
}
td {
  font-size: 14px;
  padding: 10px;
  border-bottom: 2px solid #4a7ca8;
}
caption {
  font-size: 18px;
  text-align: center;
  font-family: "Montserrat", sans-serif;
  color: white;
  background-color: #0059c4;
  padding: 10px;
}

footer {
  background-color: #4a7ca8;
  margin-left: auto;
  margin-right: auto;
  margin-top: 10px;
  margin-bottom: 20px;
  max-width: 85%;
}
footer p {
  font-size: 14px;
  color: white;
  text-align: center;
  font-family: "Karla", sans-serif;
  color: white;
  padding-top: 7px;
  padding-bottom: 7px;
}

footer a {
  color: white;
}

@media screen and (min-width: 769px) {
  h1 {
    font-size: 30px;
  }
  h2 {
    font-size: 28px;
  }
  h3 {
    font-size: 24px;
  }
  h4 {
    font-size: 20px;
  }

  p {
    font-size: 18px;
    max-width: 85%;
  }

  img {
    max-width: 85%;
  }
  figcaption {
    font-size: 16px;
    max-width: 85%;
  }
  table {
    max-width: 85%;
  }
  td {
    font-size: 14px;
  }

  footer {
    max-width: 85%;
  }
  footer p {
    font-size: 16px;
  }
}

@media screen and (min-width: 1025px) {
  p {
    width: 750px;
  }
  img {
    
    max-width: 50%;
  }
  figcaption {
    max-width: 50%;
  }
  table {
    max-width: 750px;
  }

  footer {
    max-width: 900px;
  }
}
