body {
    margin: 0;
    background-image: linear-gradient(to right, #f9d423 0%, #ff4e50 100%);
    overflow-y: hidden;
    font-family: sans-serif;
    font-size: 2em;
    color: yellow;
    text-align: right;
}

.introBackground {
    height: 60vh;
    width: 50vw;
    margin: 10rem auto;
    background-image: url(img/hover_principal.gif);
    background-size: cover;
    position: relative;
    box-shadow: 1px 2px 60px rgba(0, 0, 0, 0.4);
}

#score {
    height: 80vh;
    width: 70vw;
    position: absolute;
}

.scorePuntuation {
    margin-top: 30px;
    margin-right: 30px;
    font-weight: bolder;
    text-shadow: 0 1px 0px #378ab4, 1px 0 0px #5dabcd, 1px 2px 1px #378ab4, 2px 1px 1px #5dabcd, 2px 3px 2px #378ab4, 3px 2px 2px #5dabcd, 3px 4px 2px #378ab4, 4px 3px 3px #5dabcd, 4px 5px 3px #378ab4, 5px 4px 2px #5dabcd, 5px 6px 2px #378ab4, 6px 5px 2px #5dabcd, 6px 7px 1px #378ab4, 7px 6px 1px #5dabcd, 7px 8px 0px #378ab4, 8px 7px 0px #5dabcd, 2px 2px 2px rgba(251, 255, 16, 0);
}

#background {
    height: 80vh;
    width: 70vw;
    margin: 5rem auto;
    background-image: url(img/fondo.png);
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
    box-shadow: 1px 2px 60px rgba(0, 0, 0, 0.4);
    overflow-x: hidden;
    overflow-y: hidden;
}

#ground {
    height: 4vh;
    width: 500%;
    background-image: url(img/tierra.png);
    background-size: contain;
    display: block;
    position: absolute;
    bottom: 0%;
    left: 0%;
    background-repeat: repeat-x;
    z-index: 1000;
    animation: moveRight 50s linear infinite;
}

#lifes {
    height: 80vh;
    width: 70vw;
    position: absolute;
    text-align: center;
}

#retry {
    position: absolute;
    top: 40%;
    left: 42%;
    width: 7vw;
    color: white;
    display: none;
    z-index: 100000000;
    font-size: 3vw;
    text-decoration: none;
    color: #FFFFFF;
    text-shadow: 0 -1px 4px #FFF, 0 -2px 10px #ff0, 0 -10px 20px #ff8000, 0 -18px 40px #F00;
}

.life {
    background-image: url(img/life.png);
    background-size: 100%;
    width: 30px;
    height: 30px;
    margin: 5px;
    margin-top: 35px;
    display: inline-block;
}

.gameOver {
    background-image: url(img/game_over.png);
    background-size: cover;
    width: 15vw;
    height: 10vh;
    margin: 5px;
    margin-top: 30px;
    display: inline-block;
}

#godzilla {
    position: absolute;
    bottom: -5%;
    left: 24%;
    width: 10vw;
    animation: suspension 1s linear infinite;
}

#godzilla img {
    width: 100%;
}

#mothra {
    position: absolute;
    top: 5%;
    left: 100%;
    width: 7vw;
    animation: fly 2s linear infinite;
}

#mothra img {
    width: 100%;
}

#worm {
    position: absolute;
    bottom: 0%;
    left: 100%;
    width: 10vw;
}

#worm img {
    width: 100%;
}

#firesBackground {
    height: 80vh;
    width: 70vw;
    position: absolute;
}

.fire {
    background-image: url(img/fire.png);
    background-size: 100%;
    background-repeat: no-repeat;
    height: 5vh;
    width: 3vw;
    position: absolute;
}

#explosionBackground {
    height: 80vh;
    width: 70vw;
    position: absolute;
}

.explosion {
    background-image: url(img/explosion.gif);
    background-size: 100%;
    background-repeat: no-repeat;
    width: 7vw;
    height: 15vh;
    position: absolute;
    /* animation: explosion 1.5s linear; */
}

#reactionBackground {
    height: 80vh;
    width: 70vw;
    position: absolute;
}

.girl {
    background-image: url(img/screamgirl.png);
    background-size: 100%;
    background-repeat: no-repeat;
    height: 40vh;
    width: 15vw;
    position: absolute;
    z-index: 10000;
    animation: updown 5s linear;
}

@media all and (min-width: 600px) and (max-width:1023px) {
    #background {
        height: 60vh;
        width: 50vw;
    }
}

@media all and (min-width: 400px) and (max-width:599px) {}

@media all and (max-width:399px) {}


/* Animation */

@keyframes moveRight {
    100% {
        transform: translateX(-30%);
    }
}

@keyframes suspension {
    100% {
        transform: translateY(-1px);
    }
    50% {
        transform: translateY(2px);
    }
    0% {
        transform: translateY(-1px);
    }
}

@keyframes fly {
    100% {
        transform: translateY(-20%);
    }
    80% {
        transform: translateY(50%);
    }
    60% {
        transform: translateY(10%);
    }
    40% {
        transform: translateY(0%);
    }
    20% {
        transform: translateY(50%);
    }
    0% {
        transform: translateY(-10%);
    }
}

@keyframes explosion {
    100% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    0% {
        opacity: 0;
    }
}

@keyframes updown {
    100% {
        transform: translateY(50vh);
    }
    55% {
        transform: translateY(400px);
    }
    52% {
        transform: translateY(300px);
    }
    50% {
        transform: translateY(0px);
    }
    8% {
        transform: translateY(5px);
    }
    4% {
        transform: translateY(200px);
    }
    0% {
        transform: translateY(50vh);
    }
}