/* Nat Hurtig */

:root {
    /*
    faded is the color of the links at the top and
    the hr in the hamburger menu. It's
    displayed against navbar-background

    background is the color of the background, but
    NOT the header at the top

    navbar-background is the color of the navbar's
    background (used for mobile hamburger menu too)
    It's displayed against background

    Text is the color of the text. It's displayed
    against background

    Link-color is the color of the title and the links.
    It's displayed against background and navbar-background
    */
    /* LIGHT MODE */
    /* --darker-main: #CCC;
    --faded: #493c52;
    --background: #DDD;
    --navbar-background: #bbb0c2;
    --text: #181818;
    --link-color: #7225a1; */
    /* HUE MODE */
    --hue:120;
    --faded: hsl(var(--hue), 5%, 25%);
    --background: hsl(var(--hue), 5%, 95%);
    --navbar-background: hsl(var(--hue), 20%, 80%);
    --text: hsl(var(--hue), 20%, 5%);
    --link-color: hsl(var(--hue), 100%, 25%);
  }

.navbar {
    margin: 0px 10px 30px 10px;
    padding: 0px 5px;
    background-color: var(--navbar-background);
    color: var(--link-color);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    -webkit-border-radius: 7px;
    -moz-border-radius: 7px;
    -ms-border-radius: 7px;
    -o-border-radius: 7px;
    border-radius: 7px;
}

.navbar > div {
    margin: 20px 0px;
    font-size: 1.2em;
}

.navbar a {
    color: var(--faded);
    text-decoration: inherit;
    -webkit-tap-highlight-color: transparent;
}

.navbar > div > a {
    padding: 5px;
    margin: 15px;
}

.navbar > div > * {
    margin: 0px 20px;
}

.links {
    display: flex;
    margin: 0px !important;
}

.links > div {
    margin: 20px 0px;
}

.links > div > a {
    padding: 5px;
    margin: 15px;
}

.links > div > * {
    margin: 0px 20px;
}

.navbar a:hover {
    color: var(--link-color);
    text-decoration: none;
}

.navbar a::before {
    content: "<\00a0";
    /* color: var(--faded); */
    font-family: monospace;
    font-size: 1.5em;
}

.navbar a::after {
    content: "\00a0>";
    /* color: var(--faded); */
    font-family: monospace;
    font-size: 1.5em;
}

.navbar a:hover:before {
    content: "<|";
}

.navbar a:hover:after {
    content: "|>";
}

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

img {
    max-width: 90vw;
    height: auto;
}


.inset {
    box-shadow: inset 0 0 1em 0 rgba(0, 0, 0, 0.3);
}

.text-center {
    text-align: center;
}

.center-children {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.space-children > * {
    margin: 8px 0px;
}

.header {
    display: block;
    font-size: 1.17em;
    margin-top: 1em;
    margin-bottom: 1em;
    margin-left: 0;
    margin-right: 0;
    font-weight: bold;
}

.disabled {
    pointer-events: none;
    color: var(--text);
    text-decoration: none;
}

.bigger {
    font-size: 1.5em;
}

.biggest {
    font-size: 2.3em;
}

/* Padding below the footer and lighter body text */

body {
    color: var(--text);
    background-color: var(--background);
    margin: 0px;
    padding: 12px;
    font-size: 1.1em;
    /* font-family: Helvetica, Arial, sans-serif; */
    font-family: Georgia, 'Times New Roman', Times, serif;
}

h1, h2, h3, h4, h5, h6, .navbar, .header {
    /* font-family: Georgia, 'Times New Roman', Times, serif; */
    font-family: Roboto, Helvetica, Arial, sans-serif;
}

.cat {
    display: block;
    margin: auto;
    max-width: 50vw;
    max-height: 70vh;   
}

.cat:not([src]) {
    visibility: hidden;
}

#getCatButton {
    margin: 20px 20px 0px;
}

#nextCat {
    display: none;
}

.image-container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    margin: 20px 0px;
}

.image-container > div {
    max-width: 500px;
}

.center {
    margin: auto;
}

.hr-alt {
    background-color: var(--faded);
    border: none;
    height: 2px;
}

a.active {
    /* background-color: var(--darker-main); */
    -webkit-border-radius: 23px;
    -moz-border-radius: 23px;
    -ms-border-radius: 23px;
    -o-border-radius: 23px;
    border-radius: 23px;
}

.image-container > * {
    margin: 0px 15px;
}

.essay {
    max-width: min(700px, 90vw);
    margin: auto;
}

.projects {
    max-width: 1100px;
    margin: auto;
    padding: 12px;
}

.projects>div:not(.head-div) {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap-reverse;
    margin: 30px 0px;
}

.projects>div:not(.head-div)>*, .projects>.head-div {
    margin: 0px 10px;
}

.projects>div:not(.head-div)>img {
    margin-top: 25px;
}


@media screen and (min-width: 1081px) {
    .projects>div:not(.head-div)>div {
        max-width: min(90%, 500px);
    }
}

.projects > div:not(.head-div) > img {
    width: min(90%, 500px);
    height: min(90%, 500px);
}

.projects>div:not(.head-div):nth-of-type(2n) {
    flex-direction: row-reverse;
}

.spacer {
    width: 20vw;
}

div.pub {
    margin: 10px 0px 0px 0px;
}

a {
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

div.pub > div:not(.links) > a {
    font-size: larger;
}

/* Positioning */

.float-start {
    float: left !important
}

.float-end {
    float: right !important
}

.text-start {
    text-align: left !important
}

.text-end {
    text-align: right !important
}

#overlay {
    z-index: 1;
    position: fixed;
    display: none;
    height: 100vh;
    width: 100vw;
    right: -100vw;
    background-color: var(--background);
    background-color: rgba(48,48,48,0.6);
    overflow-x: hidden;
    transition: right 0.5s;
    -webkit-transition: right 0.5s;
    -moz-transition: right 0.5s;
    -ms-transition: right 0.5s;
    -o-transition: right 0.5s;
}

.dropbtn {
    background-color:inherit;
    color: var(--link-color);
    font-size: 3rem;
    border: none;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

/* The container <div> - needed to position the dropdown content */
.dropdown {
    position: relative;
    display: none;
}

/* Dropdown Content (Hidden by Default) */
.dropdown-content {
    position: fixed;
    width: 200px;
    height: 100%;
    bottom: 0;
    right: -220px;
    background-color: var(--navbar-background);
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 2;
    transition: right 0.5s;
    -webkit-transition: right 0.5s;
    -moz-transition: right 0.5s;
    -ms-transition: right 0.5s;
    -o-transition: right 0.5s;
}

/* Links inside the dropdown */
.dropdown-links a {
    padding: 13px 16px;
    display: block;
}

.dropdown-links > div {
    margin: 8px 0px;
}

.dropdown-links > div:first-child {
    margin-top: 0px;
}

.dropdown-links > div:last-child {
    margin-bottom: 0px;
}

.dropdown-content > * {
    padding: 0px 10px;
}

@media screen and (max-width: 850px) {
    .links {
        display: none;
    }
    .dropdown {
        display: inline-block;
    }
    #overlay {
        display: block;
    }
}

html {
    overflow-y: auto;
    overflow-y: overlay;
}
