@font-face {
    font-family: "Press Start 2P";
    src: url(../fonts/PressStart.ttf);
}

html {
    overflow: hidden;
}

* {
    background-color: black;
    color: white;
    font-family: "Press Start 2p";
    user-select: none;
    font-size: 24px;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
    outline: none;
    color: white;
    border: 5px solid gray;
}

input[type="color"] {
    float: right;
    border: 4px solid gray;
}

input[type="range"] {
    float: right;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    cursor: pointer;
    width: 130px;
}

input[type="range"]::-webkit-slider-runnable-track {
    background: gray;
    height: 0.5rem;
}

input[type="range"]::-moz-range-track {
    background: gray;
    height: 0.5rem;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none; /* Override default look */
    appearance: none;
    margin-top: -8px; /* Centers thumb on the track */
    background-color: white;
    height: 1rem;
    width: 1rem;    
}

input[type="range"]::-moz-range-thumb {
    border: none; /*Removes extra border that FF applies*/
    border-radius: 0; /*Removes default border-radius that FF applies*/
    background-color: white;
    height: 1rem;
    width: 1rem;
}

span {
    width: fit-content;
    height: fit-content;
    margin-bottom: 40px;
}

p {
    font-size: 24px;
}

select {
    font-size: 24px;
    border: 5px solid gray;
    padding: 5px;
}

.gameinfo {
    width: 196px;
    position: relative;
    background-color: black;
    color: white;
    text-align: center;
    border: 5px solid gray;
    padding-top: 10px;
    font-size: 24px;
}

.center {
    text-align: center;
}

.f-right {
    float: right;
}

.t-bor {
    border-width: 4px;
    font-size: 18px;
}

.t-bor:hover {
    border-width: 4px;
}

#title-page {
    display: initial;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: fit-content;
    height: 500px;
}

#title-page > h1 {
    font-size: 100px;
    animation: effect 6s steps(1) infinite;
}

#title-page > span {
    position: absolute;
    left: 50%;
    transform: translate(-50%);
    width: max-content;
    height: fit-content;
}

#title-page > span > button {
    font-size: 24px;
}

#title-page > span > a > button {
    font-size: 24px;
}

@keyframes effect {
    0% {
        color: #ff0000;
    }
    14% {
        color: #00dd00;
    }
    29% {
        color: #dd00dd;
    }
    43% {
        color: #ffff00;
    }
    57% {
        color: #0000dd;
    }
    71% {
        color: #ff8800;
    }
    86% {
        color: #bbbbff;
    }
}

#pause {
    display: none;
    position: absolute;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

#ptext {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: fit-content;
    height: fit-content;
    padding: 10px;
    border: 5px solid gray;
    background-color: black;
    font-size: 24px;
    z-index: 5;
}

#settings {
    display: none;
    position: absolute;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 3;
}

#stext {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 550px;
    overflow: scroll;
    padding: 10px;
    border: 5px solid gray;
    background-color: black;
    text-align: left;
    font-size: 18px;
    z-index: 4;
}

#shead {
    margin-top: 10px;
}

#all {
    display: none;
    width: 546px;
    height: 650px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

#board {
    border: 5px solid gray;
    background-color: black;
}

#nextboard {
    margin-top: 20px;
}

#next {
    left: 340px;
    top: -650px;
    height: 206px;
}

#level {
    left: 340px;
    top: -639px;
    height: fit-content;
}

#levelout {
    margin: 10px;
    text-align: center;
}

#lines {
    left: 340px;
    top: -628px;
    height: fit-content;
}

#linesout {
    margin: 10px;
    text-align: center;
}

#score {
    left: 340px;
    top: -617px;
    height: fit-content;
}

#scoreout {
    margin: 10px;
    text-align: center;
}

#settings-button {
    position: relative;
    left: 337px;
    top: -605px;
}

#retry-button {
    position: relative;
    left: 340px;
    top: -605px;
}

#d-keys {
    position: relative;
    left: 50%;
    transform: translate(-50%, 0%);
}

#d-col {
    position: relative;
    left: 50%;
    transform: translate(-50%, 0%);
}

#d-sound {
    position: relative;
    left: 50%;
    transform: translate(-50%, 0%);
}

#s-close {
    position: relative;
    left: 50%;
    transform: translate(-50%, 0%);
}

#retry-con {
    display: none;
    position: absolute;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

#retry-box {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background-color: black;
    border: 5px solid gray;
    width: fit-content;
    height: fit-content;
    padding: 10px;
    font-size: 24px;
    text-align: center;
}

#retry-box > button {
    font-size: 24px;
}

#home {
    position: relative;
    left: 334px;
    top: -605px;
}

#game-over-con {
    display: none;
    position: absolute;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

#game-over-box {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background-color: black;
    border: 5px solid gray;
    width: fit-content;
    height: fit-content;
    padding: 10px;
    font-size: 24px;
    text-align: center;
}

#home-con {
    display: none;
    position: absolute;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

#home-box {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background-color: black;
    border: 5px solid gray;
    width: fit-content;
    height: fit-content;
    padding: 10px;
    font-size: 24px;
    text-align: center;
}

#home-box > button{
    font-size: 24px;
}

button {
    padding: 5px;
    border: 5px solid gray;
}

button:hover {
    border: 5px solid white;
}
