#game{
    width: 100vw;
    position: absolute;
    left: 0;
    bottom: 0;
    right: 0;
}

#instructions h2 {
    font-size: 24px;
}

#instruction-list{
    font-size: 12px;
}

#overlay-content{
    height: 100vh;
    position: absolute;
    top: 0;
    bottom: 0;
    overflow: scroll;
    width: 100vw;
    border-radius: 0;
}

#close{
    z-index: 2;
    top: -40vh;
    left: 45vw;
}

.objects{
    left: 5vw;
}

@keyframes obstacle-move {
    0%{
        left: 100vw;
    }
    50%{
        left: 50vw;
    }
    100%{
        left: -10vw;
    }
}


@keyframes jump {
    0%{
        bottom: 22vh;
    }
    50%{
        bottom: 60vh;
    }
    100%{
        bottom: 22vh;
    }
}

@keyframes killed {
    0%{
        left: 5vw;
    }
    100%{
        left: 17vw;
    }
}

@media screen and (max-width:800px){
    .objects{
        left:0vw;
    }
}

@media screen and (max-width:670px){
    #instructions h2 {
        font-size: 26px;
    }
    
    #instruction-list{
        font-size: 14px;
    }
    
    #name{
        padding: 20px;
    }

    .title{
        font-size: 32px;
        -webkit-text-stroke: 2px black;
    }

    #mario{
        left: 30vw;
    }

    #score-box{
        font-size: 16px;
    }
}

@media screen and (max-width:600px){
    #instructions h2 {
        font-size: 24px;
    }
    
    #instruction-list{
        font-size: 12px;
    }
    
    #instruction-list li{
        padding: 7px 0;
    }

    .title{
        font-size: 24px;
        -webkit-text-stroke: 1px black;
    }

    #mario{
        left: 20vw;
    }

    #score-box{
        font-size: 10px;
        bottom: 10px;
    }

    #score-display{
        margin-bottom: 5px;
    }
    
    .objects img{
        height: 100px;
    }
    
    #obstacle img{
        height: 60px;
    }
}

.killed{
    left: 17vw;
}

@media screen and (max-height:550px) {
    .title,#game-over-text{
        font-size: 32px;
        -webkit-text-stroke: 2px black;
    }

    #name{
        padding: 20px;
    }

    .yellow-text{
        font-size: 18px;
    }
    
    #instruction-list{
        font-size: 16px;
    }

    .objects img{
        height: 100px;
    }

    #obstacle img{
        height: 80px;
    }
    
    #score-box{
        display: flex;
        width: 90vw;
        justify-content: space-around;
        bottom:2vh;
    }  
}