


@media only screen and (max-width: 600px) {

    body {

        width: 100%;
        height: 100vh;
    
    
        display: flex;
        align-items: center;
        justify-content: center;
    
        background: linear-gradient(to right, rgb(126, 218, 126) , rgb(108, 108, 214), rgb(221, 112, 112), rgb(228, 228, 142), rgb(195, 99, 195), rgb(113, 198, 198), rgb(197, 165, 105));
    
        background-color: red;
    }
    .incompatible {
        width: 400px;
        height: 400px;
        background-color: white;
        border-radius: 20px;

        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
    }.incompatible p {
        text-align: center;
        font-weight: bold;
        font-size: 20px;
        font-family: Arial, Helvetica, sans-serif;
    }.incompatible button {
        width: 200px;
        height: 50px;
        background-color: gold;
        border: 2px solid black;
        border-radius: 100px;

        font-weight: bold;
        font-family: Arial, Helvetica, sans-serif;
        font-size: 17px;

    }



    .gameWrapper {
        display: none;
    }
}

@media only screen and (min-width: 600px) and (max-width: 900px) {

    .incompatible {
        display: none;
    }

    body {

        width: 100%;
        height: 100vh;
    
    
        display: flex;
        align-items: center;
        justify-content: center;
    
        background: linear-gradient(to right, rgb(126, 218, 126) , rgb(108, 108, 214), rgb(221, 112, 112), rgb(228, 228, 142), rgb(195, 99, 195), rgb(113, 198, 198), rgb(197, 165, 105));
    
        background-color: red;
    }
    
    *  {
        padding: 0;
        margin: 0;
        box-sizing: border-box;
    
        pointer-events: none;
        user-select: none;
    }
    
    .gameWrapper {
        width: 90%;
        background-color: red;
    
        outline: 10px solid black;
    
        overflow: hidden;
    
    }
    
    .floor {
        width: 100%;
        display: flex;
    }
    .flooring {
        background-color: green;
        width: 100%;
        height: 100px;
        display: flex;
    
        animation: movingfloor 2.5s linear infinite;
    
    
    }.flooring img {
        width: 100%;
        
    }
    
    @keyframes movingfloor {
    
        0% {
            transform: translate(0,0);
        }
    
        100% {
    
            transform: translate(-100%,0);
    
        }
    }
    
    .gameBox {
        width: 900px;
        height: 450px;
        background-color: white;
    
        position: relative;
    
        overflow: hidden;
    
        background: url(sky.webp);
        background-size: cover;
    }
    
    .backgroundLoop {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }.backgroundLoop img {
        width: 100%;
    }
    
    
    .char {
        height: 80px;
        width: 40px;
        bottom: 0;
        left: 100px;
        position: absolute;
        /* background-color: black; */
    
        transition: 0.5s;
    
    
    }.char img {
        height: 100%;
        -webkit-filter: drop-shadow(0px 0px 10px #222);
        filter: drop-shadow(0px 0px 10px #222);
    }
    
    .enemy {
        height: 50px;
    
        bottom: 0;
        right: -100px;
    
        position: absolute;
        /* background-color: black; */
        border-radius: 20px 20px 0 0;
    
    }.enemy img {
        height: 100%;
    }
    
    .vacc {
        position: absolute;
        top: -30px;
        left: -50px;
        width: 300px;
        font-weight: bold;
        background-color: white;
    }
    
    
    @keyframes jump {
    
        0% {
            transform: translate(0,0);
        }
        50% {
            transform: translate(0,-150px) rotate(45deg);
        }
    
    }
    
    
    @keyframes down {
    
        0% {
          
        }
        100% {
            transform: translate(0, 0px) rotate(0deg);
        }
        
    }
    
    @keyframes enemyMovement {
    
        0% {
            transform: translate(0, 0px);
          
        }
        100% {
            transform: translate(-1050px, 0px);
        }
       
    }
    
    
    .pointsWrapper {
        position: absolute;
        left: 100px;
        top: 50px;
    }
    
    .points {
        font-weight: bold;
        font-family: Arial, Helvetica, sans-serif;
        font-size: 40px;
    }
    
    
    
    
    .lose {
        position: absolute;
      
        top: 50px;
        left: 0;
       
        width: 600px;
    
        display: none;
    }
    
    
    button.reset {
        padding: 0 20px;
        height: 50px;
        bottom: 25px;
        left: 280px;
        position: absolute;
        background-color: red;
        font-size: 20px;
        font-weight: bold;
        color: white;
        
        display: none;
        pointer-events: all;
        
    }

}


@media only screen and (min-width: 900px) {
    .incompatible {
        display: none;
    }


body {

    width: 100%;
    height: 100vh;


    display: flex;
    align-items: center;
    justify-content: center;

    background: linear-gradient(to right, rgb(126, 218, 126) , rgb(108, 108, 214), rgb(221, 112, 112), rgb(228, 228, 142), rgb(195, 99, 195), rgb(113, 198, 198), rgb(197, 165, 105));

}

*  {
    padding: 0;
    margin: 0;
    box-sizing: border-box;

    pointer-events: none;
    user-select: none;
}

.gameWrapper {
    width: 900px;
    background-color: red;

    outline: 10px solid black;

    overflow: hidden;

}

.floor {
    width: 100%;
    display: flex;
}
.flooring {
    background-color: green;
    width: 100%;
    height: 100px;
    display: flex;

    animation: movingfloor 2.5s linear infinite;


}.flooring img {
    width: 100%;
    
}

@keyframes movingfloor {

    0% {
        transform: translate(0,0);
    }

    100% {

        transform: translate(-100%,0);

    }
}

.gameBox {
    width: 900px;
    height: 450px;
    background-color: white;

    position: relative;

    overflow: hidden;

    background: url(sky.webp);
    background-size: cover;
}

.backgroundLoop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}.backgroundLoop img {
    width: 100%;
}


.char {
    height: 80px;
    width: 40px;
    bottom: 0;
    left: 100px;
    position: absolute;
    /* background-color: black; */

    transition: 0.5s;


}.char img {
    height: 100%;
    -webkit-filter: drop-shadow(0px 0px 10px #222);
    filter: drop-shadow(0px 0px 10px #222);
}

.enemy {
    height: 50px;

    bottom: 0;
    right: -100px;

    position: absolute;
    /* background-color: black; */
    border-radius: 20px 20px 0 0;

}.enemy img {
    height: 100%;
}

.vacc {
    position: absolute;
    top: -30px;
    left: -50px;
    width: 300px;
    font-weight: bold;
    background-color: white;
}


@keyframes jump {

    0% {
        transform: translate(0,0);
    }
    50% {
        transform: translate(0,-150px) rotate(45deg);
    }

}


@keyframes down {

    0% {
      
    }
    100% {
        transform: translate(0, 0px) rotate(0deg);
    }
    
}

@keyframes enemyMovement {

    0% {
        transform: translate(0, 0px);
      
    }
    100% {
        transform: translate(-1050px, 0px);
    }
   
}


.pointsWrapper {
    position: absolute;
    right: 100px;
    top: 50px;
}

.points {
    font-weight: bold;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 40px;
}




.lose {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    width: 700px;

    display: none;
}


button.reset {
    padding: 0 20px;
    height: 50px;
    bottom: 25px;
    left: 280px;
    position: absolute;
    background-color: red;
    font-size: 20px;
    font-weight: bold;
    color: white;
    
    display: none;
    pointer-events: all;
    
}

}

