@font-face {
  font-family: "Gill Sans", "Gill Sans MT", Calibri, sans-serif;
}

body {
  font-family: "Gill Sans", "Gill Sans MT", Calibri, sans-serif;
  margin: auto;
}

/* Slide-down animation */
@keyframes slideFromTop {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media screen and (max-width: 1300px) {
  .topnav {
    width: 100%;
    background: #fff;
    padding-top: 10px; /* Gives space above the logo */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
    z-index: 10;
  }

  .topnav #myLinks {
    display: none;
  }

.topnav-inner {
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}


  .topnav-inner .imglogo {
    margin: 0 auto;
    max-height: 100px;
    max-width: 300px;
    height: auto;
    display: block;
    text-align: center;
    position: relative;
    z-index: 1;
  }

  .topnav-inner .icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    font-size: 24px;
    cursor: pointer;
  }

  .topnav.responsive .topnav-inner .icon {
    display: none;
  }

  .topnav.responsive #myLinks {
    display: block;
    animation: slideFromTop 0.3s ease forwards;
    background-color: #fff;
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid #ccc;
  }

  .topnav.responsive .close-icon {
    display: block;
    text-align: center;
    font-size: 28px;
    cursor: pointer;
    margin-top: 10px;
    margin-bottom: 10px;
  }

  .topnav.responsive .menu_list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 0;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
  }

  .topnav.responsive .menu_list a {
    display: block;
    width: 80%;
    max-width: 300px;
    padding: 12px;
    font-size: 18px;
    text-align: center;
    text-decoration: none;
    background-color: #f8f8f8;
    border: 1px solid #ccc;
    border-radius: 6px;
    color: #000;
    transition: background 0.2s, color 0.2s;
  }

  .topnav.responsive .menu_list a:hover {
    background-color: #f2f2f2;
    color: #4fa1f2;
  }

  .topnav.responsive .menu_list form.centered-form {
    width: 80%;
    max-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
  }

  .topnav.responsive .menu_list input[type="text"] {
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 6px;
    width: 100%;
  }

  .topnav.responsive .menu_list input[type="submit"] {
    padding: 10px;
    font-size: 16px;
    background-color: #4fa1f2;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
  }

  .topnav.responsive .menu_list input[type="submit"]:hover {
    background-color: #3688d3;
  }
}


@media screen and (min-width: 1301px) {
  .topnav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    background-color: #fff;
    border-bottom: 1px solid #ccc;
  }

  .topnav-inner {
    display: flex;
    align-items: center;
  }

  .topnav .imglogo {
    max-height: 100px;
    max-width: 300px;
    margin: 0;
  }

  .topnav .icon {
    display: none; /* Hide burger icon on desktop */
  }

  #myLinks {
    display: block !important;
  }

  .menu_list {
    display: flex;
    gap: 20px;
    align-items: center;
  }

  .menu_list a {
    text-decoration: none;
    font-size: 18px;
    color: #000;
    padding: 10px 16px;
    border-radius: 6px;
    transition: background-color 0.2s;
  }

  .menu_list a:hover {
    background-color: #f2f2f2;
    color: #4fa1f2;
  }

  .menu_list form.centered-form {
    display: flex;
    gap: 10px;
    align-items: center;
  }

  .menu_list input[type="text"] {
    padding: 8px 12px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 6px;
    width: 200px;
  }

  .menu_list input[type="submit"] {
    padding: 8px 16px;
    font-size: 16px;
    background-color: #4fa1f2;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
  }

  .menu_list input[type="submit"]:hover {
    background-color: #3688d3;
  }

  .close-icon {
    display: none;
  }
}
