*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Rubik';
}

html{
    font-size: 62.5%;
}

body{
    height: 100%;
    background: linear-gradient(to right, #575ce5 50%, #f9fbfc 50%);
    background-attachment: fixed;
}

.container{
    background: #fff;
    width: 40rem;
    padding: 5rem;
    position: absolute;
    transform: translate(-50%, -50%);
    top: 50%;
    left: 50%;
    box-shadow: 1.5rem 3rem 3.5rem rgba(0, 0, 0, 0.1);
    border-radius: 1rem;
    perspective: 30rem;
    -webkit-perspective: 30rem;
}

.stats{
    text-align: right;
    color: #101020;
    font-weight: 500;
    line-height: 2.5rem;
    font-size: 2rem;
}

.coin{
    height: 15rem;
    width: 15rem;
    position: relative;
    margin: 5rem auto;
    -webkit-transform-style: presserve-3d;
    transform-style: preserve-3d;
}

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

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

.coin img{
    width: 14.5rem;
}

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

button{
    width: 12rem;
    padding: 1rem 0;
    border: 2.5px solid #424ae0;
    border-radius: 5px;
    cursor: pointer;
}

#flip_button{
    background: #424ae0;
    color: #fff;
    transition: 0.3s ease-in-out;
}
#flip_button:hover{
    background-color: #fff;
    color: #424ae0;
}

#flip_button:disabled{
    background: #fff;
    color: #101020;
    border-color: #fff;
}

#reset_button{
    background: #fff;
    color: #424ae0;
    transition: 0.3s ease;
}
#reset_button:hover{
    background: #424ae0;
    color: #fff;
}

@keyframes spin-tails{
    0%{
        transform: rotateX(0);
    }
    100%{
        transform: rotateX(1980deg);
    }
}
@keyframes spin-heads{
    0%{
        transform: rotateX(0);
    }
    100%{
        transform: rotateX(2160deg);
    }
}

