* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: impact;
    cursor: default;
    overflow: hidden;


    /* TEXT HIGHLIGHTING deact*/
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
     -khtml-user-select: none; /* Konqueror HTML */
       -moz-user-select: none; /* Old versions of Firefox */
        -ms-user-select: none; /* Internet Explorer/Edge */
            user-select: none; /* Non-prefixed version, currently
                                  supported by Chrome, Edge, Opera and Firefox */

}

body {
    width: 100vw;
    height: 100vh;
    background: black;
    cursor: none;
}


canvas {
    top: 0;
    left: 0;
    z-index: -1; /*"-1" is important for the canvas */
    position: absolute;
    opacity: 90%;
}

/* Hide-class for dynamicly displaying and removing HTML elements*/
.hide {
    display: none !important;
}



/* SETTINGS MENU */
#settingsMenu {
    background: rgba(255, 255, 255, 0.1);
    position: fixed;
    bottom: 0px;
    width: 100vw;
    
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    flex-direction: row;
    
    height: 120px;
    margin-bottom: -120px;
    transition: 0.3s ease-out;
}

#drawCheckboxesDiv {
    display: flex;
    flex-direction: column;
    color: white;
    font-size: 1.5rem;
}
#drawCheckboxesDiv input {
    width: 18px;
    height: 18px;
}

/* SETTINGS MENU */



#btnSettingsMain {
    position: fixed;
    bottom: 0;
    right: 0;
    margin: 10px;
    background: transparent;
    margin: 10px;
    border: none;
    box-shadow: none;
    transition: 0.5s ease-in-out;
    border-radius: 100%;
}

#btnSettingsMain:hover {
    filter: brightness(1.5);
    transform: rotateZ(-90deg);
}

#btnSettingsMain img {
    width: 60px;
}



p{
    z-index: 1; 
    font-size: 1.5rem;
    color: white;
}


/*   BUTTONS    */
button{
    font-size: 1.5rem;
    transition: 0.2s box-shadow ease-in-out;
}
button:hover{
    box-shadow: 1px 1px 20px white;
}
/*   BUTTONS    */



/*   HOME MENU  */
#homeMenu {
    margin-top: 20vh;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
}

#homeMenu button {
    background: transparent;
    border: 4px solid white;
    color: white;
    width: 300px;
    font-size: 3rem;
    padding: 10px;
    margin-top: 2%;
}
/*   HOME MENU  */




/*   "ESCAPE" MENU  */
#escapeMenu {
    margin-top: 20vh;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
}

#escapeMenu button {
    background: transparent;
    border: 4px solid white;
    color: white;
    width: 300px;
    font-size: 3rem;
    padding: 10px;
    margin-top: 2%;
}
/*   "ESCAPE" MENU  */


#btnDevMode {
    opacity: 0.2;
}


/*   GameOver MENU  */
#gameOverMenu {
    margin-top: 20vh;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
}
#gameOverMenu p {
    text-shadow: 2px 2px 20px red;
    font-size: 6rem;
}

#gameOverMenu button{
    background: transparent;
    border: 4px solid white;
    color: white;
    width: 200px;
    font-size: 2rem;
    padding: 10px;
    margin-top: 2%;
}
/*   GameOver MENU  */


/* inventory Container*/
#inventoryContainer{
    position: absolute;
    width: 20%;
    min-width: 350px;
    height: 10%;
    left: 5%;
    top: 0%;
}

#inventoryContainerBackground{
    background: transparent;
    border: 4px solid white;
    width: 95%;
    height: 80%;
    box-shadow: 2px 2px 10px white;
}

#inventoryList{
    list-style: none;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}
.inventorySpaceLocked{
    background-color: rgba(240, 46, 46, 0.404) !important;
}


#inventoryList li{
    width: 23%;
    height: 85%;
    display: inline-block;
    background: transparent;
    border: 2px solid white;
    color: white;
    text-align: center;
}

/*shop container*/
#shopContainer{
    position: absolute;
    width: 20%;
    min-width: 350px;
    height: 10%;
    left: 5%;
    top: 10%;
}

#shopContainerBackground{
    background: transparent;
    border: 4px solid white;
    width: 95%;
    height: 80%;
    box-shadow: 2px 2px 10px white;
}

#shopList{
    list-style: none;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}

