*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #f4f4f4;
    font-family: Arial, Helvetica, sans-serif;
}

.game-container {
    flex: 1;
    text-align: center;
}

.game-board {
    width: 100vw;
    height: 600px;
    border-bottom: 15px solid rgb(35, 160, 35);
    position: relative;
    overflow: hidden;
    background: linear-gradient(#87ceeb, #e0f6ff);
    margin: 0 auto;
}

.pipe{
    position: absolute;
    bottom: 0;
    width: 80px;
    right: -80px;
}

.mario{
    width: 120px;
    position: absolute;
    bottom: 0;
    left: 50px;
}

.clouds {
    position: absolute;
    width: 550px;
    animation: clouds-animation 20s infinite linear ;
}

.jump{
    animation: jump 500ms ease-out;
}

.score {
    font-size: 24px;
    font-weight: bold;
    margin-top: 20px;
}

.controls{
    margin-top: 20px;
}

.main-btn{
    padding: 12px 30px;
    font-size: 18px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    background-color: #007bff;
    color: white;
    transition: 0.3s;
}

.main-btn:hover{
    background-color: #0056b3;
}

.info-text{
    margin-bottom: 10px;
}

footer{
    text-align: center;
    padding: 20px 0;
    font-size: 14px;
}

footer a{
    text-decoration: none;
    color: #007bff;
}

/* MOBILE */
@media (max-width: 850px){

    .game-board{
        height: 400px;
    }
    .mario{
        width: 96px; /* 120px - 20% */
    }
    .pipe{
        width: 64px; /* 80px - 20% */
    }
    .info-text{
        display: none;
    }
}

@keyframes pipe-animation{
    from{ right: -80px; }
    to{ right: 100%; }
}

@keyframes jump{
    0%{ bottom: 0; }
    40%{ bottom: 180px; }
    50%{ bottom: 180px; }
    60%{ bottom: 180px; }
    100%{ bottom: 0; }
}

@keyframes clouds-animation {
    from{ right: -550px; }
    to{ right: 100%; }
}