body {
  background-color: #000;
  color: #fff;
  font-family: Roboto;
  overflow: scroll;
  margin: 0;
  padding: 0;
  scrollbar-width: none;
  font-weight: 300;
  letter-spacing: 1;
}

/* Hide scrollbars */
::-webkit-scrollbar,
::-webkit-scrollbar-thumb,
::-webkit-scrollbar-track {
  width: 0;
  background: 0 0;
  display: none;
}
a {
  color: #3e2c72;
}
/* Preload */
#loading {
  position: fixed;
  display: flex;
  width: 100vw;
  height: 100vh;
  color: #fff;
  z-index: 99999999;
  background-color: #000;
}
#loading-content {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  flex-direction: column;
}
#loading-content span {
  display: block;
  margin-bottom: -1em;
}
#loadedImages {
  display: none;
}
#progress {
  display: block;
  border: 2px solid hsl(255 44% 17%/1);
  width: 500px;
  max-width: 80vw;
  height: 1.5em;
  border-radius: 10px;
}
#progress-bar {
  border: none;
  height: 1.5em;
  border-radius: 5px;
  background-color: hsl(255 44% 17%/1);
  transition-duration: 1s;
  transition-property: width;
  transition-timing-function: ease-out;
  width: 0%;
}

/* Instructions */
#instructions {
  position: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 85vw;
  height: 50vh;
  max-width: 650px;
  flex-direction: column;
  left: 0;
  right: 0;
  margin-left: auto;
  margin-right: auto;
  background-color: #000;
  border-radius: 15px;
  top: 25vh;
  z-index: 999999;
  font-family: Caveat;
  font-size: 5cqh;
  text-align: center;
  border: 5px solid #22183e;
  line-height: 0.75em;
}
.instructions-text {
  padding: 5%;
}

#instructions .smaller-text {
  font-size: 3cqh;
  margin-top: 0.5em;
  color: #ffffff99;
}

/* ===== Header items ====*/
/* My picture */
#jon {
  bottom: 10vh;
  max-height: 20vh;
  max-width: min(min(20vh, 35vw), 200px);
  position: fixed;
  left: 0;
  right: 0;
  margin-left: auto;
  margin-right: auto;
  border-radius: 50%;
  border: 6px solid hsl(255 44% 17%/1);
  transition-duration: 1s;
  transition-property: max-width, max-height, margin-left, margin-right, bottom,
    top;
  transition-timing-function: ease-out;
  z-index: 99999;
}
#jon-image-cont {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
}
#jon img {
  width: 105%;
  height: 105%;
  margin-left: -2.5%;
  margin-top: -2.5%;
}

/* Scroll hint */
#scroll-hint {
  width: 100vw;
  text-align: center;
  bottom: 6vh;
  position: fixed;
  color: #7b59d8;
  letter-spacing: 0.4em;
  font-weight: 300;
  transition-duration: 1s;
  transition-property: opacity;
  transition-timing-function: ease-out;
  z-index: 9999;
  padding-left: 0.2em;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ========== Section Items ==========*/
/* Section Items */
#items {
  height: 70vh;
  bottom: 30vh;
  margin: 0;
  position: relative;
  display: flex;
  position: fixed;
  -webkit-backface-visibility: hidden;
  padding-left: 12.5vw;
  transition-property: left, opacity;
  transition-duration: 1s;
  transition-delay: 1s;
  transition-timing-function: cubic-bezier(0.23, 1, 0.67, 0.99);
}
#items > li {
  width: 75vw;
  height: 70vh;
  list-style-type: none;
  position: relative;
  opacity: 0;
  border-left: none;
  border-right: none;
  text-align: center;
  transition-property: opacity;
  transition-duration: 1s;
  transition-delay: 1s;
  transition-timing-function: cubic-bezier(0.23, 1, 0.67, 0.99);
}
li.open {
  opacity: 1 !important;
}
#items > li > div:not(.item-title, .item-job-title, .item-job-years) {
  display: flex;
  align-items: center;
  justify-content: center;
}
#items > li > div.exp-image {
  position: absolute;
  bottom: 0;
  left: 50%;
  right: 50%;
  top: 100%;
  transform: translate(-50%, 0);
  scale: 0;
  transform-origin: left top;
  opacity: 0;
  transition-property: left, bottom, right, top, opacity, transform, scale;
  transition-duration: 1s;
  transition-delay: 0s;
  transition-timing-function: cubic-bezier(0.23, 1, 0.67, 0.99);
  width: 250px;
  height: 250px;
}

/* ==== Title =====*/
/* Section title */
div.item-title {
  font-size: 7cqmin;
  height: 10vh;
  display: flex;
  justify-content: center;
  align-items: end;
}
div.item-title img {
  max-width: 100%;
  max-height: 80%;
  height: 7cqmin;
}

