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

* {
    border: 0;
    margin: 0;
    padding: 0;
    font-family: 'arizonia', Arial, Helvetica, sans-serif;
    text-decoration: none;
}

a:visited {
    color: black;
    text-decoration: none;
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgb(255, 174, 39);
    background-image: url('./img/background1.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    height: 100vh;
    overflow-y: hidden;
    overflow-x: hidden;
}

canvas {
    background-color: black;
    display: block;
}

.canvasFullscreen {
    width: 100vw;
    height: 100%;
}

.gameOverScreen {
    position: absolute;
    width: 720px;
    height: 480px;
}

.gameOverScreenFullscreen {
    margin-top: 0px;
    width: 100vw;
    height: 100vh;
}

.youWonScreen {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    width: 720px;
    height: 480px;
}

.youWonScreenFullscreen {
    margin-top: 0px;
    width: 100vw;
    height: 100vh;
}

h1 {
    font-size: 54px;
    text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.4);

}


h2 {
    text-align: center;
}

.controls-box {
    background-color: bisque;
    padding: 8px 100px;
    margin-top: 16px;
}

.controls {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
    font-size: 24px;
}

h3 {
    font-size: 48px;
    background: radial-gradient(circle farthest-corner at center center, #FF8E16 0%, #FBFF00 100%);
    -webkit-background-clip: text;
    color: transparent;
}

.startScreenContainer {
    width: 720px;
    height: 480px;
    z-index: 999;
    position: relative;
}

.startScreenButtons {
    display: flex;
    position: absolute;
    top: 15%;
    left: 50%;
    transform: translate(-50%, -50%);
    gap: 24px;
}

.startButton {
    width: 160px;
    height: 48px;
    font-size: 24px;
    background-color: rgba(255, 165, 0);
    z-index: 999;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.restartButton {
    width: 160px;
    height: 48px;
    font-size: 24px;
    background-color: rgba(255, 165, 0);
    z-index: 999;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.restartButton:hover {
    background-color: RGBA(255, 255, 0);
    cursor: pointer;
}


.startButton:hover {
    background-color: RGBA(255, 255, 0);
    cursor: pointer;
}

.hud {
    width: 660px;
    height: 100vh;
    position: absolute;
    display: flex;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    flex-direction: column;
    justify-content: space-between;
}



.panel {
    display: flex;
    padding-right: 24px;
    padding-left: 8px;
    padding-bottom: 24px;
    padding-top: 12px;
}

.panelup {
    justify-content: flex-end;
    margin-top: 80px;
    margin-right: 72px;
    gap: 8px;
}

.paneldown {
    justify-content: space-between;
    display: none;
    gap: 48px;
}

.panel-wrapper {
    display: flex;

}

.controlButtons {
    background-color: RGBA(255, 165, 0, 1);
    padding: 24px;
    width: 64px;
    height: 64px;
    border-radius: 50px;
    cursor: pointer;
}

.controlButtons:hover {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

img {
    width: 100%;
    height: 100%;
}

.d-none {
    display: none;
}

.impressum {
    margin-top: 48px;
    margin-bottom: 48px;
    padding: 48px;
    font-size: 24px;
    background-color: bisque;
    width: 500px;
    overflow-y: auto;
}

.datenschutz {
    margin-top: 48px;
    margin-bottom: 48px;
    padding: 48px;
    font-size: 24px;
    background-color: bisque;
    width: 500px;
    overflow-y: auto;
}

.backButton {
    width: 160px;
    height: 48px;
    margin-bottom: 24px;
    font-size: 24px;
    background-color: rgba(255, 165, 0);
    z-index: 999;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.turnPhoneMessage {
    height: 100vh;
    width: 100vw;
    position: fixed;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0);
    color: rgba(255, 165, 0);
    font-size: 24px;
    z-index: 1000;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin: 0;
    overflow-y: hidden;
    overflow-x: hidden;
}

@media only screen and (max-width: 720px) {
    #fullscreen {
        width: 100%;
        height: 100vh;
        position:relative;
    }

    .paneldown {
        display: flex;
    }

    .controls-box {
        display: none;
    }

    h1 {
        display: none;
    }

    .panelup {
        margin-top: 0px;
        margin-right: 0px;
    }

    .hideOnPhone {
        display: none;
    }

    #btnMute {
        margin-right: 80px;
    }
}

@media only screen and (max-height: 480px) {
    #fullscreen {
        height: 100vh;
        width: 100%;
    }

    canvas {
        height: 100vh;
        width: 100%;
    }

    .screens {
        height: 100vh;
        width: 100%;
        margin-top: 0;
        z-index: 998;
    }

    .paneldown {
        display: flex;
        margin-left: 32px;
        margin-right: 32px;
    }

    .panelup {
        margin-top: 0px;
        margin-right: 0px;
    }

    .controls-box {
        display: none;
    }

    h1 {
        display: none;
    }

    .hideOnPhone {
        display: none;
    }

    #btnMute {
        margin-right: 80px;
    }

    .panel-wrapper {
        gap: 24px;
    }
}