/*  stucture */

html {
    overflow-y: scroll;
}

body {
    display: flex;
    flex-direction: column;
    margin: 0;
    min-height: 100vh;

    background-image: url('bg.png');
    font-family: 'Fira Sans', sans-serif;;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.25;
    text-align: center;
}

html.dark body {
    background-color: #222222;
    color: #eeeeee;
}

main {
    flex: 1;
    padding: 1.5rem 0;
}

footer {
    border-top: 1px solid #888888;
    padding: 0.25rem 0;
    margin: 0 1rem;

    font-size: 0.75rem
}

.container {
    margin: 0 auto;
    width: 700px;
}

@keyframes fade-in {
    from { opacity: 0 }
    to { opacity: 1 }
}

@keyframes fade-out {
    from { opacity: 1 }
    to { opacity: 0 }
}

section {
    margin: 0 4rem;
}

section.fade-in {
    opacity: 1;
    animation: fade-in ease-in 500ms;
}

section.fade-out {
    opacity: 0;
    animation: fade-out ease-in 200ms;
}

/* elements */

a {
    color: #0088ff;
    text-decoration: none;
    cursor: pointer;
}

a:hover {
    text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
}

h1.title {
    font-family: 'Signika Negative', sans-serif;
    font-size: 4rem;
    font-weight: 600;
    cursor: default;
}

hr {
    background: #888888;
    border: none;
    height: 1px;
    margin: 1.5rem 1rem 0 1rem;
}

p {
    margin: 0.5rem;
}

section {
    text-align: left;
}

section h2 {
    font-family: 'Signika Negative', sans-serif;
    font-size: 1.5rem;
}

a#theme-toggle {
    display: none;
}

/* navbar */
nav {
    font-family: 'Signika Negative', sans-serif;
    margin: 2rem;
    padding: 0;
    list-style: none;
    font-size: 0;
}

nav > a {
    color: #ffffff;
    font-size: 1.5rem;
    padding: 0.5rem 0;
    margin: 0 1px;
    width: 24%;
    background-color: #888888;
    display: inline-block;
}

html.dark nav > a {
    color: #222222;
}

nav > a:first-child {
    border-radius: 0.75em 0 0 3em;
}

nav > a:last-child {
    border-radius: 0 3em 0.75em 0;
}

nav > a:hover {
    text-decoration: none;
    filter: brightness(1.25);
}

nav > a:active {
    filter: brightness(1.5);
}

nav > a.current {
    background-color: #ff8f72;
}

nav > a.current:hover {
    filter: brightness(1);
}

/* link buttons */

a.link-btn {
    border-radius: 0.75rem;
    display: block;
    margin: 1rem 0;
    text-align: center;
    padding: 0.5rem 0;
    width: 100%;
    background: #888888;
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 500;
}

html.dark a.link-btn {
    color: #222222;
}

a.link-btn:hover {
    filter: brightness(1.25);
    text-decoration: none;
}

a.link-btn:active {
    filter: brightness(1.5);
}

/* mixins */

.float-left {
    float: left;
}

.float-right {
    float: right;
}

/* media breaks */

@media (max-width: 768px) {
    .container {
        width: 500px;
    }
}

@media (max-width: 512px) {
    .container {
        width: 100%;
    }

    div.link-btn-container {
        border: none;
        margin-top: 0;
    }

    .mobile-only {
        display: block;
    }
}
