* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html {
    font-size: 62.5%;
}
header {
    position: relative;
    height: 8rem;
    min-width: 320px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: aqua;
}
header figure {
    max-width: 20rem; 
}
header figure img {
    width: 100%;
    background-color: black;
}
body {
    overflow: hidden;
}

section {
    height: 100vh;
    background-color: rgb(39, 41, 68);
}

.score {
    padding-top: 5rem;
    color: rgb(219, 219, 219);
    height: 10vh;
    display: flex;
    justify-content: space-around;
    align-items: center;
}
.score h2 {
    font-size: 2.5rem;
}
.score p {
    text-align: center;
    padding: 10px;
    font-size: 2rem;
}

.intro {
    padding-top: 2rem;
    color: rgb(219, 219, 219);
    height: 50vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    transition: opacity 0.5s ease;
}
.intro h1 {
    font-size: 2.8rem;
}
.intro button, .match button {
    width: 10rem;
    height: 3rem;
    background: none;
    border: none;
    color: rgb(219, 219, 219);
    font-size: 2rem;
    background-color: rgb(45, 117, 96);
    border-radius: 3px;
    cursor: pointer;
}
.intro button {
    transition: ease;
}

.match {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: opacity 0.5s ease 0.5s;
}
.winner {
    color: rgb(219, 219, 219);
    text-align: center;
    font-size: 2.8rem;
}
.hands {
    display: flex;
    justify-content: center;
    align-items: center;
}
.options {
    display: flex;
    justify-content: space-around;
    align-items: center;
}
.player-hand {
    transform: rotateY(180deg);
    width: 18rem;
}
.machine-hand {
    width: 18rem;
}

div.fadeOut {
    opacity: 0;
    pointer-events: none;
}

div.fadeIn {
    opacity: 1;
    pointer-events: all;
}

@keyframes shakePlayer {
    0% {
        transform: rotateY(180deg) translateY(0px);
    }
    15% {
        transform: rotateY(180deg) translateY(-50px);
    }
    25% {
        transform: rotateY(180deg) translateY(0px);
    }
    35% {
        transform: rotateY(180deg) translateY(-50px);
    }
    50% {
        transform: rotateY(180deg) translateY(0px);
    }
    65% {
        transform: rotateY(180deg) translateY(-50px);
    }
    75% {
        transform: rotateY(180deg) translateY(0px);
    }
    85% {
        transform: rotateY(180deg) translateY(-50px);
    }
    100% {
        transform: rotateY(180deg) translateY(0px);
    }
}

@keyframes shakeMachine {
    0% {
        transform: translateY(0px);
    }
    15% {
        transform: translateY(-50px);
    }
    25% {
        transform: translateY(0px);
    }
    35% {
        transform: translateY(-50px);
    }
    50% {
        transform: translateY(0px);
    }
    65% {
        transform: translateY(-50px);
    }
    75% {
        transform: translateY(0px);
    }
    85% {
        transform: translateY(-50px);
    }
    100% {
        transform: translateY(0px);
    }
}

/*adding media queries, ik it is a bad practice but I dont want to extend me so much*/

@media (min-width: 600px) {
    .player-hand {
        all: unset;
        transform: rotateY(180deg);
    }
    .machine-hand {
        all: unset;
    }
}