/* Global styles */
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/* Body styling with a gradient background */
body {
    height: 100%;
    background: linear-gradient(to right, #f7931a 50%, #161921 50%) fixed;
    color: #f7931a;
}

@media (prefers-color-scheme: dark) {
    body {
        background: linear-gradient(to right, #f7931a 50%, #161921 50%) fixed;
        color: #f7931a;
    }
}

@media (prefers-color-scheme: light) {
    body {
        background: linear-gradient(to right, #f7931a 50%, #ffffff 50%) fixed;
        color: #161921;
    }
}

/* Container styling with responsive centering */
.container {
    width: 400px;
    padding: 50px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 10px;
    box-shadow: 15px 30px 35px rgba(0, 0, 0, 0.1);
    perspective: 300px;
}

@media (prefers-color-scheme: dark) {
    .container {
        background-color: #2d2f35;
    }
}

@media (prefers-color-scheme: light) {
    .container {
        background-color: #ffffff;
    }
}

/* Statistic labels alignment and styling */
.stats {
    text-align: right;
    font-weight: 500;
    line-height: 25px;
}

/* Coin container with 3D effect */
.coin {
    width: 150px;
    height: 150px;
    position: relative;
    margin: 50px auto;
    transform-style: preserve-3d;
}

/* Coin image styling */
.coin img {
    width: 145px;
}

/* Heads and tails side styling */
.heads,
.tails {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
}

/* Tails side rotation */
.tails {
    transform: rotateX(180deg);
}

/* Animations for flipping the coin to heads or tails */
@keyframes spin-tails {
    from {
        transform: rotateX(0);
    }
    to {
        transform: rotateX(1980deg);
    }
}

@keyframes spin-heads {
    from {
        transform: rotateX(0);
    }
    to {
        transform: rotateX(2160deg);
    }
}

/* Button container styling */
.buttons {
    display: flex;
    justify-content: space-between;
}

/* Generic button styling */
button {
    width: 120px;
    padding: 10px 0;
    border-radius: 5px;
    cursor: pointer;
}

/* Specific styling for the flip button */
#flip-button {
    background-color: #f7931a;
    color: #2d2f35;
}

@media (prefers-color-scheme: light) {
    #flip-button {
        color: #161921;
    }
}

/* Disabled state for the flip button */
#flip-button:disabled {
    background-color: #6c6c70;
    color: #2d2f35;
}

@media (prefers-color-scheme: light) {
    #flip-button:disabled {
        color: #161921;
    }
}

/* Specific styling for the reset button */
#reset-button {
    background-color: #2d2f35;
    color: #f7931a;
}

@media (prefers-color-scheme: light) {
    #reset-button {
