/**
 * @author      : Aidan Mullen (git@acm.contact)
 * @file        : style
 * @created     : 2021
 */

/**
 * =====
 * Fonts
 * =====
 *
 *     Provide various formats for typefaces.
 *
 */

@font-face {
    font-family: "Glacial Indifference";
    src: url("../fonts/AtkinsonHyperlegibleNext/AtkinsonHyperlegibleNext-Regular.woff2")
    format("woff2"),
    url("../fonts/AtkinsonHyperlegibleNext/AtkinsonHyperlegibleNext-Regular.woff")
    format("woff"),
    url("../fonts/AtkinsonHyperlegibleNext/AtkinsonHyperlegibleNext-Regular.ttf")
    format("truetype"),
    url("../fonts/AtkinsonHyperlegibleNext/AtkinsonHyperlegibleNext-Regular.svg#AtkinsonHyperlegible-Regular")
    format("svg");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/**
 * ========
 * Defaults
 * ========
 *
 *     A set of cross-platform defaults.
 */

* {
    font-family: "Glacial Indifference";
    cursor: default;
}

/* These properties create consistent formatting across browsers. */

html, body {
    text-align: center;

    /* Fallback resolution for non-conforming drawing engines. */

    height: 320px;
    height: 100%;

    /* Default in most browsers. */

    font-size: 16px;

     /* Use browser's default font-size; this allows the text to scale to
      * what the user specifies. */

    font-size: 100%;

    line-height: 32px;

    border: 0px;
    outline: 0px;
}

html {
    background-color: #CFD3CD;
    color: #0A0A0D;
}

body {
    display: block;
    margin: 0px;
    padding: 0px;

    /* Line height in terms of font-size. */

    line-height: 1;
}

br {
    display: block;

    /* Line break contains no extraneous characters. */

    content: "";

    /* Line height set to better value that works across browsers. */

    line-height: 150%;
}

p {
    text-align: center;
    font-size: 1em;
}

a {
    text-decoration: underline;
    border: none;
    outline: none;
    padding: 0.25%;
}

h1 {
    font-size: 3.0em;
}

h2 {
    font-size: 1.4em;
}

/*
 * The .incompatible class is used by a div displayed when the viewport is too
 * small.
 */

.incompatible {
    display: none;
}

/* Holds primary content for page. */

#content {
    max-width: 1280px;
    width: 100%;
    content: "";
    margin-top: 8%;
    margin-bottom: 10em;
    display: inline-block;
    text-align: center;
}

.horizontal_center {
    text-align: center;
}

#sidebar {
    display: inline-block;
    width: 72px;
    width: 100%;
    vertical-align: middle;
    height: 316;
    height: 98%;
    margin: 0px;
}

.sidebar_footer {
    display: block;
    width: 72px;
    width: 100%;
    height: 0px;
    font-size: 0.75em;
    padding-bottom: 1em;
}

a:link, a:visited {
    background: none;
    color: #0A0A0D;
    pointer-events: all;
}

a:hover, a:focus {
    text-decoration: none;
    cursor: pointer;
    background-color: #0A0A0D;
    color: #CFD3CD;
}

.b {
    background-color: #0A0A0D;
    color: #CFD3CD;
    display: inline-block;
    text-decoration: none;
    text-align: center;
    width: 32px;
    width: 25%;
    margin-left: 0px;

    /* Use line-height instead of height for "a" link elements. */

    line-height: 1em;
    font-size: 1.25em;
    margin: 1em;
    min-height: 16px;
    min-width: 64px;
    background: none;
    border: none;
    outline: none;
    padding: 2px;
}

.b:hover, .b:focus, .b.sidebar:hover, .b.sidebar:focus {
    background-color: #0A0A0D;
    color: #CFD3CD;
    cursor: pointer;
}

.b:active, .b.sidebar:active {
    background-color: #0A0A0D;
}

.b:link {
    text-decoration: underline;
}

.b.sidebar, .b.sidebar:link, .b.sidebar:visited {
    line-height: 1.5em;
    text-align: left;
    margin: 0px;
    padding-left: 4px;
    padding-left: 10%;
    width: 90%;
    text-decoration: none;
}

.b.sidebar:hover, .b.sidebar:focus {
    padding-left: 4px;
    padding-left: 13%;
}

