body {
    background-color: rgba(0, 0, 0, 0.856);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    height: 100svh;
    overflow: hidden;
    background-image: url(./img/background/bg3.jpg);
    background-position: 50% 70%;
    background-attachment: fixed;
    background-size: cover;
    background-repeat: no-repeat;
    font-family: 'Ultra', 'Arial', 'Helvetica', 'sans-serif';
}

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

body,
html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#turnDisplay {
    z-index: 100;
    height: 100vh;
    background-color: rgba(21, 22, 27, 0.999);
    display: none;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    text-align: center;
    color: rgba(239, 237, 237);
    text-shadow: 2px 2px 3px #A02209;
    letter-spacing: 5px;
}

#main-container {
    position: relative;
    overflow: hidden;
}

#main-container:fullscreen {
    width: 100vw;
    height: 100vh;
}

#main-container:-webkit-full-screen {
    width: 100vw;
    height: 100vh;
}

#main-container:-moz-full-screen {
    width: 100vw;
    height: 100vh;
}

#main-container:-ms-fullscreen {
    width: 100vw;
    height: 100vh;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    background-color: rgba(0, 0, 0, 0.8);
    background-image: url('img/9_intro_outro_screens/start/startscreen_1.png');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.overlay-end {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    background-color: rgba(0, 0, 0, 0.8);
    background-image: url('img/9_intro_outro_screens/game_over/game over!.png');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.overlay-win {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    background-color: rgba(0, 0, 0, 0.8);
    background-image: url('img/9_intro_outro_screens/win/win_2.png');
    background-repeat: no-repeat;
    background-size: 460px 460px;
    background-position: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

button {
    padding: 10px 20px;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.8);
    color: #A02209;
    border-color: #A02209;
    margin-top: -270px;
    font-size: 20px;
    cursor: pointer;
    font-family: 'Ultra', 'Arial', 'Helvetica', 'sans-serif';
}

h1 {
    font-size: 40px;
    letter-spacing: 1px;
    color: #A02209;
    text-shadow: 2px 2px 3px rgba(255, 255, 255, 0.6);
}

span {
    font-size: 18px;
    letter-spacing: 1px;
    color: #A02209;
    text-shadow: 2px 2px 3px rgba(255, 255, 255, 0.6);
}

.footer {
    position: absolute;
    bottom: 30px;
    left: auto;
}

.overlay-impressum {
    letter-spacing: 1px;
    color: #A02209;
    text-shadow: 2px 2px 3px rgba(255, 255, 255, 0.6);
    text-decoration: none;
}

.fullscreen {
    position: absolute;
    bottom: 0;
    right: 0;
    margin: 10px;
}

.fullscreen img {
    height: 22px;
    width: 22px;
    cursor: pointer;
    margin: 10px;
}

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

.volume {
    position: absolute;
    right: 40px;
    bottom: 0;
    margin: 10px;
}

.volume img {
    height: 24px;
    width: 24px;
    cursor: pointer;
    margin: 10px;
}

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

#overlayScreen {
    display: none;
}

.impressum {
    font-size: 18px;
    padding: 16px 48px 16px 48px;
    border-radius: 12px;
    color: #A02209;
    text-shadow: 2px 2px 2px rgb(247, 242, 242);
    text-align: center;
    background-image: url('img/5_background/layers/air.png');
    background-position: 50% 50%;
    background-size: cover;
    background-repeat: no-repeat;
}

/* Smartphone */

@media only screen and (min-width: 720px) {
    #turnDisplay {
        display: none;
    }
}

@media only screen and (max-width: 950px) {

    .volume {
        position: absolute;
        top: 30px;
        right: 20px;
        margin: 10px;
    }

    .fullscreen {
        display: none;
        /* position: absolute;
        top: 32px;
        right: 20px;
        margin: 10px; */
    }

    h1 {
        display: none;
    }

    #mainScreen,
    #startScreen,
    #overlayScreen,
    #turnDisplay{
        height: 100svh;
        overflow: hidden !important;
    }

    span {
        font-size: 16px;
    }

    .footer {
        display: none;
    }
}

@media only screen and (max-width: 660px) {

    body {
        display: block;
        background: none;
        background-color: black;
    }

    span {
        display: none;
    }

    #turnDisplay {
        display: flex;
        z-index: 20000;
        background-color: rgb(0, 0, 0);
        height: 100svh;
    }

    .turn-h2 {
        color: white;
        font-weight: 400;
        font-size: 32px;
        line-height: 48px;
    }

    .footer {
        display: none;
    }

    #sideMenu {
        display: none;
    }

    #mobileActionButtons {
        box-sizing: border-box;
        width: 100%;
        padding: 0px 80px;
        position: absolute;
        bottom: 4px;
        display: flex;
        justify-content: space-between;
    }

    #mobileActionButtons div {
        display: flex;
        gap: 32px;
    }

    #mobileActionButtons img {
        height: 40px;
        width: 40px;
        padding: 10px;
        background-color: rgba(255, 255, 255, 0.8);
        border-radius: 50%;
    }

    #bottle {
        height: 50px !important;
        width: 50px !important;
        padding: 5px !important;
        rotate: 30deg;
    }
}

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

    title {
        position: absolute;
        top: 0;
    }

    body {
        display: block;
    }

    #mainScreen,
    #startScreen,
    #overlayScreen,
    canvas {
        height: 100svh;
    }

    #overlayScreen {
        display: block;
    }

    #mobileActionButtons {
        box-sizing: border-box;
        width: 100%;
        padding: 0px 56px;
        position: absolute;
        bottom: 4px;
        display: flex;
        justify-content: space-between;
    }

    #mobileActionButtons div {
        display: flex;
        gap: 56px;
    }

    #mobileActionButtons img {
        height: 40px;
        width: 40px;
        padding: 10px;
        background-color: rgba(255, 255, 255, 0.8);
        border-radius: 50%;
    }

    #bottle {
        height: 50px !important;
        width: 50px !important;
        padding: 5px !important;
        rotate: 30deg;
    }
}