@font-face {
    font-family: Cabin;
    src: url('/static/projects/no/fonts/Cabin-Bold.ttf') format("truetype");
}

/* CHATBOX */
#chatbox {
    height: 0px;
    width: 250px;
    background: rgba(0,0,0,0.2);
    transition: .5s;
    overflow: hidden;
    font-size: 15px;
    color: white;
}
#chat_container {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 2;
}
#chatbox_input {
    width: 14vw;
    border: none;
    background: rgba(0,0,0,0.6);
    outline: none;
    padding: 10px;
    font-size: 16px;
}
#chatbox_input::placeholder {
    color: white;
}
#chatbox_input:focus {
    background: rgba(0,0,0,0.2);
}
.close_mm {
    position: absolute;
    right: 20px;
    top: 20px;
}
.close_mm .front {
    padding: 14px 18px 14px 18px;
}
#changelog-open {
  position: absolute;
  left: 2vh;
  top: 2vh;
}
#changelog-open .front {
    padding-left: 1.4vh;
    padding-right: 1.4vh;
}
#changelog-open .front img {
    height: 4.4vh;
    vertical-align: text-bottom;
}
.popup-modal {
    background: black;
    color: white;
    animation: dropdown 1.6s ease-out;
    border-radius: 10px;
    border: 4px solid var(--theme);
    box-shadow: 0px 0px 0px 100000px rgba(0,0,0,0.60);
    
    display: none;
    position: fixed;
    width: 50vw;
    top: 40vh;
    left: 0;
    right: 0;
    margin-right: auto;
    margin-left: auto;
    padding: 10px;
    z-index: 2;
}
.popup-modal h2 {
    color: var(--theme)
}
#settings_icon_mm {
    position: absolute;
    right: 2vh;
    top: 2vh;
}
#settings_icon {
    position: fixed;
    right: 20px;
    top: 20px;
    z-index: 1;
}
#settings_icon .front {
    padding: 1vh;
}
button, input {
    cursor: inherit;
}
#Play_Button {
    margin-top: 20px;
}
#Play_Button .front {
    font-size: 4vh;
    padding-left: 6vw;
    padding-right: 6vw;
}
.screen {
    display: none;
}
/* Waiting Room */
#startgame {
    position: fixed;
    margin-left: auto;
    margin-right: auto;
    left: 0;
    right: 0;
    bottom: 5vh;
    width: 12vh;
    transform: scale(2);
    border-radius: 4px;
}
#startgame .front {
    text-align: center;
    padding: 0.2vh 0.4vh;
    border-radius: 4px;
}
#waiting_screen {
    position: fixed;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    background: rgb(215,163,255);
    background: linear-gradient(144deg, rgba(215,163,255,0.2) 0%, rgba(255,234,146,0.4) 90%);
    /* backdrop-filter: blur(10px); */
}
#waiting_playerCards {
    position: fixed;
    top: 20vh;
    left: 8vh;
    width: 75vw;
    height: 2vh;
    text-align: center;
}
.waiting-player-profile {
    width: 32vh;
    height: 36vh;
    display: inline-block;
    position: relative;
    margin-right: -2vh;
    animation-fill-mode: both;
    animation: floating infinite 14s alternate-reverse cubic-bezier(.29,.02,.73,.98);
}
.waiting-player-profile img {
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    filter: drop-shadow(2px 2px 6px rgba(0,0,0,0.4));
    background: black;
    border-radius: 10%;
}
.waiting-player-profile .waiting-pfp {
    width: 18vh;
    border-radius: 50%;
    margin-left: auto;
    margin-right: auto;
    left: 0;
    right: 0;
    top: 16vh;
}
.waiting-player-profile > div {
    position: absolute;
    margin-left: auto;
    margin-right: auto;
    left: 0;
    right: 0;
    top: -6vh;
    font-size: 4vh;
    font-family: ArialBold;
    color: white;
    font-weight: 500;
}
#waiting-settings {
    height: 50vh;
    width: 25vw;
    position: fixed;
    right: 1vh;
    top: 8vh;
}
/* Room Items */
@keyframes floatDown {
    0% {transform: translateY(-50px); opacity: 0;}
    100% {transform: translateY(0px); opacity: 1;}
}
@keyframes floating {
    0% {transform: translate(-1.4vh,-3vh)}
    20% {transform: translate(0.3vh,3.4vh)}
    40% {transform: translate(1.2vh,-2.1vh)}
    60% {transform: translate(0vh,4.1vh)}
    80% {transform: translate(-0.8vh,-3.8vh)}
    100% {transform: translate(0.12vh,2.6vh)}
}
.room_item {
    width: 60vw;
    height: 100px;
    background-color: rgba(54, 54, 54, 0.6);
    padding: 10px;
    margin-bottom: 15px;
    animation: floatDown .25s ease-out;
}
.room_item img {
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 10%;
    background: black;
}
.room_item .room_item_detail {
    text-overflow: ellipsis;
    overflow-x: hidden;
    width: 90px;
    font-size: 30px;
    margin-left: 20px;
    border-radius: 15px;
    padding: 10px;
    margin-top: 27px;
    display: inline-block;
    position: relative;
    text-align: center;
    font-size: 20px;
    background-color: rgba(255, 255, 255, 0.6);
}
.room_item .room_item_detail:nth-child(2) {
    text-align: left;
    margin-left: 120px;
    width: 250px;
    background: #e74c3c;
    color: white;
}
.room_item button {
    position: absolute;
    display: inline-block;
    margin-left: 10px;
    transform: translateY(8px);
}
#loading_assets_loadingbar {
    height: 120px;
    object-fit: cover;
    width: 0px;
    transition: all .2s;
    float: center;
    overflow: hidden;
    text-align: left;
    position: absolute;
    top: 20px;
}
#loading_assets_loadingbar img {
    height: 100%;
}
#empty_loading {
    transition: none;
    width: 100%;
    float: center;
    position: absolute;
    top: 20px;
    left: 0;
}
#iunderstand {
    display: none;
    margin-top: 160px;
}
/* AGREEMENT BEGINNING */
#agreement {
    display: block;
    width: 415px;
    background-size: cover;
    color: white;
    z-index: 3;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    margin-top: 200px;
    position: relative;
}
#agreement_container {
    background: black;
    position: fixed;
    text-align: center;
    width: 100%;
    height: 100%;
    z-index: 2;
}
#loading_item {
    width: 100%;
}
#credits {
    position: fixed;
    bottom: 0;
    right: 0;
    display: block;
    background: white;
    text-align: left;
    padding: 2px 15px 2px 15px;
}