.b.sidebar.special {
    color: #154889;
    padding-left: 3px;
    padding-left: 5%;
    width: 95%;
}

.b.sidebar.special:hover, .b.sidebar.special:focus {
    background-color: #0A0A0D;
    color: #3481B8;
    padding-left: 3px;
    padding-left: 8%;
}

/**
 * ======
 * Footer
 * ======
 *
 *     Place special links.
 *
*/

.flink, .flink:visited {
    margin: 1em;
    line-height: 200%;
    white-space: nowrap;
}

.flink:focus {
    background-color: #0A0A0D;
    color: #CFD3CD;
}

#information {
    display: inline-block;
    height: 256px;
    height: 100%;
    width: 72px;
    width: 98%;
    position: relative;
    margin-left: auto;
    margin-right: 0%;
    text-align: center;
    vertical-align: middle;
    min-width: 300px;
}

.container {
    margin: auto;
}

#sub-link {
    line-height: 175%;
}

#sub-link:link, #sub-link:visited {
    text-decoration: none;
    color: #0A0A0D;
    background: none;
    height: 10%;
    padding: 0.25%;
    border: none;
    margin-top: 10%;
    text-decoration: underline;
    pointer-events: all;
}

#sub-link:hover {
    text-decoration: none;
    cursor: pointer;
    background-color: #0A0A0D;
    color: #CFD3CD;
}

/**
 * =========
 * Dark Mode
 * =========
 *
 *     Alternative color-scheme to follow system preference.
 *
 */

@media (prefers-color-scheme: dark) {

    html, body {
        background-color: #0A0A0D;
        color: #CFD3CD;
    }

    p {
        color: #CFD3CD;
    }

    h1 {
        color: #CFD3CD;
    }

    a {
        background-color: #0A0A0D;
        color: #CFD3CD;
    }

    a:link, a:visited {
        background: none;
        color: #CFD3CD;
    }

    a:hover, a:focus {
        background-color: #CFD3CD;
        color: #0A0A0D;
    }

    .sub-link:link, .sub-link:visited {
        background: none;
        color: #CFD3CD;
    }

    .sub-link:hover
    {
        background-color: #CFD3CD;
        color: #0A0A0D;
    }

    .b {
        background: none;
        color: #0A0A0D;
    }

    .b:visited {
        background-color: none;
        color: #CFD3CD;
    }

    .b:hover, .b:focus {
        background-color: #CFD3CD;
        color: #0A0A0D;
    }

    .b:active, .b.sidebar:active {
        background-color: #CFD3CD;
        color: #0A0A0D;
    }

    .b.sidebar {
        background-color: #0A0A0D;
        color: #CFD3CD;
    }

    .b.sidebar:hover, .b.sidebar:focus {
        background-color: #CFD3CD;
        color: #0A0A0D;
    }

    .b.sidebar.special {
        color: #3481B8;
        padding-left: 2px;
        padding-left: 5%;
    }

    .b.sidebar.special:hover, .b.sidebar.special:focus {
        background-color: #CFD3CD;
        color: #154889;
    }

    .flink:link, .flink:visited {
        color: #CFD3CD;
    }

    .flink:hover, .flink:focus {
        background-color: #CFD3CD;
        color: #0A0A0D;
    }
}

/**
 * ===================
 * Workstation Display
 * ===================
 *
 *     Options for viewports larger than 768px.
 *
 */

@media only screen and (min-width: 768px) {

    p {
        text-align: center;
    }

    h1 {
        font-size: 3em;
    }

    h2 {
        font-size: 2.0em;
    }

    #sidebar {
        width: 72px;
        width: 30%;
    }

    #information {
        width: 62%;
        max-width: 791.084px;
        border: 0;
        vertical-align: top;
        margin: 0.25em;
    }

    #sub-link:link, #sub-link:visited {
        height: 8px;
    }
}

/**
 * ====================
 * Unsupported Displays
 * ====================
 *
 *     Options for small viewports.
 *
 */

@media only screen and (max-width: 299px) {
    #view {
        display: none;
    }

    #incompatible {
        display: block;
    }

}

@media only screen and (max-height: 64px) {
    #view {
        display: none;
    }

    #incompatible {
        display: block;
    }

}

/* --- end of STYLE_CSS --- */
