html,
body {
    height: 100%;
}

body {
    margin: 0;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 1);
}

#loading {
    position: fixed;
    text-align: left;
    /*width: 300px;*/
    margin: auto;
}

#loading .logo {
    margin-bottom: 20px;
}

#loading span {
    color: white;
    font-size: 13px;
    font-family: 'Fira Sans Condensed', Arial, sans-serif;
    font-weight: 500;
}

.progress-bar {
    width: 300px;
    height: 30px;
    border: 2px solid yellow;
    background-color: #fff;
    position: relative;
    overflow: hidden;
    margin-top: 10px;
}

.progress {
    height: 100%;
    width: 0;
    background-color: #00ff00;
    position: absolute;
    top: 0;
    left: 0;
    transition: width 1s linear;
}

@keyframes charging {
    0% {
        width: 0;
    }

    100% {
        width: 100%;
    }
}

.progress.charging {
    animation: charging 5s linear infinite;
}

#footer {
    color: white;
    font-size: 12px;
}

.logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    background-image: url('../res/glsl.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
}

@keyframes glow {
    0% {
        opacity: 0;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }

    100% {
        opacity: 0;
        transform: scale(1);
    }
}

/* fira-sans-condensed-500 - latin */
@font-face {
    font-display: swap;
    /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Fira Sans Condensed';
    font-style: normal;
    font-weight: 500;
    src: url('./fonts/fira-sans-condensed-v10-latin-500.woff2') format('woff2'),
        /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
        url('./fonts/fira-sans-condensed-v10-latin-500.ttf') format('truetype');
    /* Chrome 4+, Firefox 3.5+, IE 9+, Safari 3.1+, iOS 4.2+, Android Browser 2.2+ */
}

/* fira-sans-condensed-600 - latin */
@font-face {
    font-display: swap;
    /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Fira Sans Condensed';
    font-style: normal;
    font-weight: 600;
    src: url('./fonts/fira-sans-condensed-v10-latin-600.woff2') format('woff2'),
        /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
        url('./fonts/fira-sans-condensed-v10-latin-600.ttf') format('truetype');
    /* Chrome 4+, Firefox 3.5+, IE 9+, Safari 3.1+, iOS 4.2+, Android Browser 2.2+ */
}

/* fira-sans-condensed-700 - latin */
@font-face {
    font-display: swap;
    /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Fira Sans Condensed';
    font-style: normal;
    font-weight: 700;
    src: url('./fonts/fira-sans-condensed-v10-latin-700.woff2') format('woff2'),
        /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
        url('./fonts/fira-sans-condensed-v10-latin-700.ttf') format('truetype');
    /* Chrome 4+, Firefox 3.5+, IE 9+, Safari 3.1+, iOS 4.2+, Android Browser 2.2+ */
}

html:-webkit-full-screen body {
    background: black;
}

html:-moz-full-screen body {
    background: black;
}

.image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: url('../res/glsl.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    object-fit: contain;
    width: 800px;
    height: 600px;
}

#app .message-box-content a {
    color: yellow;
}

#app .message-box-content a:link {
    color: yellow;
}

#app .message-box-content a:visited {
    color: yellow;
}

#app {
    position: relative;
}

#app .video-wrapper .video-logo {
    position: absolute;
    left: 318px;
    top: 355px;
    width: 400px;
    height: 44px;
    transform: translateX(-50%) translateY(-50%);
    background-image: url("../res/video-logo.png");
}

#app .stats-layer canvas {
    display: initial !important;
    cursor: auto !important;
}

#app,
#app input,
#app select,
#app .select,
#app button {
    font-family: 'Fira Sans Condensed', Arial, sans-serif;
    font-size: 13px;
    color: yellow;
    font-weight: 500;
}

#app select option {
    background: black;
}

#app a:link,
#app a:visited {
    color: red;
}

#app>* {
    /* Removes whitespace from the bottom causing scrollbars to appear on fullscreen */
    vertical-align: top;
}

#app video::-webkit-media-controls {
    display: none;
}

#app .message-box {
    width: 451px;
    height: 326px;
    background-image: var(--res-dlg-bgn);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
}

#app .message-box-content {
    padding: 50px;
}

#app .message-box-footer {
    position: absolute;
    bottom: 0;
    right: 0;
    padding: 20px;
}

#app .toasts {
    position: absolute;
    top: 16px;
    left: 16px;
}

#app .toasts .toast {
    max-width: 600px;
    width: fit-content;
    padding: 8px;
    background: rgba(0, 0, 0, .75);
    border: 1px red solid;
    animation: slideInFromLeft .4s;
}

#app .toasts .toast+.toast {
    margin-top: 8px;
}

@keyframes slideInFromLeft {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(0);
    }
}

#app .menu-button {
    cursor: default;
    text-align: center;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

#app .menu-button.disabled {
    color: black;
}

#app .menu-version-string {
    text-align: center;
}

#app pre.menu-mp-slot-text {
    width: 100%;
    text-align: center;
    margin: 0;
    padding: 10px 8px 0 8px;
    box-sizing: border-box;
    white-space: pre-line;
    font-family: inherit;
    font-size: 12px;
}

#app .sidebar-title {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: inherit;
    text-align: center;
    font-size: 12px;
}

