@import url("https://fonts.googleapis.com/css?family=Lato&display=swap");
@font-face {
    font-family: "Jungle";
    src: url(./fonts/JungleFever.woff) format("woff");
}
@font-face {
    font-family: "Ethnocentric";
    src: url(./fonts/Ethnocentric.woff) format("woff");
}
:root {
    --scale-value: 1;
    --old-in-button-color: #412c17;
    --in-button-color: #e4f6f5;
    --bomb-color: hsl(72, 100%, 50%);
    --color-roboczy: #ff00cc4d;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

*:focus {
    outline: transparent;
}

body {
    background-color: #000900;
    user-select: none;
    overflow-x: hidden;
    font-family: Lato;
}

.game {
    position: absolute;
    display: flex;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    justify-content: center;
    align-items: center;
}

.game__container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(var(--scale-value));
    transform-origin: center;
    width: 1080px;
    height: 1920px;
    background-image: url("./images/title_bg.png");
    background-size: contain;
    background-repeat: repeat;
    background-position: center;
}

.game__layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.start-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 210px;
}

.start-screen__header {
    display: flex;
    flex-grow: 0;
    padding: 0;
    border: none;
    margin-bottom: 400px;
    background-image: url("./images/title_header.png");
    background-color: transparent;
    background-size: contain;
    background-repeat: no-repeat;
    cursor: none;
    width: 978px;
    height: 380px;
    outline: transparent;
}

.start-screen__button {
    display: flex;
    flex-grow: 0;
    margin-top: 100px;
    padding: 0;
    border: 0;
    background-image: url("./images/start_button.png");
    background-color: transparent;
    background-size: contain;
    background-repeat: no-repeat;
    width: 421px;
    height: 171px;
    cursor: pointer;
    transition: all 0.3s;
}

.start-screen__button--is-settings {
    background-image: url("./images/settings_button.png");
    transition: all 0.3s;
}

.level-select {
    position: absolute;
    width: 100%;
    height: 3000px;
    flex-wrap: nowrap;
    flex-direction: column;
    background-image: url("./images/levelselect_map0.png");
    background-size: initial;
    background-repeat: repeat;
    background-position: top;
    background-attachment: scroll;
}

.level-select__button {
    position: absolute;
    width: 202px;
    height: 238px;
    display: block;
    border: 0;
    font-size: 48px;
    padding-top: 33px;
    font-family: Ethnocentric;
    color: var(--in-button-color);
    background-size: cover;
    background-color: transparent;
}

.level-select__button--star {
    background-image: url("./images/Button_01.png");
    cursor: pointer;
    transition: all 0.3s;

    &&:hover {
        transform: scale(1.1);
    }
}

.level-select__button--active {
    background-image: url("./images/Button_00active.png");
    cursor: pointer;
    transition: all 0.3s;
    filter: brightness(150%);
    animation: pulse 1s infinite alternate;

    &&:hover {
        transform: scale(1.1);
    }
}

.level-select__button--disabled {
    background-image: url("./images/Button_00disabled.png");
    cursor: default;
}

#level1 {
    top: 50px;
    left: 20px;
}

#level2 {
    top: 50px;
    left: 450px;
}

#level3 {
    top: 150px;
    left: 863px;
}

#level4 {
    top: 650px;
    left: 863px;
}

#level5 {
    top: 790px;
    left: 450px;
}

#level6 {
    top: 930px;
    left: 35px;
}

#level7 {
    top: 1430px;
    left: 35px;
}

#level8 {
    top: 1630px;
    left: 450px;
}

#level9 {
    top: 1630px;
    left: 865px;
}

#level10 {
    top: 2070px;
    left: 865px;
}

#level11 {
    top: 2070px;
    left: 450px;
}

#level12 {
    top: 2195px;
    left: 35px;
}

#level13 {
    top: 2610px;
    left: 35px;
}

#level14 {
    top: 2740px;
    left: 410px;
}

#level15 {
    top: 2740px;
    left: 850px;
}

.game-screen {
    position: fixed;
}

.end-screen {
    z-index: 11;
    margin-top: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-image: url("./images/result-screen.png");
    background-color: transparent;
    background-size: contain;
    backdrop-filter: blur(2px);
    background-repeat: no-repeat;
    background-position: center top;
}

