body {
    margin: 0;
    min-height: 100vh;

    display: flex;
    justify-content: center;
    align-items: center;

    background: #f1e3c9;

    font-family: sans-serif;
}

.game {
    display: flex;
    align-items: center;
    gap: 5px;
}

.character {
    position: relative;

    width: 300px;
    height: 350px;

    flex-shrink: 0;
    z-index: 1;
}

.layer {
    position: absolute;

    top: 0;
    left: 0;

    width: 100%;

    image-rendering: pixelated;
}

.controls {
    position: relative;
    z-index: 10;
}

.row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.row span {
    width: 30px;
    font-weight: bold;
        margin-right: 25px;
}
/* IMAGE BUTTONS */

button {
    width: 56px;
    height: 56px;

    border: none;
    background-color: transparent;

    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;

    cursor: pointer;

    transition: transform 0.15s;
}

/* LEFT BUTTONS */
button:nth-of-type(1) {
    background-image: url("../images/ui/left.png");
}

/* RIGHT BUTTONS */
button:nth-of-type(2) {
    background-image: url("../images/ui/right.png");
}

/* hide arrow text */
button {
    font-size: 0;
}

button:hover {
    transform: scale(1.08);
}

button:active {
    transform: scale(0.95);
}

@media (max-width: 500px) {

    .game {
        flex-direction: column;
        gap: 5px;
    }

    .controls {
        width: 100%;
        align-items: center;
        margin-top: -100px;
        margin-left: -10px
    }

    .character {
        width: 80vw;
        height: calc(80vw * 1.66);

        max-width: 300px;
        max-height: 500px;
    }

    .row {
        width: 220px;
    }

    .character {
        margin-bottom: 10px;
    }
}
.layer {
    pointer-events: none;
}