html {
    height: 100vh;
}
body {
    height: 100vh;
    background-image: linear-gradient(RGBA(111, 142, 162, 0.9), #F8F8F8), url("/fixed/img/hexagon_tessellation.png");
    background-attachment: fixed;
    margin: 0;
    display: flex;
    flex-direction: column;
}
* {
    scrollbar-width: thin;
    scrollbar-height: thin;
    scrollbar-color: gray RGBA(243, 204, 21, 0.9);
}
*::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}
*::-webkit-scrollbar-track {
    background: gray;
}
*::-webkit-scrollbar-thumb {
    background-color: RGBA(243, 204, 21, 0.9);
}

header {
    height: calc(3vmin + 1rem);
    background-color: RGBA(7, 7, 28);
    border-bottom: 2px;
    border-bottom-style: outset;
    border-color: #d0a616;
    padding: 0.5% 2% 0.5% 2%;
    white-space: nowrap;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
}
header > #logo {
    flex-grow: 1;
    display: flex;
    flex-direction: row;
    align-items: baseline;
}
#search {
    min-width: 200px;
    margin-left: calc(2vw + 1rem);
    flex-grow: 5;
    display: flex;
}
#search_bar {
    height: 32px;
    width: calc(1px + 90%);
}
.ui-autocomplete {
    max-height: 400px;
    margin-bottom: 50px;
    overflow-x: auto;
    overflow-y: auto;
}
.search_item {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}
.add_to_swarm {
    border: 1px solid;
    border-radius: 5px;
    padding: 2px;
}

header > #i18n {
    margin-left: calc(2vw + 1rem);
    flex-grow: 0;    
}
header > #vct_switch {
    display: flex;
}
/* Source: https://danklammer.com/articles/simple-css-toggle-switch/ */
.vct_toggle {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    position: relative;
    height: 32px;
    width: 90px;
    background-color: rgba(90, 90, 90, .8);
    border: none;
    /* border-radius: 50px; */
    outline: none;
    display: inline-block;
    cursor: pointer;
    overflow: hidden;
    transition: background-color ease 0.3s;
}
.vct_toggle:before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    z-index: 2;
    height: 28px;
    width: 28px;
    background: #fff;
    /* border-radius: 50%; */
    display: block;
    white-space: nowrap;
    transition: all cubic-bezier(0.3, 1.5, 0.7, 1) 0.3s;
    font: 10px/28px 'Lexend';
    font-weight: bold;
    color: #fff;
    text-shadow: -1px -1px rgba(0,0,0,0.15);
    text-transform: uppercase;
    text-indent: 60px;
}
.vct_toggle:checked {
    background-color: rgba(243, 204, 21, 0.9);
}
.vct_toggle:checked:before {
    content: 'vct/l+gc';
    left: 60px;
    text-indent: -55px;
}
.vct_toggle:after {
    content: 'all maps';
    position: absolute;
    top: 2px;
    right: 28px;
    z-index: 2;
    height: 28px;
    width: 28px;
    /* background: #fff; */
    /* border-radius: 50%; */
    display: block;
    white-space: nowrap;
    transition: all cubic-bezier(0.3, 1.5, 0.7, 1) 0.3s;
    font: 10px/28px 'Lexend';
    font-weight: bold;
    color: #fff;
    text-shadow: -1px -1px rgba(0,0,0,0.15);
    text-transform: uppercase;
    /* text-indent: -58px; */
}
.vct_toggle:checked:after {
    content: '';
    right: 60px;
}
header > #user {
    margin-left: calc(2vw + 1rem);
    display: flex;
}
#signoff, #clear_swarm, #go_back, .stat_filter_button, #cancel_auto {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: RGBA(111, 142, 162, 0.5);
    border: None;
    border-radius: 6px;
    padding: 6px 14px;
    transition: background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1) 0s;
}
#signoff:hover, #signoff:focus, #clear_swarm:hover, #clear_swarm:focus, 
#go_back:hover, #go_back:focus, 
.stat_filter_button:hover, .stat_filter_button:focus {
    background-color: RGBA(111, 142, 162, 1.0);
}