/* VICTORY SCREEN */
#victory_screen {
    background: black;
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: none;
    transition: 1s;
    animation: fadeIn .8s;
}
@keyframes fadeIn {
    0% {opacity: 0;}
    100% {opacity: 1;}
}
#victory-winner-img {
    width: 300px;
    border-radius: 50%;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    filter: drop-shadow(0px 0px 175px #ffd700);
    animation: winner-reveal 3s;
}
@keyframes winner-reveal {
    0% {
        filter: brightness(0%) drop-shadow(0px 0px 75px #ffd700);
        -webkit-filter: brightness(0%) drop-shadow(0px 0px 75px #ffd700);
        -moz-filter: brightness(0%) drop-shadow(0px 0px 75px #ffd700);;
        width: 200px;
    }
    85% {
        filter: brightness(0%) drop-shadow(0px 0px 20px #ffd700);
        width: 300px;
        -webkit-filter: brightness(0%) drop-shadow(0px 0px 20px #ffd700);
        -moz-filter: brightness(0%) drop-shadow(0px 0px 20px #ffd700);
    }
    90% {
        width: 480px;
        filter: drop-shadow(0px 0px 175px #ffd700);
        -webkit-filter: drop-shadow(0px 0px 175px #ffd700);
        -moz-filter: drop-shadow(0px 0px 175px #ffd700);
    }
    95% {
        width: 280px;
    }
    100% {
        filter: brightness(100%) drop-shadow(0px 0px 175px #ffd700);
        -webkit-filter: brightness(100%) drop-shadow(0px 0px 175px #ffd700);
        -moz-filter: brightness(100%) drop-shadow(0px 0px 175px #ffd700);
       
    }
}
#victory-winner-name {
    position: fixed;
    text-align: center;
    width: 300px;
    font-size: 30px;
    filter: brightness(120%);
    filter: brightness(100%) drop-shadow(0px 0px 8px rgba(0,0,0,0.4));
    -webkit-filter: brightness(100%) drop-shadow(0px 0px 8px rgba(0,0,0,0.4));
    -moz-filter: brightness(100%) drop-shadow(0px 0px 8px rgba(0,0,0,0.4));
    border-radius: 15px;
    color: white;
    padding: 10px 0px 10px 0px;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: reveal-winner-name .5s;
    border: solid white 8px;
}
@keyframes reveal-winner-name {
    0% {top: 35%; opacity: 0;}
    100% {top: 20%; opacity: 1;}
}
#victory-matchstats {
    width: 20%;
    background: rgba(0,0,0,0.5);
    position: fixed;
    top: 50%;
    right: 2%;
    transform: translateY(-50%);
    text-align: center;
    display: none;
    animation: floatUp .5s;
}
@keyframes floatUp {
    0% {top: 60%; opacity: 0;}
    100% {top: 50%; opacity: 1;}
}
#victory-matchstats span {
    display: block;
    background: white;
    margin: 6px;
    padding: 10px;
    text-align: left;
}
#victory-matchstats h1, h3 {
    color: white;
}
#victory-leaderboard {
    max-width: 40%;
    padding: 0.5em;
    background: rgba(0,0,0,0.5);
    position: fixed;
    top: 50%;
    left: 2%;
    transform: translateY(-50%);
    text-align: center;
    display: none;
    animation: floatUp .5s;
}
#victory-leaderboard tr {
    background: white;
    padding: 5px;
}
#victory-leaderboard tr:nth-child(1) {
    background: none;
    color: white;
}
#victory-leaderboard td {
    padding: 1em;
}
#clicktocontinue {
    position: fixed;
    display: none;
    bottom: 10%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: continueanim 1s alternate infinite;
    color: white;
    font-size: 35px;
    text-shadow: 0px 0px 10px #000000;
}
@keyframes continueanim {
    0% {opacity: 1;}
    100% {opacity: 0;}
}
/* Win Screen */
#win-audience-container {
    position: fixed;
    margin-left: auto;
    margin-right: auto;
    left: 0;
    right: 0;
    bottom: 20vh;
    text-align: center;
    width: 40vw;
}
.win-audience {
    display: inline-block;
    animation: bounce-7 2s cubic-bezier(0.280, 0.840, 0.420, 1) infinite;
    width: 10vh;
    border-radius: 50%;
}
@keyframes bounce-7 {
    0%   { transform: scale(1,1)      translateY(0); }
    10%  { transform: scale(1.1,.9)   translateY(0); }
    30%  { transform: scale(.9,1.1)   translateY(-100px); }
    50%  { transform: scale(1.05,.95) translateY(0); }
    57%  { transform: scale(1,1)      translateY(-7px); }
    64%  { transform: scale(1,1)      translateY(0); }
    100% { transform: scale(1,1)      translateY(0); }
}
#mobile-view {
    text-align: center;
    font-size: 6vh;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    margin: 0;
    padding: 0;
    background: black;
    z-index: 3;
}
#mobile-view img {
    width: 40vh;
    animation: 2s rotatescreen infinite alternate-reverse;
}
@keyframes rotatescreen {
    0% {transform: translateY(30vh) rotate(0deg)}
    80% {transform: translateY(30vh) rotate(90deg)}
    100% {transform: translateY(30vh) rotate(90deg)}
}
.bubble-message {
    position: absolute;
    left: 4vw;
    top: -22px;
    background: white;
    padding: 10px;
    max-width: 14vw;
    border-radius: 20px 20px 20px 0px;
    animation: 8s messagebubble;
    animation-fill-mode: forwards;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow-x: hidden;
}
@keyframes messagebubble {
    0% {transform: scale(2)}
    5% { transform: scale(1); }
    95% { transform: scale(1); }
    100% { transform: scale(0); }
}