@font-face {
    font-family: 'luckiestGuy';
    src: url('img/fonts/luckiestGuy.ttf')
}

body {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    overflow-y: hidden;
    margin: 0;
    background-image: url('img/assests/dragon-scales.svg');
    background-position: center;
    font-family: 'luckiestGuy', Arial, 'Helventica', sans-serif;
}

.canvas {
    z-index: -1;
}

.d-none {
    display: none !important;
}

.v-none {
    visibility: hidden;
}

.headline {
    display: flex;
    justify-content: center;
}

/* == Start screen ==*/

.headline h1 {
    color: azure;
    -webkit-text-stroke: 2px black;
    font-size: 60px;
    font-weight: lighter;
    margin-bottom: 20px;
}

.canvas-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 300px;
    width: 720px;
    height: 480px;


}

.canvas-border {
    border: 20px groove rgba(35, 137, 204, 0.9);
    border-radius: 10px;
}

.start-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-size: cover;
    object-fit: contain;

}

.panel-top {
    height: 20%;
    z-index: 2;
    display: flex;
    justify-content: flex-end;
}


.panel-top img {
    padding: 12px;
    width: 50px;
    height: 50px;
    filter: brightness(0) invert(1);
}

.imprint-container img:hover,
.privacy-container img:hover,
.legal-notice-points p:hover,
.settings-img:hover {
    cursor: pointer;
    filter: brightness(0.7) invert(0.7)
}


.panel-middle {
    height: 60%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}


.button {
    border-color: white;
    border-style: solid;
    border-width: 2px 2px;
    border-radius: 20px;
    font-family: 'luckiestGuy', Arial, 'Helventica', sans-serif;
    font-size: 24px;
    width: 180px;
    height: 50px;
}


.yellow {
    background-color: #FCEE21;
}


.button:hover {
    cursor: pointer;
    transform: translate(0px, 5px);
    -webkit-transform: translate(0px, 5px);
    box-shadow: 0px 1px 0px 0px;
}


/* == Loading screen == */

.loading-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    background-color: lightblue;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.loading-screen img {
    width: 300px;
    height: 250px;
}


.loading-bar-container {
    width: 400px;
    height: 20px;
    border: 1px solid #4e4949;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 100px;
}

.loading-bar {
    display: flex;
    justify-content: flex-end;
    color: white;
    width: 0;
    height: 20px;
    background-color: #0909e6;
    border-radius: 10px;
    transition: width 0.5s ease-in-out;
}


/* == Endscreen == */

.end-screen-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background-color: rgb(7, 3, 58);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.end-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

}

.end-screen h1 {
    font-size: 70px;
    color: red;
}

.end-screen img {
    width: 200px;
    height: 150px;
}

.button-container {
    margin-top: 30px;
    display: flex;
    gap: 20px
}


/* == Rotate the device scrren == */

@-moz-keyframes spin {
    25% {
        -webkit-transform: rotate(90deg);
    }

    50% {
        -webkit-transform: rotate(90deg);
    }

    75% {
        -webkit-transform: rotate(0deg);
    }
}

@-webkit-keyframes spin {
    25% {
        -webkit-transform: rotate(90deg);
    }

    50% {
        -webkit-transform: rotate(90deg);
    }

    75% {
        -webkit-transform: rotate(0deg);
    }
}

@keyframes spin {
    25% {
        -webkit-transform: rotate(90deg);
    }

    50% {
        -webkit-transform: rotate(90deg);
    }

    75% {
        -webkit-transform: rotate(0deg);
    }
}

@keyframes scaleIn {
    0% {
        scale: 0;
    }

    100% {
        scale: 1;
    }
}

.rotate-device-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 48px;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 5;
}

.rotate-device-screen img {
    height: 96px;
    width: 96px;
    filter: invert();
}

.rotate-device-screen span {
    color: white;
    font-size: 32px;
    text-shadow: 5px 5px 5px rgba(0, 0, 0, 0.8);
    text-align: center;
}

.rotate-phone {
    -webkit-animation: spin 3s ease-in-out infinite;
    -moz-animation: spin 3s linear infinite;
    animation: spin 3s linear infinite;
}


/* == Mobile Keys ==*/

.panel-bottom {
    height: 20%;
}


.mobile-button-container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;

}

.key-block {
    display: flex;
    gap: 20px;
    margin: 5px;
}


.mobile-button {
    border: none;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: rgb(102, 111, 234);
}

.mobile-button img {
    width: 30px;
    height: 30px;
    filter: brightness(0) invert(1);
}

/* == Scroll bar ==*/

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #2A3647;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2A3647;
}


/* == Media Queries ==*/

@media (max-width: 800px),
(max-height: 480px) {

    .canvas-container {
        border: none;
        border-radius: 0;
        height: auto;
        width: auto;
    }


    .start-screen {
        height: 100vh;
        position: absolute;
    }


    body {
        display: flex;
        justify-content: flex-start;
        width: 100vw;
        height: 100vh;
        overflow-y: hidden;
    }


    .settings-overlay {
        margin-top: 20px;
    }


    .headline h1 {
        display: none;
    }

    .imprint-container,
    .privacy-container {
        height: 300px;
    }

    .end-screen h1 {
        font-size: 50px;
        color: red;
    }

    .end-screen img {
        width: 150px;
        height: 100px;
    }
}

@media only screen and (max-width:720px) {
    canvas {
        width: 100vw;
    }
}

@media only screen and (max-height:480px) {
    canvas {
        height: 100vh;
    }
}




@media(max-width: 600px) {

    ::-webkit-scrollbar {
        width: 0px;
    }

    ::-webkit-scrollbar-track {
        background: transparent;
    }


    ::-webkit-scrollbar-thumb {
        background: transparent;
        border-radius: 4px;
    }


    ::-webkit-scrollbar-thumb:hover {
        background: transparent;
    }


}