* {
    font-family: "inter", sans-serif;
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    padding: 0;
    overflow: hidden;
}

#game {
    position: relative;
    width: 100vw;
    height: 100vh;

}


.loading-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url(assets/textures/loading-screen.png);
    background-size: cover;
    background-position: center;
    background-size:cover;
    background-repeat: no-repeat;
    display: flex;

    align-items: center;
    flex-direction: column;
    z-index: 100;
    color: black;
}


.loading-screen-bar {
    width: 50%;
    height: 50px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: black;

}

.loading-screen-bar-fill {

    background-color: white;

}

.loading-icon {
    position: absolute;
    right: 5%;
    bottom: 5%;
    background-image: url(assets/textures/marcelplayer.png);
    background-size: cover;
    background-position: center;
    width: 60px;
    height: 100px;
    animation: spin 2s linear infinite;
}

.game-mode-selection {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    align-items: center;
    flex-direction: column;
    color: white;
}

.game-modes {
    display: flex;
    justify-content: space-around;
    align-items: center;
    align-content: center;
    
    width: 100%;
    height: 100%;

}

.game-mode {
    width: 350px;
    height: 350px;
    display: flex;
    
    justify-content: center;
    align-items: center;
    flex-direction: column;
    cursor: pointer;
}

.level-selection {
    display: none;
    width: 50%;
    height: 50%;
    list-style: none;
    outline: none;
    grid-template-columns: repeat(8, 1fr);
    grid-template-rows: repeat(4, 1fr);
    gap: 10px;
}

.level {
    width: 100%;
    height: 100%;
    background-color: white;
    color: black;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    
    align-content: center;
    text-align: center;
    cursor: pointer;
}

.hud {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;


}

.crosshair {
    position: absolute;
    width: 50px;
    height: 50px;
    background-image: url(./assets/textures/crosshair.png);

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1000;

    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);


}

.speed-lines {
    position: absolute;
    display: none;
    width: 100%;
    height: 100%;
    background-image: url(./assets/textures/speed-lines.gif);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}



.health-bar-position {
    position: absolute;
    width: 100%;
    height: 20px;
    
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 20px;
    font-weight: bold;
    top: 90%;

}

.health-bar {
    position: relative;
    width: 500px;
    height: 20px;
    background-color: rgba(0, 0, 0, .3);
    text-align: center;
    display: flex;

    align-items: center;
    border-radius: .5px;
  
}

.health-bar-fill {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgb(8, 208, 8);
    border-radius: .5px;

}

.health-bar-text {
    
    color: white;
    font-size: 18px;
    font-weight: bold;
    z-index: 100;
    margin-left: 2%;

    display: flex;

    


}

.ability-info {
    position: absolute;
    width: 50px;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 10px;
    font-weight: bold;
    top: 50%;
    left: 3%;

    justify-content: center;
    flex-direction: column;
    
}

.ability-cooldown {
    /* vertical bar */
    position: relative;
    width: 25px;
    height: 200px;
    background-color: rgba(0, 0, 0, .3);

    
}

.ability-cooldown-fill {
    width: 100%;
    height: 100%;
    background-color: aqua;
    position: relative;
}

.weapon-info {
    position: absolute;
    width: 175px;
    height: 100x;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 20px;
    font-weight: bold;
    top: 80%;
    right:  0;

    justify-content: space-between;
    background-image: linear-gradient(-90deg, rgba(0, 0, 0, .1), rgba(0, 0, 0, 0));    
}

.weapon-info .weapon-image {
    width: 100px;
    height: 100px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    
}

.weapon-info .weapon-image img {
    max-width: 100%;
    max-height: 100%;   
}


.weapon-ammo {
  
    margin-right:5%;
}

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

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