body{
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
}

.overlay {
    display: none;
    z-index: 4;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(0,0,0, 0.8);
}

#overlayStart {
    display: block;
}

.centralized {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.start-screen button {
    padding: 10px 20px;
    font-size: 18px;
    background-color: #4caf50;
    color: #fff;
    cursor: pointer;
    border: none;
    border-radius: 5px;
}

main{
    /* display: none; */
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100vh;
    margin: 0 auto;
    border-bottom: 30px solid #008000;
    background: linear-gradient(#87ceeb, #e0f6ff);
}

.pipe{
    position: absolute;
    width: 80px;
    bottom: 0;
    right: 0;
    /* animation: pipe-animation 1.5s infinite linear; */
}

.mario{
    position: absolute;
    width: 150px;
    bottom: 0;

}

.jump{
    position: absolute;
    animation: jump-mario 500ms infinite ease-out;
}

.clouds{
    position: absolute;
    width: 600px;
    right: 0;
    /* animation: clouds-animation 10s infinite linear; */
}

.container {
    z-index: 3;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    background-color: hsla(0, 0%, 0%, 0.1);
    text-align: center;
    color: #333;
    font-size:24px;
}

/* .score {
    color: #333;
    font-size:24px;
} */

.last-score,  
.best-score {
    display: none;
}

.music {
    position: absolute;
    right: 0;
    margin-top: 5px;
}
.music img{
    width: 30px;
    height: 30px;
    cursor: pointer;
}
.music img:hover {
    opacity: 0.8; /* adicione um efeito de opacidade ao passar o mouse, se desejar */
}

.game-over-screen button {
    padding: 10px 20px;
    font-size: 18px;
    background-color: #4caf50;
    color: #fff;
    cursor: pointer;
    border: none;
    border-radius: 5px;
}

.rotate-screen {
    display: none;
    padding: 16px;
    border: 2px solid #010101;
    border-radius: 16px;
    background: #f12;
    color: #eee;
}

#buttonToJump {
    display: none;
    width: 85px;
    height: 85px;
    text-align: center;
    position: absolute;
    font-size: 5rem;
    right: 4rem;
    bottom: 2rem;
    background: #e0f0e3;
    border: 1px solid #010101;
    border-radius: 50%;
}

@keyframes pipe-animation {
    from {
        right: -80px;
    }
    to {
        right: 100%;
    }
}

@keyframes jump-mario {
    0% {
        bottom: 0;
    }

    20% {
        bottom: 180px;
    }

    50% {
        bottom: 180px;
    }

    70% {
        bottom: 180px;
    }

    100% {
        bottom: 0;
    }
}

@keyframes clouds-animation {
    from {
        right: -600px;
    }
    to {
        right: 100%;
    }
}

@media (max-width: 500px){ 
    .start-screen {
        display: none;
    }
    .rotate-screen {
        display: block;
    }
}

/* @media (max-width: 1023px) {
    #buttonToJump {
        display: block;
    }
} */