:root {
    --input-padding: 16px;
    --primary-color: #000080;
    --primary-text-color: #FFFFFF;
    --secondary-color: #FFB30F;
    --secondary-text-color: #000000;
    --background-color: #F0F0F0;
    --background-text-color: #000000;
    --foreground-color: #FFFFFF;
    --foreground-text-color: #000000;
    --disabled-color: #F0F0F0;
    --disabled-text-color: #000000;
    --active-color: #1E90FF;
    --active-text-color: #FFFFFF;
    --hover-color: #ADD8E6;
    --hover-text-color: #000000;
    --border-color: #000000;
    --inactive-color: #C0C0C0;
    --inactive-text-color: #FFFFFF;
    --red-alliance-color: #FF4136;
    --blue-alliance-color: #0074D9;
    --green-alliance-color: #2ECC40;
    --alt-table-color: #F2F2F2;
    --highlight-color: #FFF2A8;
    --error-color: #FFA8B5;
    --font: mono, courier;
    --font-size: "medium";
}

html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

html {
    background-color: var(--background-color);
    color: var(--background-text-color);
    touch-action: manipulation;
    font-family: var(--font);
}

body {
    margin: 0;
    text-align: center;
    display: flex;
    flex-flow: column;
}

#header {
    position: relative;
    font-size: 16px;
    border-style: solid;
    width: 100%;
    text-align: center;
    background-color: var(--primary-color);
    border-color: var(--secondary-color);
    border-width: 0 0 4px 0;
    padding: var(--input-padding) 0;
    color: var(--primary-text-color);
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    user-select: none;
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none;
}

#header h1, #header h2
{
    margin: 0;
    display: inline-block
}

@keyframes rainbow { 
    0%{background-position:0% 82%}
    50%{background-position:100% 19%}
    100%{background-position:0% 82%}
}

#header a {
    color: var(--primary-text-color);
    text-decoration: none;
}

th, td {
    padding: 8px;
}
  
tr:nth-child(even) {
    background-color: var(--alt-table-color);
}

.sticky_header {
    background-color: var(--foreground-color);
    position: sticky;
    top: 0;
}

#pick_list_table {
    user-select: none;
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none;
}

#pick_list_table td, #pick_list_table th {
    text-align: center;
    padding: 16px;
}

#pick_list_table .team_cell {
    text-align: right;
}

#mpl-teams {
    overflow-x: scroll;
    display: block
}

.avatar {
    display: inline-block;
    height: 50px;
    width: 50px;
}

.blue {
    color: var(--blue-alliance-color);
}

.red {
    color: var(--red-alliance-color);
}

.notification {
    position: fixed;
    bottom: 0;
    width: 100%;
    transform: translate(0%, 100%);
    padding: var(--input-padding);
    transition: transform 1s linear 0s;
    user-select: none;
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none;
    color: #000000;
    visibility: collapse;
}

#update_notification {
    background-color: var(--highlight-color);
}

#warning_notification {
    background-color: var(--error-color);
}

.crossed_out {
    text-decoration: line-through;
    color: red;
}

.faded {
    color: #C0C0C0;
}

.meta_table {
    font-size: small;
    margin: 0 auto;
}

#body {
    overflow: hidden;
    display: flex;
    flex-flow: row;
}

#left, #right {
    min-width: 299px; /* 300 - 1 */
    max-width: 299px; /* 300 - 1 */
    overflow: hidden;
    display: none;
    flex-flow: column;
    border-style: solid;
    border-color: rgb(224, 224, 224);
    border-width: 0 1px 0 0;
    margin: 0;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19); /* TODO left of #right */
}

#option_list, #secondary_option_list {
    overflow-y: scroll;
    overflow-x: hidden;
    scrollbar-width: none;
    margin: 0;
}

#center {
    flex-grow: 1;
    display: flex;
    flex-flow: column;
    overflow-x: hidden;
}

#preview {
    padding: 8px;
    text-align: center;
    vertical-align: middle;
    overflow-y: scroll;
    overflow-x: auto;
}

#pick_lists {
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

#pick_lists .wr_button, #pick_lists .wr_dropdown {
    margin-bottom: 0;
}

.pit_option {
    display: block;
    overflow: hidden;
    clear: both;
    font-size: 16px;
    border-style: solid;
    border-color: var(--border-color);
    border-width: 0 0 1px 0;
    padding: 16px;
    background-color: var(--foreground-color);
}

.match_option {
    display: block;
    margin-bottom: 0;
    overflow: hidden;
    clear: both;
    font-size: 16px;
    border-style: solid;
    border-color: var(--border-color);
    border-width: 0 0 1px 0;
    padding: 16px;
    background-color: var(--foreground-color);
}

.match_option > *, .pit_option > * {
    text-align: center;
    display: inline-block;
    vertical-align: middle;
    padding: 0 auto 0;
}

.option_number {
    font-size: 200%;
    width: 70px;
    text-align: center;
    padding: 0 auto 0;
}

.long_option_val {
    font-size: 200%;
    text-align: center;
    padding: 0 auto 0;
}

.long_option_number {
    font-size: 175%;
    text-align: center;
    padding: 0 auto 0;
}

.long_option_description {
    font-size: 100%;
    text-align: center;
    padding: 0 auto 0;
}

.alliance {
    width: 170px;
}

.scouted {
    background-color: var(--inactive-color);
    color: var(--inactive-text-color);
}

.highlighted {
    background-color: var(--highlight-color);
}

.selected {
    background-color: var(--active-color);
    color: var(--active-text-color);
}

#whiteboard {
    background-size: 100% 100%;
    user-select: none;
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none;
    touch-action: none;
}

#menu_toggle, #secondary_menu_toggle {
    padding: 8px;
    height: 50px;
    width: auto;
    position: absolute;
    bottom: 0;
}

#menu_toggle {
    left: 0;
}

#secondary_menu_toggle {
    right: 0;
}

.menu_toggle {
    display: none;
}

.selection_filter > wr-button > .wr_button {
    width: calc(299px - 2*var(--input-padding));
    margin: 4px auto;
}

.selection_filter > wr-dropdown > .wr_dropdown_container {
    width: 299px;
    margin: 4px auto;
}

.selection_filter > wr-dropdown > .wr_dropdown_container > .wr_dropdown {
    width: 299px;
    margin: auto;
}

.selection_filter > wr-dropdown > .wr_dropdown_container > .handle {
    left: calc(299px - var(--handle-width) - var(--input-padding));
    bottom: calc(var(--input-height)/2 + var(--handle-width)/2);
}

.selection_filter > wr-checkbox > .wr_checkbox {
    width: calc(299px - 2*var(--input-padding));
    margin: 4px auto;
}

#live_matches {
    display: block;
    height: 350px;
    overflow-y: scroll;
}

.playing_match {
    animation-name: playing_color;
    animation-duration: 1s;
    animation-iteration-count: infinite;
    animation-direction: alternate-reverse;
    animation-timing-function: linear;
}

@keyframes playing_color {
    to {
        background: #FFF200;
    }
}

.switch_button {
    background-color: var(--hover-color)
}

.switch_button:hover {
    background-color: var(--active-color)
}