
@import url('https://fonts.googleapis.com/css2?family=Domine:wght@400;500;600;700&display=swap');

:root {
    --color-highlight : #00bbff;
    --color-highlight2 : #0376a0;
}

body {
    margin: 0;
    padding: 0;
    font-family:'Domine';
    background-color: white;
}

p {
    line-height: 160%;
}

img {
    width: 100%;
}

#aboutme img {
    width: 40%;
}

body>header>nav>a {
    display: block;
    text-align: right;
}

a:active {
    color: var( --color-highlight );
}

section {
    display: none;
}

section:target {
    display: block;
}

section:target article>main {
    display: none;
}

article:not(:target) main {
    display: none;
}

@keyframes slideopen {
    from { color: white; }
    to { color: black; }
}

article:target main {
    display: block;
    animation: slideopen 1.5s;
}

ul {
    padding-top:0;
    padding-bottom: 0.3em;
}

li p {
    margin: 0.3em;
}

#hamburger {
    display: none;
}

#hamburgerlabel {
    display: none;
}

@media print {

    body>header>nav {
        display: none;
    }

    body>header {
        position: sticky;
        top: 0;
        left: 0;
        right: 0;
        height: 10vh;
        background-color: white;
        overflow: hidden;
    }

    body>header>img {
        width: auto;
        height: 60%;
    }

    body>footer a {
        display:block;
    }

}

@media screen {

    html {
        background-color: rgb(226, 224, 205);
        scroll-behavior: smooth;
    }

    body {
        height: 100vh;
        background-color: white;
        max-width: 1080px;
        margin-left: auto;
        margin-right: auto;
        box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    }

    body>header {
        position: sticky;
        top: 0;
        left: 0;
        right: 0;
        height: 30vh;
        background-color: white;
        overflow: hidden;
    }

    body>main {
        max-height: 70vh;
        overflow-y: auto;
        background-color: white;
    }

    section {
        margin-bottom: 4em;
    }

    body>header>img {
        position: absolute;
        width: auto;
        height: 60%;
        bottom: 50px;
        left: 10px;
    }

    body>header>nav {
        display: block;
        position: absolute;
        bottom: 56px;
        right: 3vw;
        text-align: right;
        width: 55%;
    }

    body>header>nav>a {
        font-size: min( 1.3em, 4vh );
    }
    
    body>header>nav>a, article>header a {
        display: inline-block;
        text-align: right;
        text-decoration: none;
        color: black;
        border-radius: 0.5em;
        padding-left:0.3em;
        padding-right:0.3em;
    }

    @keyframes unsinkButton {
        from {
            color:black;
        }
        to {
            color: var( --color-highlight );
        }
    }

    @keyframes raiseButton {
        from { }
        to {
            color:black;
        }
    }

    body>header>nav>a:hover:not(.Active), article>header a:hover:not(.Active) {
        animation-name: raiseButton;
        animation-duration: 0.5s;
        color:black;
    }

    @keyframes raiseActiveButton {
        from { }
        to {
            color:black;
        }
    }

    body>header>nav>a:hover.Active, article>header a:hover.Active {
        color:var( --color-highlight );
    }

    body>header>nav>a:active:not(.Active), article>header a:active:not(.Active) {
        color: var( --color-highlight2 );
    }

    body>header>nav .Active, article>header .Active {
        animation-name: unsinkButton;
        animation-duration: 1s;
        color: var( --color-highlight );
    }

    body>main a {
        color: var( --color-highlight2 );
        font-style: normal;
        text-decoration: none;
    }

    body>main a:hover:not(.Active) {
        text-decoration: underline;
    }

    section h2 a {
        text-decoration: none;
    }

    section h2 a:not(.Active):after {
        font-family: "Font Awesome 5 Free"; font-weight: 900; content: "  \f107";
    }

    section {
        padding: 0 5vw 0 5vw;
    }

    article>main {
        padding: 0 1.5em 1em 1.5em;
    }

    h1 {
        font-size: 2em;
        display: none;
    }

    h2, h3 {
        font-size: 1.4em;
    }

    h4 {
        font-size: 1.2em;
    }

    blockquote p {
        font-style: italic;
        font-weight: bold;
        margin:0;
        padding: 0.3em;
    }

    blockquote p:last-child {
        border-left: none;
        text-align: right;
        font-style: normal;
        font-weight: bold;
    }

    body>footer {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
    }

    body>footer p {
        border-radius: 0.5em 0.5em 0 0;
        text-align: center;
        width:10em;
        height: 2.75em;
        padding: 1em 1em 0 1em;
        background: white;
        margin: auto;
        box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    }

    body>footer a {
        color: black;
    }

    body>footer span {
        display: none;
    }

    footer i {
        width:2em;
        font-size: 1.5em;
    }

}

@media (orientation: portrait) {

    #hamburgerlabel {
        display:block;
        font-size: 30px;
        padding: 0.5em;
        position: fixed;
        right: 0;
    }

    #hamburger:not(:checked)~nav {
        display:none;
    }

    #hamburger:checked~nav {
        position: fixed;
        top: 3.3em;
        right: 0;
        background-color: white;
        width: auto;
        padding:1em;
        box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    }

    #hamburger:checked+label {
        background-color: white;
        box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    }

    body>header>nav a {
        display: block;
        padding-top: 0.3em;
        padding-bottom: 0.3em;
    }

    h1 {
        display: block;
    }

    h2 {
        font-size: 1.2em;
    }

    body>footer {
        width:100vw;
        background-color: black;
        color: white;
    }

    body>footer a {
        color: white;
    }

    body>footer p {
        width:100%;
        background-color: black;
    }

    footer i {
        width:25%;
    }
}

