/* --- Base Layout --- */
body {
  font-family: 'Cinzel', serif;
  background-color: black;
  color: white;
  text-align: center;
  margin: 0;
  padding: 0;
}

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

h1 {
  font-size: 1.8rem;
  margin-top: 20px;
  color: #ccc; /* restored bright grey */
}

/* --- Buttons --- */
button {
  background-color: #9c27b0;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 15px;
  font-family: 'Cinzel', serif;
  cursor: pointer;
  transition: all 0.2s ease;
}

button:hover {
  background-color: #6666;
  transform: scale(1.05);
}

/* --- Fortune text --- */
p#fortune {
  font-size: 17px;
  margin-top: 25px;
  max-width: 600px;
  padding: 0 20px;
  line-height: 1.5;
  color: #f0e6ff;
}

/* --- Music button --- */
.music-button {
  position: absolute;
  top: 15px;
  left: 15px;
  background: transparent;
  border: none;
  color: #9c27b0;
  font-size: 22px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.music-button:hover {
  transform: scale(1.1);
}

/* --- Footer --- */
footer {
  margin-top: 40px;
  font-size: 14px;
  color: #aaa;
}

footer a {
  color: #aaa; /* restored to grey */
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* --- Language Menu with 🌐 Toggle --- */
.lang-wrapper {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 10;
}

.lang-toggle {
  background: transparent;
  border: none;
  color: #9c27b0;
  font-size: 22px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.lang-toggle:hover {
  transform: scale(1.1);
}

.lang-switcher {
  display: none;
  flex-direction: column;
  gap: 6px;
  margin-top: 6px;
  background-color: rgba(0, 0, 0, 0.8);
  padding: 8px;
  border-radius: 8px;
  border: 1px solid #9c27b0;
}

.lang-switcher.active {
  display: flex;
}

.lang-switcher button {
  background-color: #444;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 5px 10px;
  font-family: 'Courier New', monospace;
  font-size: 12px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.lang-switcher button:hover {
  background-color: #666;
}

.lang-switcher button.active {
  background-color: #9c27b0;
}

/* --- GIF --- */
img#fortune-gif {
  width: 250px; /* restored normal size */
  height: auto;
  margin-top: 15px;
}


/* === Small overrides for music icon + language layout ===
   - Keep existing lang-switcher look/shape intact (we do not change that)
   - Place music icon left of language toggle
   - Force language menu item hover to grey (not purple)
*/

/* Make the wrapper horizontal so music icon sits left of the globe */
.lang-wrapper {
  position: absolute;    /* keep top-right placement */
  top: 15px;
  right: 15px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 8px;              /* space between music icon and globe */
}

/* --- Music button --- */
.lang-wrapper .music-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  line-height: 1;

  background: transparent; /* MATCH PAGE */
  border: none;
  color: #68bde5; /* emoji color */
  cursor: pointer;
  transition: all 0.2s ease;

    
  padding: 6px; /* match globe button halo size */
  border-radius: 50%; /* ensures halo is circular like the globe */

}

/* Hover halo */
.lang-wrapper .music-btn:hover {
  background-color: #6666; /* your hover halo */
  border-radius: 8px;
  transform: scale(1.08);
}

/* Diagonal line when muted */
.lang-wrapper .music-btn.muted::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2px;
  height: 24px;
  background-color: #68bde5;
  transform: translate(-50%, -50%) rotate(-45deg);
  pointer-events: none;
}

/* diagonal line over the ♬ only if muted */
.lang-wrapper .music-btn.muted::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2px;           /* thickness of the line */
  height: 24px;         /* adjust for size of ♬ */
  background-color: #68bde5; /* same color as ♬ */
  transform: translate(-50%, -50%) rotate(-45deg); /* diagonal / */
  pointer-events: none;  /* so it doesn't block clicks */
}


/* Keep the globe exactly as before (no change) */
.lang-toggle {
  background: transparent;
  border: none;
  color: #9c27b0;
  font-size: 20px;
  cursor: pointer;
  padding: 4px;
}

/* Position the existing menu relative to the wrapper (no visual changes) */
.lang-wrapper .lang-switcher {
  position: absolute; /* was earlier absolute in your CSS — keep it */
  top: 40px;          /* drop below the icons */
  right: 0;
  display: none;      /* default hidden — your JS toggles .active */
}

/* Ensure visible uses the same existing .active behavior */
.lang-wrapper .lang-switcher.active {
  display: flex;
  flex-direction: column;
}

/* FORCE language button hover to grey so it never turns purple.
   We use !important to guarantee this override without editing original rules. */
.lang-wrapper .lang-switcher button:hover {
  background-color: #666 !important;
  color: #fff !important;
}

/* Also make sure active (selected) language still uses your purple */
.lang-wrapper .lang-switcher button.active {
  background-color: #9c27b0; /* unchanged */
  color: #fff;
}

.lang-wrapper .music-btn {
  font-size: 24px; /* slightly larger for balance */
}
