/* ========================
   MINI MINDS LAND - MAIN CSS
   Global resets, layout, nav, footer, shared UI
======================== */

body {
  font-family: "Poppins", sans-serif;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background-color: #fefefe;
}

a {
  color: #2a5bd7;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  text-decoration: underline;
  color: #1e40af;
}

.hidden {
  display: none !important;
}

/* ------------------------
   Top UI Buttons (Global)
------------------------ */
.detective-toggle,
.music-toggle {
  position: fixed;
  top: 16px;
  width: 64px;
  z-index: 100;
  cursor: pointer;
}

.detective-toggle {
  left: 16px;
}

.music-toggle {
  right: 16px;
}

.detective-toggle img,
.music-toggle img {
  width: 100%;
  height: auto;
  transition: transform 0.3s ease;
}

.detective-toggle:hover img,
.music-toggle:hover img {
  transform: scale(1.1);
}

/* ------------------------
   Fullscreen Menu Overlay
------------------------ */
.detective-menu {
  position: fixed;
  inset: 0;
  background: rgba(60, 180, 255, 0.688);
  backdrop-filter: blur(8px);
  z-index: 99;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s ease;
}

.detective-menu.active {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}

/* Smooth rotate animation class */
.rotate-spin {
  animation: rotateDetective 0.8s ease-out forwards;
}

/* Keyframes: rotate with slow-down at the end */
@keyframes rotateDetective {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* --------------------------------
   Logo (Top Center)
-------------------------------- */
.logo {
  width: 120px;
  max-width: 30vw;
  margin: 12px auto 6px;
  display: block;
}

.logo:hover {
  transform: scale(1.05);
  transition: transform 0.3s ease;
}

@media (max-width: 480px) {
  .logo {
    width: 90px;
  }
}
/* ------------------------
   Menu Grid Buttons (All Pages)
------------------------ */
.menu-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 20px;
}

.menu-grid a {
  display: inline-block;
  width: 150px;
  transition: transform 0.3s ease;
}

.menu-grid a:hover {
  transform: scale(1.05);
}

.menu-grid img {
  width: 100%;
  height: auto;
  border-radius: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ------------------------
   Footer (Shared)
------------------------ */
.site-footer {
  background-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(6px);
  padding: 5px 18px;
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  color: #494c4f;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 16px;
  margin-top: 20px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  z-index: 1;
  position: relative;
}

/* ------------------------
   Z-Index Map (Guide)
------------------------ */
/* z-index: 1000 → modal overlays */
/* z-index: 100 → nav toggles, top buttons */
/* z-index: 10 → standard content */
/* z-index: 0 or -1 → backgrounds */