/* Title: About Me */
.aboutme {
  font-size: 5em;
}

/* Business Logo */
div.item-business,
li div.sTrue.eTrue {
  opacity: 1 !important;
  scale: 1 !important;
}

/* Title divider */
.item-div {
  background-color: #ffffff52;
  max-width: 75vw;
  width: 550px;
  height: 1px;
  border: none;
}

/* Job title */
.item-job-title {
  font-size: 2.5cqmin;
  color: #ffffff91;
  font-weight: 700;
  display: flex;
  justify-content: center;
  align-items: start;
}
.item-job-title img {
  max-height: 6cqmin;
  width: auto;
}

/* Job Years */
.item-job-years {
  font-size: 1.75cqmin;
  color: #ffffff91;
  font-weight: 700;
}

/* ==== Content =====*/
/* Logos image width */
#items li div:not(.item-title, .item-job-title) img {
  width: 100%;
}

/* Visible Logos */
li div.left.sTrue.eTrue {
  top: 30% !important;
  left: 10% !important;
}
li div.left-lower.sTrue.eTrue {
  top: 50% !important;
  left: 25% !important;
}
li div.left-mid.sTrue.eTrue {
  top: 10% !important;
  left: 30% !important;
}
li div.right-mid.sTrue.eTrue {
  top: 10% !important;
  left: 70% !important;
}
li div.right-lower.sTrue.eTrue {
  top: 50% !important;
  left: 75% !important;
  right: 25% !important;
  bottom: 50% !important;
}
li div.right.sTrue.eTrue {
  top: 30% !important;
  left: 90% !important;
}
li div:not(.text).center.sTrue.eTrue {
  top: 25% !important;
  left: 50% !important;
}

/* Glow effect on logos */
.glow {
  filter: drop-shadow(1px 0 1px #22183e) drop-shadow(0 2px 0 #22183e)
    drop-shadow(-2px 0 10px #22183e) drop-shadow(0 -1px 20px #22183e);
}

/* Text box */
#items li div.text {
  max-height: 50vh;
  height: 40vh;
  max-width: min(80vw, 700px);
  width: 100%;
  bottom: 0;
  left: 50%;
  backdrop-filter: blur(5px);
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.7);
  padding: 1em;
  border-radius: 1em;
  border: 5px solid #22183e;
  position: absolute;
  transform: translate(-50%, 0);
  scale: 0;
  transform-origin: bottom left;
  opacity: 0;
  transition-property: left, bottom, right, top, opacity, transform, scale;
  transition-duration: 1s;
  transition-delay: 0s;
  transition-timing-function: cubic-bezier(0.23, 1, 0.67, 0.99);
}

/* Text box Back & Skip */
#items li div.move-on {
  top: -4px;
  font-size: 0.65em;
  right: 0;
  position: absolute;
  scale: 1;
  color: #ffffff86;
  cursor: pointer;
  height: 32px;
  line-height: 30px;
  padding-left: 1em;
  padding-right: 1em;
  display: flex;
  align-items: center;
}
#items li div.move-back span,
#items li div.move-on span {
  font-size: 1em;
}
#items li div.move-back {
  position: absolute;
  scale: 1;
  top: -4px;
  font-size: 0.65em;
  left: 0;
  color: #ffffff86;
  cursor: pointer;
  height: 32px;
  line-height: 30px;
  padding-left: 1em;
  padding-right: 1em;
  display: flex;
  align-items: center;
}

/* Text box text */
div.static-text.sTrue.eTrue {
  position: absolute;
  opacity: 1 !important;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}
#items ul.static-text {
  text-align: left;
  list-style-type: disc;
}
#items ul.static-text li {
  margin-top: 0.5em;
}
#items li div.static-text {
  font-size: min(max(2cqh, 2cqw), 24px);
  flex-direction: column;
  position: absolute;
  top: 0 !important;
  left: 0 !important;
  width: 90%;
  max-height: 50vh;
  height: 40vh;
  opacity: 0;
  padding: 5%;
  transition-property: opacity, transform, scale, visiblity;
  transition-duration: 1s;
  transition-delay: 0s;
  transition-timing-function: cubic-bezier(0.23, 1, 0.67, 0.99);
}
#items li div.static-text .page {
  position: absolute;
  right: 2em;
  bottom: 2.5em;
  font-size: 0.8em;
}

