/* ==============================
   RESET & ACCESSIBILITY
================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ==============================
   BASE STYLES
================================ */
html {
  height: 100%;
  width: 90%;
  margin: 0 auto;
}

body {
  margin: 0;
  font-family: "Raleway", sans-serif;
  color: #ffffff;
  background-color: rgb(27,27,27);
  overflow-x: hidden;
}

h1 {
  font-family: "Limelight", sans-serif;
  font-weight: 400;
  color: #fbb831;
}

h2 {
  font-family: "Cutive Mono", monospace;
  font-weight: 400;
  font-style: normal;
  margin-left: 50px;
}

a {
  font-family: "Limelight", sans-serif;
  font-weight: 400;
  font-style: normal;
  line-height: 1.5;
  color: #ffffff;
  text-decoration: none;
}

 #instagram-button {
     background: none;
     border: none;
     padding: 10px;
     margin: 0;
 }

 #instagram-logo {
     width: 30px;
     height: auto;
     transition: transform 0.3s;
 }

 #instagram-button:hover #instagram-logo {
     transform: scale(1.1) rotate(5deg);
 }

 footer {
     font-size: x-small;
     text-align: center;
     color: rgb(255, 255, 255);
     padding: 15px;
     margin-top: 100pt;
     width: 100%;
     text-align: center;
     padding: 3rem 2rem;
 }

/* ==============================
   HEADER & NAVIGATION
================================ */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgb(27,27,27);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1rem;
}

.nav-logo img {
  width: 150px;
  height: auto;
}

/* Nav links - common */
nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

nav a {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 15pt;
  transition: color 0.3s;
}

nav a:hover {
  color: #fbb831;
  border-bottom: 2px solid #fbb831;
}

/* Dropdowns - common */
li.dropdown {
  position: relative;
  cursor: pointer;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #fbb831;
  border-radius: 10px;
  min-width: 200px;
  box-shadow: 0 8px 10px rgba(27,27,27,0.7);
  flex-direction: column;
  z-index: 1000;
}

.dropdown-content a {
  color: #000;
  font-family: "Cutive Mono", monospace;
  font-weight: 400;
  font-style: normal;
  font-size: 11pt;
  padding: 0.5rem 1rem;
}

.dropdown-content a:hover {
  color: #fff;
  background-color: black;
  border-bottom: none;
}

/* Desktop nav */
@media(min-width: 861px) {
  nav ul {
    display: flex;
    gap: 2rem;
    align-items: center;
  }

  li.dropdown:hover .dropdown-content {
    display: flex;
  }

  #menu-toggle {
    display: none;
  }
}


/* Tablet & Mobile nav */
@media (max-width: 860px) {

  nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .nav-logo img {
  width: 100px;
  height: auto;
}

  .nav-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
  }

  #menu-toggle {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
  }

  #menu-toggle img {
    width: 40px;
    height: auto;
    display: block;
  }


  /* Mobile dropdowns */
  li.dropdown .dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    box-shadow: none;
    border-radius: 0;
  }

  li.dropdown.active .dropdown-content {
    display: flex;
    max-width: 80%;
  }

  .dropdown-content a{
    font-size: 9pt;
    padding-top:2px;
    padding-bottom: 2px;
    padding-left: 5px;
    padding-right: 5px;
  }

    nav ul {
    position: absolute;
    top: 50%;
    right: 60px; /* pushes menu left of icon */

    transform: translateY(-20%);
    display: none;
    flex-direction: column;
    align-items: flex-start;

    background-color: rgb(27,27,27);
    padding: 0.75rem 1rem;
    gap: 0.4rem;

    min-width: 100px;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.6);

    z-index: 999;
  }

  nav ul.show {
    display: flex;
  }

  nav a {
    font-size: 9pt;
    padding: 0.25rem 0;
    white-space: nowrap;
  }

}

