/*
 * Copyright (C) 2023 LANNOCC
 * @%@~LICENSE~@%@
 */

html, body {
    margin: 0;
    padding: 0;
}

body {
    background-color: white;
    color: #333;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

html.theme body {
    background-color: #222;
    color: white;
}

#view {
    position: relative;
    min-height: 100vh;
}

#content {
    padding: 8px;
    padding-bottom: 2.5rem; /* footer height */
}

h1 {
    color: #ff3e00;
    font-size: 4em;
    font-weight: 100;
    padding: 0;
    margin: 0.5em;
}

h1 + q {
    color: #666;;
    display: block;
    margin: -2em 1em 3em 3em;
}

html.theme h1 + q {
    color: #999;
}

footer {
    position: absolute;
    bottom: 0;
    background-color: #F5F5F5;
    box-sizing: border-box;
    width: 100%;
    height: 2.5rem;         /* footer height */
    text-align: right;
    color: #CCC;
    padding: 0.5em 1.3em 0.5em 1.3em;
    vertical-align: middle;
}

html.theme footer {
    background-color: #111;
    color: #444;
}

footer hr {
    margin: 0;
    display: none;
}

footer aside {
    vertical-align: middle;
    display: block;
    float: left;
    text-align: left;
    padding-top: .2em;
    cursor: pointer;
}

footer aside label {
    cursor: pointer;
    user-select: none;
}

.slider {
    display: inline-block;
    height: 28px;
    width: 60px;
    margin-top: -9px;
    margin-right: 5px;
    vertical-align: middle;
}

.slider input {
    display: none;
}

.slider span {
    position: relative;
    top: 4px;
    display: block;
    cursor: pointer;
    border-radius: 28px;
    transition: .4s;
    width: 60px;
    height: 28px;
    background-color: #CCC;
}

.slider span:before {
    content: "";
    position: absolute;
    bottom: 3px;
    left: 4px;
    width: 22px;
    height: 22px;
    background-color: white;
    border-radius: 50%;
    transition: .4s;
}

.slider input:checked + span {
    background-color: #66BB6A;
}

.slider input:checked + span:before {
    transform: translateX(30px);
}

footer sub {
    display: inline-block;
    vertical-align: middle;
    font-style: italic;
    padding-top: 4px;
}

a, .link {
    color: rgb(0,100,200);
    text-decoration: none;
    cursor: pointer;
}

html.theme a, html.theme .link {
    color: #5BF;
}

a:hover, .link:not(:disabled):hover {
    text-decoration: underline;
}

a:visited {
    color: rgb(0,80,160);
}

html.theme a:visited {
    color: #5EF;
}

button {
    color: #333;
    background-color: #F4F4F4;
    outline: none;
}

button:not(:disabled):hover {
    background-color: #F6F6F6;
}

button:disabled {
    color: #999;
}

button:not(:disabled):active {
    background-color: #ddd;
}

button:focus {
    border-color: #666;
}

button.link {
    display: inline;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
}

html.theme button.link {
    color: rgb(0,100,200);
}

html.theme button.link:disabled {
    color: #999;
}

label {
    display: block;
}

input, button, select, textarea {
    font-family: inherit;
    font-size: inherit;
    -webkit-padding: 0.4em 0;
    padding: 0.4em;
    margin: 0 0 0.5em 0;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 2px;
}

input:disabled {
    color: #ccc;
}

