:root {
    --foreground: black;
    --background: lightblue;
    --popupBackground: white;
    --dropShadowFilter: drop-shadow(10px 10px 5px black);
    --ballOutline: grey;
    --ballBlack: black;
}

input, select {
    font-size: 20pt;
    color: var(--foreground);
}

input.checkbox {
    width: 40px;
    height: 40px;
}

button {
    font-size: 18pt;
}

table, th, td {
    border: 1px solid grey;
    border-collapse: collapse;
}

td {
    padding-left: 5px;
    padding-right: 5px;
}

body {
    background-color: var(--background);
    color: var(--foreground);
    font-family: Verdana, sans-serif;
    font-size: 20pt;
    padding: 0px;
    margin: 0px;
    overflow-x: hidden;
    overflow-y: hidden;
    width: 100vw;
    height: 100vmin;
}

button {
    font-size: 18pt;
    min-width: 30px;
}

#menuIcon {
    position: absolute;
    top: 0;
    right: 0;
}

.menuIcon {
    background-color: var(--background);
}

.menudiv {
    width: 35px;
    height: 5px;
    background-color: var(--foreground);
    margin: 6px 0;
}

.main {
    padding: 20px;
}

.dimmed {
    filter: brightness(30%);
}

.dropShadow {
    filter: var(--dropShadowFilter);
}

.points-needed {
    padding-left: 50px;
    display: inline;
    white-space: nowrap;
}

.defensives {
    display: inline;
    white-space: nowrap;
}

.player-cell {
    vertical-align: top;
}

.popupBackground {
    position: absolute;
    margin: auto;
    padding: 5px;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 9999999;
}

.popup {
    position: absolute;
    margin: auto;
    padding: 5px;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 60%;
    height: 40%;
    z-index: 99999999;
    background: var(--popupBackground);
    color: var(--foreground);
    border: 2px solid var(--foreground);
}

.popup-large {
    position: absolute;
    margin: auto;
    padding: 5px;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 95%;
    height: 95%;
    z-index: 99999999;
    background: var(--popupBackground);
    color: var(--foreground);
    border: 2px solid var(--foreground);
}

.running-score {
    white-space: nowrap;
    font-size: 15px;
    position: absolute;
    margin: auto;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}

.div-running-score {
    overflow-x: auto;
    position: absolute;
    margin-top: 20px;
    margin-left: 10%;
    margin-right: 10%;
    margin-bottom: 50px;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.shield {
    display: inline-block;
    vertical-align: text-top;
}

.popupButtons {
    position: absolute;
    right: 0px;
    bottom: 0px;
    padding: 5px;
}

.topnav {
    overflow: hidden;
    background-color: #333;
    position: absolute;
    top: 35px;
    right: 0;
}

.topnav #menu {
    display: none;
}

.topnav span {
    color: white;
    padding: 14px 16px;
    text-decoration: none;
    font-size: 17px;
    display: block;
}

.topnav span:hover {
    background-color: #ddd;
    color: black;
}

.pending-rack {
    font-weight: bold;
}

.optional1 {
    visibility: visible;
}

.optional2 {
    visibility: visible;
}

#clocks {
    position: absolute;
    right: 0px;
    bottom: 0px;
    padding: 5px;
}

@media only screen and (max-width: 1000px) {
    body {
        font-size: 18pt;
    }

    button {
        font-size: 16pt;
    }

    input, select {
        font-size: 15pt;
    }

    input.checkbox {
        width: 35px;
        height: 35px;
    }

    td {
        padding-left: 3px;
        padding-right: 3px;
    }

    .main {
        padding: 15px;
    }

    .player {
        font-size: 15pt;
    }

    .player-button {
        font-size: 15pt;
    }

    .points-needed {
        padding-left: 47px;
        display: inline;
    }
}

@media only screen and (max-width: 800px) {
    body {
        font-size: 16pt;
    }

    button {
        font-size: 15pt;
    }

    input, select {
        font-size: 12pt;
    }

    input.checkbox {
        width: 30px;
        height: 30px;
    }

    td {
        padding-left: 2px;
        padding-right: 2px;
    }

    .main {
        padding: 10px;
    }

    .player {
        font-size: 12pt;
    }

    .player-button {
        font-size: 12pt;
    }

    .points-needed {
        padding-left: 45px;
        display: inline;
    }
}

@media only screen and (max-width: 600px) {
    body {
        font-size: 14pt;
    }

    button {
        font-size: 13pt;
    }

    input, select {
        font-size: 10pt;
    }

    input.checkbox {
        width: 24px;
        height: 24px;
    }

    td {
        padding-left: 2px;
        padding-right: 2px;
    }

    .main {
        padding: 5px;
    }

    .player {
        font-size: 10pt;
    }

    .player-button {
        font-size: 10pt;
    }

    .points-needed {
        padding-left: 43px;
        display: inline;
    }

    .optional1 {
        visibility: collapse;
        height: 0;
    }

    .optional2 {
        visibility: visible;
    }
}

@media only screen and (max-width: 400px) {
    body {
        font-size: 12pt;
    }

    button {
        font-size: 11pt;
        min-width: 25px;
    }

    input, select {
        font-size: 10pt;
    }

    input.checkbox {
        width: 20px;
        height: 20px;
    }

    td {
        padding-left: 2px;
        padding-right: 2px;
    }

    .main {
        padding: 5px;
    }

    .player {
        font-size: 10pt;
    }

    .player-button {
        font-size: 10pt;
    }

    .points-needed {
        padding-left: 43px;
        display: inline;
    }

    .topnav {
        top: 28px;
    }

    .menudiv {
        width: 28px;
        height: 4px;
        margin: 5px 0;
    }

    .optional1 {
        visibility: collapse;
        height: 0;
    }

    .optional2 {
        visibility: collapse;
        height: 0;
    }
}
