body {
    margin: 0;
    font-family: sans-serif;
}

.top-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1em;
    background: #333;
    flex-wrap: wrap;
    position: relative;
    z-index: 3;
}

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

.logo {
    color: white;
    text-decoration: none;
    font-size: 1.2em;
    padding: 1em 0;
    display: inline-block;
}

#menu-toggle {
    display: none;
}

.menu-icon {
    display: none;
    font-size: 2em;
    padding: 0 1em;
    color: white;
    cursor: pointer;
}

.menu {
    display: flex;
    flex-wrap: wrap;
}

.menu a {
    padding: 1em;
    color: white;
    text-decoration: none;
}

.menu a:hover {
    background: #555;
}

/* === MOBILE === */
@media (max-width: 600px) {
    .top-nav {
        flex-direction: row;
        align-items: center;
    }

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

    .logo {
        padding: 1em 0;
    }

    .menu-icon {
        display: block;
        font-size: 2em;
        padding: 0 1em;
        align-self: center;
    }

    .menu {
        flex-direction: column;
        width: 100%;
        background: #333;
        overflow: hidden;
        max-height: 0;
        transition: max-height 0.3s ease;
    }

    #menu-toggle:checked + .menu-icon + .menu {
        max-height: 500px;
    }
}

/*  Main Content  */
main {
    padding: 1em;
}

.jungle-area {
  margin: 0;
  background-image: url('jungle-bg.png');
  background-repeat: repeat;
  background-attachment: fixed;
  background-size: auto;
  background-position: top left;
  background-color: #3a2e1e; /* dark earthy fallback */
  min-height: 100vh;

  border-top: 8px solid #4b3824;
  border-bottom: 8px solid #4b3824;
  box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.5), 0 4px 8px rgba(0, 0, 0, 0.5);
}

.glass-panel {
  position: relative; /* Needed for the date badge */
  background: rgba(255, 255, 255, 0.5);
  border-radius: 15px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 2rem;
  color: #000;
  margin: 1em 0;
  z-index: 2;
}

.date-badge {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: rgba(255, 255, 255, 0.3);
  color: #222;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  user-select: none;
  pointer-events: none;
}

.glass-panel h1 {
  margin-top: 0;
}

/*  Glitch Rain  */
#glitch-wrapper {
  position: absolute;
  top: 0; left: 0; width: 100vw; height: 100vh;
  pointer-events: none;
  z-index: 1;
}

.glitch-canvas {
  position: fixed;
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
  filter: drop-shadow(0 0 4px #0f0);
  z-index: 2;
}

/*  Wildkin Database  */
.wildkin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  padding: 2rem 0;
}

.wildkin-card {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 1rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  color: #000;
  text-align: center;
}

.wildkin-card img {
  width: 100%;
  max-height: 150px;
  object-fit: contain;
}


/*  Footer  */
footer {
    position: relative;
    text-align: center;
    padding: 1em;
    background: #eee;
    z-index: 3;
}