#app .menu-tooltip {
    padding: 10px;
    box-sizing: border-box;
    width: 0;
    overflow: hidden;
    white-space: nowrap;
}

#app .menu-tooltip.anim {
    transition: width .4s;
    width: 100%;
}

#app .login-box {
    width: 451px;
    height: 326px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
}

#app .login-box .title {
    text-align: center;
    margin-bottom: 20px;
}

#app .login-box .content {
    padding: 70px;
}

#app .login-box .field {
    margin-bottom: 10px;
}

#app .login-box .field label {
    margin-right: 10px;
    text-align: right;
    display: inline-block;
    min-width: 100px;
}

#app .login-box.new-account-box {
    width: 500px;
}

#app .login-box.new-account-box .field label {
    min-width: 130px;
}

#app .login-box.create-game-box .field input[name="enablepass"],
#app .login-box.create-game-box .field input[name="lobbypass"] {
    margin-right: 10px;
    vertical-align: middle;
}

#app .prompt-box .field label {
    display: block;
}

#app .prompt-box .field input[type="text"] {
    margin-top: 5px;
}

#app .dialog-button {
    width: 126px;
    height: 25px;
    border: none;
    outline: none;
    background-image: var(--res-mnbttn);
    background-position: 0 0;
    display: block;
    margin-top: 10px;
}

#app .dialog-button:hover:not(:disabled) {
    background-position: -126px 0;
}

#app .dialog-button:active:not(:disabled) {
    background-position: -252px 0;
}

#app .dialog-button:disabled {
    color: black;
}

#app .lobby-form,
#app .gamebrowser-wrapper,
#app .map-sel-form,
#app .replay-sel-form,
#app .mod-sel-form {
    width: 632px;
}

#app .lobby-form {
    padding: 40px 40px;
    box-sizing: border-box;
}

#app .lobby-form .player-slots,
#app .lobby-form .game-options {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

#app input[type="checkbox"] {
    background-image: var(--res-cue-i);
    width: 18px;
    height: 18px;
    -webkit-appearance: none;
    margin: 0;
    border: 0;
}

#app input[type="checkbox"]:checked {
    background-image: var(--res-cce-i);
}

#app input[type="checkbox"].semi-checked-left {
    background-image: var(--res-cce-il);
}

#app input[type="checkbox"].semi-checked-right {
    background-image: var(--res-cce-ir);
}

#app input[type="range"] {
    -webkit-appearance: none;
    background: transparent;
    margin: 0;
    height: 24px;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    border-radius: 0;
    border: none;
    height: 22px;
    width: 12px;
    background-color: red;
    background-image: var(--res-icons-24);
    background-position: -264px 0;
}

input[type="range"]::-moz-range-thumb {
    -webkit-appearance: none;
    border-radius: 0;
    border: none;
    height: 22px;
    width: 12px;
    background-color: red;
    background-image: var(--res-icons-24);
    background-position: -264px 0;
}

input[type="range"]::-webkit-slider-runnable-track {
    width: 100%;
    height: 24px;
    background: transparent;
    border: 1px red solid;
}

input[type="range"]::-moz-range-track {
    width: 100%;
    height: 24px;
    background: transparent;
    border: 1px red solid;
}

input[type="range"]:focus {
    outline: none;
}

#app input[type="text"],
#app input[type="password"],
#app select,
#app .select {
    background: transparent;
    border: 1px red solid;
}

#app input[type="text"],
#app input[type="password"],
#app select,
#app .select {
    height: 26px;
    box-sizing: border-box;
}

#app .dialog-button {
    height: 25px;
    box-sizing: border-box;
}

#app input[type="text"],
#app input[type="password"] {
    padding-left: 4px;
}

#app input:focus,
#app select:focus {
    outline: none;
}

#app select:disabled,
#app .select.disabled,
#app input:disabled,
#app label input:disabled+span,
#app .lobby-form .all-disabled span,
#app .lobby-form .all-disabled input[type="text"]:disabled {
    color: #9c0000;
    border-color: #9c0000;
}

#app input[type="checkbox"]:disabled,
#app input[type="range"]:disabled {
    opacity: 0.7;
}

#app input[type="range"]+input[type="text"]:disabled {
    opacity: 1;
}

#app .select {
    position: relative;
    user-select: none;
    -webkit-user-select: none;
}

#app .select .select-value {
    padding: 4px 21px 4px 3px;
    height: 100%;
    box-sizing: border-box;
}

#app .select::before {
    pointer-events: none;
    content: "";
    position: absolute;
    right: 1px;
    top: 1px;
    width: 18px;
    height: 22px;
    background-image: var(--res-icons-24);
    background-position: -96px 0;
}

#app .select::before:hover {
    background-position: -120px 0;
}

#app .select .select-layer {
    z-index: 1;
    position: absolute;
    top: 26px;
    left: 0;
    width: 100%;
    outline: 1px red solid;
    background: rgba(0, 0, 0, .75);
}

#app .select .select-layer .option {
    padding: 4px 3px;
    height: 24px;
    box-sizing: border-box;
}

#app .select .select-value>div,
#app .select .select-layer .option>div {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#app .select .select-layer .option.selected {
    background: red;
}

