html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: 'Comic Relief', sans-serif; 
  background: linear-gradient(180deg, #1f1f1f, #444444); 
  color: white;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

nav {
  width: 90%;
  max-width: 800px;
  margin: 10px auto;
  padding: 0;
  text-align: center;
  background: rgba(0, 0, 0, 0.096);
  z-index: 10;
  flex-shrink: 0;
  border-radius: 32px;
  outline: 2px solid #ffffff54;
  outline-offset: -1px;
}

nav a {
  display: inline-block;
  color: white;
  text-align: center;
  padding: 12px 20px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 18px;
  transition: all 0.2s ease;
  transform: scale(0.90);
}

nav a:hover {
  color: #ffffff;
  border-radius: 18px;
  transform: scale(0.95);
}

#content {
  flex: 1;
  padding: 20px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

#content::-webkit-scrollbar {
  display: none;
}

#content button[data-theme] {
  background: rgba(0, 0, 0, 0.096);
  color: #ffffff;
  border-radius: 18px;
  font-size: 50px;
  padding: 95px 95px;
  margin: 5px;
  font-weight: bold;
  font-family: 'Comic Relief', sans-serif;
  cursor: pointer;
  transition: all 0.25s ease;
  outline: 2px solid #ffffff;
  outline-offset: -1px;
}

#content button[data-theme]:hover {
  background: rgba(0, 0, 0, 0.096);
  color: #fff;
  transform: scale(0.95);
}

h1, h2, p {
  text-align: center;
  margin: 10px auto;
  max-width: 90%;
}

iframe {
  display: block;
  margin: 30px auto;
  border-radius: 10px;
  width: 100%;
  max-width: 640px;
  aspect-ratio: 16 / 9;
  height: auto;
  outline: 4px solid #ffffff;
  outline-offset: -3px;
}

footer {
  width: 90%;
  max-width: 800px;
  margin: 10px auto;
  color: white;
  text-align: center;
  padding: 0;
  font-size: 14px;
  z-index: 10;
  background: rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
  border-radius: 32px;
  outline: 2px solid #ffffff54;
  outline-offset: -1px;
}

a {
  color: #757575;
  text-decoration: none;
}

a:hover {
  color: #b4b4b4;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 34px;
  align-items: start;
  margin: 16px auto;
  width: 100%;
  max-width: 840px;
  padding: 8px;
  box-sizing: border-box;
}
.gallery img {
  width: 110%;
  height: auto;
  display: block;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 1px 18px rgba(0,0,0,0.6);
  transition: transform 0.25s ease, filter 0.25s ease;
  outline: 3px solid #ffffff60;
  outline-offset: -2px;
}
.gallery img:hover {
  transform: translateY(-6px) scale(1.015);
  filter: brightness(1.06);
}

.gallery-item {
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.gallery-item img {
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}
.gallery-item figcaption {
  margin-top: 8px;
  padding: 6px 8px 0 8px;
  font-size: 14px;
  color: #e6e6e6;
  text-align: center;
  line-height: 1.2;
  opacity: 0.95;
}

@media (max-width: 768px) {
  nav a {
    padding: 10px 8px;
    font-size: 14px;
  }

  h1 {
    font-size: 24px;
    margin: 12px auto;
  }

  h2 {
    font-size: 20px;
    margin: 10px auto;
  }

  p {
    font-size: 16px;
    margin: 8px auto;
  }

  iframe {
    max-width: 100%;
  }

  footer {
    font-size: 12px;
    padding: 8px 10px;
  }
}