#basket, #add_to_basket, #remove_from_basket {
    position: fixed;
    left: 90%;
    width: 36px;
    background-color: #F5F5F5;
    border: 1px solid;
    border-color: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    box-shadow: 0 0.1rem 0.1rem rgba(0, 0, 0, 0.2);
    margin: auto;
    padding: 6px;
}
#add_to_basket {
    bottom: 90px;
}
#remove_from_basket {
    bottom: 90px;
}
#basket {
    bottom: 36px;   
}
.hidden_button {
    display: none;
}

abbr[data-title]:hover::after, abbr[data-title]:focus::after {
    content: attr(data-title);
    position: absolute;
    z-index: 10;
    top: 40px;
    left: 15px;
    background-color: #F5F5F5;
    border-radius: 5px;
    box-shadow: 0 0 1px 3px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
    padding: 3px;
}
abbr[data-title].filter_hint:hover::after, abbr[data-title].filter_hint:focus::after {
    content: attr(data-title);
    position: fixed;
    z-index: 10;
    top: 25%;
    left: -2px;
    background-color: #F5F5F5;
    border-radius: 5px;
    box-shadow: 0 0 1px 3px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
    padding: 3px;
}

span.raw_reveal {
    cursor: pointer;
}

nav {
    background-color: RGBA(7, 7, 28, .8);
    padding: 0 1% 0 1%;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: space-evenly;
}
#nav_menu_items {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-evenly;
}
.rec_option {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-evenly;
}
.nav_item {
    border: 1px solid;
    border-color: #d0a616;
    flex-grow: 1;
}
.nav_invis {
    display: none !important;
}
.nav_select {
    background-color: #d0a616 !important;
}

#login {
    border-radius: 5px;
    box-shadow: rgba(0, 0, 0, 0.4) 0px 3px 8px;
}
#login > fieldset {
    border: 3px outset;
    border-radius: 5px;
}
fieldset > div {
    margin-bottom: 8px;
}

#about_vlh {
    padding-top: 1%;
    padding-left: 2%;
    margin-top: 5%;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: flex-start;    
}
#wiv {
    flex-grow: 0;
}
#about_us {
    flex-grow: 10;
}
#wiv, .wiv_tab {
    opacity: 1 !important;
    border: unset !important;
}
.wiv_tab, .about_tab {
    padding: 0px 6px 0px 3px !important;
    margin: 0px !important;
}
.about_tab {
    background-color: RGBA(111, 142, 162, 0.1) !important;
}
.about_define {
    padding: 6px 24px 6px 12px !important;
    display: flex;
    flex-direction: column;
}

#directory_help {
    padding-top: 1%;
    padding-left: 2%;
    margin-top: 5%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
}
#directory_img {
    padding-left: 1%;
    overflow: hidden;
    opacity: 0.8;
}

#directory {
    margin-top: 20px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}
.dir_card {
    flex-grow: 5;
}
.dir_card {
    border: 2px rgba(0,0,0,0.8) solid;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
}
.dir_card_title_con {
    flex-grow: 1;
}
.dir_card_content_con {
    background-image: linear-gradient(to bottom right, RGBA(111, 142, 162, 0.3), RGBA(111, 142, 162, 0.1));
    flex-grow: 5;
}
.dir_card .dir_card_title_con, .dir_card .dir_card_content_con {
    border: 2px rgba(0,0,0,0.8) solid;
}
.dir_card_title_line {
    background-color: #d0a616;
    border-radius: 3px;
    margin: 4px;
    padding-top: 3px;
    padding-bottom: 3px;
}
.dir_card_content {
    min-height: 150px;
    min-width: 250px;
    margin: 4px;
    padding-top: 3px;
    padding-bottom: 3px;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
}
.dir_card_content > div {
    margin-bottom: 5px;
}
.dir_card_content #search {
    margin-left: 0px;
    flex-grow: unset;
}
.dir_card_content #search_bar {
    width: 250px;
}

