h2 {
  text-align: center;
  font-family: "Arial", sans-serif;
  font-size: 40px;
  margin-top: 20px;
  margin-bottom: 20px;
  color: rgb(0, 0, 0);
}

body main {
  min-height: 500px;
  display: flex;
  gap: 50px;
  flex-grow: 1;
  justify-content: space-evenly;
  align-items: center;
  flex-direction: row;
  flex-wrap: wrap;
  align-content: space-evenly;
}
button {
  border: none;
}
.img-box {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 550px;
  width: 400px;
  font-size: 40px;
  grid-row: 3;
  overflow: hidden;
}
.img-box:hover {
  cursor: pointer;
  transform: scale(1.05);
  transition: 0.3s ease;
}
img {
  height: 100%;
  width: 100%;
  object-fit: contain;
}

/* 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;
  /* 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;
  text-decoration: none;
}
nav a h1{
  text-decoration: none;
}
nav a {
  text-decoration: none;
}
nav h3 {
  color: black;
  font-family: "Arial", sans-serif;
  font-size: 15px;
  margin: 15;
  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: 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);
}

/* Footer */
footer {
  text-align: center;
  padding: 10px;
  bottom: 0;
  width: 100%;
  z-index: 5;
}
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;
}

@media (max-width: 768px) {
  /* Heading adjustments */
  h2 {
    font-size: 28px;
    margin-top: 15px;
    margin-bottom: 15px;
  }

  /* Main content layout */
  body main {
    min-height: 800px;
    gap: 30px;
  }

  /* Image box adjustments */
  .img-box {
    height: 450px;
    width: 300px;
    font-size: 32px;
  }

  /* Navigation adjustments */
  nav {
    padding: 0.75rem;
  }

  nav h1 {
    font-size: 32px;
  }

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

  /* 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;
  }

  /* 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 */
  h2 {
    font-size: 24px;
    margin-top: 12px;
    margin-bottom: 12px;
  }

  /* Main content stacked vertically */
  body main {
    flex-wrap: wrap;
    flex-direction: column;
    min-height: auto;
    gap: 20px;
  }

  /* Image box for small screens */
  .img-box {
    height: 380px;
    width: 100%;
    max-width: 280px;
    font-size: 28px;
  }

  /* Navigation for extra small */
  nav {
    padding: 0.5rem;
  }

  nav h1 {
    font-size: 30px;
  }

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

  /* 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;
  }

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

  footer img {
    height: 50px;
  }

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

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