#app .player-color-select.bg-color .select .select-value {
    padding: 2px 21px 2px 2px;
}

#app .player-color-select .select .select-layer .option.bg-color {
    padding: 2px;
}

#app .player-color-select.bg-color .select .select-value>div,
#app .player-color-select .select .select-layer .option.bg-color>div {
    width: 100%;
    height: 100%;
}

#app .player-color-select.bg-color .select.disabled .select-value>div {
    opacity: .75;
}

#app .lobby-form .player-slots {
    height: 263px;
    /* 27px * 9 slots + 20px header */
}

#app .lobby-form .player-slot-header .player-header-players {
    margin-left: 38px;
    /* 16px ping, 3px spacing, 16px ready, 3px spacing */
    width: 150px;
}

#app .gamebrowser-wrapper .players-list .players-list-name {
    background: red;
    text-align: center;
}

#app .lobby-form .player-slot-header .player-header-side {
    margin-left: 57px;
    /* 3px spacing, 47px icon, 7 px spacing */
    width: 120px;
}

#app .lobby-form .player-slot-header .player-header-color,
#app .lobby-form .player-slot-header .player-header-position,
#app .lobby-form .player-slot-header .player-header-team {
    margin-left: 7px;
    width: 50px;
}

#app .lobby-form .player-slot {
    height: 26px;
}

#app .lobby-form .player-slot.player-slot-header {
    height: 20px;
}

#app .lobby-form .player-slot+.player-slot {
    margin-top: 1px;
}

#app .lobby-form .player-slot .player-ping,
#app .lobby-form .player-slot .player-status,
#app .player-country-icon,
#app .lobby-form .player-slot .player-country-select,
#app .lobby-form .player-slot .player-color-select,
#app .lobby-form .player-slot .player-start-pos-select,
#app .lobby-form .player-slot .player-team-select,
#app .lobby-form .player-slot-header>div {
    display: inline-block;
    vertical-align: middle;
    margin-left: 3px;
}

#app .lobby-form .player-slot .player-ping {
    margin-left: 0;
}

#app .lobby-form .player-slot .player-ping,
#app .lobby-form .player-slot .player-status {
    width: 16px;
    height: 16px;
}

#app .player-country-icon {
    width: 47px;
    height: 23px;
}

#app .lobby-form .player-slot .player-country-select,
#app .lobby-form .player-slot .player-color-select,
#app .lobby-form .player-slot .player-start-pos-select,
#app .lobby-form .player-slot .player-team-select {
    margin-left: 7px;
}

#app .lobby-form .player-slot .player-country-select .select {
    width: 120px;
}

#app .lobby-form .player-slot .player-color-select .select,
#app .lobby-form .player-slot .player-start-pos-select .select,
#app .lobby-form .player-slot .player-team-select .select {
    width: 50px;
}

#app .lobby-form .player-slot .player-name {
    margin-left: 3px;
    vertical-align: middle;
    width: 150px;
}

#app .lobby-form .game-options {
    margin-top: 10px;
}

#app .lobby-form .game-options-left {
    margin-left: 39px;
    /* 18px x 2 icons + 3px player name margin */
    width: 200px;
    float: left;
}

#app .lobby-form .game-options-right {
    float: left;
}

#app .lobby-form .game-options-left>div {
    margin-top: 4px;
    margin-bottom: 5px;
    overflow: hidden;
}

#app .lobby-form.lobby-form-sp .game-options-left>div {
    margin-bottom: 13px;
}

#app .lobby-form .game-options label {
    display: inline-block;
    line-height: 18px;
}

#app .lobby-form .game-options-left label {
    white-space: nowrap;
}

#app input[type="checkbox"] {
    vertical-align: top;
    margin-right: 3px;
}

#app .lobby-form .game-options-right>div {
    margin-bottom: 6px;
    margin-left: 10px;
}

#app .slider-item input[type="range"] {
    width: 79px;
    vertical-align: top;
    margin-left: 0;
    margin-right: 0;
}

#app .slider-item input[type="text"] {
    width: 50px;
    box-sizing: border-box;
    text-align: center;
    padding-left: 0;
    border-color: red;
    color: yellow;
}

#app .slider-item span.label {
    width: 100px;
    display: inline-block;
    vertical-align: middle;
}

#app .slider-item input[type="text"] {
    height: 24px;
    background: #5a0000;
    box-shadow: inset 0 0 10px #000;
}

#app .lobby-form .game-options-right .checkbox-item {
    margin-top: 12px;
}

#app .list {
    border: 1px red solid;
    overflow-y: auto;
}

#app .list-title {
    text-align: center;
    margin-bottom: 8px;
}

#app .list-header,
#app .list .list-item {
    user-select: none;
    -webkit-user-select: none;
    cursor: default;
    padding: 3px;
}

#app .list .list-item.selected {
    background: red;
}

#app .gamebrowser-wrapper {
    padding: 16px;
    box-sizing: border-box;
}

#app .gamebrowser-wrapper .gamebrowser-top {
    overflow: hidden;
}

#app .gamebrowser-wrapper .gamebrowser-bottom {
    display: flex;
    align-items: stretch;
    margin-top: 10px;
}

#app .gamebrowser-wrapper .chat-wrapper {
    width: 460px;
}

