* {
    padding: 0;

    box-sizing: border-box;
    font-family: "Rubik", sans-serif;
}

body {
    height: 100vh;
    margin: 0;
    background-image: url('/tools/flip_coin/img/co.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    background-color: #34fff8;
    width: 90%;
    max-width: 400px;
    padding: 35px;
    box-shadow: 15px 30px 35px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    -webkit-perspective: 300px;
    perspective: 300px;
}

@media screen and (max-width: 768px) {
    .container {
        width: 95%;
        padding: 25px;
    }
}

@media screen and (max-width: 480px) {
    .container {
        width: 100%;
        padding: 20px;
    }
}

.stats {
    display: flex;
    color: #000000;
    font-weight: 500;
    padding: 20px;
    margin-bottom: 40px;
    margin-top: 55px;
    box-shadow: 0 0 20px rgb(250, 177, 6);

}

.stats p:nth-last-child(1) {
    margin-left: 50%;
}

.coin {
    height: 150px;
    width: 150px;
    position: relative;
    margin: 32px auto;
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
}

.coin img {
    width: 145px;
}

.heads,
.tails {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.tails {
    transform: rotateX(180deg);
}

@keyframes spin-tails {
    0% {
        transform: rotateX(0);
    }

    100% {
        transform: rotateX(1980deg);
    }
}

@keyframes spin-heads {
    0% {
        transform: rotateX(0);
    }

    100% {
        transform: rotateX(2160deg);
    }
}

.buttons {
    display: flex;
    justify-content: space-between;
}

button {
    width: 150px;
    padding: 15px 0;
    border: none;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
}

.flip {
    background-color: #053469;
    color: #ffffff;
}

.flip:disabled {
    background-color: #e1e0ee;
    border-color: #e1e0ee;
    color: #101020;
}

#reset-button {
    background-color: #674706;
    color: white;
}

h1 {
    color: rgb(0, 0, 0);
    text-align: center;
}