#shopList li{
    width: 23%;
    height: 85%;
    display: inline-block;
    background: transparent;
    border: 2px solid white;
    color: white;
    text-align: center;
}


#devCounter{
    position: fixed;
    z-index: 3;
}


/* BOTTOM UI */
#bottomUI {
    display: flex;
    justify-content: space-evenly; /* x-Achse */
    align-items: center; /* y-Achse */
    position: fixed;
    bottom: 0;
    margin-bottom: 1%;
    width: 35%;
}

#healthBarContainer {
    width: 200px;
    height: 14px;
    background-color: rgb(179, 179, 179);
    border-radius: 10px;
    position: relative;
    padding: 5px;
}

#healthBarLife {
    top: 1px;
    left: 1px;
    width: 99%;
    height: 12px;
    background-color: rgb(62, 139, 78);
    transition: width .8s linear;
    position: absolute;
    border-radius: 10px;
    z-index: 2;
    box-shadow: 3px 3px 10px rgb(93, 172, 100);
}

#healthBarHit{
    top: 1px;
    left: 1px;
    background-color: rgb(184, 70, 70, 0.5);
    width: 99%;
    height: 12px;
    position: absolute;
    border-radius: 10px;
    transition: width .8s linear;
    z-index: 1;

}

#levelBarContainer {
    width: 200px;
    height: 14px;
    background-color: rgb(179, 179, 179);
    border-radius: 10px;
    position: relative;
    padding: 5px;

}

#levelBar {
    top: 1px;
    left: 1px;
    width: 0%;
    height: 12px;
    background-color: rgb(17, 98, 173);
    transition: width .8s linear;
    position: absolute;
    border-radius: 10px;
    z-index: 2;
    box-shadow: 3px 3px 10px rgb(81, 140, 180);
}
/* BOTTOM UI */




/* StarWars Credits */
#starWarsCreditsContainer {
    perspective: 380px; /*how far object away from user*/
    perspective-origin: bottom;
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    height: 100vh;
}

#btnBackFromCredits {
    background: transparent;
    border: none;
    color: white;
    width: 50px;
    font-size: 3rem;
    margin: 10px;
    padding: 10px;
    transition: transform 0.2s ease-in-out;
}

#btnBackFromCredits:hover {
    box-shadow: none;
    transform: translateX(25%);
}

#btnBackFromCredits img {
    width: 100%;
    filter: invert(100%);
    -webkit-filter: invert(100%);
}

#starWarsCreditsContainer p {
    color: #ffbe00;
    font-family: sans-serif;
    padding: 0.5rem 0;
    font-size: 5vw;
    line-height: 1.3;
}

#headings {
    margin-bottom: 5rem;
}

#starWarsCreditsContainer h1 {
    color: #ffbe00;
    font-family: sans-serif;
    font-size: 2.5rem;
    text-align: center;
}

#starWarsCreditsContainer h2 {
    color: #ffbe00;
    font-family: sans-serif;
    text-transform: uppercase;
    font-size: 3rem;
    text-align: center;
}

#credits {
    position: absolute;
    left: 13%;
    right: 13%;
    height: 100%;
    overflow: visible;
    animation: play 60s infinite;
}

@keyframes play{
    0% {
        transform: rotateX(15deg) translate3d(0, 70rem, 0);
        opacity: 1;
    }
    85% {
        opacity: 0.5;
    }
    100% {
        transform: rotateX(15deg) translate3d(0, -150rem, 0);
        opacity: 0;
    }
}

/* StarWars Credits */




/* TUTORIAL */
#tutorialDiv {
    height: 100vh;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-direction: column;
}

#tutorialDiv img{
width: 80%;
border: 2px solid white;
box-shadow: 2px 2px 20px white;
}

#imageSlider {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
}

#imageSlider button img {
    filter: invert(100%);
    border: none;
    box-shadow: none;
}

#imageSlider button {
    background: transparent;
    border: none;
    width: 40px;
}
#imageSlider button:hover {
    box-shadow: none;
    border: none;
    width: 45px;
}

#btnForwardTutorial {
    transform: rotateZ(180deg);
}

#btnBackFromTutorial {
    background: transparent;
    border: 4px solid white;
    color: white;
    width: 200px;
    font-size: 2rem;
    padding: 10px;
}



/* TUTORIAL */