@font-face {
    font-family: "Jersey";
    src: url("fonts/Jersey10-Regular.ttf");
}

html, body {
    margin: 0;
    padding: 0;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: url("img/main-bg.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

body * {
    font-family: "Jersey";
}

h1 {
    color: black;
    font-size: 80px;
    margin: 0;
    text-shadow: 3px 3px rgba(255, 255, 255, 0.5);
}

button {
    cursor: pointer;
}

#playButton {
    font-size: 40px;
    background: none;
    border: 5px solid black;
    padding: 10px;
    margin-top: 50px;
}

#playButton:hover {
    border-color: #D8D1C9;
    color: #D8D1C9;
}

canvas {
    background-color: black;
    margin: 0;
    padding: 0;
    display: none;
}

#mobileButtons {
    width: 100%;
    max-width: 720px;
    display: none;
    justify-content: space-between;
    align-items: center;
    position: absolute;
    bottom: 0;
    pointer-events: none;
}

#mobileButtons button {
    padding: 10px;
    background: none;
    border: none;
    filter: opacity(0.5);
    pointer-events: auto;
}

#mobileButtons button img {
    fill: black;
}

#navbar {
    position: absolute;
    top: 0;
    width: calc(100% - 120px);
    max-width: 1440px;
    display: flex;
    justify-content: right;
    align-items: center;
    margin: 10px 60px;
}

#impressumBtn {
    font-size: 24px;
    border: none;
    background: none;
}

#impressumBtn:hover {
    color: white;
}

#navbar button:not(#impressumBtn) {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 100%;
    border: none;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 10px;
}

#navbar img {
    filter: brightness(0);
}

#contextBtn {
    position: relative;
}

#context-menu {
    position: absolute;
    transform: translateY(50px);
    background-color: rgba(255, 255, 255, 0.5);
    padding: 5px;
    display: none;
}

#mover {
    margin-left: 30px;
}

#action {
    display: flex;
    flex-direction: column;
    margin-right: 30px;
    margin-bottom: 10px;
}

#turnOverlay {
    width: 100%;
    height: 100vh;
    background-color: black;
    position: absolute;
    top: 0;
    left: 0;
    color: white;
    display: none;
    justify-content: center;
    align-items: center;
    font-size: 20px;
}

#impressumContainer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

#impressum {
    background-color: rgb(255, 255, 255, 0.7);
    font-size: 20px;
    margin: 60px;
    padding: 20px;
}

#impressum *:not(h2){
    font-size: 20px;
    text-decoration: none;
}

.hidden {
    display: none !important;
}

@media (max-height: 550px) {
    #impressum, #impressum *:not(h2) {
        font-size: 16px;
    }

    #impressum h2 {
        margin: 5px 0;
    }

    #impressum p {
        margin: 5px 0;
    }
}