@font-face {
    font-family: "smiley";
    src: url(./RobotoSlab-VariableFont_wght.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;
    color: #000;
}

b,
strong {
    font-weight: 400;
}

em,
i {
    font-style: normal;
}

li {
    list-style: none;
}

input {
    border: 0;
    outline: 0;
}

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

/* footer */
footer {
    width: var(--all-width);
    height: 60px;
    text-align: center;
    background: #F5F5F5;
    color: #333;
    font-size: 13px;
    line-height: 1.5;
    padding: 10px 0 10px 0;
    margin: 0 auto;
    border: 1px solid #ccc;
}

footer a {
    color: #333;
}

.img-box {
    position: relative;
}

.img-box::before {
    content: '';
    display: block;
}

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

body {
    min-height: 100vh;
    display: flex;
    background-color: #FAFAFA;
    flex-direction: column;
}

main {
    width: var(--all-width);
    margin: 0 auto;
    flex: 1;
}

:root {
    --all-width: 1032px;
    --button: 40px;
    --searchBar: 270px;
    --logo: 230px;
    --game-width: 800px;
    --game-height: 600px;
}

@media (min-width:800px) and (max-width:1031px) {
    :root {
        --all-width: 800px;
    }
}

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