@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Rubik', sans-serif;
}

body {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(to right, #fea25bc2 50%, #f9fbfc 50%);
    margin: 0;
}

.container {
    background: #fff;
    width: 90%;
    max-width: 400px;
    padding: 20px;
    box-shadow: 15px 30px 35px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    -webkit-perspective: 300px;
    perspective: 300px;
    text-align: center;
}

.stats {
    color: #101020;
    font-weight: 500;
    line-height: 25px;
    margin-bottom: 20px;
}

.coin {
    height: 150px;
    width: 150px;
    position: relative;
    margin: 20px auto;
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
}

.tails {
    transform: rotateX(180deg);
}

.buttons {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
}

.coin img {
    width: 100%;
}

.heads, .tails {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

button {
    width: 45%;
    padding: 10px 0;
    border: 2.5px solid #ba7f52;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
}

#flip-button {
    background: #e04242;
    color: #fff;
}

#flip-button:disabled {
    background-color: #e1e0ee;
    color: #101020;
    border-color: #e1e0ee;
}

#reset-button {
    background: #fff;
    color: #424ae0;
}

@keyframes spin-tails {
    0% {
        transform: rotateX(0);
    }
    100% {
        transform: rotateX(1980deg);
    }
}

@keyframes spin-heads {
    0% {
        transform: rotateX(0);
    }
    100% {
        transform: rotateX(2160deg);
    }
}

@media (max-width: 500px) {
    .container {
        width: 95%;
        padding: 15px;
    }

    .coin {
        height: 120px;
        width: 120px;
    }

    button {
        width: 48%;
        padding: 8px 0;
        font-size: 0.9rem;
    }
}
 