/*
 * WordPress Plugin: Juego de Dados Jessica y Hazel
 * Style: Custom Styles for the Dice Game
 */

.juego-dados-container {
    font-family: Arial, sans-serif;
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 800px;
    margin: 20px auto; /* Centrar el contenedor y darle un poco de margen */
    width: 100%;
}

.juego-dados-container h1 {
    color: #333;
    margin-bottom: 20px;
}

.juego-dados-container .dice-info {
    display: flex;
    justify-content: space-around;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.juego-dados-container .player-info {
    flex: 1;
    min-width: 280px;
    margin: 15px;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    background-color: #fafafa;
}

.juego-dados-container .player-info h2 {
    color: #555;
    margin-bottom: 10px;
}

.juego-dados-container .player-info p {
    margin: 5px 0;
    color: #666;
}

.juego-dados-container .dice {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.juego-dados-container .dice .face {
    width: 40px;
    height: 40px;
    background-color: #007bff; /* Color por defecto, ajustado por clase */
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2em;
    font-weight: bold;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.juego-dados-container .jessica-dice .face {
    background-color: #28a745; /* Verde para Jessica */
}

.juego-dados-container .hazel-dice .face {
    background-color: #dc3545; /* Rojo para Hazel */
}

.juego-dados-container button#rollDiceBtn {
    background-color: #007bff;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-bottom: 30px;
}

.juego-dados-container button#rollDiceBtn:hover {
    background-color: #0056b3;
}

.juego-dados-container .results {
    margin-top: 20px;
    padding: 20px;
    border-top: 1px solid #eee;
}

.juego-dados-container .results p {
    font-size: 1.1em;
    margin: 10px 0;
    color: #444;
}

.juego-dados-container .results #jessicaResult {
    color: #28a745;
    font-weight: bold;
}

.juego-dados-container .results #hazelResult {
    color: #dc3545;
    font-weight: bold;
}

.juego-dados-container .results #winner {
    font-size: 1.8em;
    font-weight: bold;
    margin-top: 20px;
}

.juego-dados-container .results #winner.jessica {
    color: #28a745;
}

.juego-dados-container .results #winner.hazel {
    color: #dc3545;
}

.juego-dados-container .results #winner.tie {
    color: #6c757d;
}

/* Media Queries para responsividad */
@media (max-width: 600px) {
    .juego-dados-container .dice-info {
        flex-direction: column;
        align-items: center;
    }

    .juego-dados-container .player-info {
        margin: 10px 0;
        width: 90%;
        min-width: unset;
    }
}