
body{

    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(to right, rgb(242,112,156), rgb(255,148,114));
}

.container{
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

button{
    padding: 1rem;
    background-color: skyblue;
}

#coin{
    position: relative;
    width: 15rem;
    height: 15rem;
    margin: 2rem 0rem;
    transform-style: preserve-3d;
}

#coin div{
    width: 100%;
    height: 100%;
    border: 2px solid black;
    border-radius: 50%;
    backface-visibility: hidden;
    background-size: contain;
    position: absolute;
}

.headsClass{
    background-image: url("https://cdn.pixabay.com/photo/2019/04/15/20/42/bitcoin-4130299_1280.png");
}

.animate-heads{
    animation: flipHeads 3s;
    animation-fill-mode: forwards;
}

@keyframes flipHeads {

    from{
        transform: rotateY(0deg);
    }

    to{
        transform: rotateY(1800deg);
    }
    
}

.tailsClass{
    background-image: url("https://cdn.pixabay.com/photo/2016/03/31/15/03/phoenix-1292958_640.png");

    transform: rotateY(-180deg);

}

.animate-tails{
    animation: flipTails 3s;
    animation-fill-mode: forwards;
}

@keyframes flipTails {

    from{
        transform: rotateY(0deg);
    }

    to{
        transform: rotateY(1620deg);
    }
    
}