main {
    padding: 0.5% 5% 0.5% 5%;
    flex-grow: 1;
}
main > #form_container {
    background-color: #F5F5F5;
    box-shadow: 0 0.3rem 0.3rem rgba(0, 0, 0, 0.2) inset;
    padding: 0.5% 5% 2% 5%;
}
#form_meta {
    margin-top: 2%;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
}

.main_section {
    padding: 2% 1% 2% 1%;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: space-between;
}
.form_header {
    background-color: RGBA(111, 142, 162, 0.4);
    border-top: 1px solid;
    border-left: 1px solid;
    border-right: 1px solid;
    margin-bottom: 10px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}
.collapse {
    display: none !important;
}
#form > .form_row {
    margin-bottom: 10px;
}
.form_row {
    border-top: 1px solid;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
}
.form_box {
    border-left: 1px solid;
    border-right: 1px solid;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
}
#box_range > .box_data > div {
    padding: 0% 2% 0% 1%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Source: https://stackoverflow.com/a/66201076 */
input[name="report_range"]{
    appearance: none;
    width: 20px;
    height: 20px;
    border: 1px solid #d3d3d3;
    padding-right: 2%;
}
input[name="report_range"]:checked::before{
    position: absolute;
    content: "\00A0\2713\00A0" !important;
}

.box_header {
    position: relative;
    background-color: RGBA(111, 142, 162, 0.1);
    padding: .8% .8% .8% .8%;
    white-space: nowrap;
}
#box_distance .box_header, #box_distance_percent .box_header {
    width: 98%;
}
.box_data {
    margin: 5px;
    white-space: nowrap;
    display: flex;
    flex-direction: row;
    align-items: baseline;
}
.box_data > span {
    padding: 1% 3px 1% 3px;
    flex-grow: 1;
}
.raw, .swarm_raw {
    display: none;
}
.divider {
    padding-left: 2px;
    padding-right: 2px;
}
#box_instructions > .box_data {
    background-color: RGBA(111, 142, 162, 0.3);
    padding-right: 20px;
    flex-grow: 2;
}
#instructions {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
}
#instructions > span {
    padding: 1% 1% 1% 1%;
    white-space: normal;
}
#instructions.box_data, #box_instructions > .box_data {
    margin: unset !important;
    padding: .8% 3% .8% 3% !important;
}
.box_row {
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
}
.box_row > div {
    white-space: nowrap;
}
#dis_kd_box {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    flex-grow: 1;
}
.dis_cont, .box_footer {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
}
.dis_cont {
    flex-grow: 2;
    align-items: center;
}
.kd_dis, .dis_lab {
    flex-grow: 1;
}
.kd_dis:nth-child(-n+2) {
    border-right: 1px solid rgba(0, 0, 0, 0.6);  
}

#pool_container {
    border-top: 1px solid;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-around;
}
.single_agent {
    border-left: 1px solid rgba(0, 0, 0, 0.2);
    border-right: 1px solid rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid;
    padding: 2% 1% 2% 1%;
    flex-basis: 100%;
}
.single_agent > div {
    border-bottom: 1px dashed;
    border-color:rgba(0, 0, 0, 0.2);
    padding: 3px 0px 3px 0px;
}
.agent_description {
    background-color: RGBA(111, 142, 162, 0.3);
    flex-basis: 100%;
}

.summary {
    /* box-shadow: 0 0.2rem 0.2rem 0 rgba(0, 0, 0, 0.2) inset; */
    background-color: RGBA(111, 142, 162, 0.1);
    margin-top: 15px;
    margin-bottom: 15px;
    padding: 15px;
}

#graph_container {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
}
#graph, #map_graph {
    box-shadow: 0 0.3rem 0.3rem rgba(0, 0, 0, 0.2) inset;
    padding-top: 2;
    overflow: auto;
}
#graph_switch, #map_stat_switch {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}
.graph_tab, .map_graph_tab {
    border: 1px solid;
    padding: 0 2%;
    transform: skewX(-20deg);
}
.graph_tab > div, .map_graph_tab > div {
    transform: skewX(20deg);
}

