@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

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

footer {
    position: absolute;
    background-color: gray;
    bottom: 0;
    width: 100%;
    background: linear-gradient(to right, #00c3ff, #005bea);
    color: white;
    padding: 10px;
    font-size: 15px;
    border-top: solid rgba(0, 0, 0, 0.5);
    text-align: center;
    font-family: 'Press Start 2P', cursive;
}

img {
    width: 6vh;
}

p {
    margin-top: 15px;
    margin-bottom: 15px;
}

.mobile-only {
    display: none;
  }

@media (max-width: 768px) {
    .mobile-only {
        display: block;
    }
}

.container {
    width: 100%;
    height: 400px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    flex-direction: column;
    background-image: url('./essenciais/greenhill.jpeg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.floordiv {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 0 auto;
}

.floor {
    width: 33.4%;
}

.item {
    margin-top: 50px;
}

.gameover {
    font-family: 'Press Start 2P', cursive;
    font-size: 4vh;
    margin-top: 50px;
    letter-spacing: 2px;
    color: #000;
    text-shadow:
        2px 2px #000;
}

.over {
    color: red;
}

.butao {
    position: absolute;
    top: 60px;
    font-family: 'Press Start 2P', cursive;
    font-size: 16px;
    width: 220px;
    height: 50px;
    background: linear-gradient(to right, #00c3ff, #005bea);
    color: white;
    border: 3px solid #ffffff;
    border-radius: 12px;
    box-shadow: 0 0 10px #00c3ff, 0 0 20px #005bea;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}


.butao-pular {
    position: absolute;
    right: 8vh;
    bottom: 26vh;
    font-family: 'Press Start 2P', cursive;
    font-size: 29px;
    width: 10vh;
    height: 10vh;
    background: linear-gradient(to right, #00c3ff, #005bea);
    color: white;
    border: 3px solid #ffffff;
    border-radius: 35%;
    box-shadow: 0 0 10px #00c3ff, 0 0 20px #005bea;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    line-height: 55px;
}

.butao-pular:active {
    background: linear-gradient(to right, #ffcc00, #ff6600);
    color: #000;
    box-shadow: 0 0 15px #ffcc00, 0 0 25px #ff6600;
}

.butao:active {
    background: linear-gradient(to right, #ffcc00, #ff6600);
    color: #000;
    box-shadow: 0 0 15px #ffcc00, 0 0 25px #ff6600;
    transform: scale(1.05);
}


.sonic {
    position: absolute;
    width: 70px;
    height: 70px;
    bottom: 0;
    left: 100px;
}

.crabmeat {
    width: 80px;
    height: 80px;
    position: absolute;
    bottom: -10px;
    left: 100%;
}

.walk {
    animation: 2s walk linear infinite;
}

.jump {
    animation: jump 1.2s ease-out;
}

.ascend {
    animation: ascender 2.2s ease-in;
}

@keyframes walk {
    from {
        left: 100%;
    }

    to {
        left: -73px;
    }
}

@keyframes jump {
    0% {
        bottom: 0px;
    }

    40% {
        bottom: 100px;
    }

    100% {
        bottom: 0px;
    }
}

@keyframes ascender {
    from {
        transform: translatey(0px);
    }

    to {
        transform: translateY(-600px);
    }
}