#app .gamebrowser-wrapper .players-list {
    height: 242px;
    width: 130px;
    margin-left: 10px;
}

#app .gamebrowser-wrapper .games-header {
    height: 24px;
}

#app .icon-button {
    width: 24px;
    height: 24px;
    background-image: var(--res-icons-24);
    border: none;
    outline: none;
}

#app .gamebrowser-wrapper .refresh-button {
    background-position: 0 0;
    vertical-align: middle;
}

#app .gamebrowser-wrapper .refresh-button:hover {
    background-position: -24px 0;
}

#app .gamebrowser-wrapper .chat-wrapper .messages {
    height: 200px;
}

#app .chat-wrapper .send-message-button {
    background-position: -48px 0;
}

#app .chat-wrapper .send-message-button:hover {
    background-position: -72px 0;
}

#app .gamebrowser-wrapper .games .game .game-flags span {
    width: 16px;
    height: 16px;
    display: inline-block;
    margin-right: 3px;
    vertical-align: middle;
}

#app .gamebrowser-wrapper .games .game .game-map,
#app .gamebrowser-wrapper .games .game .game-name {
    margin-right: 5px;
    width: 150px;
}

#app .gamebrowser-wrapper .games .game .game-players {
    width: 30px;
}

#app .gamebrowser-wrapper .games .game .game-map,
#app .gamebrowser-wrapper .games .game .game-name,
#app .gamebrowser-wrapper .games .game .game-players,
#app .gamebrowser-wrapper .games .game .game-host,
#app .gamebrowser-wrapper .games .game .game-ping {
    display: inline-block;
    vertical-align: middle;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#app .gamebrowser-wrapper .games .game .game-flags img {
    vertical-align: middle;
}

#app .gamebrowser-wrapper .games .games-label {
    margin-left: 3px;
    vertical-align: middle;
}

#app .gamebrowser-wrapper .games-list {
    height: 235px;
}

#app .gamebrowser-wrapper .players-list .player {
    padding: 3px;
}

#app .gamebrowser-wrapper .games .game .game-host {
    width: 110px;
}

#app .gamebrowser-wrapper .games .game .game-ping {
    width: 30px;
}

#app .gamebrowser-wrapper .games .game .game-ping meter {
    width: 100%;
    height: 11px;
    position: relative;
    top: -1px;

    /* Needed for Firefox */
    background: transparent;
    border-width: 0;
}

#app .gamebrowser-wrapper .games .game .game-ping meter::-webkit-meter-bar {
    background: transparent;
    border-radius: 0;
    border-width: 0;
    height: 11px;
}

#app .gamebrowser-wrapper .games .game .game-ping meter::-moz-meter-bar {
    background: transparent;
    border-radius: 0;
    border-width: 0;
    height: 11px;
    box-sizing: border-box;
}

#app .gamebrowser-wrapper .games .game .game-ping meter::-webkit-meter-optimum-value {
    background-blend-mode: multiply, screen, multiply;
    background:
        linear-gradient(90deg, #b0b0b0, #fff),
        linear-gradient(180deg, #606060 20%, #000 21%),
        linear-gradient(180deg, #fff 79%, #ccc 80%),
        linear-gradient(limegreen, limegreen);
}

#app .gamebrowser-wrapper .games .game .game-ping meter:-moz-meter-optimum::-moz-meter-bar {
    background-blend-mode: multiply, screen, multiply;
    background:
        linear-gradient(90deg, #b0b0b0, #fff),
        linear-gradient(180deg, #606060 20%, #000 21%),
        linear-gradient(180deg, #fff 79%, #ccc 80%),
        linear-gradient(limegreen, limegreen);
}

#app .gamebrowser-wrapper .games .game .game-ping meter::-webkit-meter-suboptimum-value {
    background-blend-mode: multiply, screen, multiply;
    background:
        linear-gradient(90deg, #b0b0b0, #fff),
        linear-gradient(180deg, #606060 20%, #000 21%),
        linear-gradient(180deg, #fff 79%, #ccc 80%),
        linear-gradient(orange, orange);
}

#app .gamebrowser-wrapper .games .game .game-ping meter:-moz-meter-sub-optimum::-moz-meter-bar {
    background-blend-mode: multiply, screen, multiply;
    background:
        linear-gradient(90deg, #b0b0b0, #fff),
        linear-gradient(180deg, #606060 20%, #000 21%),
        linear-gradient(180deg, #fff 79%, #ccc 80%),
        linear-gradient(orange, orange);
}

#app .gamebrowser-wrapper .games .game .game-ping meter::-webkit-meter-even-less-good-value {
    background-blend-mode: multiply, screen, multiply;
    background:
        linear-gradient(90deg, #808080, #fff),
        linear-gradient(180deg, #606060 20%, #000 21%),
        linear-gradient(180deg, #fff 79%, #ccc 80%),
        linear-gradient(red, red);
}

#app .gamebrowser-wrapper .games .game .game-ping meter:-moz-meter-sub-sub-optimum::-moz-meter-bar {
    background-blend-mode: multiply, screen, multiply;
    background:
        linear-gradient(90deg, #808080, #fff),
        linear-gradient(180deg, #606060 20%, #000 21%),
        linear-gradient(180deg, #fff 79%, #ccc 80%),
        linear-gradient(red, red);
}

#app .lobby-form .chat-wrapper {
    margin-top: 10px;
    clear: both;
}

#app .chat-wrapper .messages {
    margin-bottom: 10px;
    padding: 3px;
    border: 1px red solid;
    height: 125px;
    overflow-y: auto;
}

#app .lobby-form .messages {
    height: 70px;
}

#app .chat-wrapper .messages .message {
    white-space: pre-wrap;
    word-wrap: break-word;
}

#app .chat-wrapper .messages .message.type-page {
    color: white;
}

#app .chat-wrapper .messages .message.type-whisper {
    color: mediumpurple;
}

#app .chat-wrapper .new-message-wrapper {
    padding-right: 27px;
    /** 3px margin + 24px icon */
    position: relative;
}

#app .chat-wrapper .new-message {
    vertical-align: top;
    margin-right: 3px;
    width: 100%;
}

#app .chat-wrapper .send-message-button {
    position: absolute;
    right: 0;
    top: 0;
}

#app .map-sel-form {
    padding: 86px 86px;
    box-sizing: border-box;
}

#app .map-sel-form .map-sel-title {
    text-align: center;
    margin-bottom: 40px;
}

#app .map-sel-form .map-sel-body {
    display: flex;
}

