@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body{
    display: flex;
    min-height: 100vh;
    min-width: 100vw;
    align-items: center;
    justify-content: center;
    background: #110d27;
    font-family: 'Press Start 2P', cursive;
}

#home{
    display: flex;
    justify-content: space-between;
    padding: 50px;
    z-index: 2;
    background:rgba(0, 0, 0, 0.214);
    animation: none;
}

#seeInstructions{
    cursor: pointer;
}

#overlay-container{
    display: none;
    color: white;
    background:transparent !important;
}

#close{
    position: relative;
    top: 50px;
    left: 32.7vw;
    border-radius: 100px;
    padding: 10px;
    cursor: pointer;
    background-color: red;
}

#overlay-content{
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px;
    height: 70vh;
    width: 70vw;
    color: white;
    background-color: rgba(0, 0, 0, 0.674);
    border-radius: 30px;
    animation: overlays-animation 2s linear;
}

#instructions{
    display: none;
    align-items: center;
    justify-content: center;
    grid-template-rows: 1.5fr 10fr;
    height: 100%;
}

#instructions h2 {
    text-align: center;
    font-size: 32px;
}

#instruction-list{
    font-size: 18px;
    line-height: 25px;
}

#instruction-list li{
    padding: 10px 0;
}

#login{
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#name{
    position: relative;
    padding: 30px;
    outline: none;
}

.shakeName{
    animation: .5s shakeName ease;
}

#name:hover{
    color: black;
    background-color: yellow;
}

@keyframes shakeName {
    0%{
        left: 0px;
    }
    20%{
        left:10px;
    }
    25%{
        left:-10px;
    }
    50%{
        left:10px;
    }
    60%{
        left:-10px;
    }
    80%{
        left:10px;
    }
    100%{
        left:0px;
    }
}

#start-game{
    color: white;
    background-color: red;
}

#start-game:hover{
    color: black;
    background-color: yellow;
}

@keyframes overlays-animation {
    0%{
        bottom: -100vh;
        top:100vh;
        opacity: 1;
        background-color: black;
    }
    100%{
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.674);
    }
}

.yellow-text{
    color: yellow;
}

#game{
    /* position: absolute; */
    height: 100vh;
    /* bottom: 0; */
    width: 80vw;
    background: url(../Assets/bg.jpg) no-repeat;
    background-size: 100% 100%;
    background-position: center center;
    padding: 50px;
    color: white;
    overflow: hidden;
}

.title{
    text-align: center;
    font-size: 42px;
    -webkit-text-stroke: 3px black;
    color: red;
}

.objects{
    position: absolute;
    bottom: 22vh;
    left: 10vw;
}

#mario{
    left: 22vw;
    /* bottom: 18.5vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center; */
}

#namebox{
    margin-top:10px;
}

.died{
    animation: died 1.5s ease-in;
}

@keyframes died {
    30%{
        bottom: 40vh;
        left: 30vw;
    }
    80%{
        bottom: -20vh;
        left:50vw;
        display: none;
    }
    100%{
        bottom: -20vh;
        left:50vw;
        display: none;
    }
}

.jump{
    animation: jump 1s ease-in-out;
}

@keyframes jump {
    0%{
        bottom: 22vh;
    }
    50%{
        bottom: 42vh;
    }
    100%{
        bottom: 22vh;
    }
}

#obstacle{
    /* animation: obstacle-move 2s infinite linear; */
    left: 80vw;
}

@keyframes obstacle-move {
    0%{
        left: 80vw;
    }
    50%{
        left: 50vw;
    }
    100%{
        left: 10vw;
    }
}

.killed{
    animation: killed .5s linear;
    left:20vw;
}

@keyframes killed {
    0%{
        left: 10vw;
    }
    100%{
        left: 20vw;
    }
}

#score-box{
    position: absolute;
    bottom: 35px;
}

#score-display{
    margin-bottom: 20px;
}

.overlay{
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background-color: rgba(0, 0, 0, 0.63);
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    transition: 2s ease;
    animation: overlays-animation 2s linear;
}

#game-over{
    animation: game-over-animation 2s linear;
}

.active{
    display: flex;
}

@keyframes game-over-animation {
    0%{
        bottom: -100vh;
        top:100vh;
        opacity: 1;
        background-color: black;
    }
    100%{
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.63);
    }
}

#game-over-text{
    margin-bottom: 40px;
    font-size: 42px;
    -webkit-text-stroke: 3px black;
    color: red;
}

#final-score-display{
    margin: 15px 0;
}

#final-high-score-display{
    font-size: 16px;
    color: rgb(124, 124, 124);
}

#phrase{
    max-width: 70vw;
    margin-top: 30px;
}

.btn{
    margin-top: 35px;
    padding: 15px;
    border: black 3px solid;
    background-color: yellow;
    font-size: 16px;
    font-family: 'Press Start 2P', cursive;
    cursor: pointer;
    transition: .2s ease;
}

.btn:hover{
    background-color: rgb(206, 31, 0);
    color:white;
}

#rotate-meme{
    height: 100vh;
    width: 100vw;
    background-color: black;
    align-items: center;
    justify-content: center;
    z-index: 2;
    display: none;
}