body {
  font-family: 'Montserrat', sans-serif;
}

.lock-vertical-scroll {
  max-height: 100%;
  overflow-y: hidden;
}

.ebrm-site-header {
  background: rgb(4, 21, 40);
  padding: 24px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

.ebrm-site-header .flex-container,
.ebrm-site-header nav {
  max-width: 1000px;
  margin: auto;
}

.ebrm-site-header .flex-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.site-logo {
  max-width: 575px;
}

.site-logo img {
  width: 100%;
}

.socials-container {
  display: flex;
  width: 258px;
  justify-content: space-between;
  height: 51px;
}

.socials-container a>img {
  height: 100%;
}

nav {
  display: flex;
  text-transform: uppercase;
  font-weight: bold;
  font-size: 20px;
  justify-content: flex-end;
}

nav a {
  color: white;
  transition: color 400ms ease-out;
}

.nav-item {
  padding-left: 36px;
}

nav a:hover {
  text-decoration: none;
  color: rgb(64, 175, 73);
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  z-index: 1;
  background-color: #0d5eba;
  text-transform: none;
  right: 0;
  min-width: 175px;
  padding: 6px;
}

.dropdown:hover .dropdown-content {
  display: flex;
  flex-direction: column;
}

.dropdown-content a {
  padding: 4px;
  text-align: right;
}

.ebr-logo,
.nav-hamburger,
#mobile-nav {
  display: none;
}

main .grid-container,
main .map-container {
  max-width: 900px;
  margin: 24px auto;
}

main .grid-container {
  display: grid;
  grid-template-columns: 40% 60%;
  font-family: 'Lato', 'Helvetica', sans-serif;
}

.magnet-container {
  grid-area: 1 / 1 / 2 /3;
  margin-bottom: 24px;
}

.contact-container {
  grid-area: 2 / 1 / 3 / 2;
}

.form-container {
  grid-area: 2 / 2 / 3 / 3;
}

.contact-container h2 {
  font-family: 'Yellowtail', cursive;
  color: #E57022;
  font-weight: bold;
  font-size: 64px;
  margin-bottom: 26px;
  padding-left: 30px;
}

.contact-container .contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.contact-item .fa-solid {
  font-size: 20px;
}

.contact-container .contact-item-text {
  font-size: 18px;
  margin-left: 16px;
}

.contact-container .contact-item-text p {
  margin-bottom: 0;
  line-height: 1.6;
}

.contact-container .contact-item-text a {
  color: black;
}

.contact-container .contact-item-text a:hover {
  text-decoration: none;
}

.form-container fieldset {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 12px;
}

.input-container {
  height: 40px;
  display: flex;
  align-items: center;
}

.input-container,
textarea {
  margin-bottom: 10px;
}

input,
textarea {
  display: block;
  width: 100%;
  border-radius: 0;
  border: 1px solid black;
  padding: 8px;
}

input:hover,
textarea:hover {
  border-width: 2px;
}

label {
  font-weight: 300;
  font-size: 16px;
  margin-bottom: 3px;
}

.form-container button {
  border: 1px solid #0d5eba;
  background-color: #0d5eba;
  color: white;
  padding: 8px;
  font-size: 16px;
  font-weight: 300;
  min-width: 160px;
  margin: 16px 0;
  float: right;
  transition: all 400ms ease-out
}

.form-container button:hover {
  border: 1px solid #0d5eba;
  color: black;
  background-color: white;
}

.form-container .submission-status {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border: 1px solid #ccc;
  background-color: #eee;
  padding: 24px 0;
}

.form-container .submission-status h3 {
  margin-top: 0;
}

.form-container .submission-status p {
  font-size: 16px;
}

main .map-container>div {
  margin: 20px 0;
  padding: 30px 0;
  border-top: 1px solid #333;
}

footer {
  font-family: 'Lato', 'Helvetica', sans-serif;
  background-color: rgb(112, 157, 209);
  color: white;
  font-size: 18px;
  padding: 12px 0 24px;
}

footer .footer-text-container {
  max-width: 1100px;
  margin: auto;
}

