body {
    margin: 2rem;
    font-size: 14px;
}

body.default {
    font-family: 'Montserrat', sans-serif;

    --primary-text: #fff;
    --secondary-text: #293241;
    --tertiary-text: #fff;
    --link-text: #98c1d9;

    --primary-bg: #3d5a80;
    --secondary-bg: #98c1d9;
    --tertiary-bg: #293241;
}

/** start: gravity **/
body.gravity {
    font-family: 'Montserrat', sans-serif;

    --primary-text: #fff;
    --secondary-text: #293241;
    --tertiary-text: #fff;
    --link-text: #98c1d9;

    --primary-bg: #3d5a80;
    --secondary-bg: #98c1d9;
    --tertiary-bg: #293241;
}

body.gravity h1,
body.gravity h2,
body.gravity h3,
body.gravity h4 {
    animation: falling-animation 5.8s ease-in forwards;
}

body.gravity a {
    animation: falling-animation 9.8s ease-in forwards;
}

body.gravity section {
    animation-delay: 6s;
    animation: falling-animation 2s ease-in-out forwards;
}

body.gravity section ul {
    animation: falling-animation 8.8s ease-in forwards;
}

body.gravity p {
    animation: falling-animation 7.8s ease-in-out forwards;
}

@keyframes falling-animation {
    from{
        transform: translateY(0);
    }
    to { 
        transform : translateY(100vh);
    }
}
/** start: gravity **/

/** start: win95 **/
body.win95 {
    font-family: "Windows 95", sans-serif;
    font-weight: 400;
    background-color: #c0c0c0;
    color: #000;

    --primary-text: #000;
    --secondary-text: #fff;
    --tertiary-text: #fff;
    --link-text: #000181;

    --primary-bg: #c0c0c0;
    --secondary-bg: #000181;
    --tertiary-bg: #008081;
}
/** end: win95 **/

/** start: code **/
body.code {
    font-family: 'Montserrat', sans-serif;

    --primary-text: #fff;
    --secondary-text: #293241;
    --tertiary-text: #fff;
    --link-text: #98c1d9;

    --primary-bg: #3d5a80;
    --secondary-bg: #98c1d9;
    --tertiary-bg: #293241;
}

body.code #code-editor {
    font-family: 'Lato', 'Lucida Grande', 'Lucida Sans Unicode', Tahoma, Sans-Serif;
    background-color: #1e1f26;
    color: #fff;
    border-bottom: 1.5rem solid #333642;
    overflow: auto;
}

body.code #code-editor > details {
    background: #1d1e22;
    float: left;
    width: calc(50% - 2.25rem);
    min-height: 30rem;
    padding: 0;
    max-height: 30rem;
}

body.code #code-editor > details {
    border-right: 1.5rem solid #333642;
}

body.code #code-editor > details.html {
    border-left: 1.5rem solid #333642;
}

body.code #code-editor > details > summary {
    border-bottom: 1px solid rgba(255,255,255,0.05);
    background-color: rgba(0,0,0,0.1);
    margin: 0;
    padding: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
}

body.code #code-editor textarea {
    color: #fff;
    width: calc(100% - 1rem);
    background-color: transparent;
}
/** end: code **/

/** start: toddler **/
body.toddler {
    font-family: 'Short Stack', cursive;
    font-weight: 500;
    background-color: #c0c0c0;
    color: blue;

    --primary-text: blue;
    --secondary-text: red;
    --tertiary-text: yellow;
    --link-text: green;

    --primary-bg: black;
    --secondary-bg: purple;
    --tertiary-bg:#222;
}

body.toddler article p:last-of-type::after {
    content: "🌞";
    color: var(--primary-text);
}

body.toddler h1::before {
    content: "🐻";
    color: var(--tertiary-text);
}

body.toddler h1::after {
    content: "(My Dad)";
    color: #3271d2;
}

