:root {
    --primary-color: #1a1a1a;
    --secondary-color: #2c2c2c;
    --accent-color: #febf11;
    --text-color: #e0e0e0;
    --background-color: #121212;
    --light-bg-color: #3c3c3c;
    --cta-bg-color: #febf11;
    --cta-text-color: #1a1a1a;
}

body {
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: 'Arial', sans-serif;
}

.dice-container {
    width: 30%;
    min-width: 300px;
    background-color: var(--primary-color);
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    padding: 20px;
    text-align: center;
}

.dice-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.dice-display {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto 30px;
    perspective: 600px;
}

.dice {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.1s linear;
}

.dice-face {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--secondary-color);
    border: 2px solid var(--accent-color);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 4rem;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.5);
}

.chess-piece {
    width: 70%;
    height: 70%;
    object-fit: contain;
    filter: drop-shadow(0 0 5px var(--accent-color));
}

/* Positioning the six faces of the dice */
.front {
    transform: translateZ(75px);
}

.back {
    transform: rotateY(180deg) translateZ(75px);
}

.right {
    transform: rotateY(90deg) translateZ(75px);
}

.left {
    transform: rotateY(-90deg) translateZ(75px);
}

.top {
    transform: rotateX(90deg) translateZ(75px);
}

.bottom {
    transform: rotateX(-90deg) translateZ(75px);
}

.piece-name {
    display: block;
    margin-top: 20px;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent-color);
    height: 30px;
}

.controls {
    margin-top: 30px;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    background-color: var(--cta-bg-color);
    color: var(--cta-text-color);
    transition: all 0.2s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.roll-animation {
    animation: none;
}

.copyright-message {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.8rem;
    text-align: center;
    margin-top: 20px;
}

.copyright-message a {
    color: var(--text-color);
    text-decoration: none;
}

/* Make responsive */
@media (max-width: 768px) {
    .dice-container {
        width: 80%;
    }
}
