

h1 {
    font-size: 28px;
    margin-top: 20px;
    color: #ff8800;
}

body {
    font-family: Arial, sans-serif;
    text-align: center;
    background: linear-gradient(to right, #f8f9fa, #e9ecef); /* Sfondo sfumato */
}

.game-container {
    width: 90%;
    max-width: 600px;
    margin: auto;
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2); /* Effetto ombra */
}

button {
    display: block;
    width: 100%;
    padding: 15px;
    margin: 15px 0;
    font-size: 18px;
    font-weight: bold;
    border: 2px solid black;
    border-radius: 10px;
    background-color: #ff8800;
    color: white;
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: transform 0.2s, background-color 0.3s;
}

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


#music-btn {
    background-color: #444;
    color: white;
}

#music-btn:hover {
    background-color: #222;
}

button:active {
    transform: scale(0.97);
}

/* Pulsante musica */
button[onclick="toggleMusic()"] {
    background-color: #444;
    color: white;
}

button[onclick="toggleMusic()"]:hover {
    background-color: #222;
}



.fade-out {
    opacity: 0;
    transition: opacity 0.5s ease;
}

button.ultra-mode {
    background-color: black;
    color: white !important; /* 🔥 forza sempre bianco */
    border: 2px solid red;
    box-shadow: 0 0 12px rgba(255, 0, 0, 0.7);
    font-weight: bold;
    transition: transform 0.2s, box-shadow 0.3s, background-color 0.3s;
}

button.ultra-mode:hover {
    transform: scale(1.1);
    background-color: #222;
    color: white !important; /* 🔥 forza bianco anche in hover */
    box-shadow: 0 0 25px rgba(255, 0, 0, 1);
}


button.obiettivi {
    background-color: blueviolet;
    color: white;
    border: 2px solid rgb(0, 0, 0);
    box-shadow: 0 0 12px black;
    font-weight: bold;
    transition: transform 0.2s, box-shadow 0.3s, background-color 0.3s;
}

button.ultra-mode {
    background-color: green-yellow;
    color: black;
    border: 2px solid black;
    box-shadow: 0 0 12px #222;
    font-weight: bold;
    transition: transform 0.2s, box-shadow 0.3s, background-color 0.3s;
}

button.ultra-mode:hover {
    transform: scale(1.1);
    background-color: #222;
    box-shadow: 0 0 25px rgb(0, 0, 0);
}


button.ultra-mode:active {
    transform: scale(0.95);
}

@media screen and (max-width: 700px) {
  .game-container {
    width: 95%;
    padding: 15px;
  }

  h1 {
    font-size: 28px;
  }

  p {
    font-size: 18px;
  }

  button {
    display: block;
    width: 100%;
    font-size: 20px; /* aumenta la grandezza del testo */
    padding: 22px;   /* aumenta l'altezza del pulsante */
    margin: 16px 0;
  }

  body {
    background: linear-gradient(to bottom, #f8f9fa, #e9ecef);
  }

  #music-btn {
    width: 100%;
  }
}

.game-container {
  min-height: 95vh; /* Copre quasi tutto lo schermo */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

