:root {

}

.team-number {
    --team-colors: #4682B4, #FFA500, #80e87c, #DA70D6, #20B2AA, #7FFFD4, #FF8C00, #D8BFD8, #FF6347, #A9A9A9,
    #ADFF2F, #B22222, #BC8F8F, #696969, #00BFFF, #FFFACD, #FF7F50, #0000FF, #00FFFF, #EE82EE,
    #C71585, #FAEBD7, #8B4513, #FFE4C4, #66CDAA, #8A2BE2, #5F9EA0, #2E8B57, #90EE90, #FFFAF0,
    #F5DEB3, #7CFC00, #AFEEEE, #FFFF00, #7B68EE, #191970, #FAFAD2, #98FB98, #008000, #800080,
    #8B008B, #9ACD32, #00FA9A, #FFFFE0, #87CEEB, #6A5ACD, #B8860B, #E9967A, #32CD32, #FFDAB9,
    #DC143C, #008B8B, #F0FFFF, #00FFFF, #F5F5DC, #FF69B4, #FFEBCD, #4B0082, #7FFF00, #FFE4E1,
    #8FBC8F, #FF00FF, #CD853F, #F0E68C, #F4A460, #D3D3D3, #778899, #9932CC, #FFFFFF, #228B22,
    #FFF0F5, #FA8072, #0000CD, #00CED1, #6B8E23, #DAA520, #C0C0C0, #87CEFA, #DCDCDC, #FFFAFA,
    #D2B48C, #F5FFFA, #FFA07A, #808080, #FFF8DC, #808000, #DDA0DD, #9370DB, #E6E6FA, #00008B,
    #F08080, #F0F8FF, #DEB887, #F0FFF0, #9400D3, #556B2F, #1E90FF, #48D1CC, #008080, #DB7093,
    #557063, #314414, #B2A6AE, #C4C4C4, #68873E, #355444, #641A89, #3BDD71, #BEC9B3, #ABF3FC;
    --n: 110;
    --i: 0; /* index  */

    --_i: mod(var(--i), var(--n)); /* the used index */

    background: linear-gradient(var(--team-colors)) no-repeat 0 calc(var(--_i) * 100% / (var(--n) - 1)) /* position */
     / 100% calc(1px * infinity); /* size */

    width: 34px;
    height: 25px;
    text-align: center;
    overflow: hidden;
    border-radius: 6px;
}

body {
    font-family: Verdana, serif;
    font-size: 12pt;
    background-color: #161616;
    color: #f7f9fa;
}

body.matches {
    color: #000000;
}

.inline-error {
    color: #721c24;
    background-color: #f8d7da;
    position: relative;
    padding: .75rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid #f5c6cb;
    border-radius: .25rem;
}

.container {
    color: #000000;
    background-color: #f7f9fa;
    min-height: 80%;
    padding-bottom: 10px;
    padding-top: 6px;
}

.footer {
    width: 100%;
    margin-top: 20px;
    background-color: #161616;
    color: #747474;
    font-size: 8pt;
}

.card {
    margin-bottom: 5px;
}

.info-header {
    margin-top: 5px;
    margin-bottom: 15px;
}

span.section-settings {
    right: 20px;
    position: absolute;
}

.template-wrapper {
    margin-top: 10px;
}

.new-command-wrapper,
.command-wrapper {
    margin-left: 24px;
    margin-right: 24px;
}

.new-command-wrapper {
    margin-bottom: 10px;
}

.edit-actions {
    margin-top: 5px;
}

table {
    width: 100%;
}

div.even,
tr.even {
    background-color: #f8f8f8;
}

div.with-pad {
    padding-left: 5px;
    padding-right: 5px;
}

.hidden {
    display: none;
}

.right {
    text-align: right;
}

.center {
    text-align: center;
}

.small {
    width: 48px;
    text-align: center;
}

.small.wider {
    width: 100px;
    text-align: right;
}

.survived,
.lobbyid {
    text-align: center;
    font-size: 8pt;
}

.survived a,
.survived a:hover,
.survived a:focus,
.survived a:visited {
    color: black;
}

.endmatch {
    border-bottom: 1px solid #b19f9f;
    height: 2px;
}

.winplace {
    font-size: 14pt;
}

td.winplace {
    width: 84px;
}

.topten {
    color: #18a018;
}

.looser {
    color: #ca5013;
}

.map, .mode {
    text-align: center;
}

.map {
    background-color: beige;
}

td.map {
    width: 212px;
}

.map-wrapper {
    position: absolute;
    display: none;
    z-index: 1999;
}


.l-map {
    background-color: #969696;
    height: 512px;
    border: 1px solid black;
    position: relative;
    float: left;
    z-index: 2000;
}

@media (min-width: 769px) {
    .l-map {
        width: 512px;
        float: left;
    }

    .team {
        min-width: 520px !important;
    }
}

