@font-face {
    font-display: swap;
    font-family: 'Ultra';
    font-style: normal;
    font-weight: 400;
    src: url('./fonts/ultra-v19-latin-regular.woff2') format('woff2');
}

/* === GENERAL === */

html {
    font-family: 'Ultra', Arial, Helvetica, sans-serif;
    font-size: 16px;
}

body {
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-image: url(./img/background.JPG);
    background-size: cover;
    overflow-y: hidden;
}

/* === GLOBAL === */

.dNone {
    display: none !important;
}

.btnStyle {
    padding: 5px 10px;
    width: 110px;
    height: 40px;
    background-color: #FF9601;
    border: none;
    border-radius: 5px;
    color: white;
    font-family: 'Ultra';
    font-size: 1.1rem;
    cursor: pointer;
}

.btnStyle:hover {
    background-color: #e88904;
    transform: scale(1.1);
}

.closeBtnStyle {
    background-image: url(./img/control/close.png);
    border: none;
    background-color: #FF9601;
    background-size: 15px 15px;
    background-repeat: no-repeat;
    width: 15px;
    height: 15px;
    position: absolute;
    right: 10px;
    top: 10px;
    cursor: pointer;
}

.closeBtnStyle:hover {
    transform: scale(1.1);
}

#gameScreen {
    position: relative;
    height: 480px;
    width: 720px;
}

.infoWindowStyle {
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
}

.rotateImgStyle {
    animation: rotate 3s infinite;
    display: none;
    width: 128px;
    height: 128px;
}

@keyframes rotate {
    0% {
        transform: rotate(-47deg);
    }

    50% {
        transform: rotate(47deg);
    }

    100% {
        transform: rotate(-47deg);
    }
}

.headline {
    text-shadow: 4px 4px 5px rgba(0, 0, 0, 0.3);
    letter-spacing: 2px;
}

/* === LICENSE-WINDOW === */

.attributeBtn {
    width: fit-content;
    margin-top: 20px;
    box-shadow: rgba(0, 0, 0, 0.25) 0px 54px 55px, rgba(0, 0, 0, 0.12) 0px -12px 30px, rgba(0, 0, 0, 0.12) 0px 4px 6px, rgba(0, 0, 0, 0.17) 0px 12px 13px, rgba(0, 0, 0, 0.09) 0px -3px 5px;
}

#linkMainContainer {
    width: 100%;
    height: 100%;
    position: absolute;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 5;
    display: flex;
    justify-content: center;
    align-items: center;
}

.linkWindow {
    width: 550px;
    height: auto;
    padding: 20px;
    background-color: #FF9601;
    display: flex;
    border-radius: 10px;
    justify-content: center;
    position: relative;
}

.linkWindow>ul {
    margin: 0;
}

.linkWindow>ul>li {
    color: white;
}

.attributeLinkStyle {
    color: white;
    text-decoration: none;
    height: max-content;
}

.attributeLinkStyle:hover {
    text-decoration: underline;
}

/* === LOADING-SCREEN === */

#loadingScreen {
    width: 100%;
    height: 100%;
    background-image: url(./img/5_background/second_half_background.png);
    background-size: 100% 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    right: 0;
    animation: fadeIn 100ms ease-out;
}

.loadingImg {
    margin-bottom: 20px;
    animation: spin 3s linear infinite;
}

.loadingStatus {
    font-size: 1.5rem;
}

.fadeOut {
    opacity: 0;
    transition: opacity 1s ease-in;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* === START-SCREEN === */

#starScreen {
    width: 100%;
    height: 100%;
    background-image: url(./img/9_intro_outro_screens/start/startscreen_1.png);
    background-size: 100% 100%;
    display: flex;
    align-items: center;
    flex-direction: column;
    position: relative;
    animation: fadeIn 500ms ease;
}

@keyframes fadeIn {
    0% {
        opacity: .5;
    }

    100% {
        opacity: 1;
    }
}

.btnContainer {
    width: 250px;
    display: flex;
    justify-content: space-between;
    margin-top: 50px;
}

#gameInfo {
    width: 450px;
    height: 100px;
    padding: 10px;
    background-color: #FF9601;
    display: flex;
    justify-content: space-around;
    align-items: center;
    position: relative;
    border-radius: 10px;
    animation: fadeIn 225ms ease;
}

.controlContainer {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.controllerImg {
    width: 50px;
}

/* === CANVAS === */

#canvasContainer {
    position: relative;
    width: 100%;
    height: 100%;
    animation: fadeIn 1500ms ease-out;
}

canvas {
    background-color: black;
    position: absolute;
    height: 100%;
    width: 100%;
}

#ingameControl {
    position: absolute;
    top: 10px;
    left: 50%;
    z-index: 1;
    transform: translateX(-50%);
    width: 130px;
    display: flex;
    justify-content: space-between;
}

.ingameControlBtn {
    background-size: 25px 25px;
    background-color: transparent;
    background-repeat: no-repeat;
    border: none;
    width: 25px;
    height: 25px;
    cursor: pointer;
}

.ingameControlBtn:hover {
    transform: scale(1.1);
}

#volumeBtn {
    background-image: url(./img/control/volume.png);
}

#infoIngameBtn {
    background-image: url(./img/control/arrows.png);
}

#pauseBtn {
    background-image: url(./img/control/pause.png);
}

#fullScreenBtn {
    background-image: url(./img/control/fullscreen.png);
}

#ingameInfoContainer {
    z-index: 2;
}

#mobileControler {
    width: 100%;
    height: 12%;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    display: flex;
    justify-content: space-around;
    display: none;
}

.mobileBtn {
    width: 35px;
    height: 35px;
    background-size: 35px 35px;
    background-color: transparent;
    border: none;
    cursor: pointer;
}

.mobileBtn:active {
    transform: scale(1.2);
}

#jumpKey {
    background-image: url(./img/control/up.png);
}

.leftHand,
.rightHand {
    width: 150px;
    display: flex;
    justify-content: space-between;
}

.rightHand {
    width: 100px;
}

#throwKey, #shortThrowKey {
    background-image: url(./img/control/bottle.png);
}

#leftKey {
    background-image: url(./img/control/left.png);
}

#rightKey {
    background-image: url(./img/control/right.png);
}

/* === END-SCREEN === */

#endScreen {
    background-size: 100% 100%;
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
    z-index: 2;
    animation: fadeIn 500ms ease-out;
}

.restartBtn {
    width: fit-content;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 50px;
    padding: 5px 10px;
    width: fit-content;
    height: 40px;
    background-color: #FF9601;
    border: none;
    border-radius: 5px;
    color: white;
    font-family: 'Ultra';
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 50px 100px -20px, rgba(0, 0, 0, 0.3) 0px 30px 60px -30px, rgba(10, 37, 64, 0.35) 0px -2px 6px 0px inset;
}

.restartBtn:hover {
    background-color: #e88904;
}

.gameOverImg {
    width: 100%;
    height: 100%;
}

/*  === MEDIA-QUERIES === */

@media (max-width: 900px) {

    #mobileControler {
        display: flex;
    }
}

@media (max-width: 666px) {

    body {
        justify-content: space-evenly;
    }

    #gameScreen {
        display: none;
    }

    .headline {
        color: white;
    }

    .rotateImgStyle {
        display: block;
    }
}

@media (max-height: 500px) {

    #gameScreen {
        width: 100vw;
        height: 100vh;
    }

    .headline {
        display: none;
    }

    .attributeBtn {
        display: none;
    }

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