.matchup_container {
    border-top: 1px solid;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
}
.matchup_description {
    flex-basis: 15%;
}
.matchup_description, .matchup_legend {
    background-color: RGBA(111, 142, 162, 0.3);
    padding: 1% 2% 1% 2%;
}
.matchup_data {
    flex-basis: 80%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: stretch;
    align-content: stretch;
}
.single_mu {
    border-left: 1px solid rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid;    
    padding: 2% 1% 2% 1%;
    flex-basis: 16%;
    flex-grow: 1;    
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
}
.single_mu > div {
    border-bottom: 1px solid;
    border-color:rgba(0, 0, 0, 0.2)
}
.matchup_legend {
    flex-basis: 5%;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
}
.matchup_legend > div {
    padding: 5% 0 5% 0;
    border-bottom: 1px solid;
    border-color:rgba(0, 0, 0, 0.2);
    white-space: nowrap;
}
.matchup_description > h5 {
    margin-top: 0;
    margin-bottom: 0;
}
.mu_player {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
}
.mu_player > svg {
    padding-right: 2%;
}
.mu_stat {
    padding-top: 7%;
}

.redirect {
    margin-top: 2%;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
}
.redirect > div {
    padding: 2%;
}

.ec_button {
    padding: 2px;
}

.rd_button, .ec_button {
    background-color: rgba(243, 204, 21, 0.9);
    border-radius: 4px;
    border-width: 0;
    box-shadow: rgba(0, 0, 0, 0.2) 0 2px 4px, rgba(0, 0, 0, 0.2) 0 2px 4px -3px, rgba(0, 0, 0, 0.2) 0 -3px 0 inset;
    transition: box-shadow .15s, transform .15s;
    cursor: pointer;
}

.rd_button:hover, .ec_button:hover {
    box-shadow: rgba(0, 0, 0, 0.2) 0 4px 8px, rgba(0, 0, 0, 0.2) 0 2px 4px -3px, rgba(0, 0, 0, 0.2) 0 -3px 0 inset;
    transform: translateY(2px);
}

.rd_button:active, .ec_button:active {
    box-shadow: rgba(0, 0, 0, 0.2) 0 3px 7px inset;
    transform: translateY(2px);
}

#expand_collapse {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
}
#expand_collapse > div {
    margin: 5px;
}

.c_table_T {
    fill: rgba(240, 128, 128, 0.8);
}
.c_table_CT {
    fill: rgba(0, 128, 128, 0.8);
}
#contingency {
    overflow: auto;
}

#map_section {
    position: relative;
    -webkit-min-height: fit-content;
    -moz-min-height: fit-content;
    min-height: fit-content;
}
#map_container {
    overflow: auto;  
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
}
.each_map {
    border-top: 1px solid;
    box-shadow: 0 0.3rem 0.3rem rgba(0, 0, 0, 0.2) inset;    
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    cursor: pointer;
}
.team_map.each_map {
    padding-left: 15px;
    padding-right: 15px;
}
.ago_line {
    white-space: nowrap;
}
#each_map_legend, #each_map_more {
    background-color: RGBA(111, 142, 162, 0.1);
}
.W_result {
    background-color: rgba(0, 128, 128, 0.3);
}
.L_result {
    background-color: rgba(240, 128, 128, 0.3);
}
.map_line {
    padding: 5% 0 5% 0;
}
#each_map_legend > .map_line, #each_map_more > .map_line {
    padding: 10% 4px 5% 4px;
}
#each_map_more {
    justify-content: center;
}

.agent_line {
    height: 30px;
    padding: 0% 0%;
    overflow: hidden;
}
.map_agent {
    width: 100px;
    object-fit: cover;
    object-position: 0 -25px;
}
#stamps {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
}
.stamp {
    border: 3px solid;
    border-radius: 25px;
    border-color: rgba(240, 128, 128, 0.8);
    padding: 10px;
}

