@font-face {
    font-family: 'Super';
    src: url(font/Supersonic\ Rocketship.ttf);
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-image: url(img/5_background/first_half_background.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin: 0;
    height: 100vh;
    width: 100vw;
}

.homescreen-buttons {
    margin-top: 130px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 720px;
}

canvas {
    display: block;
    border-radius: 10px;
    box-shadow: 3px 3px 10px 0px #000000;
}

@media only screen and (max-width: 1400px) {
    .start-screen {
        background-position: right !important;
    }
}

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

    .panel-div,
    .button-panel-main {
        width: 100% !important;
    }

    .name {
        display: none !important;
    }

    .hud-button {
        width: 35px !important;
        height: 35px !important;
        margin: 10px !important;
    }
}

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

    canvas {
        width: 90vw !important;
        height: 80vh;
    }

    .panel-div,
    .button-panel-main {
        width: 100vh !important;
    }

    .hud-button {
        width: 30px !important;
        height: 30px !important;
        margin: 5px !important;
    }

    .name {
        display: none !important;
    }

    .retry-button,
    .restart-button {
        margin-top: 50px !important;
    }

    .win-screen {
        background-image: url('img/9_intro_outro_screens/win/win_1.png');
        background-size: contain !important;
    }

    .impressum {
        width: 400px !important;
        height: 300px !important;
        font-weight: 400 !important;
        font-style: normal !important;
        font-size: 8px !important;
        font-family: Super;
    }
}

h1 {
    font-family: 'Super', Arial, Helvetica, sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 46px;
    color: #ffcc00;
    text-shadow: 4px 4px black;
}

.start-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url('img/9_intro_outro_screens/start/startscreen_1.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 999;
}

.game-over-screen {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('img/9_intro_outro_screens/game_over/game over!.png');
    background-size: cover;
    background-position: center;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    z-index: 10;
}

.win-screen {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('img/9_intro_outro_screens/win/win_1.png');
    background-position: center;
    background-repeat: no-repeat;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    z-index: 10;
}

.start-button {
    margin-top: 20px;
    padding-left: 40px;
    padding-right: 40px;
    font-size: 65px;
    font-family: Super;
    color: black;
    background-color: #ffcc00;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.how-to-play {
    margin-top: 10px;
    font-size: 18px;
    font-family: Super;
    color: black;
    background-color: #ffcc00;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.impressum-txt {
    cursor: pointer;
    margin-top: auto;
    margin-bottom: 35px;
    color: #FFC71F;
    font-family: Super;
}

.impressum-txt:hover {
    font-size: 18px;
}

.retry-button {
    display: none;
    margin-top: 150px;
    font-size: 35px;
    color: black;
    font-family: Super;
    text-shadow: 1px 1px black;
    background-color: #ffcc00;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.mainpage-button {

    margin-top: 20px;
    font-size: 35px;
    color: black;
    font-family: Super;
    text-shadow: 1px 1px black;
    background-color: #ffcc00;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.home-button {
    margin-top: 30px !important;
}

.restart-button {
    display: none;
    margin-top: 150px;
    font-size: 35px;
    color: black;
    text-shadow: 1px 1px black;
    background-color: #ffcc00;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.start-button:hover,
.retry-button:hover,
.restart-button:hover,
.home-button:hover,
.how-to-play:hover,
.mainpage-button:hover {
    background-color: #ffaa00;
    scale: 110%;
}

.panel-div {
    width: 720px;
}

.button-panel-main {
    display: flex;
    flex-direction: row;
    justify-content: space-between !important;
    align-items: center;
}

.hud-button {
    width: 40px;
    height: 40px;
    margin: 15px;
    padding: 5px;
    border: 3px solid black;
    border-radius: 50px;
    cursor: pointer;
}

.how-to-play-div {
    width: 350px;
    height: 300px;
    border: 3px solid #ffaa00;
    border-radius: 10px;
    font-weight: 400;
    font-style: normal;
    font-size: 24px;
    font-family: Super;
    color: black;
    background-color: #ffcc00;
    box-shadow: 3px 3px 10px 0px #000000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.dialog-bg {
    background-color: rgba(0, 0, 0, 0.26);
    z-index: 999;
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.impressum {
    width: 400px;
    height: 450px;
    border: 3px solid #ffaa00;
    border-radius: 10px;
    font-weight: 400;
    font-style: normal;
    font-size: 16px;
    font-family: Super;
    color: black;
    background-color: #ffcc00;
    box-shadow: 3px 3px 10px 0px #000000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.impressum-bg {
    background-color: rgba(0, 0, 0, 0.26);
    z-index: 999;
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.rotate {
    margin-top: 90px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

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

    25% {
        transform: rotate(-45deg) translateX(-10px);
    }

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

    75% {
        transform: rotate(-45deg) translateX(10px);
    }

    100% {
        transform: rotate(0deg) translateX(0);
    }
}

.rotate-img {
    height: 30vh;
    width: 50%;
    animation: rotate 5s linear infinite;
}

.rotateTxT {
    font-weight: 400;
    font-style: normal;
    font-size: 24px;
    color: white;
    text-shadow: 1px 1px black;
}

.d-none {
    display: none;
}

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

.hide-mobile {
    display: none;
}

/* if device has a touch screen */
@media (any-pointer: coarse) {

    .hide-mobile {
        display: flex;
        align-items: center;
        width: 100%;
        height: auto;
    }

    .panel-div {
        display: none;
    }
}