#app .map-sel-form .map-sel-body>*+* {
    margin-left: 20px;
}

#app .map-sel-form .map-sel-game-mode {
    width: 150px;
}

#app .map-sel-form .map-sel-game-mode .list-title {
    line-height: 26px;
}

#app .map-sel-form .map-sel-map {
    width: 250px;
}

#app .map-sel-form .game-mode-list,
#app .map-sel-form .map-list {
    height: 300px;
}

#app .map-sel-form .list-header,
#app .map-sel-form .map-list .list-item {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#app .map-sel-form .map-list-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
}

#app .map-sel-form .map-list-sort label {
    font-size: 16px;
    vertical-align: middle;
}

#app .map-sel-form .map-list-sort .map-list-sort-select {
    margin-left: 5px;
    min-width: 100px;
}

#app .map-sel-form .map-sel-search {
    margin-top: 10px;
}

#app .map-sel-form .map-sel-search label {
    display: flex;
    align-items: center;
}

#app .map-sel-form .map-sel-search label span {
    margin-right: 5px;
}

#app .map-sel-form .map-sel-search label input {
    flex: 1 0;
}

#app ::-webkit-scrollbar {
    width: 19px;
    height: 18px;
}

#app ::-webkit-scrollbar,
#app ::-webkit-scrollbar-button:vertical,
#app ::-webkit-scrollbar-thumb:vertical {
    border-left: 1px red solid;
    border-right: 1px red solid;
}

#app ::-webkit-scrollbar-button:vertical,
#app ::-webkit-scrollbar-thumb:vertical {
    background-image: var(--res-icons-24);
}

#app ::-webkit-scrollbar-thumb:vertical {
    border-top: 1px solid #a20000;
    border-bottom: 1px solid #a20000;
}

#app ::-webkit-scrollbar-button:vertical:increment {
    background-position: -96px 0;
    width: 18px;
    height: 22px;
}

#app ::-webkit-scrollbar-button:vertical:increment:hover {
    background-position: -120px 0;
}

#app ::-webkit-scrollbar-button:vertical:decrement {
    background-position: -144px 0;
    width: 18px;
    height: 22px;
}

#app ::-webkit-scrollbar-button:vertical:decrement:hover {
    background-position: -168px 0;
}

#app ::-webkit-scrollbar-thumb:vertical {
    background-position: -216px 0;
    background-repeat: repeat-y;
}

#app .loading-screen .special-unit-name {
    position: absolute;
    top: 94px;
    left: 20px;
    color: black;
    text-transform: uppercase;
}

#app .loading-screen .briefing-text {
    position: absolute;
    top: 170px;
    left: 20px;
    background: rgba(0, 0, 0, .5);
    padding: 3px;
    width: 400px;
    font-weight: bold;
}


#app .loading-screen .loading-text {
    position: absolute;
    top: 280px;
    left: 20px;
    background: rgba(0, 0, 0, .5);
    padding: 3px;
    font-weight: bold;
}

#app .loading-screen .player-status-container {
    position: absolute;
    top: 300px;
    left: 20px;
    background: rgba(0, 0, 0, .5);
    padding: 3px;
    width: 400px;
}

#app .loading-screen .player-status {
    margin-top: 3px;
}

#app progress {
    background: transparent;
    border-width: 1px;
    border-style: solid;
    border-color: currentColor;
    padding: 2px;
    height: 11px;
    box-sizing: border-box;
}

#app progress::-webkit-progress-bar {
    background: transparent;
}

