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

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-image: url('../img/5_background/body_background_desert.png');
    justify-content: center;
    height: 100vh;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    font-family: Zabars;
    margin: 0;
}

h1{
    font-size: 84px;
    font-weight: 400;
    margin-block-start: 0;
    margin-block-end:15px;
}

canvas{
    border-radius: 15px;
    background-color: black;
    display: block;
    width: 100%;
    aspect-ratio: 3 / 2 !important;
}

#screen {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

#buttons{
    display: flex;
    gap: 10%;
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#buttons.buttons-endscreen {
    display: flex !important;
    position: absolute;
}

.button{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 150px;
    height: 50px;
    background-color: #ffca1c;
    cursor: pointer;
    border-radius: 15px;
    box-shadow: 2px 2px #993a17;
    font-size: 32px;
    font-weight: 400;
    color: #000 !important;
}

.button:hover {
    scale: 1.05;
}

#control-panel {
    bottom: 10px;
    right: 10px;
    position: absolute;
    display: flex;
    gap: 15px;
    align-items: center;
}

#sound-volume {
    width: 30px;
    cursor: pointer;
}

#min-max-screens {
    width: 28px;
    height: 28px;
    cursor: pointer;
}

#min-max-screens:hover,
#sound-volume:hover {
    scale: 1.05;
}

.fullscreen-min-max-screens {
    width: 50px !important;
    height: 50px !important;
}

.fullscreen-sound-volume {
    width: 65px !important;
}

.fullscreen-button {
    width: 300px !important;
    height: 80px !important;
    font-size: 64px !important;
}

#controls-window {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.25);
    width: 100%;
    height: 100%;
}

#controls-menu {
    position: relative;
    margin: 10px;
    width: 400px;
    height: 400px;
    border-radius: 20px;
    border: solid 2px #993a17;
    background-color: #ffca1c;
    box-shadow: 10px 10px 25px 0px rgba(51, 51, 51, 0.5);
}

#controls-menu h2{
    display: flex;
    justify-content: center;
    font-size: 48px;
    font-weight: 400;
    margin-top: 5%;
    margin-bottom: 3%;
}

#bt-close-control-menu {
    position: absolute;
    top: 0px;
    right: 15px;
    font-size: 32px;
    font-family: cursive, sans-serif;
    font-weight: 400;
    cursor: pointer;
}

#bt-close-control-menu:hover {
    scale: 1.2;
    color: #993a17;
}

.controls-section {
    display: flex;
    flex-direction: column;
    gap: 25px;
    padding: 0 15%;
}

.controls-section h3 {
    font-size: 40px;
    font-weight: 400;
    margin-top: 0;
    margin-bottom: 5px;
}

.control-row {
    font-weight: 400;
    display: flex;
    gap: 60px;
    justify-content: space-between;
    font-size: 28px;
    color: rgb(74, 70, 70);
    margin-bottom: 2px;
}

#rotate-screen{
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100vh;
    background: black;
    color: #ffca1c;
    z-index: 1000;
}

#rotate-info {
    width: 250;
}

#rotate-info h2{
    font-family: sans-serif;
    font-size: 400;
}

.hidden {
    display: none !important;
}

#legal-noitice {
    position: relative;
}

#legal-notice a{
    position: absolute;
    transform: translate(-50%, -50%);
    bottom: 5%;
    font-size: 32px;
    text-decoration: none;
    cursor: pointer;
    color: #5f2c1a;
}

#legal-notice a:hover{
    color: #ffca1c;
}

.topnav #hamburger-menu {
    display: none;
    margin-top: 10px;
}

#hamburger-menu a{
    position:unset !important;
    font-size: 24px;
    background-color: #ffca1c;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 2px 2px #993a17;
}

#hamburger-menu a:hover {
    color: #993a17;
}

.topnav{
    position: absolute;
    cursor: pointer;
    right: 22px;
    top: 5%;
    display: none;
    flex-direction: column;
    align-items: end;
}

.topnav svg{
    width: 30px;
}

@media only screen and (max-width: 720px){
    canvas {
        width: 100%;
    }

}

@media only screen and (max-height: 540px){
    canvas {
        height: 100vh;
        border-radius: 0;
    }

    .topnav {
        display: flex;
    }

    .bottomnav{
        display: none;
    }

    h1{
        display: none;
    }
}

@media screen and (max-width: 500px) {
    .button {
        width: 100px;
        height: 30px;
        font-size: 20px;
        border-radius: 8px;
    }
}