/* Würfelstile für Backgammon */

.dice-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 10px;
}

.dice-row {
    display: flex;
    gap: 20px;
    align-items: center;
}

.roll-dice-icon {
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--accent-color);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.roll-dice-icon.disabled {
    cursor: not-allowed;
    opacity: 0.5;
    background-color: #cccccc;
    box-shadow: none;
    transform: none;
}

.roll-dice-icon .material-icons {
    color: white;
    font-size: 24px;
}

.roll-dice-icon:hover {
    transform: scale(1.1);
    background-color: #45a049;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.roll-dice-icon:active {
    transform: scale(0.95);
}

.dice {
    width: 50px;
    height: 50px;
    background-color: white;
    border-radius: 8px;
    border: 1px solid #ccc;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
    padding: 5px;
    position: relative;
}

/* Würfel-Wert Stile */
.dice-1, .dice-2, .dice-3, .dice-4, .dice-5, .dice-6 {
    display: grid;
}

.dice-1 {
    grid-template: 1fr / 1fr;
}

.dice-1 span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #333;
    place-self: center;
}

.dice-2 {
    grid-template: repeat(2, 1fr) / repeat(2, 1fr);
}

.dice-2 span:nth-child(1) {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #333;
    place-self: center;
    grid-area: 1 / 1;
}

.dice-2 span:nth-child(2) {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #333;
    place-self: center;
    grid-area: 2 / 2;
}

.dice-3 {
    grid-template: repeat(3, 1fr) / repeat(3, 1fr);
}

.dice-3 span:nth-child(1) {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #333;
    place-self: center;
    grid-area: 1 / 1;
}

.dice-3 span:nth-child(2) {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #333;
    place-self: center;
    grid-area: 2 / 2;
}

.dice-3 span:nth-child(3) {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #333;
    place-self: center;
    grid-area: 3 / 3;
}

.dice-4 {
    grid-template: repeat(2, 1fr) / repeat(2, 1fr);
}

.dice-4 span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #333;
    place-self: center;
}

.dice-5 {
    grid-template: repeat(3, 1fr) / repeat(3, 1fr);
}

.dice-5 span:nth-child(1) {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #333;
    place-self: center;
    grid-area: 1 / 1;
}

.dice-5 span:nth-child(2) {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #333;
    place-self: center;
    grid-area: 1 / 3;
}

.dice-5 span:nth-child(3) {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #333;
    place-self: center;
    grid-area: 2 / 2;
}

.dice-5 span:nth-child(4) {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #333;
    place-self: center;
    grid-area: 3 / 1;
}

.dice-5 span:nth-child(5) {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #333;
    place-self: center;
    grid-area: 3 / 3;
}

.dice-6 {
    grid-template: repeat(3, 1fr) / repeat(2, 1fr);
}

.dice-6 span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #333;
    place-self: center;
}

/* Animation für Würfel */
.dice-animation {
    animation: diceRoll 0.6s ease-out;
}

@keyframes diceRoll {
    0% {
        transform: scale(0.5) rotate(0deg);
        opacity: 0.5;
    }
    20% {
        transform: scale(1.1) rotate(90deg);
    }
    60% {
        transform: scale(0.9) rotate(270deg);
    }
    100% {
        transform: scale(1) rotate(360deg);
        opacity: 1;
    }
}

/* Pulse-Animation für den Würfelknopf */
.pulse-animation {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.4);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(0, 123, 255, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 123, 255, 0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .dice {
        width: 40px;
        height: 40px;
    }
    
    .dice span {
        width: 8px;
        height: 8px;
    }
    
    .roll-dice-icon {
        width: 36px;
        height: 36px;
    }
    
    .roll-dice-icon .material-icons {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .dice {
        width: 48px;
        height: 48px;
    }
    
    .dice-row {
        gap: 15px;
    }
    
    .roll-dice-icon {
        width: 32px;
        height: 32px;
    }
    
    .roll-dice-icon .material-icons {
        font-size: 18px;
    }
} 