#app progress::-webkit-progress-value {
    background-blend-mode: multiply, screen, multiply;
    background:
        linear-gradient(90deg, #808080, #fff),
        linear-gradient(180deg, #606060 20%, #000 21%),
        linear-gradient(180deg, #fff 79%, #ccc 80%),
        linear-gradient(currentColor, currentColor);
}

#app progress::-moz-progress-bar {
    background-blend-mode: multiply, screen, multiply;
    background:
        linear-gradient(90deg, #808080, #fff),
        linear-gradient(180deg, #606060 20%, #000 21%),
        linear-gradient(180deg, #fff 79%, #ccc 80%),
        linear-gradient(currentColor, currentColor);
}

#app .loading-screen .country-name {
    position: absolute;
    bottom: 30px;
    right: 80px;
    font-weight: bold;
}

#app .loading-screen .player-name {
    margin-left: 10px;
    font-weight: bold;
}

#app .loading-screen .player-country-icon {
    margin-left: 10px;
}

#app .opts {
    padding: 86px;
    box-sizing: border-box;
}

#app .opts .slider-item,
#app .opts .item {
    margin: 15px 0;
}

#app .opts .item span.label {
    width: 150px;
    display: inline-block;
    vertical-align: middle;
}

#app .opts .slider-item {
    text-align: center;
}

#app .opts .item span.info {
    margin-left: 5px;
    vertical-align: middle;
}

#app .opts .slider-item span.label,
#app .opts .item span.label {
    width: 150px;
    text-align: right;
    margin-right: 10px;
}

#app .opts.sound-opts input[type="range"] {
    width: 200px;
}

#app .opts.general-opts {
    padding: 64px 86px;
}

#app .opts.general-opts .slider-item {
    text-align: left;
}

#app .opts.general-opts .slider-item span {
    width: 150px;
}

#app .opts.general-opts input[type="range"] {
    width: 150px;
}

#app .opts.general-opts fieldset+fieldset {
    margin-top: 20px;
}

#app .opts.general-opts .select {
    min-width: 100px;
}

#app .opts.general-opts .resolution-select .select {
    min-width: 150px;
}

#app .opts.sound-opts {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    padding: 32px 0;
    margin: 0 auto;
    width: 410px;
}

#app .opts.sound-opts .music-jukebox {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

#app .opts.sound-opts .music-jukebox .jukebox-content {
    display: flex;
    justify-content: center;
    align-items: end;
    min-height: 0;
}

#app .opts.sound-opts .music-jukebox .jukebox-content .controls {
    width: 135px;
    margin-left: 50px;
}

#app .opts.sound-opts .music-jukebox .jukebox-content .controls>div {
    margin-top: 16px;
}

#app .opts.sound-opts .music-jukebox .jukebox-content .playlist {
    width: 220px;
    height: 100%;
    max-height: 200px;
    min-height: 0;
}

#app .opts.sound-opts .music-jukebox .jukebox-footer {
    margin-top: 16px;
    display: flex;
    justify-content: space-between;
    margin-left: 50px;
}

#app .key-opts {
    margin: 0 auto;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
}

#app .key-opts .key-opts-list,
#app .key-opts .key-opts-cur-assign,
#app .key-opts .key-opts-ch-assign {
    display: flex;
}

#app .key-opts .key-opts-list {
    height: 200px;
    margin-bottom: 15px;
}

#app .key-opts .key-opts-left,
#app .key-opts .key-opts-right {
    margin: 0 20px;
    width: 50%;
}

#app .key-opts .key-opts-list .key-opts-left {
    display: flex;
    flex-direction: column;
}

#app .key-opts .key-opts-list .key-opts-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#app .key-opts .key-opts-list .key-opts-right .key-opts-desc-container {
    height: 100px;
    margin-bottom: 50px;
}

#app .key-opts .key-opts-list .key-opts-right .key-opts-cur-assign {
    height: 30px;
    margin-top: 15px;
}

#app .key-opts .key-opts-cur-assign {
    margin-bottom: 15px;
}

#app .key-opts .key-opts-cur-assign .key-opts-cur-assign-value {
    min-height: 15px;
}

#app .key-opts .key-opts-ch-assign input {
    margin: 5px 0;
    width: 100%;
}

#app .key-opts .key-opts-ch-assign .key-opts-right {
    margin-top: 10px;
}

#app .key-opts .key-opts-ch-assign-warn {
    margin: 15px 20px 0 20px;
}

#app fieldset {
    border: 1px red solid;
}

#app .replay-sel-form {
    padding: 46px;
    box-sizing: border-box;
}

#app .replay-sel-form .replay-list {
    height: 300px;
}

#app .replay-sel-form .replay-list .replay-name {
    width: 70%;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    margin-right: 5px;
}

#app .replay-sel-form .replay-details {
    border: 1px red solid;
    padding: 3px;
    margin-top: 16px;
}

#app .replay-sel-form .storage-warning {
    margin-top: 16px;
    color: orange;
}

#app .keep-replay-box input[type="text"] {
    width: 100%;
    margin-top: 8px;
}

#app .mod-sel-form {
    padding: 46px;
    box-sizing: border-box;
}

#app .mod-sel-form .mod-list {
    height: 200px;
}

#app .mod-sel-form .mod-list .mod-name {
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

#app .mod-sel-form .mod-details {
    border: 1px red solid;
    padding: 3px;
    margin-top: 16px;
}

#app .mod-sel-form .mod-details .mod-desc {
    overflow: auto;
    display: block;
    max-height: 70px;
}

#app .diplo-form,
#app .con-info-form {
    padding: 86px 86px;
    box-sizing: border-box;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#app .diplo-form table {
    margin: 0 auto;
    margin-bottom: 200px;
}