body.toddler h2::before {
    content: "🐶";
    font-weight: 100;
    color: var(--secondary-text);
}

body.toddler h2::after {
    content: "(He Fixes Computers)";
    color:#9c6500;
}

body.toddler h4::before {
    content: "🐺";
    font-weight: 100;
    color: #ccc;
}
/** end: toddler **/

/** start: minified **/
body.minified {
    font-family: Courier, monospace;
}

body.minified main * {
    display: inline;
    margin: 0;
    padding: 0;
    font-size: 10px;
    line-height: 9px;
    font-weight: 100;
    background-color: #fff;
    color: #000;
    text-transform: lowercase;
    text-decoration: none;
    font-style: normal;
    letter-spacing: -1px;
}

body.minified main::after {
    display: block;
    content: "/** minified size: 1.2kb */";
    font-size: 10px;
    line-height: 9px;
    font-weight: 100;
    letter-spacing: -1px;
    margin-top: 1rem;
}

body.minified main img {
    display: none;
}
/** end: minified **/

/** start: manpage **/
body.manpage {
    font-family: helvetica, sans-serif;;
    background-color: #fcfcfc;
    color: #181818;

    --primary-text: #181818;
    --secondary-text: #A00000;
    --tertiary-text:#502000;
    --link-text: #1030ff;

    --primary-bg: #fcfcfc;
    --secondary-bg: #fcfcfc;
    --tertiary-bg: #fcfcfc;
}

body.manpage section a:hover {
    color: red;
    background-color: #ffe0e0;
    text-decoration: underline;
}

body.manpage article {
    font-family: monospace, courier;
}

body.manpage h3 {
    text-transform: lowercase;
}

body.manpage h4 {
    text-transform: uppercase;
}

body.manpage h3::before {
    content: "--";
    margin-right: -0.3rem;
}

body.manpage footer {
    background-color: #e8e8e8;
    padding: 0;
}

body.manpage footer p,
body.manpage footer blockquote {
    text-align: left;
    margin: 0.5rem 0;
    padding: 0 1rem;
}

body.manpage nav {
    padding: 1rem;
    margin-bottom: 1rem;
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    background: #fff;
    text-align: left;
}

body.manpage nav::before {
    content: "Pages that refer to this page:";
    color: #000;
}

body.manpage nav a {
    margin-right: 1rem;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    color: var(--link-text);
    text-decoration: none;
}
/** end: manpage **/

/** start: terminal **/
body.terminal {
    font-family: Courier, monospace;
    background-color: #000;
    color: #fff;

    --primary-text: #00FF00;
    --secondary-text: #9f36ff;
    --tertiary-text: #fff;
    --link-text: #6f886c;

    --primary-bg: #000;
    --secondary-bg: #222;
    --tertiary-bg: #333;
}

@font-face {
    font-family: "Windows 95";
    src: url("../font/w-95-sans-serif.woff2") format("woff2");
}

@keyframes blink {
    from, to {
      color: transparent;
    }
    50% {
      color: var(--primary-text);
    }
}

body.terminal article p:last-of-type::after {
    content: "|";
    font-weight: 100;
    color: var(--primary-text);
    animation: 1s blink step-end infinite;
}

body.terminal h1::before {
    content: "site@";
    font-weight: 100;
    margin-right: -1rem;
    color: var(--tertiary-text);
}

body.terminal h2::before {
    content: "> ";
    font-weight: 100;
    color: var(--secondary-text);
}

body.terminal h4::before {
    content: "$";
    font-weight: 100;
    color: #ccc;
}

body.terminal h1::after {
    content: "~$";
    font-weight: 100;
    margin-left: -1rem;
    color: var(--secondary-text);
}

body.terminal h1 a::after {
    content: ":";
    font-weight: 100;
    margin-left: -1rem;
    color: var(--tertiary-text);
}
/** end: terminal **/

section a {
    color: var(--link-text);
}

