html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  background: #0b1026;
  font-family: 'Caudex', serif;
  overflow: hidden;
}

body {
  display: flex;
  justify-content: center; /* centra orizzontalmente */
  align-items: center;     /* centra verticalmente */
  background: #0b1026;     /* sfondo */
  font-family: "Caudex", serif;
}

canvas {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1;
}

#content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  height: 80vh;
  max-height: 95vw;
  inset: 0;

  color: #f5f0e6;
  background: #0b1026;
  font-family: "Caudex", serif;
  text-align: center;
  border-radius: 2vh;

  gap: 2vh;
  padding: 2vw;

  transition: opacity 2.0s ease;
}

#content h1 {
  font-size: clamp(1.8rem, 8vw, 4rem);
  margin: 0.4em 0 0.1em;
  line-height: 1.1;
}

#content h2 {
  font-size: clamp(1.2rem, 5vw, 2.2rem);
  margin: 0.2em 0;
}

/* Data e Luogo */
#content p {
  font-size: clamp(1rem, 4vw, 1.5rem);
  margin: 0.5em 0;
  line-height: 1.4;
}

.hidden {
  opacity: 0;
  pointer-events: none;
}

#muteBtn {
  position: fixed;
  top: 3vmin;
  left: 3vmin;
  width: 12vmin;
  height: 12vmin;
  border-radius: 3vmin;
  font-size: 6vmin;
  background: rgba(0,0,0,0.4);
  color: white;
  border: none;
  padding: 6px 10px;
  cursor: pointer;
  z-index: 10;
}

#muteBtn:hover {
  background: rgba(0,0,0,0.6);
}

#skipBtn {
  position: fixed;
  top: 3vmin;
  right: 3vmin;
  width: 12vmin;
  height: 12vmin;
  border-radius: 3vmin;
  font-size: 6vmin;
  border: none;
  background: rgba(0,0,0,0.6);
  color: white;
  cursor: pointer;
  z-index: 10;
  line-height: 75px;
  text-align: center;
}

#restartBtn {
  position: fixed;
  top: 3vmin;
  right: 3vmin;
  width: 12vmin;
  height: 12vmin;
  border-radius: 3vmin;
  font-size: 6vmin;
  border: none;
  background: rgba(0,0,0,0.6);
  color: white;
  cursor: pointer;
  z-index: 10;
  display: none;
  line-height: 12vmin;
  text-align: center;
}

#bottomWrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: auto;
  gap: 1.5vh;
}

#enterBtn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: auto;

  padding: 3vmin 10vmin;
  font-size: clamp(0.8rem, 3vw, 1.2rem); 
  border-radius: 5vmin;
  
  font-family: "Press Start 2P";
  border: none;
  cursor: pointer;
  background: #000;
  color: rgb(86, 86, 86);
  z-index: 10;
  text-decoration: line-through;
  gap: 0.5vh;
}

#redirectText {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  
  font-size: clamp(0.75rem, 2.5vw, 1rem);
  color: rgba(255, 255, 255, 0.7);
  margin-top: 1vh;

  z-index: 10;
  padding: 0.5vw;
  gap: 1.5vh;
}

.final-gif {
  width: min(40vw, 300px);
  height: auto;
  image-rendering: pixelated;
  margin-bottom: 2vh;
}