/* Variables */
:root {
  --main-fg-color: #111;
  --main-bg-color: #fff;
}


/* Normalize */
/*
  1. Use a more-intuitive box-sizing model.
*/
*, *::before, *::after {
  box-sizing: border-box;
}
/*
  2. Remove default margin
*/
* {
  margin: 0;
}
/*
  3. Allow percentage-based heights in the application
*/
html, body {
  background: var(--main-bg-color);;
  color: var(--main-fg-color);;
}

body {
  font: normal normal 112.5% 'Open Sans',sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  display: flow-root;
  width: 100%;
  min-height: 100%;
}
/*
  6. Improve media defaults
*/
img, picture, video, canvas {
  display: block;
  max-width: 100%;
}

/* Some basic defaults */
p {
  margin: 1em 0;
}

a {
  transition: color 450ms ease-in-out;
}

a:link, a:visited {
  color: #0091fa;
}

a:hover {
  color: #fa0000;
}

h1, h2, h3, h4, h5, h6 {
  scroll-margin-top: 2em;
}

/* Main navigation */
.page-header {
  position: fixed;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--main-fg-color);
  color: #eee;
  padding: .5em;
  text-align: left;
  transition: left .5s ease-in-out;
}

.page-header:target {
  left: 0;
}

.nav-button {
  position: absolute;
  display: block;
  border-bottom-left-radius: 4px;
  line-height: 1;
  padding: 8px 8px 5px;
  border-width: 0 0 1px 1px;
  border-style: solid;
  border-color: #555;
  transition-property: color, background;
  transition-duration: 0.5s;
  transition-timing-function: ease-in-out;
}

  .nav-button svg {
    height: 2em;
    width: 2em;
  }
  
  .nav-button:link,
  .nav-button:visited  {
    background: var(--main-fg-color);
    color: #ccc;
  }
  
  .nav-button:hover {
    background: #222;
    color: var(--main-fg-color);
  }

.nav-button.open {
  top: 0;
  right: -100%;
}

.nav-button.close {
  top: 0;
  right: 0;
}

.page-header .site-title {
  display: block;
  color: white;
  text-decoration: none;
  transition: color 450ms ease-in-out;
  font-size: 1.5em;
  margin-bottom: 1em;
}

  .page-header .site-title:hover {
    color: var(--main-bg-color);
  }

.page-header .main-navigation-menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: .5em;
  list-style: none;
  margin: 0;
  padding: 0;
  left: 0;
  font-size: 1.25em;
}

.main-navigation-menu a:link,
.main-navigation-menu a:visited {
  color: #5ac6fb;
  text-decoration: none;
  font-size: 1.5em;
}

.main-navigation-menu a:hover {
  color: #ade4ff;
}

.main-navigation-menu > li .dropdown,
.main-navigation-menu > li svg {
  display: none;
}

h1 {
  font-weight: normal;
}

/* Main content area */
#main-wrap {
  display: flex;
  flex-direction: column;
  margin: 2em 1em;
}

#main-content {
}

#main-sidebar {
  margin-top: 2em;
  background: #f0f1ef;
  border-radius: 4px;
  padding: 1em
}

/* Content Elements */
.align-center {
  text-align: center;
}

.siteTitle {
  font-family: "Parisienne", cursive;
  font-weight: 400;
  font-style: normal;
  font-size: 2.5em;
}

.image-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  margin: 1.5em 0 2em;
}

