@font-face {
    font-family: "smiley";
    src: url(../font/Righteous-Regular.ttf);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "smiley";
}

img {
    width: 100%;
    object-fit: cover;
    display: block;
}

video {
    object-fit: cover;
}

a {
    text-decoration: none;
}

ul {
    list-style: none;
}

input {
    border: 0;
    outline: 0;
}

button {
    outline: 0;
    border: 0;
    background-color: transparent;
    cursor: pointer;
}

/* footer */
footer {
    width: 100%;
    text-align: center;
    background-color: #fff;
    color: #000;
    font-size: 13px;
    line-height: 1.5;
    padding: 30px 10px 10px;
    position: relative;
    transition: .2s;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 6px 14px;
}

footer .footer-info {
    display: flex;
    gap: 10px;
}

footer::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 50px;
    background: url(../images/footerbg.png) repeat-x left;
    top: -22px;
    left: 0;
}

footer a {
    color: #000;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #ffc518 url(../images/background.png) top left repeat-x;
}

main {
    flex: 1;
}

.img-box {
    position: relative;
}

.img-box img {
    position: absolute;
    height: 100%;
    top: 0;
    left: 0;
}

:root {
    --all-width: 1200px;
    --button: 35px;
    --searchBar: 400px;
    --logo: 200px;
    --game-width: 800px;
    --game-height: 600px;
    --lefscr-one: 0;
    --lefscr-two: -26%;
    --lefscr-three: -42%;
    --lefscr-four: -58%;
}

.cookieFooter {
    margin-bottom: 62px;
}

@media (min-width:1000px) and (max-width:1199px) {
    :root {
        --all-width: 1000px;
        --lefscr-two: -29%;
        --lefscr-three: -45%;
        --lefscr-four: -62%;
    }
}

@media (min-width:800px) and (max-width:999px) {
    :root {
        --all-width: 800px;
        --lefscr-two: -33%;
        --lefscr-three: -50%;
        --lefscr-four: -66%;
    }
}

@media (max-width:799px) {
    :root {
        --all-width: 100%;
        --searchBar: 100%;
        --game-width: 100%;
        --game-height: 500px;
    }

    .cookieFooter {
        margin-bottom: 126px;
    }

    footer .footer-info {
        flex-direction: column;
        gap: 5px;
    }

    .list:first-child>div:first-child {
        flex-direction: column;
        gap: 10px;
    }
}

.loading {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 9999999;
    background-color: #0000004d;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    row-gap: 15px;
}

.loading::before {
    content: '';
    display: block;
    width: 50px;
    height: 50px;
    border: 5px solid #fff;
    border-radius: 50%;
    border-top-color: #0077ff;
    animation: loading 1.5s linear infinite;
}

.loading::after {
    content: 'Loading...';
    color: #fff;
    font-size: 16px;
    animation: loadingText 1.5s linear infinite;
}

@keyframes loadingText {
    0% {
        content: 'Loading';
    }

    25% {
        content: 'Loading.';
    }

    50% {
        content: 'Loading..';
    }

    75% {
        content: 'Loading...';
    }

    100% {
        content: 'Loading...';
    }
}

@keyframes loading {
    0% {
        transform: rotate(0deg);
    }

    50% {
        transform: rotate(180deg);
    }

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