/* COLOUR PALETTE 
* background - #0FF
* text - #00F
* links - #FF0
* accent 1 - #0F0
* accent 2 - #9400D3
*/

* {
    box-sizing: border-box;
    max-width: 100vw;
    font-family: "IBM Plex Mono", monospace;
}

/* PARENT STYLES */

html {
    padding: 0;
    margin: 4px;
    background-color: blue;
    color: #8FFFFF;
}

body {
    padding: 15px 0 0 0;
    margin: 0;
}

h1 {
    color: #8FFFFF;
    font-size: 120%;
    font-weight: normal;
    font-family: "Cutive Mono", monospace;
    text-transform: uppercase;
}

h2 {        
    color: #FF0;
    font-size: 100%;
    font-weight: normal;
}

p {
    color: #8FFFFF;
    line-height: 150%;
}

a {
    color: #FFF;
}

a:hover {
    color: #8FFFFF;
}

hr {
    border: 0;
    border-bottom: 1.5px dotted #8FFFFF;
    padding: 20px 0 0 0; 
    margin: 0 0 20px 0;
}

li {
    line-height: 150%;
    padding: 0.5em 0 0.5em 0;
}

table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
}

th, td {
    border: 1px solid #8FFFFF;
    padding: 10px;
    margin: 0;
}

ul {
    list-style: square;
}

/* SEMANTIC STYLES (in order of appearance) */

nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 5px 10px 10px 10px;
    background-color: #8FFFFF;
    color: blue;
    font-family: "Cutive Mono", monospace;
}

nav a {
    color: blue;
    padding: 0px 5px;        
    font-family: "Cutive Mono", monospace;

}

nav a:hover {
    color: blue;
    text-transform: uppercase;
}

main {
    margin: 25px 50px;
    line-height: 120%;
}

footer {
    width: 50%;
    margin: auto;
    padding: 50px 0;
}

footer a {
    font-family: "Cutive Mono", monospace;
}

footer p {      
    padding-top: 5px;
    text-align: center;
    font-family: "Cutive Mono", monospace;
    border-top: 1px #8FFFFF solid;
}

blockquote {
    padding-left: 0.5em;
}

/* ID (in alpha order) */

#active-menu {
    background-color: #0F0;
    padding: 12px;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: bold;
}

#footnotes {
    padding: 25px 0px;
}

#footnotes a {
    text-decoration: none;
    color: white;
}


#toc {
    margin: 10px 10px 50px 10px;
    padding: 5px;
    display: inline-block;
    width: 75%;
    background-color: blue;
    font-family: "Cutive Mono", monospace;
    font-size: 110%;
    color: #8FFFFF;    
    border: 5px #8FFFFF double;
}

#toc a {
    font-family: "Cutive Mono", monospace;
    color: #8FFFFF;
    text-decoration: none;
}

#toc a:hover {
    text-decoration: underline;
}

#toc h1 {
    color: #8FFFFF;
    font-family: "Cutive Mono", monospace;
    text-transform: uppercase;
    border-bottom: 2px #8FFFFF double;
}

#toc li {
    list-style: none;
    padding: 5px 25px 5px 0;
}

#top-corner-img {
    position: fixed;
    top: 40;
    right: 0;
    z-index: -2;
    width: 100%;
}

#top-corner-img img {
    width: 100%;
    animation: fadein 60s; 
}

/* CLASSES (in alpha order) */

.about-photo {
    float: left;
    padding: 25px 50px 25px 25px;
    width: 30%;
    min-width: 200px;
    }

.anchor {
    color: #8FFFFF;
    text-decoration: none;
    font-family: "Cursive Mono", monospace;
}

.ascii-art {
    font-family: monospace;
    white-space: pre;
    font-size: 100%;
    color: #8FFFFF;
    margin: 0px;
}

.ascii-header {
    margin: 0px;
    padding: 0px;
    max-width: 100vw;
}

.b-note {
    color: white;
    font-size: 0.75em;
    padding: 0 0 0 0.1em;
    vertical-align: top;
}

.blog-header {
    color: white;
    text-transform: uppercase;
    font-size: 1.2em;
}

.blog-metadata {
    color: #FF0;
}

.blog-subhead {
    color: white;
    text-transform: uppercase; 
}


.design {
    padding-top: 25px;
    margin: auto;
    display: inline-block;    
    width: 100%;
    z-index: 1;
}

.flip {
    display: inline-block;
}

.flip:hover {
    transform: rotate(180deg);
}

.hidden { /* Thank you, WebAIM! https://webaim.org/techniques/css/invisiblecontent/ */
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.highlight {
    color: #FF0;
}

.highlight-wh {
    color: white;
}

.img-flick {
}

.img-flick img {
    display: block;
    width: 50%;
    margin-left: auto;
    margin-right: auto;
}

.project-links {
    color: #FF0; 
}

.ref {
    color: white;
    font-size: x-small;
}

span.strange1 {
    animation: strange 0.25s 5s infinite alternate-reverse;
    transition: 1s;
}

span.strange1:hover {
    letter-spacing: 2px;
}

span.strange2 {
    animation: strange 0.25s 10s infinite alternate-reverse;
}

span.strikethrough {
    text-decoration: line-through;
}

span.wrap {
    word-break: break-word;
}

/* ANIMATIONS */

@keyframes img-flick {
    0% { height: 50%; }
    100% { height: 100%; }
}

@keyframes fadein {
    0% { opacity: 0; }
    100% { opacity: 1; }
}


@keyframes strange {
    0% {color: #9400D3;}
    25% {color: #F00;}
    50% {color: #0F0;}
    75% {color: #F0F;}
    100% {color: #FF0;}
}

/* DEVICE STYLES */

@media only screen and (max-width: 600px) and (min-width: 321px) {
    nav { width: 100vw; }
    nav a { font-size: 0.8em; }
    img.about-photo { float: none; padding: none; width: 100%; margin: auto; }
    div.ascii-header { max-width: 100vw; }
    .ascii-art { font-size: 0.75em; }
    span.goto { visibility: hidden; }
}

@media only screen and (max-width: 320px) {
    nav { top: 0px; width: 100%; height: 50px; }
    nav a { font-size: 0.5em; }
    .ascii-art { font-size: 0.1em; }
    span.goto { visibility: hidden; }



/* @media screen and (min-width: 1025px) {
    div.design { position: fixed; bottom: 0; right: 0; height: 100%; width: 50%; max-width: 500px; background-color: lime; }
    div.imgslide { position: fixed; animation: imgslide 10s 2s infinite alternate; }
    div.design img { float: right; padding-right: 50px; width: 80%; vertical-align: bottom; }
} */


