/* When the screen is less than 600 pixels wide, hide all links, except for the first one ("Home"). Show the link that contains should open and close the topnav (.icon) */
@media screen and (max-width: 1050px) {
  nav a:not(:first-child) {
    display: none;
  }
  nav #navbar {
    display: none;
  }
  nav a.icon {
    float: right;
    display: block;
  }

  nav {
    justify-content: space-between;
    padding-left: 40px;
    padding-right: 40px;
  }

  .fa-bars {
    font-size: 5vw;
  }

  .logo {
    width: 8vw;
  }

  nav #navbar li a,
  nav .button {
    font-size: 3.5vw;
  }

  #header {
    padding: 10px 10px;
  }
}

/* The "responsive" class is added to the topnav with JavaScript when the user clicks on the icon. This class makes the topnav look good on small screens (display the links vertically instead of horizontally) */

@media screen and (max-width: 1050px) {
  .promo {
    display: none;
  }

  nav.responsive {
    position: relative;
    flex-direction: column;
    align-items: center;
  }

  nav.responsive .top {
    position: absolute;
    left: 0;
    padding-left: 40px;
  }
  nav.responsive a {
    display: block;
    border: none;
    padding: 0;
  }
  nav.responsive #navbar {
    display: block;
    padding-top: 50px;
  }
  nav.responsive #navbar li {
    margin: 0;
    margin-bottom: 10px;
  }

  nav.responsive a.icon {
    display: none;
    position: absolute;
    right: 0;
    padding-right: 40px;
    /* top: 15px; */
  }

  nav.responsive .close-button {
    position: absolute;
    right: 0;
    padding-right: 40px;
    font-size: 5vw;
    float: right;
    display: block;
  }

  /* Top Footer Section */
  .footer_top {
    flex-direction: column;
    padding: 20px;
  }

  /* Bottom Footer */
  .footer_bottom {
    flex-direction: column;
    padding: 20px;
  }

  .footer_nav a {
    font-size: 10px;
  }


}

/* make fonts compatible for small sreens  */
@media screen and (max-width: 1050px) {
  h1 {
    font-size: 40px;
    line-height: 40px;
    color: #000000;
  }

  h2 {
    font-size: 23px;
    line-height: 30px;
    color: #000000;
  }

  h4 {
    font-size: 20px;
    color: #000000;
  }

  h6 {
    font-size: 17px;
    font-weight: 700;
  }

  p {
    font-size: 15px;
    color: #000000;
    margin: 15px 0 20px 0;
  }

  .menu-item {
    height: fit-content;
  }

  #search-section {
    padding: 20px;
    align-items: center;
  }

  .search-row {
    gap: 5px;
  }

  .search-row h2 {
    white-space: wrap;
    
    margin-bottom: 20px;
  }

  .search-box {
    margin-left: auto;
    margin-right: auto;
  }

  .menu-text h3,
  .menu-text p {
    margin: 2px 0;
  }

  #menu {
    padding: 20px;
  }

  .main_page {
    padding: 20px;
  }
}
