﻿/* NAV CONTAINER */
#topnav {
  background-color: #007A9B;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  justify-content: center; /* center content horizontally */
  align-items: center;
  padding: 0.9em 0.9em;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

#topnav .logo {
  max-height: 60px;
  width: auto;
  transition: max-height 0.3s ease;
  margin-right: 1em; /* add space to the right of logo */
}

/* WRAPPER THAT HOLDS LOGO + LINKS */
.center-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2em;
  max-width: 1200px;
  width: 100%;
  position: relative;
}

/* NAV LINKS */
.nav-links {
  display: flex;
  gap: 1em;
  flex-wrap: wrap;
}

/* LOGO IMAGE */
#topnav .logo {
  max-height: 60px;
  width: auto;
  transition: max-height 0.3s ease;
}

/* HAMBURGER MENU */
.hamburger {
  position: absolute;
  right: 1.5em;
  display: none;
  flex-direction: column;
  cursor: pointer;
}

/* HAMBURGER BARS */
.hamburger span {
  height: 3px;
  width: 25px;
  background: white;
  margin: 4px 0;
  border-radius: 2px;
}

/* NAV LINK STYLES */
.nav-links a {
  color: #E4EFF2;
  text-decoration: none;
  font-weight: bold;
  padding: 0.5em;
  transition: background 0.3s;
}

.nav-links a:hover {
  background-color: #0A91B0; 
  color: white !important;  /* add !important here */
  border-radius: 4px;
}

/* MAKE LOGO SMALLER ON MOBILE + FULL-WIDTH DROPDOWN MENU */
@media (max-width: 768px) {
  #topnav .logo {
    max-height: 40px;
  }

  .center-nav {
    flex-direction: column;
    align-items: center;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100vw; /* 👈 make it span full screen width */
    background-color: #0083A3;
    padding: 1em 0;
    z-index: 999;
  }

  .nav-links.active {
    display: flex;
  }
  
    .nav-links a {
    font-size: 1.2rem;  /* <-- add this to increase text size */
  }

  .hamburger {
    display: flex;    
  }
}

/* Prevent content from being hidden behind fixed nav */
body {
  padding-top: 70px;
}

/* Frame around nav */
.nav-frame {
  border: 1px solid #0a91b0;
  border-radius: 10px;
  padding: 0.6em 1em;
  background: linear-gradient(to bottom, #007A9B, #006a88);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1),
              0 2px 4px rgba(0, 0, 0, 0.15);
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

/* Center contents inside the nav frame */
.center-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* On larger screens, use horizontal layout */
@media (min-width: 769px) {
  .center-nav {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 2em;
  }
}
* OUTER ROUNDED BOX */
.nav-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2em;
  padding: 0.5em 1em;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.05); /* optional subtle background */
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

/* Keep full nav centered */
#topnav {
  justify-content: center;
}
@media (max-width: 768px) {
  .nav-box {
    flex-direction: column;
    align-items: center;
    width: 100%;
    border-radius: 0; /* optional: remove curve on mobile */
    border-left: none;
    border-right: none;
  }
}



.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.8);
}

.modal-content {
  background-color: #000;
  margin: auto;
  padding: 0;
  border: none;
  width: 80%;
  max-width: 800px;
  position: relative;
}

.close {
  color: #fff;
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  z-index: 99999;
}

iframe {
  display: block;
}