/* Estilos generales */
body {
    font-family: 'Arial', sans-serif;
    text-align: center;
    background: linear-gradient(to bottom, #6d4c41, #3e2723); /* Colores más apagados */
    color: white;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
}

#menu-container {
    background: rgba(0, 0, 0, 0.8);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

/* Estilos para los botones */
button {
    background: #555;
    color: white;
    border: none;
    padding: 15px 20px;
    font-size: 20px;
    cursor: pointer;
    border-radius: 10px;
    transition: background 0.3s, transform 0.2s;
    margin: 5px;
}

button:hover {
    background: #777;
    transform: scale(1.05);
}

button:active {
    transform: scale(0.95);
}

/* Selección de bots */
.bot-selection button.selected {
    background: #2196F3 !important; /* Azul */
}

/* Selección de dificultad con colores correctos */
.difficulty-selection button.selected {
    border: 2px solid white;
}

.difficulty-selection button[data-difficulty="easy"].selected {
    background: #4CAF50 !important; /* Verde */
}

.difficulty-selection button[data-difficulty="normal"].selected {
    background: #FFEB3B !important; /* Amarillo */
    color: black;
}

.difficulty-selection button[data-difficulty="hard"].selected {
    background: #F44336 !important; /* Rojo */
}

/* Botón de jugar */
#play-button {
    background: #2196F3;
    font-size: 24px;
    padding: 20px 30px;
    margin-top: 20px;
}

#play-button:hover {
    background: #1976D2;
}

#play-button:disabled {
    background: #aaa;
    cursor: not-allowed;
}

/* Botón de reglas */
#rules-button {
    background: #ff9800;
    font-size: 18px;
    padding: 10px 20px;
    margin-top: 10px;
}

#rules-button:hover {
    background: #e68900;
}

/* Popup de reglas */
#rules-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s, opacity 0.3s;
}

#rules-popup.hidden {
    visibility: hidden;
    opacity: 0;
}

#rules-content {
    background: #333;
    color: white;
    padding: 30px;
    border-radius: 10px;
    width: 80%;
    max-width: 500px;
    text-align: left;
}

#close-rules {
    margin-top: 20px;
    background: #FF5722;
}

#close-rules:hover {
    background: #e64a19;
}

/* Estilos para el popup */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.popup-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    max-width: 600px;
    width: 80%;
    color: #333;
    text-align: left;
    font-size: 18px;
}

.popup-content h2 {
    text-align: center;
    margin-bottom: 20px;
}

.popup-content ul {
    list-style-type: decimal;
    margin-left: 20px;
}

.popup-content li {
    margin: 10px 0;
}

.popup-content a {
    color: #2196F3;
    text-decoration: none;
}

.popup-content a:hover {
    text-decoration: underline;
}

/* Contenedor de los personajes fuera del menú */
.characters {
    position: absolute; /* Para que esté fuera del flujo normal del documento */
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -10; /* Asegura que los personajes estén sobre el menú */
}

/* Estilos de los personajes */
.character {
    position: absolute;
    width: 100px;  /* Ajusta el tamaño de los personajes */
    height: 100px;
    transition: transform 0.2s ease;
    animation: moveContinuo 5s ease-in-out infinite;
}

/* Movimiento continuo */
@keyframes moveContinuo {
    0% {
        transform: translate(0px, 0px);
    }
    25% {
        transform: translate(10px, -10px); /* Movimiento pequeño en diagonal */
    }
    50% {
        transform: translate(-10px, 10px); /* Movimiento pequeño en diagonal */
    }
    75% {
        transform: translate(5px, 5px); /* Movimiento pequeño hacia otra dirección */
    }
    100% {
        transform: translate(0px, 0px);
    }
}

/* Posiciones aleatorias */
.character.fizz {
    top: 20%; /* Posición inicial aleatoria */
    left: 27%;
    animation-delay: 0s;
}

.character.buzz {
    top: 10%; /* Posición inicial aleatoria */
    left: 67%;
    animation-delay: 1s;
}

.character.fizzbuzz {
    top: 70%; /* Posición inicial aleatoria */
    left: 70%;
    animation-delay: 2s;
}

