html {
    scroll-behavior: smooth;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    text-rendering: optimizeLegibility;
    font-family: 'Fira Sans', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #202020;
    background-color: #f8f8f8;
}

code { font-family: monospace; }

a { color: #0064c8; text-decoration: none; }
a i { margin-top: -2px; }

strong { font-weight: 600; }

p { margin-bottom: 1em; line-height: 1.35; }
p:last-of-type { margin-bottom: 0; }

.flex-center { display: flex; justify-content: center; }
.container { width: 100%; max-width: 1440px; }

ul.menu-ul { display: flex; align-items: center; }
ul.list-ul { line-height: 1.35; }

.notice, #sysmsg {
    display: inline;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: inherit;
    line-height: 1.25;
}
.notice { font-size: 12px; font-style: italic; }
#sysmsg { color: #d80000; }

#wallpaper { display: none; }

.row { 
    display: flex;
    flex-direction: column;
    gap: 15px;
}
[class*='col-'] { width: 100%; }

/* -------- Topbar ---------------------------------------------------------------- */

#topbar-wrapper { background-color: #202020; color: #f0f0f0; }

#topbar-items {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 40px;
    padding: 0 5px;
}

#topbar-items a {
    display: flex;
    align-items: center;
    gap: .5em;
    height: 40px;
    padding: 0 10px;
    color: inherit;
}

/* -------- Header ---------------------------------------------------------------- */

#header-wrapper {
    position: sticky;
    z-index: 100;
    top: 0;
    background-color: #0064c8;
    color: #f8f8f8;
}

#header-items {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 50px;
}

#header-items a { color: inherit; }

#header-nav { display: none; }

#header-menu {
    font-size: 17px;
    text-transform: uppercase;
    padding-left: 30px;
}

#header-menu a {
    display: flex;
    align-items: center;
    height: 50px;
    padding: 0 1em;
    text-transform: uppercase;
}
#header-menu a:hover { background-color: #1880e8; }
#header-menu a:active { background-color: #ffffff; color: #202020; }

#header-branding {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0 10px;
}

#site-logo {
    display: block;
    width: 35px;
    height: auto;
}

#site-title {
    font-size: 24px;
    text-transform: uppercase;
    text-shadow: 1px 1px 1px #00000080;
}

#site-tagline { font-size: 13px; font-style: italic; }

#header-user-menu { border-left: 1px solid #00000040; }

#user-menu-anchor { position: relative; }

#user-menu-button {
    display: flex;
    align-items: center;
    gap: .5em;
    height: 50px;
    padding: 0 15px;
}
#user-menu-button:hover { background-color: #1880e8; }
#user-menu-button:active { background-color: #ffffff; color: #202020; }

#user-menu-button i { font-size: 17px; }

#user-menu-list {
    display: none;
    position: absolute;
    right: 0;
    width: 200px;
    color: #282828;
    background-color: #ffffff;
    box-shadow: 0 0 5px 0 #00000080;
}

#user-menu-list a {
    display: flex;
    align-items: center;
    height: 50px;
    padding: 0 15px;
}
#user-menu-list a:hover, #user-menu-list a:active {
    background-color: #0064c8;
    color: #ffffff;
}

/* -------- Body ---------------------------------------------------------------- */

#body-wrapper { flex: 1; }

#body-items {
    gap: 15px;
    height: 100%;
    padding: 15px;
    background-color: #ffffff;
}

/* -------- Footer ---------------------------------------------------------------- */

#footer-wrapper { background-color: #202020; color: #b0b0b0; }

#footer-items {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 45px;
}

#footer-items strong { font-weight: 400; color: #e8e8e8; }

/* -------- Slider ---------------------------------------------------------------- */

#slide-open, #slide-close {
    display: flex;
    align-items: center;
    gap: .5em;
    height: 50px;
    padding: 0 10px;
    font-size: 17px;
    text-transform: uppercase;
}

#slide-wrapper {
    display: flex;
    flex-direction: column;
    position: fixed;
    z-index: 1000;
    top: 0;
    right: -275px;
    width: 250px;
    height: 100%;
    background-color: #282828;
    color: #f8f8f8;
    box-shadow: 0 0 15px 0 #00000080;
    transition: all .2s ease;
}
#slide-wrapper.open { right: 0; }

#slide-wrapper a { color: inherit; }

#slide-header {
    display: flex;
    justify-content: flex-end;
    padding: 0 5px;
}

#slide-body { flex: 1; padding: 15px 0; }

#slide-nav { font-size: 17px; text-transform: uppercase; }

#slide-menu a {
    display: flex;
    align-items: center;
    height: 50px;
    padding: 0 30px;
}
#slide-menu a:active { background-color: #ffffff; color: #202020; }

#slide-footer {
    display: flex;
    justify-content: flex-end;
    padding: 15px;
}

#slide-user-menu a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    font-size: 17px;
}

/* -------- Sign In ---------------------------------------------------------------- */

#signin-wrapper { align-items: center; height: 100%; }

#signin-items {
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    width: 90%;
    max-width: 350px;
}

#signin-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px;
}

#signin-header #site-logo { width: 100px; }

#signin-header #site-title {
    color: #0064c8; 
    font-size: 3em;
    font-weight: 600;
}

#signin-body { padding: 30px; }

#signin-footer {
    display: flex;
    justify-content: center;
    margin: 30px 0;
    font-size: 13px;
}

#signin-footer a {
    display: inline-flex;
    align-items: center;
    height: 1em;
    padding: 0 .5em;
    border-right: 1px solid #0064c8;
}

