* {
    box-sizing: border-box;
}
html {
    height: 2000vh;
}

body {
    margin: 0;
    padding: 0;
    font-family: sans-serif;
    font-size: 11px;
}

div#display-container {
    position: fixed;
    margin: 50px;
    width: calc(100vw - 100px);
    height: calc(100vh - 100px);
}

canvas#screen {
    border: 1px solid #000;
    width: 100%;
    height: 100%;}

span#zoom-level {
    font-size: 2vw;
    font-weight: bold;
    position: absolute;
    bottom: 10px;
    left: 10px;
}

.exponent {
    vertical-align: super;
    font-size: .7em;
}

.box {
    border: 1px solid #000;
    display: inline-block;
    padding: 10px;
    white-space: normal;
    overflow: hidden;
    background-color: #fff;
    color: #000;
    z-index: 10;
}

.admin-content {
    display: none;
}

div#admin-box {
    width: 250px;
    min-height: 230px;
    white-space: normal;
    position: absolute;
    left: 20px;
    overflow: hidden;
}

div#info-box {
    position: absolute;
    top: 10px;
    left: 10px;
    opacity: 0;
    transition: opacity ease-in-out 500ms;
}

.box h1 {
    margin: 0;
    padding: 0;
}

div#info-box .info {
    margin-bottom: 15px;
}

div#indicator {
    background-color: #000;
    width: 20px;
    height: 1px;
    position: absolute;
    left: -20px;
}

#info-box .admin-content a {
    margin-right: 5px;
}

.auth-link {
    position: fixed;
    bottom: 10px;
    right: 10px;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: 300ms opacity;
}

.auth-link.visible {
    opacity: 1;
    pointer-events: auto;
}

#admin-ui {
    position: fixed;
    background-color: #fff;
    bottom: 50px;
    right: 50px;
    width: 50vw;
    padding: 10px;
    border: 1px solid #000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
    opacity: 0;
    pointer-events: none;
    transition: 300ms opacity;
}

#admin-ui form {
    display: flex;
    flex-direction: column;
}

#admin-ui form label span:not(:first-child) {
    text-align: center;
}

#admin-ui form label :not(:last-child) {
    margin-right: 10px;
}

#admin-ui form [name="sizeExponent"] {
  font-size: 0.7em;
  position: relative;
  top: -1em;
}

#admin-ui form [type="checkbox"] {
  flex: 0 !important;
}

#admin-ui form > :not(:last-child) {
    margin-bottom: 15px;
}

#admin-ui label {
    cursor: pointer;
    display: flex;
    align-items: center;
}

#admin-ui label > :first-child {
    flex-basis: 150px;
}

#admin-ui label > :not(:first-child) {
    flex: 1;
}

.password-provided #admin-ui {
    opacity: 1;
    pointer-events: auto;
}
