@import './styles/scene.css';

:root {
    --zoom: 1;
    --height: 367px;
    --player-speed: 1;
    --boss-speed: .5;
    --secretary-speed: .2;
    --gameTime: 120s;
    --projectTime: 120s;
}

* {
    box-sizing: border-box;
}

body {
    font-family: sans-serif;
    image-rendering: pixelated;
}

img {
    width: 100%;
    height: 100%;
}

.container {
    padding: 0 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 12px;

    position: relative;
}

.game {
    padding: 15px;
    max-width: 100%;
    width: calc(652px * var(--zoom));
    height: calc(var(--height) * var(--zoom));

    position: relative;
}




.top-panel {
    height: 50px;
    border: 1px solid white;
    display: flex;
    justify-content: space-between;
}

.life-signs {
    display: flex;
    align-items: center;
}

.life-sign-container {
    margin-left: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 10px;
}

.life-sign {
    position: relative;
    height: 30px;
    width: 10px;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    border: 1px solid white;
    border-top-color: transparent;
    overflow: hidden;
    margin-bottom: ;
}

.life-sign .line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.life-sign.red .line {
    background-color: red;
}

.life-sign.blue .line {
    background-color: blue;
}

.life-sign.green .line {
    background-color: green;
}

.life-sign.orange .line {
    background-color: orange;
}

.life-sign--s .line,
.life-sign--d .line {
    transform: translateY(0);
}

.life-sign--a .line,
.life-sign--k .line {
    transform: translateY(100%);
}





.grades {
    display: flex;
    flex-direction: column;
    margin-right: 5px;
}

.grade {
    display: flex;
    align-items: center;
}

.grade-text {
    width: 50px;
    margin-right: 5px;
}

.grade-line {
    position: relative;
    height: 10px;
    width: 100px;
    border: 1px solid white;
    border-radius: 2px;
    overflow: hidden;

}

.grade-line .line {
    position: absolute;
    right: 100%;
    top: 0;
    width: 100%;
    height: 100%;
}

.grade-line.lightgreen .line {
    background-color: lightgreen;
}

.grade-line.tomato .line {
    background-color: tomato;
}

.grade-indicator {
    display: flex;
}

.grade-value {
    margin-right: 5px;
}


@keyframes decrease {
    0% {
        transform: translateX(100%);
    }

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