body {
  margin: 0;
  color:#0A1358;
  background-color: white;
  font-family:Arial, Helvetica, sans-serif;
}
header {
  padding: 8px;
  padding-left: 30px;
  padding-right: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
nav {
  display: flex;
  gap: 20px;
  order: 2;
}
nav a {
  color:#0A1358;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  transition: color 0.3s;
  margin-bottom: 10px;
}
nav a:hover {
  text-decoration: underline;
}
.location a {
  color:#0A1358;
  text-decoration: none;
  font-size: 16px;
  transition: color 0.3s;
}
.location a:hover {
  text-decoration: underline;
}
.location img {
  width: 10px;
  height: auto;
}
#header-logo {
  order: 1;
}
#header-logo img {
  width: 200px;
  height: auto;
}
#body {
  background-size: cover;
}
#headline {
  display: flex;
  justify-content: center;
  gap: 30px;
  background-color:red;
  opacity: 0.7;
}
#headline-text {
  text-align: center;
  color: white;
  opacity: 1;
  font-size:3vw;
}
#main-content {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 60px;
  margin: auto;
  padding-top: 10px;
  padding-bottom: 10px;
}
#e-bulletin {
  order: 0;
  opacity: 0.85;
}
#constant-content {
  width: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  order: 1;
  color:black;
  background-color: white;
  opacity: 0.85;
}
#events {
  order: 0;
  padding: 10px;
  font-size: 20px;
}
#events h2 {
  font-size: 24px;
  margin-bottom: 0px;
}
#events ul {
  margin-top: 10px;
}
#latest-service {
  order: 1;
}
footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 10px 50px;
  padding-top: 20px;
  padding-bottom: 10px;
  padding-left: 12%;
  padding-right: 12%;
  font-size: 16px;
}
footer h1 {
  font-size: 16px;
  margin-bottom: 5px;
  margin-top: 0px;
}
footer ul {
  list-style-type: none;
  list-style-position: inside;
  margin-top: 0px;
  margin-bottom: 5px;
  padding-left: 0;
}
#footer-logo {
  order: 1;
}
#footer-logo img {
  width: 250px;
  height: auto;
}
#footer-contact {
  order: 2;
}
#footer-affiliations {
  order: 3;
}
#background-attribution {
  order: 4;
  flex-basis: 100%;
  text-align: right;
}
#background-attribution p {
  margin: 0;
  font-size: 12px;
}
#copyright {
  order: 5;
  flex-basis: 100%;
  text-align: center;
}
#copyright p {
  margin: 0;
  font-size: 12px;
}

@media only screen and (min-width: 320px) and (max-width: 450px) {
  header {
    padding: 8px;
    padding-left: 10px;
    padding-right: 10px;
  }
  nav {
    gap: 5px;
  }
  nav a {
    font-size: 11px;
  }
  .location a {
    font-size: 10px;
  }
  .location img {
    width: 7px;
    height: auto;
  }
  #header-logo img {
    width: 140px;
    height: auto;
  }
  #main-content {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
  #constant-content {
    width: 370px;
  }
  #e-bulletin img {
    width: 370px;
  }
  footer {
    padding-left: 1%;
    padding-right: 1%;
    font-size: 10px;
    gap: 10px 30px;
  }
  footer h1 {
    font-size: 10px;
  }
  #footer-logo img {
    width: 120px;
  }
  #background-attribution p {
    font-size: 8px;
  }
  #copyright p {
    font-size: 8px;
  }
}

@media only screen and (min-width: 451px) and (max-width: 659px) {
  header {
    padding: 8px;
    padding-left: 10px;
    padding-right: 10px;
  }
  nav {
    gap: 5px;
  }
  nav a {
    font-size: 11px;
  }
  .location a {
    font-size: 10px;
  }
  .location img {
    width: 7px;
    height: auto;
  }
  #header-logo img {
    width: 140px;
    height: auto;
  }
  #main-content {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
  footer {
    padding-left: 1%;
    padding-right: 1%;
    font-size: 10px;
    gap: 10px 30px;
  }
  footer h1 {
    font-size: 10px;
  }
  #footer-logo img {
    width: 120px;
  }
  #background-attribution p {
    font-size: 8px;
  }
  #copyright p {
    font-size: 8px;
  }
}

@media only screen and (min-width: 660px) and (max-width: 819px) {
  nav {
    gap: 7px;
  }
  nav a {
    font-size: 12px;
  }
  .location a {
    font-size: 12px;
  }
  .location img {
    width: 8px;
    height: auto;
  }
  #header-logo img {
    width: 140px;
    height: auto;
  }
  #main-content {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  footer {
    padding-left: 4%;
    padding-right: 4%;
    font-size: 12px;
    gap: 10px 30px;
  }
  footer h1 {
    font-size: 12px;
  }
  #footer-logo img {
    width: 150px;
  }
  #background-attribution p {
    font-size: 10px;
  }
  #copyright p {
    font-size: 10px;
  }
}

@media only screen and (min-width: 820px) and (max-width: 1200px) {
  .location a {
    font-size: 14px;
  }
  .location img {
    width: 9px;
    height: auto;
  }
  #main-content {
    gap: 20px;
  }
  footer {
    padding-left: 5%;
    padding-right: 5%;
    font-size: 14px;
    gap: 10px 35px;
  }
  footer h1 {
    font-size: 14px;
  }
  #footer-logo img {
    width: 180px;
  }
  #background-attribution p {
    font-size: 11px;
  }
  #copyright p {
    font-size: 11px;
  }
}