body {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0px;
    padding: 0;
    background-image: url(img/background.jpg);
    background-repeat: no-repeat;
    background-position: top;
    background-size: cover;
    background-color: #cccccc;
    filter: grayscale(20%);
    width: 100vw;
    height: 100vh;
}

* {
    font-size: 18px;
}

h1 {
    letter-spacing: 4px;
    color: #e79b00;
    text-decoration: overline underline wavy rgb(65, 6, 6) 2px;
    padding: 0.6em;
    padding-bottom: 0;
    margin-bottom: 20px;
    font-size: 36px;
}

.scorebox{
    z-index: 1;
    transition: all 250ms ease-in-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: absolute;
    width: 100%;
    bottom: -5%;
}
:fullscreen .scorebox{
    bottom: 5%;
}

.lowerBracket{
    display: flex;
    justify-content: center;
}

.score {
        background-color: #FFA100;
        border: solid black 2px;
        font-size: 25px;
        margin: 0;
        padding: 2px 5px;
}

:fullscreen .score {
    font-size: 40px;
}

#coinscore {
    bottom: 16%;
    right: 33%;
}

:fullscreen #coinscore{
    bottom: 14%;
    right:50% - width;
}

#hpscore{
    bottom: 16%;
    right: 48%;
}

:fullscreen #hpscore{
    bottom: 14%;
    right:50%;
}

#finalscore{
    bottom: 2%;
    right: 36%;
    font-size: 40px;
    font-weight: bold;
}

:fullscreen #finalscore{
    bottom: 9.3%;
    right:50%;
}

.container {
    position: relative;
    z-index: 1;
}

.start-btn {
    position: absolute;
    z-index: 1;
    top: 94%;
    left: 50%;
    text-align: center;
    background-color: rgba(255, 222, 0, 0.9);
    border: 1px solid #000000;
    box-shadow: 6px 6px 0px #000000;
    transform: skewX(-15deg) translate(-50%, -50%);
    font-size: 48px;
    padding: 6px;
    letter-spacing: 6px;
    user-select: none;
    transition: all 125ms ease-in-out;
}

.start-btn:hover {
    transform: scale(1.2) skewX(-15deg) translate(-50%, -50%);
    background-color: #fee128;
}

#fullscreen-button{
    position: absolute;
    z-index: 1;
    top: 20px;
    right: 20px;
}

.control-bar {
    display: flex;
    align-items: center;
    justify-content: space-around;
    background-color: #994409;
    border-radius: 0px 0px 20px 20px;
    padding: 16px;
    max-width: 760px;
    width: 100%;
    height: 145px;
    box-sizing: border-box;
    font-family: 'Gochi Hand', cursive;
    text-transform: uppercase;
    position: relative;
    z-index: 0;
    transition: all 125ms ease-in-out;
}

.d-none {
    transform: translateY(-110px);
}

.hide {
    display: none;
}

.control-bar div {
    display: flex;
    z-index: 2;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    user-select: none;
}

#show-controller {
    width: 100%;
    position: absolute;
    bottom: 2px;
    letter-spacing: 6px;
    color: lightgrey;
}

.mobile-control-bar {
    position: absolute;
    width: 100%;
    bottom: 0;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    z-index: 2;
}

.mobile-control-bar span {
    font-size: 12px;
    font-family: 'Gochi Hand', cursive;
    text-shadow: 0px 0px 12px #000000;
}

.run-controls, .action-controls {
    display: flex;
    align-items: center;
    padding: 6px;
    gap: 24px;
    color: black;
}

.run-controls div, .action-controls div {
    display: flex;
    flex-direction: column;
    align-items: center;
    user-select: none;
}

.mobile-control-bar img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    box-shadow: 0 0 12px 0px rgb(0 0 0 / 60%);
    opacity: 0.6;
    user-select: none;
}

.pointer {
    cursor: pointer;
}

canvas {
    background-color: black;
    background-image: url('img/9.Intro _ Outro Image/Start Screen/Opción 1.png');
    background-size: cover;
    background-position: right top;
    border-radius: 20px 20px 0px 0px;
    display: block;
    pointer-events: none;
    z-index: 1;
}

:fullscreen canvas {
    width: 100%;
    height: 100%;
}

#game-over-screen{
    position: absolute;
    background-size: cover;
    background-position: top;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-image: url('img/9.Intro _ Outro Image/_Game over_ screen/4.Game over!.png');
}

/* Smartphone portrait*/
@media only screen and (max-width: 760px) {
    canvas {
        width: 100%;
        border-radius: 20px;
    }

    .mobile-control-bar {
        display: flex;
    }

    .start-btn {
        font-size: 24px;
        top: 16%;
    }

    .control-bar {
        display: none;
    }

    body {
        overflow-y: hidden;
    }

}

@media only screen and (max-width: 760px) {
    .scorebox{
        bottom: -15%;
    }
    .start-btn{
        top: 20%;
    }
}
@media only screen and (max-width: 390px) {
    .scorebox{
        bottom: -30%;
    }
    .start-btn{
        top: 20%;
    }
}

/* Smartphone landscape*/
@media only screen and (max-height: 480px) {
    body {
        justify-content:unset;
        overflow-y: hidden;
        height: 100%;
    }

    h1 {
        display: none;
    }

    canvas {
        height: 100vh;
        border-radius: 20px;
    }

    .mobile-control-bar {
        display: flex;
    }

    .control-bar {
        display: none;
    }

    :fullscreen .scorebox {
        bottom: -30%;
    }

    :fullscreen .scorebox p{
        font-size: 30px !important;
    }
}