/* ==== Last Item - Skills & Links =====*/
/* Skills */
#skills {
  position: fixed;
  display: block;
  width: 100%;
  color: #fff;
  padding-top: 1000px;
  min-height: 80vh;
  z-index: -9999;
  transition-property: bottom, top;
  transition-duration: 1s;
  transition-delay: 0s;
  transition-timing-function: cubic-bezier(0.23, 1, 0.67, 0.99);
}
.skills-border {
  width: 100%;
  height: 100%;
  padding-top: 1em;
  padding-bottom: 1em;
}
.skills-label {
  font-size: 2em;
  font-weight: bolder;
  text-transform: uppercase;
  color: #999;
  margin-left: 1em;
}
.skills-images {
  max-width: 150px;
  max-height: 80px;
}
#skills div ul {
  list-style-type: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-evenly;
  gap: 24px;
  padding: 0;
}
#skills div ul li {
  text-align: center;
  position: relative;
  min-width: 175px;
}
.skill-label.has-image {
  position: absolute;
  bottom: 0;
  width: 100%;
  text-align: center;
  left: 0;
  font-weight: bolder;
  color: #7a7a7a;
  box-shadow: #000;
  font-size: 1.4em;
}

/* Reference Links */
.refs-label {
  margin-left: 0 !important;
}
#refs {
  display: block !important;
  padding-bottom: 13em !important;
  color: #333 !important;
  font-size: 0.8em !important;
}
#refs a {
  font-size: 1.2em;
}
#refs li {
  text-align: left !important;
  margin-bottom: 0.5em;
}
.references {
  padding-top: 2em !important;
  padding-left: 2em !important;
}
.bottom-links {
  display: flex;
  width: 100%;
  flex-wrap: wrap;
  justify-content: stretch;
}
.bottom-links a {
  display: inline-block;
  cursor: pointer;
  margin-right: 2em;
  margin-bottom: 1em;
  font-size: 1.5em !important;
}
.bottom-links a span {
  font-size: 0.6em;
}

/* ==== Background =====*/
.bg_images {
  position: absolute;
  width: 100vw;
  height: 100vh;
  background-repeat: repeat-x;
  -webkit-transition: background-position 0.3s ease-out;
  -moz-transition: background-position 0.3s ease-out;
  -o-transition: background-position 0.3s ease-out;
  transition: background-position 0.3s ease-out;
  background-size: cover;
}
#background {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background-image: url(images/01_Sky.png);
  z-index: -99999;
  transition-property: top, bottom;
  transition-duration: 2s;
  transition-delay: 0s;
  transition-timing-function: ease-out;
}
#bg_1 {
  background-image: url(images/02_Stars.png);
  mix-blend-mode: lighten;
}
#bg_2 {
  background-image: url(images/03_MoonMountains.png);
}
#bg_3 {
  background-image: url(images/04_Clouds.png);
}
#bg_4 {
  background-image: url(images/05_SingleMountain.png);
}
#bg_5 {
  background-image: url(images/06_Clouds.png);
}
#bg_6 {
  background-image: url(images/07_Mountains.png);
}
#bg_7 {
  background-image: url(images/08_Clouds.png);
}
#bg_8 {
  background-image: url(images/09_Mountains.png);
}
#bg_9 {
  background-image: url(images/10_MoonLight1.png);
  mix-blend-mode: soft-light;
}
#b_10 {
  background-image: url(images/11_MoonLight2.png);
  mix-blend-mode: soft-light;
}

/* ==== Different demensions =====*/
/* Small width */
@media only screen and (max-width: 500px) {
  /* #items li div.static-text {
    font-size: 3cqmin;
  } */
  li div:not(.text).center.sTrue.eTrue {
    top: 28% !important;
    height: 40vh !important;
  }
  #items li div.exp-image {
    width: 175px;
  }
  #nav #left,
  #nav #right {
    font-size: 0.75em;
    z-index: 1 !important;
  }
  #nav #left {
    margin-right: -100px;
  }
  #nav #right {
    margin-left: -100px;
  }
  #nav a {
    background-color: #00000099;
    padding: 3px;
    padding-left: 5px;
    padding-right: 5px;
    border-radius: 6px;
    color: #ffffff99;
    border: 1px solid #22183e;
  }
  #nav ul .one {
    top: -4.5em !important;
  }
  #nav #right li.one {
    left: 26cqw !important;
  }
  #nav ul .two {
    top: -2.5em !important;
  }
  #nav ul .three {
    top: -0.5em !important;
  }
  #nav ul .four {
    top: 1.5em !important;
  }
  #nav ul .five {
    top: 3.5em !important;
  }
}
/* Landscape */
@media only screen and (min-width: 900px) and (max-height: 550px) {
  #items li div.static-text {
    font-size: 2cqh;
  }
}