@media (max-width: 992px) {
    .card.team {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .l-map {
        width: 100%;
    }

    .map-wrapper {
        position: initial;
        width: 100%;
    }

    .card.team {
        width: 100%;
    }
}

.info {
    padding: 6px 8px;
    font: 14px/16px Arial, Helvetica, sans-serif;
    background: white;
    background: rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    border-radius: 5px;
}

.info h4 {
    margin: 0 0 5px;
    color: #777;
}

.map-header-table {
    width: 100%;
    border: 0;
}

.map-name {
    text-align: center;
}

.map-icon {
    text-align: right;
    width: 20px;
}

.map-legend {
    line-height: 18px;
    color: #555;
}

.map-legend img,
.map-legend i {
    height: 18px;
    float: left;
    margin-right: 8px;
    opacity: 0.7;
}

.map-legend img.narrow {
    margin-left: 2px;
}

.map-legend i {
    width: 18px;
}

.mode {
    background-color: cornsilk;
}

.mode:hover {
    background-color: darkorange;
    cursor: pointer;
}

.parent {
    position: relative;
}

.parent span:not(:first-child) {
    margin-left: -6px;
}

.parent i.fas.fa-running.grey {
    color: lightslategray;
}

.parent i.fas {
    font-size: larger;
}

.totalteams {
    font-size: small;
    color: black;
}

.team {
    position: absolute;
    background-color: #b19f9f;
    left: -1px;
    top: 25px;
    min-width: 280px;
    z-index: 200;
}

span.killer-rank {
    background-color: tan;
}

.death-header,
.kills-header,
.knownPlayer-header,
.team-header {
    background-color: #ca5013;
    padding: 2px;
}

.death-content,
.kills-content,
.knownPlayer-content,
.team-content {
    text-align: left;
    padding: 5px;
}

.team-member {
    display: flex;
    align-items: center;
}

.team ul {
    margin-left: -40px;
}

.team li {
    list-style: none;
}

span.mode-tag {
    color: white;
    background-color: brown;
    padding: 2px;
    font-size: 8pt;
    margin: 0px 2px !important;
}

#heartRateStats {
    position: absolute;
    left: 180px;
    top: 15px;
    font-size: initial;
    color: black;
}

.weapon-main {
    height: 28px;
}

.weapon-melee,
.weapon-handgun {
    height: 32px;
}

.weapon-card {
    width: 350px;
    float: left;
    margin-left: 5px;
    margin-bottom: 10px;
}

.weapon-card .card-header {
    background-color: #000000b5;
    color: white;
}

a.silent,
a.silent:link,
a.silent:visited,
a.silent:hover {
    color: black;
    outline: none;
    text-decoration: none;
}

a.faint,
a.faint:link,
a.faint:visited,
a.faint:hover {
    color: #454343;
    outline: none;
    text-decoration: none;
}

span.icon.smaller,
a.silent.smaller {
    font-size: x-small;
}

.profile-image {
    width: 64px;
}

.stats-header {
    font-family: agency;
    text-transform: uppercase;
    font-size: 3vh;
}

.stats-kd {
    font-family: agency;
    text-transform: uppercase;
    color: black;
    font-size: 6vh;
    text-align: center;
}

.stats-kd-indicator {
    position: relative;
    font-size: 4.5vh;
    top: 1vh;
}

.seasion-small {
    font-size: 2vh;
    margin-top: auto;
    margin-bottom: auto;
}

span.chat-placeholder {
    background-color: darkslategrey;
    color: white;
    padding: 2px;
    border-radius: 5px;
}

span.command-indicator {
    font-weight: bold;
}

span.required {
    color: red;
    vertical-align: super;
    font-size: smaller;
}

span.live {
    color: red;
    font-style: italic;
}

ul.carePackage {
    list-style: none;
    margin-left: -3em;
}

.team-member-table,
.victim-table {
    display: table;
    border-collapse: collapse;
    width: 100%;
}

.team-member-row,
.victim-row {
    display: table-row;
}

.victim-row.colspan > .victim-data {
    display: block;
    width: 600%;
    box-sizing: border-box;
}

.team-member-data,
.survival-data,
.victim-data {
    display: table-cell;
    padding: 2px 1px 2px 1px;
}

.victim-data.span-all {
    display: block;
    width: 300%;
    font-size: 0.8em;
}

.fa-smaller {
    font-size: 0.7em !important;
}

.team-member-data.first,
.victim-data.first {
    width: 34px;
}

.survival-data.chevron {
    width: 34px;
    text-align: right;
}

.victim-data.small {
    width: 20px;
}

.survival-table {
    display: table;
}

.survival-row {
    display: table-row;
}

.survival-data {
    font-size: 0.8em;
}

#message-container {
    overflow: auto;
    min-width: 622px;
    min-height: 384px;
}

#message-container .chat-mention {
    background-color: grey;
    padding: 1px;
    color: white;
}

.chat-faint {
    color: #5a6268;
}

.chat-msg {
    margin-bottom: 2px;
}

.chat-sub-msg {
    border-left: 4px solid #007eff;
}

.chat-sub-msg span:first-child {
    margin-left: 4px;
}

img.chat-emote {
    height: 2em;
    vertical-align: middle;
}

span.ts {
    color: darkseagreen;
}

.leaflet-popup-tip,
.leaflet-popup-content-wrapper {
    color: #dadada !important;
    background-color: #605f5f !important;
}

.leaflet-popup-content-wrapper .killer-rank {
    background-color: inherit;
}

img.dbno,
img.death {
    height: 22px;
}

img.dbno {
    margin-bottom: 7px;
    margin-right: -2px;
}

img.death {
    margin-left: -8px;
}

/* game page */
.game {
    display: flex;
    flex-wrap: nowrap;
    align-items: start;
    justify-content: space-between;
    margin-bottom: 10px;
    border: 1px solid #8d9da1;
    border-radius: 6px;
    padding: 8px;
}

.game-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 33%;
}

.map-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 33%;
}

.team-info {
    width: 100%;
}

.team-info:hover {
    background-color: cornsilk;
    cursor: inherit;
}

.stats-info {
    display: flex;
    flex-direction: column;
    align-items: start;
    width: 15%;
}