section a:hover {
    color: var(--primary-text);
}

.box {
    padding: 1rem;
    font-size: 1.3rem;
}

.emoji {
    font-family: "Noto Color Emoji", "Apple Color Emoji", "Segoe UI Emoji", Times, Symbola, Aegyptus, Code2000, Code2001, Code2002, Musica, serif, LastResort;
    font-variant-emoji: emoji;
}

article {
    grid-area: content;
    color: var(--primary-text);
    background-color: var(--primary-bg);
}

h1 a {
    text-decoration: none;
    color: var(--secondary-text);
}

header {
    grid-area: header;
}

article,
header {
    max-width: 40em;
}

footer {
    grid-area: footer;
}

footer blockquote {
    text-align: center;
    font-size: 0.9rem;
}

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

aside {
    grid-area: sidebar;
    color: var(--secondary-text);
    background-color: var(--secondary-bg);
}

aside img {
    margin: 0 auto;
    display: block;
    width: 100%;
    max-width: 500px;
    border-radius: 50%;
    filter: grayscale(1);
}

article.gallery img {
    margin: 0 auto;
    display: block;
    width: 100%;
}

section {
    display: grid;
    margin-top: 3rem;
    grid-gap: 1rem;
    grid-template-columns: 30vw 60vw;
    grid-template-areas:
        "....... header header"
        "sidebar content content"
        "footer  footer  footer";
}

header,
footer {
    color: var(--tertiary-text);
    background-color: var(--tertiary-bg);
}

nav {
    padding: 1rem;
    color: var(--secondary-text);
    text-align: right;
}

nav a {
    margin-right: 1rem;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    color: var(--link-text);
    text-decoration: none;
}

nav a:hover {
    text-decoration: underline;
}

nav img {
    width: 2rem;
    height: 2rem;
    margin-right: 1rem;
    vertical-align: middle;
}

#theme-switch {
    position: fixed;
    right: 0;
    top: 2%;
    width: 1rem;
    padding: 0.5rem;
    font-family: 'Montserrat', sans-serif !important;
    background-color: #3d5a80;
    color: #fff;
    border: 2px solid #000;
    box-shadow: -5px 5px 5px rgba(0, 0, 0, 0.5);
}

#theme-switch span {
    display: none;
}

#theme-switch[open] {
    width: 16rem;
}

#theme-switch[open] span {
    display: inline;
}

@media only screen and (min-width: 1024px) {
    #theme-switch {
        width: 16rem;
    }

    #theme-switch span {
        display: inline;
    }
}

#current-theme {
    color: #111;
    font-weight: bold;
}

#theme-switch ul {
    margin: 1rem 0;
    padding-left: 2rem;
    list-style-type: square;
}

#theme-switch summary {
    cursor: pointer;
}

#theme-switch ul li {
    cursor: pointer;
}

#theme-switch ul li:active {
    cursor: wait;
}

@media only screen and (max-width: 768px) {
    body {
        margin: 0;
        font-size: 12px;
    }

    h1, h2 {
        margin: 1rem;
    }

    nav a {
        text-align: left;
        margin: 1rem;
        display: block;
    }

    .box {
        padding: 0.1rem 1rem;
        font-size: 1rem;
    }

    section {
        display: block;
        margin: 6rem 0;
    }

    section:last-of-type {
        margin-bottom: 0;
    }

    header {
        margin: 1rem 0 0;
    }

    #theme-switch[open] {
        width: 91%;
        font-size: 1rem;
    }
}

#mc_embed_signup {
    clear: left;
}

#mc_embed_signup form#mc-embedded-subscribe-form {
   padding: 0;
}

#mc_embed_signup form#mc-embedded-subscribe-form h2 {
   display: none;
}

#mc_embed_signup form#mc-embedded-subscribe-form input,
#mc_embed_signup form#mc-embedded-subscribe-form .mce_inline_error {
   border-radius: 0 !important;
}