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

.game-board {

    width: 100%;
    height: 100vh;
    border: 1px solid #333;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    border-bottom: 15px solid #874421;
    background: linear-gradient(to bottom, #6ebedd 20%, #ffffff 80%);

}

.name {
    color: white;
    position: fixed;
    top: 25px;
    right: 10px;
    font-style: inherit;
    font-size: 25px;
}

.score {
    color: white;
    position: absolute;
    top: 25px;
    left: 65px;
    transform: translateX(-50%);
    font-style:inherit;
    font-size: 25px;
}

.vulcao {
    position: absolute;
    bottom: 0;
    width: 10vw;
    animation: vulcao-animation 1.7s infinite linear;

}

.car {
    width: 12vw;
    position: absolute;
    bottom: 0px;

}

.restart {
    position: fixed;
    top: 7.9%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(255, 255, 255, 0.986);
    border-radius: 6px;
    font-size: 19px;
    font-style:normal;
    cursor: pointer;
}
.restart:hover {
    
    background-color: rgba(240, 13, 13, 0.986);
    color: rgb(255, 255, 255);
    
}


.jump {
    animation: jump 500ms ease-out;

}

.clouds {
    top: 12%;
    width: 20vw;
    position: absolute;
    animation: clouds-animation 40s infinite linear;

}

.birds {
    top: 15%;
    width: 20vw;
    position: absolute;
    animation: birds-animation 22s infinite linear;

}

.fire {
    top: -10%;
    right: -10%;
    width: 10vw;
    position: absolute;
    animation: fire-animation 9s infinite linear;
}

@media screen and (max-width: 600px) {
    .name, .score {
        font-size: 18px;
    }
}

@media screen and (max-width: 600px) {
    .vulcao {
        width: 40vw;
    }

    .car {
        width: 60vw;
    }

    .clouds {
        width: 80vw;
    }
}

@keyframes birds-animation {
    from {
        right: -250px;
    }

    to {
        right: 100%;
    }
}

@keyframes fire-animation {
    from {
        top: -10%;
        right: -100%;
    }

    to {
        top: 110%;
        right: 110%;
    }
}

@keyframes clouds-animation {
    from {
        right: -250px;
    }

    to {
        right: 100%;
    }
}


@keyframes vulcao-animation {
    from {
        right: -200px;
    }

    to {
        right: 100%;
    }
}

@keyframes jump {
    0% {
        bottom: 0;

    }

    40% {
        bottom: 180px;
    }

    50% {
        bottom: 180px;
    }

    60% {
        bottom: 180px;
    }

    100% {
        bottom: 0;
    }
}