@font-face {
    font-family: 'zabras';
    src: url('../fonts/Zabars.ttf') format('truetype')
}


* {
    margin: 0;
}


body {
    position: relative;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    min-height: 100vh;
    font-family: 'zabras', 'Arial', 'sans-serfif';
}

main {
    width: inherit;
    height: inherit;
}


.bg,
.bg::backdrop {
    height: 100%;
    background-image: url('../img/desert-bg.jpg');
    background-position: right;
    background-repeat: no-repeat;
    background-size: cover;
}


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


.blur {
    filter: blur(3px);
}


.turn_device_wrapper {
    display: none;
}


.popup-wrapper {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
}


.popup {
    display: flex;
    align-items: center;
    flex-direction: column;
    width: 50vw;
    max-width: 600px;
    min-width: 520px;
    min-height: 300px;
    height: 33vh;
    padding: 10px;
    background-image: linear-gradient(150deg, red, yellow, red);
    border-radius: 20px;
    filter: sepia(0.6);
}


.popup h3 {
    text-align: center;
    font-size: 3rem;
    letter-spacing: 5px;
    margin: auto;
}


.popup img {
    width: 200px;
    margin: auto;
}


h1 {
    text-align: center;
    font-size: 10rem;
    background: -webkit-linear-gradient(red, yellow, red);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 10px;
    filter: drop-shadow(2px 4px 6px black);
    margin-bottom: 3rem;
}


canvas {
    display: block;
    height: 100%;
    margin: auto;
}


.preStart__canvas {
    position: relative;
    display: flex;
}


.preStart__canvas:fullscreen {
    max-height: 100% !important;
}


:not(:root):fullscreen {
    width: auto !important;
}


.preStart__buttons {
    display: flex;
    flex-direction: column;
    gap: 24px;
}


.musicSwitch__out {
    position: absolute;
    width: 80%;
    right: 0px;
    justify-content: end;
}


.start-btn,
.level-btn,
.options-btn,
.instructions-btn {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    align-items: center;
    gap: 2rem;
    width: auto;
    min-height: 50px;
    font-family: 'zabras';
    letter-spacing: 5px;
    background-color: hsl(0, 0%, 100%, 30%);
    color: white;
    text-shadow: 2px 2px 2px black;
    border: unset;
    border-radius: 20px;
    font-size: 3rem;

}


.start-btn:hover,
.level-btn:hover,
.options-btn:hover,
.instructions-btn:hover {
    cursor: pointer;
    background-color: hsl(0, 0%, 100%, 50%);
}


.start-btn img,
.level-btn img,
.instructions-btn img {
    padding: 10px 10px;
    width: 50px;
    height: 50px;
    object-fit: contain;
}


.preStart__level,
.preStart__instructions {
    position: relative;
    display: flex;
    justify-content: center;
    width: 80vh;
    height: auto;
}


.preStart__level ul {
    list-style-type: none;
    display: flex;
    justify-content: center;
    flex-direction: column;
    width: 50%;
    gap: 20px;
    font-size: 3rem;
    font-family: 'zabras';
    letter-spacing: 2px;
}


.preStart__level li {
    text-align: center;
    padding: 10px 20px;
    color: white;
    text-shadow: 2px 2px 2px black;
    background-color: hsl(0, 0%, 100%, 30%);
    border-radius: 20px;
}


.preStart__level li:hover {
    background-color: hsl(0, 0%, 100%, 50%);
    cursor: pointer;
}


.preStart__level p {
    margin-block: 0;
}


.backToMenu {
    position: absolute;
    right: 0;
    width: 100px;
    height: 50px;
    background-color: unset;
    border: unset;
}


.backToMenu img {
    width: 100%;
    object-fit: contain;
    rotate: 200deg;
    -webkit-filter: invert(100%);
}


.backToMenu img:hover {
    transform: scale(1.2);
}


.options__wrapper {
    position: absolute;
    display: flex;
    gap: 20px;
    top: 0px;
    left: 50%;
    transform: translate(-50%, 100%);
}


.options__wrapper button {
    background-color: unset;
    border: unset;
    width: 30px;
    height: 30px;
    -webkit-filter: invert(100%);
    cursor: pointer;
}


.options__wrapper img {
    height: 100%;
    object-fit: contain;
}


.guideKey {
    display: flex;
    align-items: center;
    gap: 3rem;
    font-size: 3rem;
    margin-block: 1rem;
    -webkit-filter: invert(100%);
}


/* Display level */
.display__wrapper {
    position: absolute;
    top: 5vh;
    right: 5vw;
}


.display__wrapper p {
    font-family: inherit;
    font-size: 2rem;
}


/* Classes Reload & Next Level */
.buttons__newOrNext {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    width: 100%;
    height: 100%;
    z-index: 1;
}


/* Outro */
.outro__wrapper {
    position: absolute;
    width: 100%;
    height: 100%;
}


.outro__wrapper img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}


/* Classes for mobile */
.buttons__overlay {
    position: absolute;
    display: flex;
    justify-content: space-between;
    bottom: 0;
    width: 90%;
    padding-inline: 5%;
}


.btn {
    background-color: unset;
    border: unset;
    font-family: inherit;
}


.btn h2 {
    font-size: 2rem;
    letter-spacing: 2px;
}


.btn img {
    transition: transform 600ms ease-in-out;
}


.btn img:hover {
    transform: rotateZ(360deg);
}


.buttons__wrapper {
    display: flex;
    gap: 10px
}


.button__mobile {
    width: 60px;
    height: 60px;
    background-color: unset;
    border: unset;
}


.button__mobile img {
    width: 80%;
    object-fit: cover;
    -webkit-filter: invert(90%);
}


.button__mobile img:hover {
    width: 100%;
    -webkit-filter: invert(100%);
}


.mobil__hide {
    display: none;
}