.dice-container {
    perspective: 1000px;
    margin: 0 auto;
    width: 200px;
    height: 200px;
}

.dice-face {
    width: 100%;
    height: 100%;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 5rem;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    transition: transform 0.3s ease-out;
    transform-style: preserve-3d;
}

.dice-face:hover {
    transform: scale(1.05);
}

.dice-rolling {
    animation: roll 0.5s ease-out;
}

@keyframes roll {
    0% { transform: rotateX(0) rotateY(0); }
    100% { transform: rotateX(360deg) rotateY(360deg); }
}