/* off-screen-menu */
.off-screen-menu {
  background-color: black;
  height: 100vh;
  width: 100%;
  max-width: 450px;
  position: fixed;
  top: 0;
  right: -450px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-size: 3rem;
  transition: 0.3s ease;
}
.off-screen-menu.active {
  right: 0;
}
.off-screen-menu a {
  color: white;
  text-decoration: none;
  margin: 20px 0;
}

/* hamburger */
nav {
  padding: 1rem;
  display: flex;
  color: black;
  /* background-color: rgba(0, 0, 0, 0.239); */
}
nav h1 {
  color: black;
  font-family: "Arial", sans-serif;
  font-size: 50px;
  margin: 0;
  text-align: right;
}
nav a {
  text-decoration: none;
}
nav h3 {
  color: black;
  font-family: "Arial", sans-serif;
  font-size: 15px;
  margin: 15px 0 0 0;
  text-align: left;
}
/* hamburger menu */
.ham-menu {
  height: 50px;
  width: 50px;
  margin-left: auto;
  position: relative;
}
.ham-menu:hover {
  cursor: pointer;
}
.ham-menu span {
  background-color: black;
  position: absolute;
  height: 5px;
  width: 100%;
  border-radius: 25px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: background-color 0.3s ease;
}
.ham-menu.active span {
  background-color: white;
}
/* child span */
.ham-menu span:nth-child(1) {
  top: 25%;
}
.ham-menu span:nth-child(2) {
  top: 50%;
}
.ham-menu span:nth-child(3) {
  top: 75%;
}
.ham-menu.active span:nth-child(1) {
  top: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
}
.ham-menu.active span:nth-child(2) {
  opacity: 0;
}
.ham-menu.active span:nth-child(3) {
  top: 50%;
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* Body */
.standards-body {
  padding: 2rem;
  font-family: "Arial", sans-serif;
  color: black;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.standards-body h2 {
  font-size: 36px;
  margin-bottom: 1rem;
}
.standards-body h3 {
  font-size: 24px;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}
.standards-body p {
  font-size: 18px;  
}

/* Footer */
footer {
  text-align: center;
  padding: 10px;
  bottom: 0;
  width: 100%;
  z-index: -1;
}
footer img {
  height: 80px;
  width: auto;
}
.copyright {
  margin-top: 10px;
  font-size: 14px;
  color: black;
}
.zoobieville-logo {
  height: 80px;
  width: auto;
  scale: 1.30;
}
audio {
  display: none;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  /* Navigation adjustments */
  nav {
    padding: 0.75rem;
  }

  nav h1 {
    font-size: 32px;
  }

  nav h3 {
    font-size: 12px;
    margin: 12px 0 0 0;
  }

  /* Hamburger menu adjustments */
  .ham-menu {
    height: 40px;
    width: 40px;
  }

  .ham-menu span {
    height: 4px;
  }

  /* Off-screen menu adjustments */
  .off-screen-menu {
    max-width: 100%;
    right: -100%;
    font-size: 2rem;
  }

  .off-screen-menu a {
    margin: 15px 0;
  }

  /* Body content adjustments */
  .standards-body {
    padding: 1.5rem;
    max-width: 100%;
  }

  .standards-body h2 {
    font-size: 28px;
    margin-bottom: 1rem;
  }

  .standards-body h3 {
    font-size: 20px;
    margin-top: 1.2rem;
    margin-bottom: 0.5rem;
  }

  .standards-body p {
    font-size: 16px;
  }

  /* Footer adjustments */
  footer {
    padding: 8px;
  }

  footer img {
    height: 60px;
  }

  .copyright {
    font-size: 12px;
    margin-top: 8px;
  }

  .zoobieville-logo {
    height: 60px;
    scale: 1.1;
  }
}

@media (max-width: 480px) {
  /* Extra small devices */
  /* Navigation for extra small */
  nav {
    padding: 0.5rem;
  }

  nav h1 {
    font-size: 24px;
  }

  nav h3 {
    font-size: 11px;
    margin: 10px 0 0 0;
  }

  /* Hamburger menu for extra small */
  .ham-menu {
    height: 35px;
    width: 35px;
  }

  .ham-menu span {
    height: 3px;
  }

  /* Off-screen menu full width */
  .off-screen-menu {
    max-width: 100%;
    font-size: 1.5rem;
  }

  .off-screen-menu a {
    margin: 12px 0;
  }

  /* Body content for small screens */
  .standards-body {
    padding: 1rem;
    max-width: 100%;
  }

  .standards-body h2 {
    font-size: 22px;
    margin-bottom: 0.8rem;
  }

  .standards-body h3 {
    font-size: 18px;
    margin-top: 1rem;
    margin-bottom: 0.4rem;
  }

  .standards-body p {
    font-size: 14px;
  }

  /* Footer for small screens */
  footer {
    padding: 6px;
  }

  footer img {
    height: 50px;
  }

  .copyright {
    font-size: 11px;
    margin-top: 6px;
  }

  .zoobieville-logo {
    height: 50px;
    scale: 1;
  }
}