* {
    box-sizing: border-box;
    font-family: 'Mexicana', sans-serif;
    color: black;
}

html, body {
    box-sizing: border-box;
    height: 100%;
    padding: 0;
    margin: 0;
    background-image: url('../assets/img/ingame_imgs/5.background/background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.page_wrapper {
    box-sizing: border-box;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    
}

header {
    flex-grow: 0;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
}

main {
    flex-grow: 1;
    max-width: 1920px;
    margin: 0 auto;
    display: flex;
}

body a {
    text-decoration: none;
}

.mobile_instruktion {
    display: none;
}

.HUD {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-width: 720px;
    max-height: 480px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.fullscreen button {
    width: 120px;
    border-radius: 5px;
    border: none;
    background-color: #ff9500;
    font-weight: 800;
    cursor: pointer;
}

.buttons {
    display: flex;
    justify-content: center;
    gap: 4px;
    width: 100%;
    z-index: 110;
    padding-top: 8px;
}

.ui_fixed {
    width: 100%;
    height: 100%;
    max-width: 720px;
    max-height: 480px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#startButton {
    height: 30px;
    padding-left: 4px;
    padding-right: 4px;
    font-size: 18px;
    cursor: pointer;
    z-index: 101;
}

#restartButton {
    height: 30px;
    padding-left: 4px;
    padding-right: 4px;
    font-size: 18px;
    cursor: pointer;
    z-index: 101; 
}

#infoButton {
    height: 30px;
    padding-left: 4px;
    padding-right: 4px;
    font-size: 18px;
    cursor: pointer;
    z-index: 101;
}

#impressumBtn {
    height: 30px;
    padding-left: 4px;
    padding-right: 4px;
    font-size: 18px;
    cursor: pointer;
    z-index: 101;
    display: none;
}

canvas {
    background-color: rgb(0, 0, 0);
    display: block;
    top: 0;
    left: 0;
    margin: 0 auto;
    z-index: 1;
}

.controls {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: center;
    gap: 64px;
    width: 720px;
    padding-top: 12px;
    font-size: 20px;
    font-weight: 700;
    color: #ff9500;
}

#fullScreen {
    position: absolute;
    width: 100%;
    height: auto;
    max-width: 720px;
    max-height: 480px;
    margin: auto;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.full_screen {
    z-index: 10;
    height: 28px;
    width: 28px;
    cursor: pointer;
    border: none;
    border-radius: 5px;
    background-color: #ff9500;
    padding: 1px;
}

.game_controls {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding-bottom: 8px;
}

.move_buttons_direction {
    display: flex;
    gap: 40px;
    margin-right: 20px;
}

.move_buttons_direction button {
    width: 50px;
    height: 35px;
    padding: 0;
    font-size: 16px;
    opacity: 0%;
}

.soundbar {
    display: flex;
    align-items: center;
    gap: 8px;
}

.soundbar button {
    height: 32px;
}

#soundToggleIcon {
    height: 24px;
    width: 24px;
}

#btnFullscreen {
    height: 24px;
    width: 24px;
    opacity: 0%;
}

#pauseButton {
    z-index: 10;
    height: 30px !important;
    width: 30px !important;
    cursor: pointer;
    border: none;
    border-radius: 5px;
    background-color: #ff9500;
    padding: 1px;
    color: whitesmoke;
}

.soundbar img{
    z-index: 10;
    height: 32apx;
    width: 28px;
    cursor: pointer;
    border: none;
    border-radius: 5px;
    background-color: #ff9500;
    padding: 1px;
}

.soundbar input {
    z-index: 10;
    width: 80px;
    cursor: pointer;
}

.buttons_jump_throw {
    display: flex;
    gap: 40px;
}

.buttons_jump_throw button {
    width: 72px;
    height: 35px;
    padding: 0;
    font-size: 16px;
    opacity: 0%;
}

.buttons_jump_throw button img {
    height: 40px;
    width: 40px;
}

.keys {
    border: none;
    border-radius: 5px;
    background-color: #754d24;
    padding: 4px;
    gap: 12px;
}

.info-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-width: 720px;
    max-height: 480px;
    background-color: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
    pointer-events: auto;
}

.info-content {
    max-height: 100%;
    overflow-y: auto;
    background-color: #e2e2e2;
    padding: 32px;
    border-radius: 12px;
    max-width: 600px;
    text-align: center;
    font-size: 18px;
    z-index: 1000;
    position: relative;
}

.hidden {
    display: none;
}

.info-content button {
    background-color: #ff9500;
    width: 32px;
    height: 32px;
    border-radius: 16px;
    box-shadow: 2px 2px 10px #a7a7a7;
}

.overlay-active .HUD .buttons {
  display: none;
}

.footer {
    color: black !important;
}

@font-face {
  font-family: 'Mexicana';
  src: url('../assets/font/mexicana/Mexicana.ttf') format('truetype');
  src: url('../assets/font/mexicana/MexicanaHollow.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

.fullscreen:fullscreen canvas {
    width: 100vw;
    height: 100vh;
}

#infoButton,
#restartButton {
  display: none;
}

