body {
    background: black;
    color: white;
    font-family: "Gotham A","Gotham B",sans-serif;
}

body {
    font-size: calc(14px + (26 - 14) * ((100vw - 300px) / (1600 - 300)));
    line-height: calc(1.3em + (1.5 - 1.2) * ((100vw - 300px)/(1600 - 300)));
}

@media (min-aspect-ratio: 7/5) {
    body {
        font-size: calc(14px + (26 - 14) * ((75vw - 300px) / (1600 - 300)));
        line-height: calc(1.3em + (1.5 - 1.2) * ((75vw - 300px)/(1600 - 300)));
    }

    #panels {
        width: 75%;
        margin: auto;
    }
}

label {
    display: inline-block;
    line-height: 1.5em;
}

input[type=checkbox] {
    width: 1em;
    height: 1em;
    padding: 0;
    margin:0;
    vertical-align: middle;
    position: relative;
    top: -1px;
    *overflow: hidden;
    border: solid white;
    background: black;
}

input[type=number] {
    text-align: center;
}

table {
    table-layout : fixed;
    width: 100%;
    font-size: 0.5em;
} 

th, td {
    width: 25%;
    text-align: center;
}

span.shiny, p.shiny, h1.shiny, h2.shiny, h3.shiny, h4.shiny {
    text-decoration: underline solid orangered;
}

input.shiny {
    background: orangered;
    color: white;
    border: 1pt solid white;
}

input.shiny:disabled {
    background: darkgray;
    color: white;
    border: 1pt solid white;
}

form {
    width: 100%;
    height: 100%;
}

.large {
    font-size: 0.8em;
}

.major {
    font-size: 1.5em;
    line-height: normal;
    font-weight: bold;
}

.minor {
    font-size: 0.6em;
    line-height: normal;
    font-weight: bold;
}

form div.field {
    display: inline-block;
    position: relative;
    margin-bottom: 1em;
    overflow-x: visible;
}

form div.field label.below {
    position: absolute;
    top: 100%;
    float: left;
    left: 0;
}

.heading {
    display: block;
}

div.panel {
    position: relative;
    background: #202020;
    font-size: 5ex;
    margin: 5pt;
    padding: 10pt;
}

#instructions.panel {
    font-size: 1em;
}

.field, label {
    max-width: 100%;
}

input {
    max-width: 100%;
}

.uistate {
    position: absolute;
    left: 5pt;
    top: 5pt;
    right: 5pt;
    bottom: 5pt;
    display: none;
}

.activestate {
    display: block;
}

#navPanel {
    padding: 0;
    background-color: rgb(77, 20, 0);
}

#navPanel a {
    font-size: 1em;
    line-height: 1em;
    padding: 3pt;
    margin: 0;
    margin-left: 1ex;
    margin-right: 1ex;
    padding-left: 1ex;
    padding-right: 1ex;
    text-decoration: none;
}

.monsterInitiative ~ #removeMonsterForm {
    display: inline-block !important;
}

#removeMonsterForm {
    display: none;
}

.inline {
    display: inline-block;
    position: absolute;
    vertical-align: middle;
    text-align: center;
    padding: 0;
    bottom: 0.3em;
    height: 1em;
    width: 1em;
}

.inline > * {
    width: 1em;
    line-height: 1em;
    margin: 0;
    padding: 0;
}

input[type=submit] {
    margin: 5pt;
}

#navPanel a:link {
    color: white;
}

#navPanel a:visited {
    text-decoration: none;
    color: lightgray;
}

#navPanel a:hover {
    text-decoration: underline;
}

input:invalid {
    background-color: lightyellow;
}

form :invalid {
    border-color: orangered;
}

#sessionCodeInput {
    width: 6em;
}

a.highlighted {
    position: relative;
    background-color: white;
    color: blue;
    padding: 5pt;
    font-weight: bold;
    text-decoration: none;
    line-height: 1em;
}

a.highlighted:hover {
    text-decoration: underline;
}

input {
    transition: all 0.5s ease;
}

input[type=submit] {
    border-radius: 0.1em;
}

input:not(.shiny):not(:invalid):hover {
    background-color: lightsteelblue;
}

input.shiny:hover {
    background: orange;
}

input.shiny:active {
    background: darkorange;
}