@font-face {
    font-family: LaTequila;
    src: url(./fonts/latequila/La\ Tequila.ttf);
}

@font-face {
    font-family: ElRioLobo;
    src: url(./fonts/elriolobo/ELRIOTT2.TTF);
}

body {
    font-family: LaTequila, Tahoma, Verdana, sans-serif;
    margin: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-image: url("img/backgrounds/desert2.png");
    background-repeat: no-repeat;
    background-size: cover;
}

canvas {
    display: block;
}

h1 {
    color: #e05b00;
    text-shadow: 2px 2px #ffd70b;
}

.d-none {
    display: none !important;
}

.container {
    width: 100%;
    max-width: 720px;
    aspect-ratio: 1.5/1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.help-bar {
    position: absolute;
    left: -170px;
    top: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    background-color: rgb(248 125 29 / 56%);
    padding: 0 10px;
}

.key-description {
    font-size: 12px;
}

.help {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.info {
    color: #fff;
    text-shadow: 2px 2px black;
}

.info:hover {
    cursor: pointer;
}

.key {
    color: #ffd500;
    text-shadow: 2px 2px black;
    font-size: 18px !important;
}

.overlay {
    position: absolute;
    right: 20px;
    top: 60px;
    display: flex;
    gap: 16px;

}

.overlay-icon:hover {
    cursor: pointer;
}

.overlay-icon>img {
    height: 30px;
    width: 30px;
}

.fullscreen:hover,
.mute:hover {
    cursor: pointer;
    color: #ffd500;
}

.info-box {
    background-color: #ffd70b;
    z-index: 10;
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
}

.close {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    padding: 40px 80px 0 0;
    box-sizing: border-box;
}

.instructions-box {
    padding: 20px 30px 15px 50px;
}

.close:hover {
    cursor: pointer;
}

.start-page {
    height: 100%;
    width: 100%;
    background: url(./img/9_intro_outro_screens/start/startscreen_1.png) no-repeat 0 0 / 100% 100%;
    object-fit: cover;
    display: flex;
    justify-content: center;
}

.end-page {
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    position: absolute;
}

.start-btn {
    font-size: 18px;
    margin-top: 60px;
    position: absolute;
    top: 0;
    color: #ffd70b;
    font-size: 1.5em;
    transition: transform 0.3s;
    text-shadow: 5px 2px #9f3b18;
}

.restart-btn {
    margin-bottom: 60px;
    position: absolute;
    bottom: 0;
    color: #ffd70b;
    font-size: 1.5em;
    transition: transform 0.3s;
    text-shadow: 5px 2px #9f3b18;
}

canvas {
    background-color: black;
    width: 100%;
}

.restart-btn:hover,
.start-btn:hover {
    animation-play-state: paused;
    cursor: pointer;
}

.mobile-control {
    position: absolute;
    bottom: 20px;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    width: 100%;
}

.mobile-icon {
    background-color: rgb(255 213 0 / 18%);
    border: 2px solid black;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 40%;
}

.icon-left {
    background-image: url('img/left.png');
}

.icon-right {
    background-image: url('img/right.png');
}

.icon-jump {
    background-image: url('img/up.png');
}

.icon-bottle {
    background-image: url('img/bottle.png');
}

.menu {
    position: absolute;
    top: 20px;
    left: 20px;
}

.turn-phone-overlay {
    display: none;
    position: absolute;
    background-color: black;
    color: #e05b00;
    text-shadow: 2px 2px #ffd70b;
    font-size: x-large;
    justify-content: center;
    align-items: center;
    padding: 0 25px;
    box-sizing: border-box;
    text-align: center;
    line-height: 60px;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
}


@keyframes resize {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }

    100% {
        transform: scale(1);
    }
}

.start-btn:not(:hover):not(:active),
.restart-btn:not(:hover):not(:active) {
    animation: resize 2s infinite;
}

@media (max-height: 650px) {
    h1 {
        display: none;
    }
}

@media only screen and (min-width: 1100px) {
    .overlay-icon-menu {
        display: none;
    }
}

@media only screen and (max-width: 1100px) {
    .help-bar {
        left: 0;
        background-color: rgb(248 125 29 / 98%);
        z-index: 10;
    }
}

@media only screen and (max-height: 480px) {

    h1 {
        display: none;
    }

    .help-bar {
        left: 0;
        background-color: rgb(248 125 29 / 98%);
        z-index: 10;
    }

    .container,
    canvas {
        height: 100vh;
        width: 100%;
    }
}

@media (orientation: portrait) and (max-width: 760px) {
    .turn-phone-overlay {
        display: flex;
        z-index: 120;
    }
}

@media (max-width: 750px) and (max-height: 500px) {
    .container {
        height: 100vh;
        max-width: unset;
    }
}