#app .diplo-form thead {
    color: yellow;
    text-align: left;
}

#app .diplo-form th {
    font-weight: 500;
}

#app .diplo-form th,
#app .diplo-form td {
    width: 70px;
    padding: 5px 0;
}

#app .diplo-form th.player-name,
#app .diplo-form td.player-name {
    width: 200px;
}

#app .diplo-form input[type="checkbox"]:disabled {
    opacity: 0.5;
}

#app .diplo-form-footer,
#app .con-info-form-footer {
    margin: 0 auto;
    width: 500px;
}

#app .diplo-form-footer>*+*,
#app .con-info-form-footer>*+* {
    margin-top: 30px;
}

#app .con-info-form .con-info-form-content {
    flex-grow: 1;
}

#app .con-info-form table {
    margin: 0 auto;
}

#app .con-info-form td {
    width: 70px;
    padding: 5px 0;
}

#app .con-info-form td.player-name {
    width: 150px;
}

#app .con-info-form td.player-ping {
    width: 300px;
}

#app .con-info-form td.player-ping meter {
    width: 100%;
    height: 24px;

    /* Needed for Firefox */
    background: transparent;
    border: 1px red solid;
}

#app .player-ping meter::-webkit-meter-bar {
    background: transparent;
    border-radius: 0;
    border: 1px red solid;
    padding: 1px;
    height: 24px;
}

#app .player-ping meter::-moz-meter-bar {
    background: transparent;
    border-radius: 0;
    margin: 1px;
    height: 22px;
    box-sizing: border-box;
}

#app .player-ping meter::-webkit-meter-optimum-value {
    background: limegreen;
}

#app .player-ping meter:-moz-meter-optimum::-moz-meter-bar {
    background: limegreen;
}

#app .player-ping meter::-webkit-meter-suboptimum-value {
    background: orange;
}

#app .player-ping meter:-moz-meter-sub-optimum::-moz-meter-bar {
    background: orange;
}

#app .player-ping meter::-webkit-meter-even-less-good-value {
    background: red;
}

#app .player-ping meter:-moz-meter-sub-sub-optimum::-moz-meter-bar {
    background: red;
}

#app .prefetch-progress {
    display: flex;
    justify-content: center;
    pointer-events: none;
    color: red;
}

#app .prefetch-progress>div {
    padding: 0 5px;
    background: rgba(0, 0, 0, .5);
}

#app .prefetch-progress label {
    margin-right: 10px;
}

#app .prefetch-progress label,
#app .prefetch-progress progress {
    vertical-align: middle;
}

#app .game-res-box.message-box,
#app .basic-error-box.message-box {
    background: rgba(255, 255, 255, .1);
    border: 2px #8d8d8d outset;
}

#app .game-res-box.message-box {
    width: 640px;
    height: 520px;
    text-align: center;
    /* Leave space for the disclaimer on low res */
    margin-top: -30px;
}

#app .game-res-box.message-box.game-res-box-no-dl {
    height: 420px;
}

#app .game-res-box.message-box .message-box-content {
    padding: 30px;
    padding-top: 5px;
}

#app .game-res-box.message-box .message-box-content .title {
    font-size: 15px;
    text-align: center;
    margin: 8px 0 15px 0;
}

#app .game-res-box.message-box .close-button {
    background-image: url("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMjRweCIgaGVpZ2h0PSIyNHB4IiB2aWV3Qm94PSIwIDAgMjQgMjQiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8IS0tIEdlbmVyYXRvcjogU2tldGNoIDUyLjIgKDY3MTQ1KSAtIGh0dHA6Ly93d3cuYm9oZW1pYW5jb2RpbmcuY29tL3NrZXRjaCAtLT4KICAgIDx0aXRsZT5iYXNlbGluZS1jbG9zZS0yNHB4PC90aXRsZT4KICAgIDxkZXNjPkNyZWF0ZWQgd2l0aCBTa2V0Y2guPC9kZXNjPgogICAgPGcgaWQ9InJlQ3JlYXRlIiBzdHJva2U9Im5vbmUiIHN0cm9rZS13aWR0aD0iMSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj4KICAgICAgICA8ZyBpZD0idHhWaWV3X2dyYXBocyIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTExMzIuMDAwMDAwLCAtMTk4LjAwMDAwMCkiIGZpbGw9InllbGxvdyIgZmlsbC1ydWxlPSJub256ZXJvIj4KICAgICAgICAgICAgPGcgaWQ9Ikdyb3VwLTE0IiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgzMzAuMDAwMDAwLCAxNzYuMDAwMDAwKSI+CiAgICAgICAgICAgICAgICA8ZyBpZD0iR3JvdXAtMTAiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDIyLjAwMDAwMCwgMTYuMDAwMDAwKSI+CiAgICAgICAgICAgICAgICAgICAgPGcgaWQ9ImJhc2VsaW5lLWNsb3NlLTI0cHgiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDc4MC4wMDAwMDAsIDYuMDAwMDAwKSI+CiAgICAgICAgICAgICAgICAgICAgICAgIDxwb2x5Z29uIGlkPSJTaGFwZSIgcG9pbnRzPSIxOSA2LjQxIDE3LjU5IDUgMTIgMTAuNTkgNi40MSA1IDUgNi40MSAxMC41OSAxMiA1IDE3LjU5IDYuNDEgMTkgMTIgMTMuNDEgMTcuNTkgMTkgMTkgMTcuNTkgMTMuNDEgMTIiPjwvcG9seWdvbj4KICAgICAgICAgICAgICAgICAgICA8L2c+CiAgICAgICAgICAgICAgICA8L2c+CiAgICAgICAgICAgIDwvZz4KICAgICAgICA8L2c+CiAgICA8L2c+Cjwvc3ZnPg==");
    width: 24px;
    height: 24px;
    position: absolute;
    top: 8px;
    right: 8px;
    cursor: pointer;
}