#search_area {
    padding: 4% 1% 2% 1%;
}
#mobile_warn {
    display: none;
}
#dashboard {
    box-shadow: 0 0.1rem 0.1rem rgba(0, 0, 0, 0.2);
}
#filters {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
}
.filter {
    background-color: RGBA(111, 142, 162, 0.3);
    flex-grow: 1;
}
.filter > div {
    display: flex;
    white-space: nowrap;
    align-items: center;
}
.filter > div > span {
    padding: 1%;
}
.filter select {
    height: 20px;
}
.filter input[type=number]::-webkit-outer-spin-button, 
.filter input[type=number]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
}
.filter input[type=number] {
    -moz-appearance: textfield;
    height: 15px;
    width: 30px;
}
#player-count {
    position: relative;
    top: 2rem;
    left: 5rem;
}
.master, .future_master, .fallen_master, .legend_master {
    stroke: black;
    stroke-width: 1;
    fill: RGBA(243, 204, 21, 0.9);
}
.tooltip {
    position: fixed;
    z-index: 7;    
    background-color: white;
    border: solid;
    border-width: 1px;
    border-radius: 5px;
    padding: 10px;
}

#multiple_dossier {
    border-collapse: collapse;
    box-shadow: 0 0 1px 1px rgba(0, 0, 0, 0.2);
}
.multiple_dossier_data_container {
    margin: 1% 1% 1% 1%;
}
.multiple_dossier_row {
    position: relative;
    border: 1px solid;
}
.multiple_dossier_row:first-child > td.multiple_dossier_data:nth-child(n+2) > div {
    border: 1px solid;
    border-radius: 5px;
    padding-left: 5px;
}
.multiple_dossier_row:nth-child(2n-1) {
    background-color: RGBA(111, 142, 162, 0.3);
}
.multiple_dossier_data {
    width: 230px;
}

#heatmap_container > #heatmap {
    overflow-x: scroll;
}
.hide_eye, .hide_global {
    display: none;
}

#agent_tabs, #loc_tabs {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}
#agent_tabs > .agent_line, #loc_tabs > .loc_line, .agent_row {
    background-color: RGBA(7, 7, 28);
    border: 1px solid;
    border-color: rgba(0, 0, 0, 0.2);
    opacity: 0.3;
}
#agent_tabs > .active_agent, #loc_tabs > .active_loc, .agent_row {
    opacity: 1.0;
}
#agent_tabs > .select_agent, #loc_tabs > .select_loc {
    opacity: 1.0;
}
.loc_line {
    height: 60px;
    padding: 0% 0%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.map_loc {
    width: 100px;
    object-fit: cover;
    object-position: 0 -10px;
}
#agent_tabs > .agent_line, .agent_row, .weapon_row {
    height: 40px;
    padding: 0% 0%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.agent_row, .weapon_row {
    height: 30px;
}
#agent_tabs > .agent_line > a > .map_agent {
    width: 100px;
    object-fit: cover;
    object-position: 0 -30px;
}
.agent_row > .map_agent {
    width: 50px;
    object-fit: cover;
    object-position: 0 -20px;
}
.weapon_row > .sopv_weapon {
    width: 50px;
    object-fit: cover;
    object-position: 0 0px;
}
.weapon_row > .sopv_op {
    width: 50px;
    object-fit: cover;
    transform: rotate(-25deg) translateX(10px) translateY(-20px);
}
.weapon_row > .sopv_knife {
    width: 50px;
    object-fit: cover;
    transform: rotate(25deg) translateX(0px) translateY(-10px);
}
#full_table {
    height: 720px;
    border: 1px solid;
    border-color: rgba(0, 0, 0, 0.2);
    overflow: scroll;  
}
#full_table_head, .sopv_table_head {
    position: sticky;
    top: 0;
    background-color: RGBA(243, 204, 21, 0.9);
}
#full_table_head th {
    position: relative;
}
#full_table tbody tr:nth-child(2n), .sopv_body > table > tbody > tr:nth-child(2n) {
    background-color: RGBA(111, 142, 162, 0.3);
}
#full_table tbody tr:hover, .sopv_body > table > tbody > tr:hover {
    background-color: RGBA(243, 204, 21, 0.3);
}
#full_table tbody td:nth-child(n+3) {
    padding: 0px 2px;
}

