/* ==========================================================================
   GLOBAL STYLES 
   ========================================================================== */

* {
  font-family: Montserrat, sans-serif;
  box-sizing: border-box; /* Add box-sizing for easier layout */
}

body {
  margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin: 0;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 8vh;
  position: fixed;
  z-index: 10;
  background-color: white;
  width: 100%;
}

.nav-left {
  display: flex;
  align-items: center;
}

.navbar a {
  text-decoration: none;
  color: #002244;
}

.navbar h6 {
  font-weight: 700;
  font-size: 1.5rem;
  padding: 0 1.25rem;
}

.nav-left p,
.nav-right {
  display: none;
}

.side-menu {
  display: none;
}

.hamb {
  cursor: pointer;
  padding: 20px;
  position: fixed;
  top: 4vh;
  right: 20px;
  transform: translateY(-50%);
  z-index: 100;
}

/* 3. Style the lines of the icon */
.hamb-line {
  background: #002244;
  display: block;
  height: 2px;
  position: relative;
  width: 24px;
  transition: all 0.2s ease-out;
}
.hamb-line::before,
.hamb-line::after {
  background: #002244;
  content: '';
  display: block;
  height: 100%;
  position: absolute;
  transition: all 0.2s ease-out;
  width: 100%;
}
.hamb-line::before {
  top: 7px;
}
.hamb-line::after {
  top: -7px;
  background: #002244;
}

/* 4. Style the slide-out menu container */
#hamburger {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 100vw;
  background-color: #002244;
  z-index: 11; /* Above the navbar, below the hamburger icon */
  transform: translateX(100%); /* Start off-screen to the right */
  transition: transform 0.3s ease-in-out;
}

#hamburger ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
}
#hamburger li {
  flex-grow: 1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
#hamburger li a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
  color: white;
  font-size: 1.5rem;
  font-weight: bold;
  text-decoration: none;
}
#hamburger li:nth-child(even) {
  background-color: #3473b2;
}

.side-menu:checked ~ #hamburger {
  transform: translateX(0);
}

.side-menu:checked ~ .hamb .hamb-line {
  background: transparent;
}
.side-menu:checked ~ .hamb .hamb-line::before {
  transform: rotate(-45deg);
  background: white;
  top: 0;
}
.side-menu:checked ~ .hamb .hamb-line::after {
  transform: rotate(45deg);
  background: white;
  top: 0;
}

.dropdown-item {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
  cursor: pointer;
  margin-right: 20px;
}

.dropdown-item p {
  display: block !important;
  font-weight: 500;
  color: #002244;
  margin: 0;
  padding: 10px;
}

.arrow {
  font-size: 0.6rem;
  margin-left: 5px;
  vertical-align: middle;
}

.header-selector {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 8vh;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 8vh;
  left: 0;
  background-color: white;
  width: fit-content;
  /* min-width: 180px;  */
  z-index: 100;
  border-radius: 0 0 8px 8px;
}

.dropdown-menu a {
  color: #002244;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
  font-size: 0.9rem;
  border-bottom: 1px solid #eee;
}

.dropdown-menu a:last-child {
  border-bottom: none;
}

.dropdown-item:hover .dropdown-menu {
  display: block;
}

.dropdown-item:hover .arrow {
  transform: rotate(180deg);
}

/* --- Tablet Screens (min-width: 740px) --- */
@media only screen and (min-width: 740px) {
  .nav-left {
    justify-content: left;
  }
  .nav-right {
    justify-content: right;
  }

  .nav-left p,
  .nav-right {
    display: flex;
    align-items: center;
  }

  .hamb {
    display: none;
  }

  .navbar h6 {
    font-size: 0.75rem;
    padding: 0 2.5rem;
    margin: 1.125rem 0;
  }
  .navbar p {
    padding: 0 1.5625rem;
    font-size: 0.75rem;
  }

  .signup {
    background-color: #002244;
    font-weight: 400;
    padding: 0.625rem 1.875rem;
    font-size: 0.75rem;
    color: white;
    border: none;
    border-radius: 0.3125rem;
    margin-right: 1.875rem;
  }
}

/* --- Desktop Screens (min-width: 900px) --- */
@media only screen and (min-width: 900px) {
  .navbar h6 {
    font-size: 1.125rem;
    margin: 1.125rem 0;
  }
  .navbar p {
    font-size: 1.125rem;
  }
  .signup {
    font-size: 1.125rem;
  }
}
