html {
    width: 100%;
    height: 100%;
    margin: 0;
    border: 0;
    padding: 0;
    overscroll-behavior: contain;
}

body {
    width: 100%;
    height: 100%;
    margin: 0;
    border: 0;
    padding: 0;
    background-color: #002080;
    color: #ffffff;
    font-family: 'Roboto', sans-serif;
    font-size: 1.2rem;
    font-weight: 100;
    overscroll-behavior: contain;
}

::selection {
    background-color: #ffffff;
    color: #002080;
}

div.app_screen {
    width: 100%;
    height: 100%;
}

div.title {
    position: relative;
    width: 100%;
    height: 30%;
    text-align: center;
}

div.content {
    position: relative;
    box-sizing: border-box;
    width: 100%;
    height: 70%;
    padding-top: 50px;
    overflow: hidden;
}

.center {
    text-align: center;
}

h1 {
    margin: 0;
    border: 0;
    padding: 0;
    font: inherit;
    font-size: 3em;
}

h2 {
    margin: 0;
    border: 0;
    padding: 0;
    font: inherit;
    font-size: 2em;
}

div.title h1, div.title h2 {
    position: absolute;
    left: 0;
    top: auto;
    right: 0;
    bottom: 10%;
}

div.container {
    display: inline-block;
    max-width: 90%;
}

span.error {
    color: #f30000;
}

div.input_container {
    display: inline-block;
    margin-right: -50px;
}

div.input_container span.input {
    display: inline-block;
    margin-right: 50px;
}

input[type=text], input[type=number] {
    margin: 5px 0 5px 5px;
    border: 0;
    padding: 5px;
    height: 1.2em;
    background-color: #ffffff;
    color: #000000;
    font: inherit;
}

input[type=text]:focus, input[type=number]:focus {
    outline-style: solid;
    outline-color: #002080;
    outline-width: 1px;
    outline-offset: -2px;
}

input[type=text]::selection, input[type=number]::selection {
    background-color: #002080;
    color: #ffffff;
}

input[type=number] {
    -moz-appearance: textfield;
}

input[type=number]::-webkit-outer-spin-button, input[type=number]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

button, input[type=submit] {
    border: 0;
    margin: 0 10px 10px 0;
    background-color: #001040;
    color: #ffffff;
    font: inherit;
    padding: 10px;
}

button:focus, input[type=submit]:focus {
    outline-style: solid;
    outline-color: #ffffff;
    outline-width: 1px;
    outline-offset: -2px;
}

button.image {
    vertical-align: top;
    overflow: hidden;
}

button.image img {
    width: 100%;
    height: 100%;
}

button.positive {
    background-color: #00c000;
}

button.medium {
    background-color: #f3f300;
}

button.negative {
    background-color: #c00000;
}

button.right, input[type=submit].right {
    float: right;
    margin-right: 0;
}

button.left {
    float: left;
    margin-left: 0;
}

div.scoreboard {
    width: 100%;
    height: 100%;
}

div.top_buttons button {
    margin: 5px;
}

div.scores {
    height: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-align: center;
}

button.score_holder {
    display: block;
    height: 50%;
    width: 100%;
    margin: 0;
    border: 0;
    padding: 0;
    background-color: #002080;
}

button.score_holder.active {
    background-color: #3054bf;
}

button.score_holder span.player_name {
    display: block;
    height: 25%;
}

button.score_holder span.score {
    display: block;
    height: 75%;
}

@media (min-width: 80vh) {
    button.score_holder {
        display: inline-block;
        height: 100%;
        width: 40vh;
    }
}

div.bottom {
    height: 50vh;
    text-align: center;
}

video.easter_egg {
    position: fixed;
    top: 50%;
    left: 0;
    width: 100vw;
    height: 100vw;
    transform: translate(0, -50%);
    pointer-events: none;
}

div.history_scroll {
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
}

div.history_container {
    position: relative;
}

@media (min-width: 80vh) {
    div.history {
        width: 80vh;
        margin: 0 auto;
    }
}

div.history div.players {
    font-size: 1.5em;
}

@media (min-width: 80vh) {
    div.history div.players {
        display: none;
    }
}

div.history div.players span.player {
    display: inline-block;
    width: 50%;
    padding: 5px 0 0 0;
    text-align: center;
}

div.turn {
    font-size: 1.5em;
}

span.turn_score {
    display: inline-block;
    width: 50%;
    padding: 5px 0 0 0;
    text-align: center;
}

span.turn_score.positive {
    color: #00f300;
}

span.turn_score.negative {
    color: #f30000;
}

span.turn_score.foul {
    color: #f3f300;
}

div.buttons {
    display: none;
}

div.calculator {
    display: inline-block;
}

div.calculator span.input {
    display: block;
    width: 100%;
    height: 9vh;
    padding: 0 0 1vh;
    text-align: right;
    line-height: 9vh;
    font-size: 5vh;
}

div.calculator span.row {
    display: block;
    padding: 0 0 1vh;
}

div.calculator span.row button {
    height: 9vh;
    width: 9vh;
    margin: 0 1vh 0 0;
    padding: 0;
    font-size: 5vh;
}

div.calculator span.row button:last-child {
    margin-right: 0;
}

span.win_score_holder {
    display: inline-block;
}

span.win_score_holder span.player_name {
    display: block;
    width: 5em;
    font-size: 1.5em;
}

span.win_score_holder span.score {
    font-size: 1.5em;
}

div.win_history_scroll {
    height: 100px;
    margin-bottom: 5px;
}

div.win_history {
    width: 100%;
}

@media (min-width: 20em) {
    div.win_history {
        width: 15em;
        margin: 0 auto;
    }
}

div.win_history div.players {
    display: block;
}

@media (min-width: 20em) {
    div.win_history div.players {
        display: none;
    }
}

div.win_history div.turn {
    font-size: 1em;
}

body.using_mouse :focus {
    outline: none;
}