/* Dice Roll Specific Styles */

.dice-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 0;
}

.dice-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    background-color: #f8f9fa;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    width: 100%;
}

#dice-canvas-container {
    width: 100%;
    height: 300px;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    overflow: hidden;
    background-color: #e9ecef;
    position: relative;
}

#dice-canvas-container canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.result-display {
    width: 100%;
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
    text-align: center;
}

#dice-results {
    margin-bottom: 1rem;
}

#result-text {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

#total-result {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c3e50;
}

#dice-history {
    width: 100%;
    max-height: 150px;
    overflow-y: auto;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    padding: 0.5rem;
    background-color: #fff;
}

#dice-history h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    color: #6c757d;
}

#history-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

#history-list li {
    padding: 0.25rem 0;
    border-bottom: 1px solid #f1f1f1;
    font-size: 0.9rem;
}

#history-list li:last-child {
    border-bottom: none;
}

.controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    width: 100%;
    margin-bottom: 1rem;
}

.dice-options {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dice-options label {
    font-weight: bold;
    color: #495057;
}

.dice-options select {
    padding: 0.5rem;
    border-radius: 4px;
    border: 1px solid #ced4da;
    background-color: #fff;
    font-size: 1rem;
    cursor: pointer;
}

.controls button {
    min-width: 120px;
}

.sound-control {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.9rem;
    color: #555;
}

.sound-control label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
}

.sound-control input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* Dice Face Styling (for fallback or additional styling) */
.dice-face {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
    background-color: #e74c3c;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #dice-canvas-container {
        height: 250px;
    }
    
    .controls {
        flex-direction: column;
        align-items: center;
    }
    
    .dice-options {
        width: 100%;
        justify-content: center;
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 480px) {
    #dice-canvas-container {
        height: 200px;
    }
    
    .dice-container {
        padding: 1rem;
    }
    
    #result-text {
        font-size: 1.1rem;
    }
    
    #total-result {
        font-size: 1.3rem;
    }
}
