:root {
    --front: url('./assets/img/01.png');
    --back: url('./assets/img/02.png');
}

body {
    background-color: #bde0fe;
}

.game-board {
    width: 80vw;
    height: 80vh;
    background-color: #a2d2ff;
    position: absolute;
    top: 10vh;
    left: 10vw;
}

.coin {
    margin: auto;
    position: absolute;
    height: 150px;
    width: 150px;
    bottom: 0;
    left: 0;
    right: 0;
    top: 0;
    background-repeat: no-repeat;
    background-size: 150px 150px;
    background-image: var(--front);
}

#win {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    top: 350px;
    width: 100%;
    text-align: center;
    height: 25px;
    margin: auto;
}

.coin-spin {
    animation: ease-in-out .4s spin infinite;
    animation-direction: alternate;
}

.button {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    top: 250px;
    width: 15vw;
    height: 25px;
    margin: auto;
    border-radius: 5px;
    background-color: #0077B6;
    border-color: #0077B6;
    color: #FFFFFF;
}


@keyframes spin {
    0% {
        transform: rotateY(0deg);
        background-image: var(--front);
    }
    50% {
        transform: rotateY(180deg);
        background-image: var(--back)
    }
    100% {
        transform: rotateY(360deg);
        background-image: var(--front);
    }
}