.end-screen--is-win {
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.end-screen--is-win__header {
    background-image: url("./images/win_header.png");
    background-color: transparent;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: 399px;
    height: 59px;
    margin-top: 55px;
    margin-bottom: 200px;
}

.end-screen--is-win__logo {
    background-image: url("./images/win_planet.png");
    background-color: transparent;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: 400px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.end-screen--is-win__logo1 {
    background-image: url("./images/win_shield.png");
    background-color: transparent;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: 103px;
    height: 119px;
}

.end-screen--is-lose {
    background: transparent;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.end-screen--is-lose__header {
    background-image: url("./images/lose_header.png");
    background-color: transparent;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    display: block;
    width: 453px;
    height: 60px;
    margin-top: 55px;
    margin-bottom: 200px;
}

.end-screen--is-lose__logo {
    background-image: url("./images/lose_planet.png");
    background-color: transparent;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    display: block;
    width: 400px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.end-screen--is-lose__logo1 {
    background-image: url("./images/lose_skull.png");
    background-color: transparent;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: 164px;
    height: 200px;
}

.end-screen__header {
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    font-family: Lato, Helvetica, sans-serif;
}

/* .end-screen__points {
    margin: 10px 20px 30px;
    text-align: center;
} */

.end-screen__buttons-wrapper {
    display: flex;
    justify-content: space-around;
}

.end-screen__button {
    border: 0;
    width: 210px;
    height: 210px;
    margin: 50px 25px;
    background-image: url("./images/Close_BTN.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-color: transparent;
    cursor: pointer;
    transition: all 0.3s;

    &&:hover {
        background-image: url("./images/Close_BTN_hover.png");
    }
}

.end-screen__button--is-restart {
    background-image: url("./images/Replay_BTN.png");
    transition: all 0.3s;

    &&:hover {
        background-image: url("./images/Replay_BTN_hover.png");
    }
}

.settings-screen {
    left: 70px;
    top: 260px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 940px;
    height: 1400px;
    z-index: 10;
    background-image: url("./images/settings-screen.png");
    background-color: transparent;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    backdrop-filter: blur(2px);
}

.settings-screen__header {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 435px;
    height: 59px;
    margin-top: 40px;
    background-color: transparent;
    background-image: url("./images/settings-header.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.settings-screen__buttons-group {
    display: flex;
    justify-content: center;
    margin-top: 180px;
}

.settings-screen__button {
    margin-right: 10px;
    width: 210px;
    height: 210px;
    border: 0;
    background-color: transparent;
    background-size: contain;
    cursor: pointer;
}

.settings-screen__button--is-music {
    background-image: url("./images/Music_BTN.png");
    transition: all 0.3s;

    &&:hover {
        background-image: url("./images/Music_BTN_hover.png");
    }
}

.settings-screen__button--is-up {
    background-image: url("./images/Forward_BTN.png");
    transition: all 0.3s;

    &&:hover {
        background-image: url("./images/Forward_BTN_hover.png");
    }
}

.settings-screen__button--is-down {
    background-image: url("./images/Backward_BTN.png");
    transition: all 0.3s;

    &&:hover {
        background-image: url("./images/Backward_BTN_hover.png");
    }
}

.settings-screen__button--is-sound {
    background-image: url("./images/Sound_BTN.png");
    transition: all 0.3s;

    &&:hover {
        background-image: url("./images/Sound_BTN_hover.png");
    }
}

.settings-screen__button--is-exit {
    margin-top: 180px;
    background-image: url("./images/Close_BTN.png");
    transition: all 0.3s;

    &&:hover {
        background-image: url("./images/Close_BTN_hover.png");
    }
}

.full-screen-layer {
    top: unset;
    right: 25px;
    bottom: 120px;
    left: unset;
    width: 50px;
    height: 50px;
}

.full-screen-layer__button {
    width: 75px;
    height: 75px;
    border: 0;
    background-color: transparent;
    background-size: contain;
    background-image: url("./images/Full_Screen_BTN.png");
    cursor: pointer;
    transition: all 0.3s;

    &&:hover {
        background-image: url("./images/Full_Screen_hover_BTN.png");
    }
}

.misiile-layer {
    top: unset;
    left: 25px;
    bottom: 400px;
    width: 100px;
    height: 100px;
}

.missile-layer__button {
    width: 100px;
    height: 100px;
    border: 0;
    background-color: transparent;
    background-size: contain;
    background-image: url("./images/missile.png");
    cursor: pointer;
}

.loading-screen {
    margin-top: 800px;
    left: 40px;
    width: 1001px;
    height: 300px;
    background-color: transparent;
    backdrop-filter: blur(2px);
    border-radius: 50px;
}

.loading-screen__bar {
    position: relative;
    background: transparent;
    background-image: url(./images/loaded_bar.png);
    background-position: left center;
    max-width: 100%;
    height: 40px;
    left: 0px;

    &&::before {
        content: "";
        position: absolute;
        background: transparent;
        background-image: url(./images/loading_bar.png);
        background-repeat: no-repeat;
        background-position: center;
        width: 1001px;
        height: 51px;
        left: -6px;
        bottom: -6px;
        z-index: -1;
    }
}

.loading-screen__info {
    margin-top: 80px;
    margin-bottom: 20px;
    color: rgb(175, 228, 35);
    font-family: Impact;
    font-size: 48px;
    text-align: center;
}

.hidden {
    display: none;
}

.slid {
    /* display: none; */
    transform: translateY(-300vh);
    transition: all 0.5s;
}

.apear {
    transform: translateY(0vh);
    transition: all 0.5s;
}

@keyframes pulse {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.1);
    }
}