/* Portrait */
@media only screen and (min-height: 700px) and (max-width: 550px) {
  div.item-title img {
    height: 11cqmin;
  }
  div.item-job-title {
    font-size: 3.75cqmin;
  }
  div.item-title {
    height: 12vh;
    font-size: 11cqmin;
  }
  div.item-job-years {
    font-size: 2.75cqmin;
  }
  div.static-text {
    font-size: 2cqn !important;
  }
  li div.center.sTrue.eTrue {
    top: 35% !important;
  }
  #items li div.exp-image {
    width: 150px;
  }
  #items li div.static-text {
    padding: 6%;
    width: 88%;
  }
}

/* ==== Helper classes =====*/
.blinker {
  animation: blinker 1.5s linear infinite;
}
@keyframes blinker {
  50% {
    opacity: 0.25;
  }
}
.bg-purple .has-image {
  text-shadow: 0 -3px 17px #3a1477, 0 0 20px rgba(50, 20, 119, 1);
}
.bg-purple {
  background-color: rgb(50, 20, 119, 1);
}
.bg-grey .has-image {
  text-shadow: 0 -3px 17px rgb(75, 75, 75, 1), 0 0 20px rgba(75, 75, 75, 1);
}
.bg-grey {
  background-color: #4b4b4b;
}
.bg-white .has-image {
  text-shadow: 0 -3px 17px rgb(255, 255, 255, 1),
    0 0 20px rgba(255, 255, 255, 1);
}
.bg-white {
  background-color: #fff;
}
.enlarge {
  scale: 1 !important;
  opacity: 1 !important;
}
.enlarge-set {
  position: fixed;
  border: 10px solid #fff;
  width: 90vw;
  height: auto;
  scale: 0;
  opacity: 0;
  transform-origin: top left;
  transition-property: scale, opacity;
  transition-duration: 0.5s;
  transition-delay: 0s;
  transition-timing-function: ease-out;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 99999999;
  -webkit-box-shadow: 0 0 20px 20px rgba(0, 0, 0, 0.75);
  -moz-box-shadow: 0 0 20px 20px rgba(0, 0, 0, 0.75);
  box-shadow: 0 0 20px 20px rgba(0, 0, 0, 0.75);
}
.extra-smaller-text {
  font-size: 0.6em;
  display: block;
}
.opacity-0 {
  opacity: 0;
}
.opacity-1 {
  opacity: 1;
}
.shrink {
  max-width: 150px !important;
  max-height: 150px !important;
}
.smaller {
  max-width: 120px;
  max-height: 60px;
  margin-bottom: 20px;
}
.smaller-text {
  font-size: 0.8em;
  display: block;
}
.smooth-v-scroll {
  transition-property: top, bottom;
  transition-duration: 0.3s;
  transition-delay: 0s;
  transition-timing-function: ease-out;
}
.text-thicker {
  font-weight: 500;
}
.underline {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

/* Navigation links */
#nav {
  position: absolute;
  top: 0vh;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
#nav a {
  cursor: pointer;
  color: #7251ce;
}

#nav #left,
#nav #right {
  list-style-type: none;
  display: block;
  position: absolute;
  padding: 0;
  display: flex;
  justify-content: center;
  z-index: -1;
}
#nav #left li,
#nav #right li {
  width: 150px;
  text-align: center;
  font-weight: 400;
  color: #ffffff8f;
  position: absolute;
  transition-duration: 0.3s;
  transition-property: left, right, opacity;
  transition-timing-function: ease-out;
}
#nav #right li {
  text-align: left;
  left: 0;
}
#nav #left li {
  text-align: right;
  right: 0;
}

#nav #left li.one {
  right: 110px !important;
  opacity: 1;
  z-index: 999;
}
#nav #left li.two {
  right: 115px !important;
  opacity: 1;
}
#nav #left li.three {
  right: 119px !important;
  opacity: 1;
}
#nav #left li.four {
  right: 117px !important;
  opacity: 1;
}
#nav #left li.five {
  right: 110px !important;
  opacity: 1;
}
#nav #right li.one {
  left: 108px !important;
  opacity: 1;
}
#nav #right li.two {
  left: 115px !important;
  opacity: 1;
}
#nav #right li.three {
  left: 119px !important;
  opacity: 1;
}
#nav #right li.four {
  left: 117px !important;
  opacity: 1;
}
#nav #right li.five {
  left: 108px !important;
  opacity: 1;
}
#nav ul li:nth-child(1) {
  top: -3.5em;
  opacity: 0;
}
#nav ul li:nth-child(2) {
  top: -2em;
  opacity: 0;
}
#nav ul li:nth-child(3) {
  top: -0.5em;
  opacity: 0;
}
#nav ul li:nth-child(4) {
  top: 1em;
  opacity: 0;
}
#nav ul li:nth-child(5) {
  top: 2.5em;
  opacity: 0;
}

#autoScrollControls {
  position: fixed;
  bottom: 1em;
  right: 1em;
  color: #ffffff66;
}
#autoScrollPause {
  display: none;
}
