* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    margin: 0px;
    color: var(--text-color);
    font-family: sans-serif;
}

body {
    display: grid;
    grid-template-rows: auto 1fr;
    background-color: var(--background-color);
}

h1, h2, h3 {
    color: var(--text-color);
}

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

textarea {
    color: var(--text-color);
    background-color: var(--background-color);
    resize: none;
    padding-left: 16px;
}

a {
    color: var(--text-color);
    text-decoration: none;
    cursor: pointer;
}

a:hover {
    opacity: 0.75;
}

pre {
    white-space: break-spaces;
}

#page-header {
    padding: 8px 16px 8px 16px;
}

#page-header h1,
#page-header p {
    margin: 0px;
}

#page-navigation {
    font-size: 2.5em;
}

#light-toggle a {
    display: inline-block;
    width: 36px;
    height: 36px;
    background-image: url('/static/images/sun_dark.svg');
    background-size: cover;
}

#dark-toggle a {
    display: inline-block;
    width: 36px;
    height: 36px;
    background-image: url('/static/images/moon_light.svg');
    background-size: cover;
}

#form-entry {
    display: grid;
    grid-template-rows: 1fr auto;
}

#id_text {
    width: 100%;
    height: 100%;
    font-family: monospace;
    font-size: 1.2em;
    border-top-width: 1px;
    border-right-width: 0px;
    border-bottom-width: 0px;
    border-left-width: 0px;
}

#messages {
    position: absolute;
    top: 8%;
    left: 0px;
    right: 0px;
    list-type: none;
    text-align: center;
    margin: 8px auto 8px auto;
    padding: 0px;
    max-width: 360px;
}

#messages li {
    display: inline-block;
    padding: 8px 32px 8px 32px;
    cursor: pointer;
}

#messages .success {
    background-color: #b7e285;
}

#messages .error {
    background-color: #f79c7e;
}

#messages .info {
    background-color: #9de2f9;
}

.wide-button {
    width: 100%;
    padding: 8px 0px 8px 8px;
    background-color: var(--text-color);
    color: var(--background-color);
    border: none;
    font-size: 1.5em;
}

.wide-button::after,
.wide-button::before {
    content: ' - ';
    font-weight: bold;
}

.menu {
    list-style: none;
    padding: 0px;
    margin: 0px;
}

.menu li {
    display: inline-block;
    width: 40px;
}

.entry {
    text-align: center;
    height: 100%;
    padding-top: 96px;
}

.entry-code {
    padding: 8px 16px 0px 16px;
    height: 100%;
    max-width: 100%;
    border: 1px solid black;
}

.hide-element {
    display: none !important;
}

.row-center {
    justify-content: center;
    align-items: center;
}

.row {
    display: flex;
    flex-wrap: wrap;
}

.col-100 {
    flex: 100% 1 1;
}

.col-50 {
    flex: 50% 1 1;
}

.small-text {
    font-size: 0.75em;
}

.right-text {
    text-align: right;
}

.center-text {
    text-align: center;
}