footer .footer-bottom {
  max-width: 1300px;
  text-align: center;
  margin: auto;
}

footer .footer-bottom p {
  font-size: 10px;
  line-height: 1.2;
  margin-bottom: 0;
  opacity: 0.7;
  font-weight: 300;
}

footer .footer-address {
  margin: 16px 0;
}

footer .footer-address p {
  margin: 0;
}

footer .footer-links a {
  color: white;
  display: block;
  text-decoration: underline;
}

footer .ebrpss-logo {
  width: 366px;
  margin: 0 auto 12px;
}

@media screen and (min-width: 1300px) { 
  .ebr-logo {
    display: block;
    position: absolute;
    top: 16px;
    left: 16px;
    width: 60px;
  }
}

@media screen and (max-width: 768px) {
  html, body {
    max-width: 100%;
    overflow-x: hidden;
  }
  .ebr-logo,
  .nav-hamburger,
  #mobile-nav {
    display: block;
  }

  .ebrm-site-header .flex-container {
    flex-direction: column;
    margin-bottom: 0;
  }

  .ebrm-site-header .ebr-logo {
    width: 15%;
    min-width: 90px;
  }

  .ebrm-site-header .ebr-logo img {
    width: 100%
  }

  .ebrm-site-header .site-logo {
    margin: 20px 0;
  }

  .socials-container {
    width: 236px;
    height: 45px;
    margin: 12px 0;
  }

  .desktop-nav {
    display: none;
  }

  .nav-hamburger {
    color: white;
    font-size: 32px;
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 10px;
  }

  #mobile-nav {
    width: 100%;
    position: absolute;
    top: 0;
    right: -100vw;
    z-index: 100;
    background-color: #709DD1;
    height: 100vh;
    transition: all 1s ease-out;
  }

  #mobile-nav.overlay {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 1;
    top: 0;
    left: 0;
    background-color: rgb(0, 0, 0);
    background-color: rgba(0, 0, 0, 0.9);
    overflow-x: hidden;
    transition: 0.5s;
  }

  .overlay-content {
    position: relative;
    top: 10%;
    width: 100%;
    margin-top: 30px;
  }

  #mobile-nav .closebtn {
    font-size: 30px;
    position: absolute;
    top: 10px;
    right: 10px;
    color: black;
  }

  #mobile-nav .overlay-content {
    font-family: 'Lato', 'Helvetica', sans-serif;
    font-weight: 300;
  }

  #mobile-nav .nav-link {
    background-color: white;
    padding: 12px 20px;
    border-bottom: 2px solid black;
  }

  #mobile-nav .nav-link a {
    color: #000
  }

  #mobile-nav .parent-nav-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  #mobile-nav .parent-nav-item a {
    font-size: 24px;
  }

  .accordion .sub-menu {
    display: flex;
    flex-direction: column;
    text-transform: none;
  }

  .accordion .sub-menu-toggle {
    cursor: pointer;
  }

  .accordion .sub-menu.hide {
    display: none;
  }

  #mobile-nav .accordion .sub-menu a {
    display: block;
    color: #606060;
    padding: 12px;
  }

  main .grid-container {
    display: flex;
    flex-direction: column;
    margin-top: 12px;
  }

  .contact-container,
  .magnet-container,
  .form-container {
    width: 95vw;
    margin: auto;
  }

  .contact-item .fa-solid {
    font-size: 26px;
  }

  .contact-info p {
    font-size: 20px;
  }

  .contact-container {
    order: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .contact-container h2 {
    padding-left: 0;
  }

  .magnet-container {
    order: 2;
    margin: 24px auto;
  }

  .form-container {
    order: 3;
  }

  .form-container fieldset {
    display: flex;
    flex-direction: column;
    grid-gap: 0;
  }

  label, .form-container button {
    font-size: 20px;
  }

  footer .footer-text-container,
  footer .ebrpss-logo {
    width: 95vw;
  }

  footer .ebrpss-logo {
    max-width: 250px;
  }

  footer .ebrpss-logo {
    margin-top: 24px;
  }

}