@import url('https://fonts.googleapis.com/css2?family=Rubik+Mono+One&display=swap');
*{
    font-family: 'Rubik Mono One', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


.screen{
    padding-top: 20px;
    width: 100%;
    height: 100vh;
    background-color: rgb(39, 39, 39);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

}


.button{
    border-radius: 20px;
    color: white;
    text-decoration: none;
    padding: 15px 20px;
    background: red;
    transition: .5s;
    margin-bottom: 40px;
}

.button:hover{
    border: solid 1px red;
    background: none;
    color: red;
}

.game-board{
    width: 100%;
    height: 400px;
    border-bottom: 15px solid green;
    margin: 50px auto ;
    position: relative;
    overflow: hidden;
    background: linear-gradient(#87ceeb, #e0f6ff);
}

.pipe {
    position: absolute;
    bottom: 0;
    width: 80px;
    animation: pipe-animation 1.5s infinite linear;
}


.mario{
    width: 150px;
    position: absolute;
    bottom: 0;

}

.jump{
    animation: jump 500ms  ease-out;
}

.clouds{
    position: absolute;
    width: 550px;
    animation: clouds-animation 20s infinite linear;
}

@keyframes pipe-animation {
    from {
        right: -80px;
    }
    to {
        right: 100%;
    }
}



@keyframes jump{

    0%{
        bottom: 0;
    }

    40%{
        bottom: 200px;
    }

    50%{
        bottom: 200px;
    }

    60%{
        bottom:200px;
    }
    70%{
        bottom:200px;
    }
    80%{
        bottom:200px;
    }

    100%{
        bottom: 0;
    }
}

@keyframes clouds-animation{
    from{
        right: -550px;
    }

    to{
        right: 100%;
    }
}