@keyframes gradient {
    0% {
        background-position: 0% 0%;
    }
    50% {
        background-position: 100% 100%;
    }
    100% {
        background-position: 0% 0%;
    }
}
html {
    background: rgb(127, 129, 126);
    min-height: 100%;
}
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
    margin: 0;
    font-family: "Lato";
    font-size: 1.2rem;
    color: #fefefe;
    position: relative;
    background: linear-gradient(315deg, rgb(127, 129, 126)  0%, rgb(99, 101, 98) 38%, rgb(127, 129, 126) 68%, rgb(99, 101, 98) 100%);
    animation: gradient 60s ease infinite normal;
    background-size: 400% 400%;
    background-attachment: fixed;
}
body::before {
    content: " ";
    background-image: url("/images/noise.png");
    height: 100%;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background-size: 4rem;
    z-index: -1;
}
body > div {
    font-size: 2em;
    margin: auto 0;
    text-align: center;
}
a {
    color: #e7efff;
}
header {
    display: flex;
    min-height: 10vh;
    padding-left: 0.5vw;
}
main {
    display: flex;
    min-width: 100%;
    overflow: hidden;
    z-index: 2;
}
footer {
    display: flex;
    width: 100%;
    padding-top: 1em;
    flex-grow: 1;
    align-items: center;
}
footer > *:first-child {
    flex-direction: column;
}
footer > *:last-child {
    justify-content: right;
    text-align: right;
}
footer > *:not(:first-child):not(:last-child) {
    justify-content: center;
    text-align: center;
    flex-wrap: wrap;
}
footer > * {
    padding: 0 0.5vw;
    height: fit-content;
    margin: auto 0 0 0;
    flex-grow: 1;
    width: 100%;
    display: flex;
}
footer > * > * {
    padding: 0.25vh 0.25vw;
}
footer img, footer form {
    height: 1.6em;
}
footer form input[type="image"] {
    height: 100%;
}
.button[data-target] {
    min-width: 2em;
    position: fixed;
    display: flex;
    font-size: 1em;
    cursor: pointer;
    color: #fff;
    z-index: 3;
    height: min-content;
    background-color: rgba(0,0,0,0.25);
    border: 1px solid transparent;
    border-radius: 3px;
    box-shadow: rgba(255, 255, 255, .4) -1px 0 0 0 inset;
    box-sizing: border-box;
    margin: 0;
    margin-top: 2vh;
    outline: none;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    vertical-align: baseline;
    justify-content: start;
}
.button:hover, .button:focus {
    background-color: rgba(0,0,0,0.4);
}
.button:focus {
    box-shadow: rgba(255, 255, 255, .6) -1px 0 0 0 inset;
}
.button:active {
    background-color: rgba(0,0,0,0.6);
    box-shadow: none;
}
.button:empty {
    visibility: hidden;
    position: unset;
}
.button:empty::before {
    content: ".";
}
.button[data-target] > div {
    display: inline;
    text-orientation: sideways;
    -webkit-text-orientation: sideways;
    writing-mode: vertical-rl;
    text-wrap: nowrap;
    white-space: nowrap;
    padding: 0.5em 0.1em;
    height: min-content;
}
ul {
    margin: 0;
    padding-left: 1vw;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    width: max-content;
}
li {
    display: inline-block;
    font-size: 0.75em;
    list-style-type: none;
    padding: 0 0.5em;
    text-transform: uppercase;
    text-align: center;
}
li span {
    display: block;
    font-size: 2em;
}
table {
    margin: 0 auto;
    table-layout: fixed;
    border: 1px solid rgba(255,255,255,0.3);
    border-collapse: separate;
    border-spacing: 0px;
    border-radius: 5%;
    background-color: #81817d;
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
}
th {
    padding: 3vh 1vw;
    text-align: left;
}
td {
    padding: 1em 0.6em;
    transition: 0.25s;
    position: relative;
    transition: opacity 0.5s;
}
thead td {
    border-bottom: solid 1px rgba(255,255,255,0.1);
}
tfoot td {
    border-top: solid 1px rgba(255,255,255,0.1);
}
td.bold {
    color: #fff;
    text-shadow: 0.5px 0px 0px #fff,
        -0.5px 0px 0px #fff,
        0 0.25px 0px #fff,
        0 -0.25px 0px #fff;
}
tbody tr {
    background-color: rgba(0,0,0,0.45);
}
select {
    border: 1px solid rgba(0,0,0,0.67);
    border-radius: 4px;
    padding: 0.5em 3.5em 0.5em 1em;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, #555 50%),
        linear-gradient(135deg, #555 50%, transparent 50%),
        linear-gradient(to right, #aaa, #aaa);
    background-position: calc(100% - 17px) calc(1em - 1px), calc(100% - 12.2px) calc(1em - 1px), 100% 0;
    background-size: 5px 5px, 5px 5px, 2.5em 2.5em;
    background-repeat: no-repeat;
    cursor: pointer;
    font-size: 1em;
}
select:focus {
    background-image:
        linear-gradient(45deg, white 50%, transparent 50%),
        linear-gradient(135deg, transparent 50%, white 50%),
        linear-gradient(to right, gray, gray);
    background-position: calc(100% - 12.2px) calc(1em - 1px), calc(100% - 17px) calc(1em - 1px), 100% 0;
    background-size: 5px 5px, 5px 5px, 2.5em 2.5em;
    background-repeat: no-repeat;
    outline: 0;
}
select:-moz-focusring {
    color: transparent;
    text-shadow: 0 0 0 #000;
}
select option:first-child {
    font-weight: bold;
}
.select-title {
    display: flex;
    justify-content: center;
    align-items: center;
}
.select-title h2 {
    margin-bottom: 0;
}
h1, h2 {
    margin-top: 0;
    margin-bottom: 1vh;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);
}
h3 {
    font-size: 1.2em;
    margin: 1vh auto;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);
    background: rgba(0, 0, 0, 0.2);
    padding: 2vh 2vw;
    border: 1px solid rgba(0, 0, 0, 0.75);
}
h1 {
    font-size: 2em;
}
h2 {
    font-size: 1.5em;
}
h3 {
    font-size: 1.2em;
}
#electionDay {
    flex-grow: 1;
    text-align: right;
    font-size: 1.5em;
}
#refreshing {
    z-index: 0;
    transition: opacity 0.5s;
    position: fixed;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    margin-top: -0.5em;
    opacity: .1;
    animation: breathing 3s ease-out infinite alternate;
    text-shadow: 0px 0px 2px #fff;
}
#type {
    font-size: 1em;
    font-weight: normal;
    transition: 0.25s;
    opacity: 1;
    text-shadow: 0 0 0 #000;
}
.fade {
    opacity: 0 !important;
}
.data {
    flex-grow: 1;
    display: flex;
    column-gap: 0.5vw;
    position: relative;
    left: 0px;
    transition: 0.75s;
    max-width: 100%;
    min-width: 100%;
    height: min-content;
    justify-content: center;
}
.data::before, .data::after {
    content: " ";
    width: 2.6em;
}
.data > .data-container {
    flex: 1 1 0px;
    display: flex;
}
.data > .data-container > div {
    flex-grow: 1;
    text-align: center;
}
.data > .buttons {
    position: absolute;
    width: 2.6em;
}
.data > .buttons:first-child {
    left: 0;
}
.data > .buttons:last-child {
    right: 0;
}
.data > .buttons:last-child .button[data-target] {
    box-shadow: rgba(255, 255, 255, .4) 1px 0 0 0 inset;
    transform: translateX(0.6em);
    justify-content: end;
}
@media only screen and (min-width: 2000px) {
    body {
        font-size: 1.5rem;
    }
}
@media only screen and (max-width: 1024px) {
    td {
        padding: 1.1em 0.5em;
    }
    .data > .data-container {
        flex-direction: column;
    }
    section.data > .data-container > div {
        width: 100%;
    }
}
@media only screen and (max-width: 768px) {
    body {
        font-size: 1.1rem;
    }
    #electionDay {
        display: none;
    }
    ul {
        width: min-content;
    }
}
@media only screen and (max-width: 384px) {
    body {
        font-size: 1.0rem;
    }
    td {
        padding: 0.9em 0.3em;
    }
}