/* Main container stretches to fill space between header and footer */
#danger-dice-page {
    flex: 1; /* fill space between header and footer */
    display: flex;
    justify-content: center; /* vertical centering */
    align-items: center;     /* horizontal centering */
    background-color: #1A1A1A;
    padding: 2rem 5vw;
    box-sizing: border-box;
}

/* Container to center the card */
.centered-card {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

/* Card styling */
#danger-dice-card {
    background-color: #2C2C2C;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 0 5px 1px rgba(242, 73, 73, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 400px;
    width: 100%;
}

#danger-dice-card h2 {
    color: #F24949;
    margin-bottom: 1rem;
    font-size: 1.8rem;
    text-shadow: 0 0 8px rgba(242, 73, 73, 0.7);
}

#danger-dice-card p {
    color: #ccc;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

/* Dice container */
#danger-dice-card .dice-container {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 1rem 0;
}

#danger-dice-card .dice {
    width: 80px;
    height: 80px;
    transition: transform 0.2s ease;
}

/* Roll button */
#danger-dice-card .btn {
    padding: 0.6rem 1.2rem;
    border-radius: 15px;
    background-color: #F24949;
    color: white;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 0.5rem;
}

#danger-dice-card .btn:hover {
    background-color: #f37c7c;
}

#danger-dice-card .btn:active {
    background-color: #1C1C1C;
    color: #F24949;
}

/* Total display */
#danger-dice-card #total-display {
    margin-top: 1rem;
    font-size: 1.2rem;
    color: #ccc;
}

#games {
    border-radius: 15px;
    border: none;
    background-color: #F24949;
    color: white;
    padding: 0.75rem 1rem;
    transition: all 0.2s ease;
    margin: 0 5px 1rem 0.25rem;
}

#games:hover {
    background-color: #f37c7c;
}

#games:active {
    background-color: #1C1C1C;
    color: #F24949;
}

#games {
    margin-top: 1rem;
}

/* Mobile adjustments */
@media (max-width: 600px) {
    #danger-dice-card {
        padding: 1.5rem;
    }
    #danger-dice-card h2 {
        font-size: 1.5rem;
    }
    #danger-dice-card p {
        font-size: 0.9rem;
    }
    #danger-dice-card .dice {
        width: 60px;
        height: 60px;
    }
    #danger-dice-card .btn {
        padding: 0.5rem 1rem;
    }
}
