
@font-face {
    font-family: "relaxia-rg";
    src: url(assets/font/rexlia-rg.ttf);
}

* {
    box-sizing: border-box;
    font-family: "relaxia-rg";
}

html, body {
    position: fixed;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

#game-container {
    width: 100vw;
    height: 100vh;
}

#start-container {
    background: url("assets/img/splash.jpg") no-repeat center;
    background-size: cover;
    z-index: 100;
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
}

#player-name {
    border: 2px solid black;
    font-size: 2.4vw;
    outline: none;
    position: absolute;
    right: 10vw;
    bottom: 11vw;
    text-align: center;
    padding: 5px;
    width: 26vw;
    color: #222;
}

#btn-start {
    color: white;
    font-size: 3vw;
    position: absolute;
    right: 10vw;
    bottom: 5vw;
    cursor: pointer;
    text-align: center;
    padding: 5px 0;
    width: 20vw;
    background: linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(0,0,0,0.4) 30%, rgba(0,0,0,0.4) 70%, rgba(0,0,0,0) 100%);
    user-select: none;
    outline: none;
    border: none;
}

#btn-start:hover {
    background: linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(0,0,0,0.8) 30%, rgba(0,0,0,0.8) 70%, rgba(0,0,0,0) 100%);
    padding: 3px 0 7px 0;
}

#ui-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 90;
    text-align: center;
    user-select: none;
}
#ui-container.back-red {
    background: radial-gradient(rgba(255,0,0,0), rgba(255,0,0,0.4));
}
#ui-container.back-blue {
    background: radial-gradient(rgba(0,0,255,0), rgba(0,0,255,0.4));
}
#goal-container {
    text-shadow: 4px 4px 0px black;
    font-size: 10vw;
    color: #d8ca0d;
    transform: scaleX(0);
    transition: 0.4s cubic-bezier(.48,2.32,.8,.26);
    display: inline-block;
    top: calc(50vh - 15vw);
    line-height: 20vw;
    position: relative;
}
#goal-container.show {
    transform: scaleX(1);
}

#top-bar {
    display: inline-block;
    position: absolute;
    text-align: center;
    left: 0;
    right: 0;
}
.score {
    color: white;
    font-size: 2.2vw;
    text-align: center;
    padding: 10px 0;
    width: 6vw;
    display: inline-block;
    color: white;
    font-size: 2.2vw;
    text-align: center;
    padding: 10px 0;
    width: 6vw;
    display: inline-block;
    vertical-align: top;
    border: 2px solid white;
}
#clock {
    color: white;
    font-size: 3vw;
    width: 13vw;
    text-align: center;
    padding: 10px 0;
    display: inline-block;
    background: linear-gradient(to bottom, black, #3e3e3e);
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
    border: 2px solid white;
}
#red-score {
    background: linear-gradient(to bottom, #bd0000, #ff4141);
    border-bottom-left-radius: 8px;
    border-right: none;
}
#blue-score {
    background: linear-gradient(to bottom, #0341b3, #375aff);
    border-bottom-right-radius: 8px;
    border-left: none;
}
#status-container {
    display: none;
    position: absolute;
    width: 80vw;
    height: 80px;
    line-height: 80px;
    font-size: 4vw;
    color: white;
    left: 10vw;
    top: calc(50vh - 50px);
    background: linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(0,0,0,0.6) 30%, rgba(0,0,0,0.6) 70%, rgba(0,0,0,0) 100%);
    user-select: none;
    text-align: center;
}

#counter-container {
    position: absolute;
    width: 400px;
    height: 100px;
    font-size: 100px;
    line-height: 100px;
    color: white;
    left: calc(50vw - 200px);
    top: calc(50vh - 100px);
    text-shadow: 4px 4px 0px black;
    opacity: 0;
    transform: scale(2);
    display: none;
    transition: ease-in 0.2s;
    user-select: none;
}
#counter-container.show {
    opacity: 1;
    transform: scale(1);
}

#result-container {
    position: absolute;
    z-index: 95;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    user-select: none;
    pointer-events: none;
    display: none;
}
#result-container.red-win {
    background-color: rgba(255, 0, 0, 0.8);
}
#result-container.blue-win {
    background-color: rgba(0, 0, 255, 0.8);
}
#result-container.drawn {
    background-color: rgba(0, 0, 0, 0.8);
}
#result-container .winner {
    color: white;
    width: 100%;
    height: 10vw;
    margin-top: calc(50vh - 5vw);
    font-size: 8vw;
    text-align: center;
}
#result-container .footer {
    color: white;
    font-size: 3vw;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 20px;
    text-align: center;
}

#names-container {
    position: absolute;
    z-index: 10;
    left: 0; right: 0; top: 0; bottom: 0;
}
.name-container {
    position: absolute;
    color: white;
    font-size: 18px;
    text-shadow: 
        -1px -1px 0px #222,
        1px -1px 0px #222,
        -1px 1px 0px #222,
        2px 2px 0px #222;
    width: 200px;
    margin-left: -100px;
    margin-top: -40px;
    text-align: center;
    display: block;
}
#boost-container {
    position: absolute;
    right: 40px;
    bottom: 20px;
    width: 40px;
    height: 200px;
    /* -webkit-clip-path: polygon(90% 0, 100% 50%, 90% 100%, 0% 100%, 0% 0%); */
    /* clip-path: polygon(90% 0, 100% 50%, 90% 100%, 0% 100%, 0% 0%); */
    /* padding: 4px; */
    /* text-align: left; */
    background-color: rgba(0,0,0,0.4);
    overflow: hidden;
    border-radius: 20px;
    display: flex;
    flex-direction: column-reverse;
}
#energy-indicator {
    width: 100%;
    background: linear-gradient(to right, #82ff10, #054a05);
    display: inline-block;
}
 