@import url('https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@200;300;400;500;700;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Yusei+Magic');

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track-piece {
    background-color: #393939;
}

::-webkit-scrollbar-thumb {
    background-color: #FFFFFF;
}

html {
    scrollbar-color: #ffffff #393939;
    scrollbar-width: thin;
    --pixel-size: 26px;
    /* 30-8 */
    --pixel-margin: 4px;
}

body {
    position: relative;
    margin: 0;
    font-family: "Source Sans Pro";
    color: white;
    background: #000000;
    font-weight: 200;
    text-shadow: 0px 0px 5px black;
    width: 100vw;
    height: 100vh;
}

#container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

#playing-field {
    position: absolute;
    left: 50%;
    top: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    border: white solid 1px;
    border-radius: 8px 0px 0px 8px;
}

#sidebar {
    position: absolute;
    left: 50%;
    top: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    border: white solid 1px;
    font-size: 32px;
    border-radius: 0px 8px 8px 0px;
}

#next-piece-preview {
    position: absolute;
    left: 50%;
    bottom: 0px;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    border: white solid 1px;
    font-size: 32px;
    border-radius: 0px 8px 8px 0px;
}

#gameover-screen {
    position: absolute;
    left: 50%;
    top: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    border: white solid 1px;
    background: black;
    font-size: 32px;
    padding: 32px;
    text-align: center;
    border-radius: 8px;
}

#gameover-restart-button {
    background: black;
    color: white;
    border: 1px solid #fff;
    font-size: 16px;
    padding: 8px;
    margin-top: 16px;
    border-radius: 4px;
}

.pixel {
    position: absolute;
    background: white;
    width: var(--pixel-size);
    height: var(--pixel-size);
    margin: var(--pixel-margin);
    border-radius: 2px;


}

#home-link {
    position: absolute;
    top: 40px;
    right: 40px;
}

#home-link-a {
    color: white;
    text-decoration: none;
    font-size: 32px;
    font-weight: 400;
}

#home-icon {
    width: 32px;
    height: 32px;
}

#pause-button {
    position: absolute;
    top: 40px;
    left: 40px;
}

#pause-icon {
    width: 32px;
    height: 32px;
}