#map_logs > #full_table {
    height: unset;
    overflow: unset;
    overflow-x: auto;
}
#map_logs tr {
    white-space: nowrap;
}
#paginator {
    display: flex;
    flex-direction: row;
    justify-content: center;
}
#paginator > div {
    background-color: RGBA(111, 142, 162, 0.2);
    border-radius: 10px;
    width: 60px;
    margin-bottom: 10px;
}
.no_page {
    visibility: hidden;
}

#sopv_container {
    align-items: stretch;
}
#container_head {
    padding-bottom: 5px;
}
.sopv_box {
    background-color: rgba(0, 0, 0, 0.025);
    padding: 15px;
    border-top: 1px solid;
    border-bottom: 1px solid;
    border-color: #444;
    display: flex;
    flex-direction: column;
    align-items: center;
}
#sopv_container select {
    background-color: rgba(0, 0, 0, 0.025);
}
#sopv_container > #map_pick > #map_cards {
    flex-wrap: wrap;
    justify-content: center;
}
.sopv_title_box {
    display: flex;
    flex-direction: row;
}
.sopv_title {
    padding-right: 5px;
}
.agent_combo_row {
    display: flex;
    flex-direction: row;
}
#sopv_nav {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
	justify-content: center;
	white-space: nowrap;
	color: #F5F5F5;
}
#sopv_nav > div {
    padding: 5px;
	border: 1px solid;
	border-color: yellow;
	white-space: normal;
    background-color: #444;
}
.plant_site {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
}

#sub_list {
    padding-top: 20px;
    overflow-x: scroll;
}
#sub {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
}
#sub > div {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    margin: 2px;
}
.sub_detail {
    border: 1px solid black;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-content: start;
    padding: 10px;
    flex-basis: 0;
    flex-grow: 1;
}
#sub_detail > input {
    margin-top: 5px;
    margin-bottom: 10px;
}
#sub_detail > input[type="text"] {
    padding-left: 10px;
}
.sub_info, .sub_spec, .sub_discount {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
}
.sub_info {
    flex-basis: 0;
    flex-grow: 1;
}
.sub_spec {
    padding-left: 5px;
    flex-basis: 0;
    flex-grow: 6;
}
.sub_discount {
    flex-basis: 0;
    flex-grow: 1;
}

.report_date {
    position: relative;
}

/* Inspiration source: https://codepen.io/Mindgames/pen/oxpzQd */
#filter_box {
    position: fixed;
    z-index: 100;
    top: 15%;
    bottom: 5%;
    left: -212px;
    width: 200px;
    background-color: #F5F5F5;
    border: #d0a616 1px inset;
    border-radius: 5px;
    padding: 5px;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: right;
    transition-property: all;
    transition-duration: .25s;
    transition-timing-function: cubic-bezier(0.075, 0.82, 0.165, 1);
}
#filter_box_container {
    overflow: auto;
}
#filter_box button {
    margin: 2px;
}
#filter_option {
    border: #d0a616 1px inset;
    border-radius: 5px;
    margin: 2px 0px 2px 0px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}