#signin-footer li:last-of-type a { border-right: none; }

#pass-message {
    padding: 5px;
    font-size: 12px;
    background-color: #fff8e0;
    border: 1px solid #e0a000;
    border-radius: 3px;
}

#pass-message .valid { color: #00c800; }
#pass-message .invalid { color: #c80000; }

#captcha-image { margin: 0 15px; border-radius: 3px; }

/* -------- Forms ---------------------------------------------------------------- */

form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

dl { 
    display: flex;
    flex-direction: column;
    gap: 5px;
}

label { font-weight: 500; }

input, select, textarea, button {
    height: 30px;
    padding: 0 .5em;
    background-color: #f8f8f8;
    border: 1px solid #c8c8c8;
    border-radius: 3px; 
}

input, select, textarea { width: 100%; box-shadow: inset 0 0 5px 0 #00000018; }

.checkbox-wrap {
    display: flex;
    align-items: center;
    height: 22px;
    padding-left: 25px;
    position: relative;
    cursor: pointer;
    user-select: none;
}

.checkbox-wrap input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: #f8f8f8;
    border: 1px solid #c8c8c8;
    border-radius: 3px;
    box-shadow: inset 0 0 5px 0 #00000018;
}

.checkbox-wrap:hover input ~ .checkmark { background-color: #f8f8f8; }

.checkbox-wrap input:checked ~ .checkmark { background-color: #0064c8; }

.checkmark::after {
    content: "";
    display: none;
    position: absolute;
    left: 6px;
    top: 2px;
    width: 4px;
    height: 9px;
    border: solid #ffffff;
    border-width: 0 2px 3px 0;
    transform: rotate( 45deg );
}

.checkbox-wrap input:checked ~ .checkmark::after { display: block; }

button { min-width: 30px; background-color: #f0f0f0; }

button[type="submit"] {
    width: 100%;
    background-color: #0064c8;
    color: #ffffff;
    border-color: #003498;
}

#pass-wrap { position: relative; }
#pass-toggle { position: absolute; right: 0; }

/* -------- Widgets ---------------------------------------------------------------- */

.widget { 
    display: flex;
    flex-direction: column;
}

.widget-title { margin: 0 0 1em; text-transform: uppercase; }

.widget.no-title .widget-title { display: none; }

.widget.align-center { flex-direction: row; justify-content: center; }

.widget-image { display: block; }

.widget.logo-text .widget-contents { font-size: 12px; }
.widget.logo-text .widget-contents p { line-height: 1.35; }

.widget.link-list a { color: inherit; }

#footer-items .widget { font-size: 13px; text-transform: uppercase; }

#footer-items .widget-title { color: #f0f0f0; }
#footer-items .widget.link-list .list-ul { line-height: 1.5; }
#footer-items .widget.link-list a:hover { color: #ffffff; }

#widget-about { text-align: center; }

#widget-support ul { justify-content: center; }
#widget-support li { padding: 0 .75em; border-right: 1px solid #c8c8c8; }
#widget-support li:last-of-type { border-right: none; }
#widget-support a { color: #e0a000; }

/* -------- Back-2-Top ---------------------------------------------------------------- */

#b2t {
    position: fixed;
    z-index: 100;
    bottom: -75px;
    right: 0;
    margin: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    background-color: #ffffff;
    color: #0064c8;
    border-radius: 50%;
    box-shadow: 0 0 8px 0 #00000080;
    transition: all .2s ease;
}
#b2t.show { bottom: 0; }

#b2t i { margin: 0; font-size: 40px; }

/* -------- Responsive ---------------------------------------------------------------- */

/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and ( min-width: 600px ) {

    .widget.logo-text { flex-direction: row; }
}

/* Medium devices (landscape tablets, 768px and up) */
@media only screen and ( min-width: 768px ) {

    .row { flex-direction: row; justify-content: space-between; }

    .col-1 { width: 8.33%; }
    .col-2 { width: 16.66%; }
    .col-3 { width: 25%; }
    .col-4 { width: 33.33%; }
    .col-5 { width: 41.66%; }
    .col-6 { width: 50%; }
    .col-7 { width: 58.33%; }
    .col-8 { width: 66.66%; }
    .col-9 { width: 75%; }
    .col-10 { width: 83.33%; }
    .col-11 { width: 91.66%; }
    .col-12 { width: 100%; }

    #signin-items {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        margin: 20px auto 0;
        max-width: 600px;
    }

    #signin-body { flex: 1; }
    
    #signin-footer { margin-bottom: 30px; }

    #slide-wrapper, #slide-open { display: none; }

    #header-items { justify-content: flex-start; }

    #header-nav {
        display: flex;
        justify-content: space-between;
        width: 100%;
    }

    #body-items {
        flex-direction: row;
        justify-content: space-between;
        padding: 30px;
    }
}

/* Large devices (laptops/desktops, 992px and up) */
@media only screen and ( min-width: 992px ) {
    
    #wallpaper {
        display: block;
        position: fixed;
        z-index: -1;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-position: center;
        background-repeat: no-repeat;
        background-size: cover;
        background-attachment: fixed;
    }

    #signin-wrapper {
        width: 400px;
        margin-left: 10vw;
        background-color: #ffffff;
        box-shadow: 0 0 15px 0 #00000080;
    }

    #signin-wrapper.align-alt {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate( -50%, -50% );
        height: auto;
        margin: 0;
        border-radius: 5px;
    }

    #signin-items { flex-direction: column; }
}

/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and ( min-width: 1200px ) {
    
}