@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:ital,wght@0,300;0,400;0,600;1,400&display=swap');

html,
body {
    margin: 0px;
    padding: 0px;
    font-size: 18px;
    width: 100%;
    height: 100%;
}

* {
    font-family: 'Nunito Sans', Arial, Helvetica, sans-serif;
}

html {
    background: #fff;
}

body {
    display: flex;
    flex-direction: column;
}

.container {
    width: 1024px;
    max-width: 100%;
    padding: 0px 16px;
    margin: auto;
    box-sizing: border-box;
}


.login {
    display: flex;
    flex-direction: column;
    flex: 1;
    align-items: center;
    justify-content: center;
}

.login input {
    padding: 8px 16px;
    border: none;
    outline: none;
    font-size: 22px;
    font-weight: 300;
    color: #231F20;
}

.form input {
    display: block;
}

.form input[type=text] {
    background: #88888822;
    padding: 8px 16px;
    border: none;
    outline: none;
    font-size: 16px;
    color: #231F20;
}

.form .file {
    padding: 50px;
    width: 100%;
    border: #8886 4px dashed;
    box-sizing: border-box;
    font-size: 16px;
}

.login .submit {
    cursor: pointer;
    transition: 200ms;
}

.login .submit:hover {
    background: #ccc;
}

.error {
    padding: 16px 32px;
    background: #B91818;
    color: #fff;
}

.success {
    padding: 16px 32px;
    background: #19AB38;
    color: #fff;
}

.warning {
    padding: 16px 32px;
    background: #edd20e;
    color: #000;
}


.login .error {
    margin-bottom: 32px;
}

.spacer {
    flex: 1;
}

.footer {
    padding: 16px;
    display: flex;
    flex-direction: row-reverse;
}

.footer a {
    color: #ddd;
    text-decoration: none;
    font-size: 14px;
}

.footer a:hover {
    color: #aaa;
}

.hexagons {
    position: fixed;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;

}

.hexagon {
    position: absolute;
}

.hexagon.orange {
    top: -90px;
    right: -110px;
}

.hexagon.purple {
    bottom: -100px;
    left: -110px;
}

img {
    max-width: 100%;
}

.button {
    display: inline-block;
    color: #fff;
    text-decoration: none;
    padding: 4px 12px;
    border: none;
    cursor: pointer;
}

.button:hover {
    /*outline: 2px solid #ddd;
    color: #eee;*/
    opacity: 0.8;
}

.button.red {
    background: #B91818;
}

.button.orange {
    background: #DD5B12;
}

.button.purple {
    background: #AD2584;
}

textarea {
    background: #88888822;
    border: none;
    width: 100%;
    padding: 8px 16px;
    font-size: 16px;
    outline: none;
    margin-bottom: 8px;
    color: #231F20;
    box-sizing: border-box;
}


input.submit {
    font-size: 16px;
}

.bibliography td {
    vertical-align: top;
    padding-right: 16px;
    padding-bottom: 8px;
}

a {
    color: #2F59DA;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.center {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
}

code, code.hljs {
    background: #88888822;
    font-family: monospace;
    white-space: pre-wrap;
    display: inline-block;
}

a.source {
    display: block;
    color: #0008;
}

a.source:hover {
    text-decoration: none;
}

a.source.link:hover {
    color: #000d;
}

p:has(a.source) {
    margin-bottom: 0px;
    background: #88888811;
    padding: 4px 10px;
    font-size: 0.9em;
    border-radius: 5px 5px 0px 0px;
}

pre {
    margin: 0px;
}

[type="radio"]:checked,
[type="radio"]:not(:checked) {
    position: absolute;
    left: -9999px;
}

[type="radio"]:checked+label,
[type="radio"]:not(:checked)+label {
    position: relative;
    padding-left: 24px;
    cursor: pointer;
    line-height: 20px;
    display: inline-block;
    color: #666;
    padding-right: 8px;
}

[type="radio"]:checked+label:before,
[type="radio"]:not(:checked)+label:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 18px;
    height: 18px;
    border: 1px solid #ddd;
    border-radius: 100%;
    /*background: #fff;*/
}

[type="radio"]:checked+label:after,
[type="radio"]:not(:checked)+label:after {
    content: '';
    width: 12px;
    height: 12px;
    background: #DD5B12;
    position: absolute;
    top: 4px;
    left: 4px;
    border-radius: 100%;
    -webkit-transition: all 0.2s ease;
    transition: all 0.2s ease;
}

[type="radio"]:not(:checked)+label:after {
    opacity: 0;
    -webkit-transform: scale(0);
    transform: scale(0);
}

[type="radio"]:checked+label:after {
    opacity: 1;
    -webkit-transform: scale(1);
    transform: scale(1);
}



.latex input {
    display: block;
    padding: 8px 16px;
    border: 1px solid #ccc;
    outline: none;
    margin: 10px 0px;
    font-size: 22px;
    font-weight: 300;
    color: #231F20;
}

h2 {
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

h3 {
    margin-top: 1em;
    margin-bottom: 0.5em;
}

span.small {
    font-size: 14px;
}

span.required {
    color: #B91818;
    font-weight: 900;
    font-size: 20px;
}

.th-left th {
    text-align: left;
}

code {
    line-height: 1.5em;
}

code * {
    font-family: monospace;
}


@media (prefers-color-scheme: dark) {
    html {
        background: #111;
        color: #eee;
    }

    input {
        background: #222;
        color: #fff;
    }

    .login input {
        color: #fff;
    }

    .login .submit:hover {
        background: #444;
    }

    .footer a {
        color: #333;
    }

    .footer a:hover {
        color: #555;
    }

    textarea {
        color: #fff;
    }

    .form input[type=text] {
        color: #fff;
    }

    .latex input {
        color: #fff;
    }

    a.source {
        display: block;
        color: #ffffff90;
    }
    
    a.source.link:hover {
        color: #fff;
        text-decoration: none;
    }
}
