/* Estilos generales */
body {
    font-family: 'Fredoka', sans-serif;
    background: linear-gradient(45deg, #1c1c1c, #444444);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    height: 100vh;
    margin: 0;
    text-align: center;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

h1 {
    margin-bottom: 20px;
    font-size: 3rem;
    color: #ffcc00;
    text-shadow: 0 0 10px rgba(255, 204, 0, 0.7);
}

/* Botones del juego */
.game-buttons {
    display: grid;
    grid-template-columns: repeat(2, 200px);
    grid-gap: 20px;
    justify-content: center;
    margin-bottom: 30px;
}

.button {
    width: 200px;
    height: 200px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

#green {
    background-color: #4caf50;
}

#red {
    background-color: #f44336;
}

#yellow {
    background-color: #ffeb3b;
}

#blue {
    background-color: #2196f3;
}

.button.active {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.7);
    filter: brightness(1.3);
}

/* Información del juego */
#info {
    margin-bottom: 20px;
}

#score-board {
    display: flex;
    justify-content: space-around;
    width: 100%;
    max-width: 400px;
    margin: 0 auto 10px;
}

#timer {
    font-size: 1.5rem;
    margin-top: 10px;
}

/* Botones */
button {
    background-color: #ffcc00;
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    cursor: pointer;
    color: #333;
    border-radius: 5px;
    margin: 10px;
    transition: all 0.2s ease-in-out;
}

button:hover {
    background-color: #ffeb3b;
}

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

/* Modo noche */
body.dark-mode {
    background: linear-gradient(45deg, #000, #222);
    color: #ddd;
}

body.dark-mode h1 {
    color: #ff6600;
    text-shadow: 0 0 10px rgba(255, 102, 0, 0.7);
}

body.dark-mode button {
    background-color: #ff6600;
    color: white;
}

body.dark-mode button:hover {
    background-color: #ff8533;
}


.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    color: #333;
    width: 80%;
    max-width: 400px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

.modal-content h2 {
    margin-bottom: 20px;
}

.modal-content button {
    background-color: #ffcc00;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.2s ease-in-out;
}

.modal-content button:hover {
    background-color: #ffeb3b;
}
