@import url('https://fonts.googleapis.com/css?family=Sniglet&display=swap');
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    background-color: #003366;
    font-family: Sniglet, sans-serif;
}

section {
    height: 100vh;
    background-color: #003366;
    font-family: sans-serif;
}

.score {
    color: rgb(224, 224, 224);
    height: 20vh;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.score h2 {
    font-size: 30px;
}

.score p {
    text-align: center;
    padding: 10px;
    font-size: 25px;
}

.intro {
    color: rgb(224, 224, 224);
    height: 50vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    transition: opacity 0.5s ease;
}

.intro h1 {
    font-size: 50px;
}

.intro button,
.match button {
    width: 150px;
    height: 50px;
    background: none;
    border: none;
    color: rgb(224, 224, 224);
    font-size: 20px;
    background: rgb(45, 117, 96);
    border-radius: 3px;
    cursor: pointer;
}

.match {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: opacity 0.5s ease 0.5s;
}

.winner {
    color: rgb(224, 224, 224);
    text-align: center;
    font-size: 50px;
    margin-bottom: 100px;
}

.hands,
.options {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.player-hand {
    transform: rotateY(180deg);
}

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

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

.score-board {
    margin: 0 auto;
    margin-top: 50px;
    border: 3px solid white;
    width: 200px;
    text-align: center;
    color: white;
    border-radius: 5px;
    font-size: 46px;
    padding: 15px 20px;
    position: relative;
}

.badge {
    background: #661b28;
    font-size: 14px;
    padding: 2px 10px;
}

#user-badge {
    position: absolute;
    top: 30px;
    left: -25px;
}

#comp-badge {
    position: absolute;
    top: 30px;
    right: -30px;
}

.options {
    margin-top: 20px;
}

.options img {
    width: 120px;
    height: 120px;
    border: 3px solid #fff;
    border-radius: 40%;
    padding: 20px;
    transition: all 0.3s ease;
}

.options img:hover {
    cursor: pointer;
    background: #44545a;
}

.green-glow {
    border: 3px solid #4dcc7d;
    box-shadow: 0 0 10px #31b43a;
}

.red-glow {
    border: 3px solid #fc121b;
    box-shadow: 0 0 10px #d01115;
}

.gray-glow {
    border: 3px solid #464647;
    box-shadow: 0 0 10px #25292b;
}

@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 shakeComputer {
    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);
    }
}