#app .game-res-box.message-box .message-box-content .drop-container {
    border: 2px dashed #353535;
    background-repeat: no-repeat;
    background-image: url(res/img/download-arrow.png);
    background-position: 50% 170px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

#app .game-res-box.message-box .message-box-content .drop-container.dropzone-active {
    background: rgba(255, 255, 255, .2);
}

#app .game-res-box.message-box .message-box-content .drop-container .drop-figures {
    color: white;
    font-size: 16px;
    height: 153px;
    margin-bottom: 40px;
    pointer-events: none;
}

#app .game-res-box.message-box .message-box-content .drop-container .drop-figures * {
    vertical-align: middle;
    margin: 0 10px 0 15px;
    display: inline-block;
}

#app .game-res-box.message-box .message-box-content .drop-container .desc {
    color: #777;
    font-size: 14px;
}

#app .game-res-box.message-box .message-box-content .browse-buttons {
    text-align: center;
}

#app .game-res-box.message-box .message-box-content .browse-buttons .dialog-button:first-child {
    margin-right: 10px;
}

#app .game-res-box.message-box .message-box-content .dialog-button,
#app .basic-error-box.message-box .message-box-footer .dialog-button {
    display: inline-block;
    margin: 0;
    background: darkred;
    border: 1px red outset;
}

#app .game-res-box.message-box .message-box-content .dialog-button:hover,
#app .basic-error-box.message-box .message-box-footer .dialog-button:hover {
    background: orangered;
}

#app .game-res-box.message-box .message-box-content .link-container {
    text-align: center;
}

#app .game-res-box.message-box .message-box-content .browse-container .archive-formats {
    text-align: center;
}

#app .game-res-box.message-box .message-box-content em {
    font-size: 11px;
}

#app .score-wrapper {
    margin: 86px;
    padding: 8px;
    box-sizing: border-box;
    background-color: rgba(0, 0, 0, .65);
}

#app .score-wrapper .score-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
}

#app .score-wrapper table {
    margin: 0 auto;
}

#app .score-wrapper thead {
    color: yellow;
    text-align: left;
}

#app .score-wrapper th {
    font-weight: 500;
}

#app .score-wrapper th,
#app .score-wrapper td {
    width: 70px;
    padding: 5px 0;
}

#app .score-wrapper .number {
    text-align: right;
}

#app .score-wrapper th.player-name,
#app .score-wrapper td.player-name {
    width: 200px;
}

#app .patch-notes {
    padding: 32px 32px;
    box-sizing: border-box;
    height: 100%;
    width: 100%;
}

#app .credits-container {
    overflow-y: auto;
    overflow-x: hidden;
    margin: 7px;
    height: calc(100% - 11px);
    width: calc(100% - 12px);
}

#app .credits-container .credits {
    padding: 32px;
    text-align: center;
}

#app .credits-container .credits .def {
    display: flex;
    margin: 0 auto;
    width: 75%;
}

#app .credits-container .credits .def .filler {
    flex-grow: 1;
}

#app .storage-explorer {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    padding: 8px;
}

#app .storage-explorer .fe_fileexplorer_wrap {
    font-size: 16px !important;
    color: #000 !important;
}

#app .storage-explorer .fe_fileexplorer_wrap .fe_fileexplorer_path_segments_scroll_wrap::-webkit-scrollbar,
#app .storage-explorer .fe_fileexplorer_wrap .fe_fileexplorer_folder_tools_scroll_wrap::-webkit-scrollbar,
#app .storage-explorer .fe_fileexplorer_wrap .fe_fileexplorer_items_clipboard_overlay::-webkit-scrollbar,
#app .storage-explorer .fe_fileexplorer_wrap .fe_fileexplorer_textarea::-webkit-scrollbar {
    border: 0 !important;
    width: 0 !important;
    height: 0 !important;
}

#app .storage-explorer .fe_fileexplorer_wrap button,
#app .storage-explorer .fe_fileexplorer_wrap input,
#app .storage-explorer .fe_fileexplorer_wrap select {
    color: inherit !important;
}

#app .storage-explorer .fe_fileexplorer_wrap .fe_fileexplorer_popup_wrap {
    color: inherit !important;
}

#app .storage-explorer .fe_fileexplorer_wrap .fe_fileexplorer_items_wrap {
    padding-right: 2px;
}

#tmpInput {
    position: absolute;
    left: 70px;
    top: 2px;
    background: rgba(0, 0, 0, 0);
    border: none;
    font-size: 12px;
    border: transparent;
    outline: none;
}

.qqgroup {
    margin-left: 50%;
    width: 40%;
}