.image-wrap figure {
  box-shadow: rgba(50, 50, 93, 0.35) 0px 13px 27px -5px, rgba(0, 0, 0, 0.45) 0px 8px 16px -8px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.image-wrap figcaption {
  padding: 5px 10px;
  text-align: center;
  font-size: .85em;
  color: #444;
}

  .image-wrap img {
    max-height: 600px;
  }

blockquote.message {
  background: #eee;
  padding: 1em;
  border-radius: 6px;
  margin: 1em 0;
}

  blockquote.message p {
    margin: 0 0 1em;
  }

blockquote.message:nth-child(odd) {
  background: #dde9ff;
}

/* Footer */
.page-footer {
  background: var(--main-fg-color);
  color: var(--main-bg-color);
  padding: 50px 2em;
  margin: 2em 0 0;
  display: flex;
  flex-direction: column;
}

.page-footer .site-title a {
  text-decoration: none;
}

.profile-picture {
  display: inline-block;
  max-width: 90%;
  border-radius: 50%;
  border: 3px solid #95dafd;
  margin: 1.5em 0;
}

/* Larger portable devices like tablets */
@media only screen and (min-width: 673px) and (max-width: 990px) {
  
}

/* Lower-resolution laptops/desktops */
@media only screen and (min-width: 991px) and (max-width: 1295px) {

}

@media only screen and (min-width: 991px) {
  #main-wrap {
    width: 85%;
    margin: 2em auto;
    max-width: 800px;
    display: grid;
    grid-template-columns: 1fr 250px;
    gap: 4em;
  }

  #main-wrap.no-sidebar {
    display: block;
  }
  
  #main-sidebar {
    margin-top: 4em;
    height: fit-content;
  }
  
  .page-header {
    position: sticky;
    display: flex;
    z-index: 550;
    flex-flow: row nowrap;
    gap: 50px;
    top: 0;
    left: 0;
    width: 100%;
    height: unset;
    background: #eee;
    color: #111;
    padding: 8px 0;
    text-align: left;
    background: hsla(0,0%,100%,0);
  }
  
  .page-header::before, .page-header::after {
    display: block;
    content: " ";
    position: absolute;
    left: 0;
    width: 100%;
    top: 0;
    height: 100%;
    pointer-events: none;
  }
  
  .page-header::before {
    backdrop-filter: blur(4px) saturate(200%);
    z-index: -2;
    background: hsla(0,0%,100%,0) linear-gradient(180deg,#f7faff,rgba(247,250,255,0));
    transition: backdrop-filter .25s ease-out,-webkit-backdrop-filter .25s ease-out;
  }
  
  .page-header::after {
    z-index: -1;
    background: hsla(0,0%,100%,.66667);
    box-shadow: 0 1px 0 rgba(0,0,0,.02),0 0 8px rgba(0,0,0,.03),0 20px 30px rgba(0,0,0,.1);
    opacity: 0;
    transition: opacity .25s ease-out;
  }
  
  .page-header[scrolled]::after {
    opacity: 1;
  }
  
  .page-header .nav-button {
    display: none;
  }
  
  .page-header .site-title {
    color: #1048a2;
    text-decoration: none;
    margin: 0;
    font-size: 1.1em;
  }

    .page-header .site-title:hover {
      color: #3769b9;
    }
  
  .page-header .main-navigation-menu {
    flex-direction: row;
    gap: 0;
    font-size: 1.1em;
  }
  
  .main-navigation-menu a:link,
  .main-navigation-menu a:visited {
    color: #555;
    font-size: 1em;
  }
  
  .main-navigation-menu a:hover,
  .main-navigation-menu a:active,
  .main-navigation-menu a:focus {
    color: #000;
  }
  
  .main-navigation-menu > li {
    position: relative;
    padding: 0 1.5em;
  }
  
  .main-navigation-menu > li svg {
    display: inline;
    vertical-align: middle;
    margin-left: 2px;
    width: .9em;
    height: .9em;
    transition: transform .2s ease-in-out;
  }
  
  .main-navigation-menu > li .dropdown {
    position: absolute;
    display: flex;
    flex-direction: column;
    gap: .5em;
    text-align: left;
    top: calc(6px + 1.1em);
    left: 0;
    width: 40rem;
    border-radius: 6px;
    border-style: solid;
    border-width: 1px;
    border-color: #ddd;
    box-shadow: inset 0 1px 1px 0 hsla(0,0%,100%,.15),0 50px 100px -20px rgba(50,50,93,.3),0 30px 60px -30px rgba(0,0,0,.5),-10px 10px 60px -10px rgba(103,178,111,.3);
    background: hsla(0,0%,100%,.9451);
    backdrop-filter: blur(5px) brightness(200%) saturate(200%);
    z-index: 500;
    padding: 1em;
    opacity: 0;
    visibility: hidden;
    transform-style: preserve-3d;
    transform-origin: top center;
    transition: opacity .2s ease-in-out,transform .2s ease-in-out, visibility .2s ease-in-out;
  }
  
  .main-navigation-menu > li .dropdown li {
    margin: 0;
  }
  
  .main-navigation-menu > li.active .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(10px);
  }
  
  .main-navigation-menu > li.active svg {
    transform: rotateZ(180deg);
  }
  
  .page-footer {
    flex-flow: row nowrap;
    justify-content: space-between;
  }

  .profile-picture {
    max-width: 350px;
  }
}

/* Higher-resolution devices */
@media only screen and (min-width: 1296px) {
  
}

/* Extras */
a.animated-background {
  background: linear-gradient(90deg, #30CFD0 50%, transparent 0) right 0 bottom/200% 100%;
  transition: background-position .4s cubic-bezier(.5, .15, .5, .85), 
    color .4s cubic-bezier(.5, .15, .5, .85);
}

a.animated-background:hover {
  background-position: 0 100%;
}