html{
    height: 100vh;
    overflow: hidden;
    display: grid;
    place-items: center;

    color-scheme: dark;

    --accent: #020519;
    --accent_hover: #8c98f3;

    --easy: #a9eac4;
    --medium: #818bf3;
    --hard: #a03010;
    --easy_hover: #247244;
    --medium_hover: #070e45;
    --hard_hover: #461407;
}

body{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    font-family: 'Courier New', Courier, monospace;
}

button{
    cursor: pointer;
    border-radius: 10px;
    border: 0;
    outline: 0;
}

/* Game Screen */

#score::before{
    content: 'Score: ';
}

#score{
    color: white;
    font-weight: bolder;
}

#lifes::before{
    content: 'Lifes remaining: ';
}

canvas {
    background-color: rgba(0, 0, 0, 0.795);

    border-radius: 10px;
    position: relative;
    z-index: 1;

    background: url(assets/background.png);
    background-position: center;
    background-size: cover;
}


/* ------------ Ovrlays ------------ */

.overlay{
    display: none;
    position: absolute;
    width: 100%;
    height: 100%;

    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    backdrop-filter: blur(10px);
    z-index: 22;
}

/* Welcome Screen */

.welcomescreen{
    display: flex;
}

.welcomescreen button{
    width: 100px;
    height: 50px;
    background-color: var(--accent);
    font-weight: bolder;
    font-size: large;
    transition: 0.2s ease-in-out;
}

.welcomescreen button:hover{
    background-color: var(--accent_hover);
    color: rgb(0, 0, 0);
}

.controls{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 10px;
    border-radius: 10px;
    outline: 1px solid;
}

.control{
    width: 300px;
    display: flex;
    justify-content: left;
    align-items: center;
}

.controlimage{
    width: 50%;
    height: 80px;
    margin-right: 20px;
}

.control p{
    width: 50%;
}

#spacebarimage{
    background: url(assets/spacebar.png);
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
}

#arrowkeysimage{
    background: url(assets/arrowkeys.png);
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
}

#highscore{
    margin-bottom: 20px;
    font-size: large;
    font-weight: bolder;
}

#highscore::before{
    content: 'Highscore: ';
}

/* Game Over */

.gameover{
    /* display: flex; */
}

.gameover button{
    height: 50px;
    width: 100px;
    font-weight: bolder;
    font-size: larger;
}

/* Settings */

.settings{
    display: none;
}

.settings h2{
    font-size: xx-large;
    text-decoration: underline;
}

.settings button{
    height: 50px;
    width: 150px;
    font-size: larger;
    font-weight: bolder;
    color: black;

    transform-origin: left;
    transition: 0.3s ease-in-out;
}

.settings button:nth-child(2){
    background-color: var(--easy);
}

.settings button:nth-child(3){
    background-color: var(--medium);
}

.settings button:nth-child(4){
    background-color: var(--hard);
}

.settings button:nth-child(2):hover{
    background-color: var(--easy_hover);
    color: white;
}

.settings button:nth-child(3):hover{
    background-color: var(--medium_hover);
    color: white;
}

.settings button:nth-child(4):hover{
    background-color: var(--hard_hover);
    color: white;
}

.settings button:nth-child(5){
    color: white;
}

/* Credits */

.credits button{
    height: 50px;
    width: 100px;
    font-size: large;
    font-weight: bolder;
}

.credits ul{
    list-style: none;
}