@import url('https://fonts.googleapis.com/css?family=Fredoka+One');

:root {
    --walter-white: #d8d8d8;
    --blueish: rgb(39, 204, 255);
}

body {
    font-family: 'Fredoka One', sans-serif;
    background: #fefefe;
    margin: 0;
    color: var(--walter-white);
    user-select: none;
    -moz-user-select: -moz-none;
    -khtml-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
}

canvas {
    position: absolute;
    visibility: hidden;
    display: block;
    height: 100%;
    width: 100%;
    margin: 0px;
    left: 0;
    top: 0;
}

img {
    display: block;
    position: absolute;
    width: 25vw;
    height: 25vw;
    z-index: 1;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.score {
    position: absolute;
    font-size: 2em;
    right: 2%;
    top: 2%;
}

.highest {
    left: 2%;
}

.infoBtn {
    position: absolute;
    font-size: 2em;
    top: 2%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.info {
    width: 40vh;
    height: 40vh;
    z-index: 2;
    visibility: hidden;
}

.countdown {
    font-size: 3em;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: count 1s 3 ease-in-out;
}

.game-over {
    font-size: 5em;
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@keyframes count {
    0% {
        font-size: 5em;
    }

    100% {
        font-size: 10em;
    }
}

.lds-roller {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: inline-block;
    position: absolute;
    width: 64px;
    height: 64px;
}

.lds-roller div {
    animation: lds-roller 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    transform-origin: 32px 32px;
}

.lds-roller div:after {
    content: " ";
    display: block;
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--blueish);
    margin: -3px 0 0 -3px;
}

.lds-roller div:nth-child(1) {
    animation-delay: -0.036s;
}

.lds-roller div:nth-child(1):after {
    top: 50px;
    left: 50px;
}

.lds-roller div:nth-child(2) {
    animation-delay: -0.072s;
}

.lds-roller div:nth-child(2):after {
    top: 54px;
    left: 45px;
}

.lds-roller div:nth-child(3) {
    animation-delay: -0.108s;
}

.lds-roller div:nth-child(3):after {
    top: 57px;
    left: 39px;
}

.lds-roller div:nth-child(4) {
    animation-delay: -0.144s;
}

.lds-roller div:nth-child(4):after {
    top: 58px;
    left: 32px;
}

.lds-roller div:nth-child(5) {
    animation-delay: -0.18s;
}

.lds-roller div:nth-child(5):after {
    top: 57px;
    left: 25px;
}

.lds-roller div:nth-child(6) {
    animation-delay: -0.216s;
}

.lds-roller div:nth-child(6):after {
    top: 54px;
    left: 19px;
}

.lds-roller div:nth-child(7) {
    animation-delay: -0.252s;
}

.lds-roller div:nth-child(7):after {
    top: 50px;
    left: 14px;
}

.lds-roller div:nth-child(8) {
    animation-delay: -0.288s;
}

.lds-roller div:nth-child(8):after {
    top: 45px;
    left: 10px;
}

@keyframes lds-roller {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}