#filter_option > div {
    padding: 3px;
    flex-grow: 1;
}
#filter_option li {
    margin: 5px;
}
#filter_box_tab {
    position: absolute;
    top: 8%;
    right: -60px;
    background-color: RGBA(243, 204, 21, 1);
    border: black 1px inset;
    border-radius: 2px 0px 0px 2px;
    box-shadow: 0 0.1rem 0.1rem rgba(0, 0, 0, 0.2);
    margin-top: 25px;
    padding: 2px;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    flex-grow: 1;
    align-items: center;
    transform: rotate(90deg);
}
.filter_box_pullout {
    left: -2px !important;
}
.open_drawer {
    margin: 2px;
}
.close_drawer {
    transform: rotate(180deg);
}
.stat_option {
    list-style-type: none;
}
.selected_stat {
    background-color: RGBA(243, 204, 21, 0.9);
}
#outcome_set > fieldset {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
}
.filter_opts {
    cursor: pointer;
}
#history_pair {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: center;
}
#history_pair input[type=range] {
    width: 150px;
}
#history_pair input[type=number]::-webkit-outer-spin-button, 
#history_pair input[type=number]::-webkit-inner-spin-button,
#round_time_pair input[type=number]::-webkit-outer-spin-button, 
#round_time_pair input[type=number]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
}
#history_pair input[type=number], 
#history_pair input[type=number],
#round_time_pair input[type=number], 
#round_time_pair input[type=number] {
    -moz-appearance: textfield;
    height: 15px;
    width: 30px;
}
#round_time_pair {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
}
#round_time_range {
    width: 70px;
    margin-left: 3px;
    margin-right: 3px;
}
#round_time_pair input[type=number]{
    width: 25px;
}
#round_time_range > span {
    margin-top: 1px;
}
#map_select, #agent_select {
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
}
#roster_container {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow: auto;
}
.roster_card {
    background-color: rgba(0, 128, 128, 0.3);
    border-top: 1px solid;
    box-shadow: 0 0.3rem 0.3rem rgba(0, 0, 0, 0.2) inset;
    padding: 5px;
    display: flex;
    flex-direction: column;
    flex-grow: 2;
    align-items: center;
}
#out_plot, #map_cards, #econ_split {
    overflow: auto;
}
#sankey_help, #econ_help, #out_help, #contest_help {
    box-shadow: 0 0.5rem 0.5rem 0 rgba(0, 0, 0, 0.2) inset;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    padding: 15px;
}
#sankey, #tempo_charts, #econ_split, #contest_plot {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
}
.sankey, .tempo, .economy, .plant_pie {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
}
#map_cards {
    display: flex;
    flex-direction: row;
}
.map_card {
    border-left: 1px solid;
    border-right: 1px solid;
    box-shadow: 0 1rem 1rem 0 rgba(0, 0, 0, 0.2) inset;
    margin: 10px;
    padding: 5px;
    display: flex;
    flex-direction: column;
    white-space: nowrap;
    align-items: center;
}
.map_stat_map_name {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
}
.map_stat_line {
    padding-bottom: 5px;
}
.map_stat_desc {
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
}
.map_pool_card {
    width: 200px;
    border: 1px solid black;
}

#round_results {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
}
#round_results > .each_round {
    display: flex;
    flex-direction: column;
}
.ct_round, .t_round, .each_round_number {
    width: 25px;
    height: 25px;
    background-color: rgba(90, 90, 90, .5);
    border: 1px solid rgba(0, 0, 0, 0.7);
}
.ct_round_team, .t_round_team, .each_round_number_team {
    height: 25px;
    border: 1px solid rgba(0, 0, 0, 0.7);
    padding-left: 5px;
    padding-right: 5px;
}
.each_round_number_team {
    background-color: rgba(90, 90, 90, .3);
}
.center_box {
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}
.CT_result {
    background-color: rgba(0, 128, 128, 0.7);
}
.T_result {
    background-color: rgba(240, 128, 128, 0.7);
}
.CT_result, .T_result {
    stroke: black;
    stroke-width: 1px;    
}
#bs_toggle {
    display: flex;
    flex-direction: row;
}
.bs_invis {
    display: none;
}
#bs_toggle > div {
    border: 1px solid rgba(0, 0, 0, 0.7);
    padding: 5px;
}
.bs_toggled {
    background-color: rgba(90, 90, 90, .3);
}
.box_score {
    height: 440px;
    border: 1px solid;
    border-color: rgba(0, 0, 0, 0.2);
    overflow: auto;  
}
.box_score tr:nth-child(2n) {
    background-color: RGBA(111, 142, 162, 0.3);
}
.box_score tr:hover {
    background-color: RGBA(243, 204, 21, 0.3);
}
.box_score td:nth-child(n+3) {
    padding: 0px 20px;
}
.round_plant {
    text-decoration: underline;
}

footer {
    background-color: RGBA(0, 0, 0, 0.9);
    padding: 0.5% 2% 0.5% 2%;
}
#footer-links {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}