@font-face {
    font-family: 'zabras';
    src: url('fonts/zabars.ttf') format('woff'),
}

body {
    overflow-x: hidden;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: zabras, Arial, Helvetica, sans-serif;
    background-image: url('img/10_Menu/background.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

/*canvas */

#canvasScreen {
    display: flex;
    justify-content: center;
    position: relative;
}

canvas {
    background-color: black;
}

/*mobile button*/

#buttonBottomMobile {
    display: flex;
    position: absolute;
    justify-content: space-between;
    bottom: 10px;
    z-index: 10;
    width: 100%;
}

.button-mobile-left {
    margin-left: 20px;
    display: flex;
    gap: 40px;
}

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

#buttonRightTop {
    gap: 10px;
    display: flex;
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}

#buttonContainer button {
    margin: 5px;
    padding: 10px;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 5px;
    cursor: pointer;
}

#buttonContainer button:hover {
    background-color: #e0e0e0;
}

#button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
}

.mobile-img-button {
    padding: 5px;
    border-radius: 100%;
    background-color: rgba(0, 0, 0, 0.311);
    width: 35px;
}

.mobile-img-button:focus {
    outline: none;
    box-shadow: none;
}

.mobile-img-button {
    cursor: pointer;
}

.mobile-img-button:hover {
    background-color: rgba(0, 0, 0, 0.5);
}

.mobile-img-button:active {
    transform: scale(0.95);
}

#soundButton {
    position: relative;
    display: inline-block;
}

.x-overlay {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80%;
    height: 80%;
    transform: translate(-50%, -50%);
    display: none;
}

.x-overlay::before,
.x-overlay::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 2px;
    background-color: rgb(228, 9, 9);
    transform-origin: center;
}

.x-overlay::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.x-overlay::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

#soundButton.muted .x-overlay {
    display: block;
}

/*Menu*/

#rotationMobile {
    align-items: center;
    flex-direction: column;
    gap: 10px;
}

#rotationMobile p {
   font-size: 30px;
}

.img-steering {
    width: 30px;
    height: 30px;
}

.individual-elements-control {
    width: 100%;
    display: flex;
    justify-content: space-between;

}

h1 {
    font-size: 60px;
    letter-spacing: 4px;
    line-height: 0px;
}

.navbar-container {
    width: 100%;
    height: 100%;
    border: 4px solid #ffdb04;
    background-color: #fcab3c;
    border-radius: 10px;
}

.navbar {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    width: 100%;
    color: white;
    font-size: 50px;
    height: 100%;
}

p {
    margin-block-start: 0em;
    margin-block-end: 0em;
}

.menu-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100vh;
    overflow-x: hidden;
}

.background {
    width: 100%;
    height: 100vh;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    object-fit: cover;
}

.start_screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 500px;
    height: 400px;
    position: relative;
    margin-left: 20px;
    margin-right: 20px;
}

.start_background {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
}

.steering {
    overflow-x: auto;
    z-index: 2;
    letter-spacing: 3px;
    width: 100%;
    height: 100%;
    color: white;
    font-size: 35px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
}

.steering span {
    margin-bottom: 10px;
}

.menu-return {
    z-index: 2;
    letter-spacing: 2px;
    width: 100%;
    color: white;
    font-size: 40px;
    display: flex;
    justify-content: flex-end;
    flex-direction: column;
    align-items: flex-end;
}

.under-menu {
    justify-content: space-between;
    box-sizing: border-box;
    padding: 10px;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

.menu-return p:hover {
    color: #ffdb04;
    cursor: pointer;

}

.menu-button {
    z-index: 1;
    letter-spacing: 2px;
}

.menu-button:hover {
    padding: 0px;
    color: #ffdb04;
    cursor: pointer;
    box-shadow: 0, 0, 10px, 0, #ffdb04;
}

.d-none {
    display: none;
}

#impressum {    
    overflow-x: auto;
    z-index: 2;
    display: flex;
    flex-direction: column;
    color: white;
    
}

#impressum h1 {
    font-size: 40px;
    letter-spacing: 3px;
}

#impressum p {
    font-size: 20px;
    letter-spacing: 2px;
    margin-top: 20px;
}

.menu-section {
    overflow: hidden;
    align-items: center;
}

/*Won or Lost screen*/

#resumeMenuGame {
    display: flex;
    flex-direction: column;
    font-size: 40px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 4;
    background-color: #fcac3c;
    color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

#resumeMenuGame p {
    cursor: pointer;
    margin: 10px 0;
}

#resumeMenuGame p:hover {
    cursor: pointer;
    margin: 10px 0;
    color: #ffdb04;
}

.won-lost-img {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 3;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.won-lost-img img {
    width: 100%;
    height: 100%;
}

.lost-screen {
    width: 100%;
    ;
    height: 100%;
    ;
}

.mobile-device {

    #canvasScreen {
        height: 100vh;
        justify-content: center;
    }

    #canvasScreen {
        width: 100%;
        height: 100vh;
    }

    canvas {
        width: 100%;
    }

    .menu-section {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    #buttonContainer button {
        padding: 8px;
        font-size: 0.9rem;
    }

    .mobile-img-button {
        width: 30px;
    }
}

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

    #canvasScreen {
        width: 100%;
    }

    canvas {
        width: 100%;
    }

    .menu-section {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    #buttonContainer button {
        padding: 8px;
        font-size: 0.9rem;
    }

    .mobile-img-button {
        width: 30px;
    }
}

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

    canvas {
        height: 100vh;
    }

    #canvasScreen {
        height: 100vh;
    }
}

@media only screen and (max-height: 485px) {
    .start_screen {
        height: 200px;
    }
}