@font-face {
  font-family: "Lexend";
  src: url("assets/fonts/Lexend-Regular.ttf");
}

@font-face {
  font-family: "Lexend Light";
  src: url("assets/fonts/Lexend-Light.ttf");
}

@font-face {
  font-family: "DM Mono";
  src: url("assets/fonts/DMMono-Regular.ttf");
}

:root {
  --hero-foreground-height: 42%;
  --hero-background-height: 58%;
  --hero-background-content-height: 195px;
  --hero-background-content-width: 2048px;
  --hero-background-content-scale: 2;
  --hero-divider-offset: 120px;
  --dark-background-color: #212035;
  --background-color-reverse: #212035;
  --background-color-reverse-hover: #444268;
  --background-color: #DADCE1;
  --content-background-color: #F9F9F9;
  --text-color: #39383E;
  --text-color-active: #4C7DCA;
  --text-color-reverse: #FFF;
  --text-link-color: #5E57D7;
  --text-link-color-hover: #7B74EC;
  --code-highlight: #DADADA;
}

[theme="dark"] {
  --background-color: #212035;
  --background-color-reverse: #DADCE1;
  --background-color-reverse-hover: #9AA3B9;
  --content-background-color: #34324F;
  --text-color: #FFF;
  --text-color-reverse: #39383E;
  --text-link-color: #9C96FF;
  --text-link-color-hover: #BDB9FF;
  --code-highlight: #4E4C65;

}

html {
  scroll-behavior: smooth;
}

html,
body {
  height: 100%;
  width: 100%;
  margin: 0;
}

body {
  font-family: "Lexend", sans-serif;
  color: var(--text-color);
  background-color: var(--background-color);
  transition: all 0.2s ease;
  display: flex;
  justify-content: center;
}

header {
  width: 100%;
  padding: 40px 60px;
  position: fixed;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  transition: box-shadow 0.2s ease;
}

header.condensed {
  box-shadow: 0 16px 18px -20px black;
}

a,
.logo {
  cursor: pointer;
}

p a,
span a,
li a {
  color: var(--text-link-color);
  text-decoration: none;
  transition: color 0.4s ease;
}

p a:hover,
span a:hover,
li a:hover {
  color: var(--text-link-color-hover);
}

h1 {
  font-size: 80px;
  letter-spacing: -2px;
  line-height: 1;
}

h2 {
  font-size: 40px;
  font-weight: 300;
}

code {
  font-family: "DM Mono", serif;
  font-size: 25px;
  background-color: var(--code-highlight);
  padding: 2px 6px;
  margin-inline: 2px;
  border-radius: 3px;
  overflow-wrap: break-word;
}

pre {
  color: #ADCCEC;
  padding: 10px 20px;
  background-color: var(--dark-background-color);
  border-radius: 6px;
  overflow-x: auto;
}

pre code {
  font-size: 25px;
  background: none;
}

code .code-string {
  color: #5CDB8E;
}

code .code-number {
  color: #E8A06C;
}

code .code-boolean {
  color: #E15FA8;
}

code .hover {
  position: relative;
  transition: background-color 0.4s ease;
}

code .hover::after {
  content: "𝒊";
  color: #ADCCEC;
  position: absolute;
  margin-left: 26px;
  opacity: 0;
  user-select: none;
  cursor: help;
  transition: opacity 0.4s ease;
}

pre:hover code .hover::after {
  opacity: 0.4;
}

body:active .hover::after {
  opacity: 0 !important;
  cursor: default;
}

body:active .hover-comment {
  opacity: 0 !important;
  z-index: 0 !important;
  cursor: default;
}

body:active .hover {
  background-color: transparent !important;
}

code .hover-comment {
  width: max-content;
  max-width: 40vw;
  font-family: "Lexend Light", sans-serif;
  color: #CFD6E6;
  display: inline-block;
  position: absolute;
  top: 0;
  margin-left: 32px;
  opacity: 0;
  z-index: -1;
  white-space: normal;
  padding: 10px;
  background-color: #38374F;
  box-shadow: 0 4px 20px -8px #000;
  border-left: 2px solid #9D9BC1;
  border-radius: 4px;
  overflow-y: auto;
  user-select: none;
  cursor: text;
  transition: all 0.4s ease;
}

code .hover-comment.bottom {
  top: initial;
  bottom: 0;
}

code .hover-comment .code {
  font-family: "DM Mono", serif;
  background-color: var(--dark-background-color);
  padding-inline: 4px;
  border-radius: 2px;
}

code .hover-comment img {
  width: auto;
  display: block;
  margin: 10px auto;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3));
}

code .hover:hover {
  background-color: #49467B;
  border-radius: 2px;
}

code .hover:hover .hover-comment,
.hover-comment:hover {
  opacity: 1;
  z-index: 1;
}

span.italic {
  font-style: italic;
}

span.bold {
  font-family: "Lexend", sans-serif;
  font-weight: 500;
}

.logo {
  width: 500px;
  min-width: 200px;
}

.header-nav {
  display: flex;
  align-items: center;
}

.header-nav a {
  color: #FFF;
  font-size: 40px;
  font-weight: 450;
  letter-spacing: -0.5px;
  text-decoration: none;
  margin-left: 80px;
  transition: filter 0.2s ease, opacity 0.2s ease;
}

.header-nav #change-mode {
  font-size: 30px;
  margin-left: 80px;
}

.header-nav #change-mode i {

  transition: transform 0.2s ease;
}

.header-nav a:hover {
  filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.5));
}

.header-nav a:active {
  opacity: 0.8;
}

footer {
  color: #FFF;
  font-family: "Lexend Light", sans-serif;
  background-color: var(--dark-background-color);
  position: relative;
  overflow: hidden;
  margin-top: -60px;
  transition: background-color 0.2s ease;
}

.footer-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: absolute;
  bottom: 16px;
}

.footer-content p {
  font-size: 16px;
  font-weight: 300;
  margin: 4px;
}

.wave-divider {
  width: 100%;
  height: 250px;
}

.wave-divider svg {
  width: 100%;
  height: 100%;
}

.wave-divider-path {
  fill: var(--background-color);
  transform: scaleY(0.5);
  transition: fill 0.2s ease;
}

.frame {
  height: 100%;
  width: 100%;
}

.hero {
  height: calc(100vh + var(--hero-divider-offset));
  background-color: #3682E6;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero .wave-divider {
  position: absolute;
  bottom: -96px;
  z-index: 4;
}

.hero-overlay {
  height: 100%;
  width: 100%;
  position: absolute;
  background-image: linear-gradient(80deg, rgba(2, 20, 35, 0.9), transparent 70%);
  mix-blend-mode: hard-light;
  z-index: 3;
}

.hero-blurb {
  width: 40%;
  color: #FFF;
  margin-top: calc(0px - var(--hero-divider-offset));
  position: absolute;
  filter: drop-shadow(0 0 10px rgba(6, 70, 120, 0.4)) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
  left: 10vw;
  z-index: 3;
}

.hero-blurb h1 {
  font-weight: 600;
  margin-bottom: 20px;
}

.hero-blurb h2 {
  font-family: "Lexend Light", sans-serif;
}

.hero-subject {
  width: 391px;
  height: 482px;
  background-image: url(assets/images/home/lapras.png);
  image-rendering: pixelated;
  position: absolute;
  bottom: 180px;
  right: 12vw;
  transform: scale(2);
  animation: lapras 1.75s steps(30) infinite;
  z-index: 3;
}

.hero-background {
  width: 100%;
  height: var(--hero-background-height);
  background-image: linear-gradient(#268AFE, #8EF1FF);
  position: relative;
}

.hero-background-content {
  width: 100%;
  height: var(--hero-background-content-height);
  background-image: url(assets/images/home/clouds.png);
  background-repeat: repeat-x;
  mix-blend-mode: screen;
  position: absolute;
  bottom: 0;
  image-rendering: pixelated;
  animation: cloud-scroll 120s linear infinite;
  box-shadow: 0 4px 4px #828282;
  z-index: 2;
}

.hero-foreground {
  width: 100%;
  height: var(--hero-foreground-height);
  perspective: 34vh;
  overflow: hidden;
}

.hero-foreground-overlay {
  height: 100%;
  width: 100%;
  background-image: linear-gradient(#C2F3FF, #268AFE 10%, #8EF1FF);
  position: absolute;
  z-index: 1;
  mix-blend-mode: overlay;
}

.hero-foreground-content {
  height: 100%;
  background-image: url(assets/images/home/water_tile.png);
  background-repeat: repeat;
  transform: scale(10) skewX(45deg) rotateX(85deg);
  transform-origin: top;
  image-rendering: pixelated;
  animation: water-translate 20s linear infinite;
}

.dark-mode .header-nav #change-mode i {
  transform: rotate(180deg);
}

.dark-mode .hero-subject {
  filter: hue-rotate(30deg) sepia(0.3) brightness(0.8) contrast(1.3);
}

.dark-mode .hero-background {
  background-image: linear-gradient(rgb(96, 59, 117), rgb(251, 67, 67), rgb(255, 250, 168));
}

.dark-mode .hero-background-content {
  filter: sepia(1);
}

.dark-mode .hero-foreground {
  filter: hue-rotate(40deg) brightness(0.8) contrast(1.2);
}

.dark-mode .hero-foreground-overlay {
  background-image: linear-gradient(#FDEC64, #F08F48 10%, transparent);
  mix-blend-mode: lighten;
}

.dark-mode footer {
  background-color: #15151E;
}

.update-banner {
  width: 96vw;
  height: calc(96vw * 0.4149);
  background-size: cover;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  position: relative;
  margin: 0 auto;
}

.update-banner-text {
  width: 40%;
  height: 60%;
  margin-left: 15vw;
  filter: drop-shadow(0 6px 6px #000);
}

.update-banner-text h1 {
  font-size: 3.75vw;
  color: #FFF;
}

.update-banner-text p,
.update-banner-text p a {
  font-size: 1.75vw;
  color: #FFF;
}

.update-banner-text p a::after,
.update-feature-link a::after {
  content: "»";
  margin-left: 0.5vw;
  transition: margin-left 0.2s ease;
}

.update-banner-text p:hover a::after {
  content: "»";
  margin-left: 1vw;
}

.update-feature-link {
  position: absolute;
  right: 14vw;
  bottom: 8vw;
  font-size: 1.6vw;
  filter: drop-shadow(0 0 4px #000);
  transition: all 0.2s ease;
}

.update-feature-link a {
  color: #FFF;
}

.update-feature-link:hover {
  filter: drop-shadow(0 0 12px #000);
  transform: scale(1.05);
}

.slideshow {
  padding: 80px 60px;
  display: flex;
  align-items: center;
}

.slideshow a {
  cursor: pointer;
  font-size: 120px;
  transition: all 0.4s ease;
}

.slideshow a:hover {
  transform: scale(1.25);
}

.slideshow a:active {
  transform: scale(1.1);
  color: var(--text-color-active);
}

.slideshow-container {
  width: 100%;
  height: 60vh;
  border-radius: 6px;
  margin-inline: 20px;
  display: flex;
  flex-direction: row;
  overflow: hidden;
  box-shadow: 0 4px 20px -10px black;
}

.slideshow-container > div {
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  background-size: cover;
  background-position: center;
  flex: 0 0 auto;
  transition: all 0.8s ease;
}

.content {
  overflow-x: hidden;
}

.content-blurb {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-inline: 18vw;
}

.content-blurb h1 {
  font-weight: 300;
  margin-block: 42px;
  line-height: 1.2;
}

.content-blurb p {
  font-family: "Lexend Light", sans-serif;
  font-size: 32px;
  font-weight: 300;
  margin-block: 14px;
}

.content-blurb .button {
  font-family: "Lexend", sans-serif;
  font-weight: 600;
  background-color: var(--background-color-reverse);
  color: var(--text-color-reverse);
  border-radius: 60px;
  padding: 24px 64px;
  text-decoration: none;
  transition: background-color 0.4s ease, filter 0.4s ease, box-shadow 0.3s ease;
}

.content-blurb.top .button {
  margin-top: 64px;
  font-size: 48px;
}

.content-blurb.bottom .button {
  font-size: 28px;
}

.content-blurb .button:hover {
  background-color: var(--background-color-reverse-hover);
  box-shadow: 0 10px 20px -12px #000;
}

.content-blurb .button:active {
  filter: brightness(0.7);
}


.content-blurb.top {
  padding-top: 0px;
  padding-bottom: 100px;
}

.content-blurb.bottom {
  position: relative;
  z-index: 1;
  margin-block: 40px;
}

.content-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-inline: 30px;
  box-shadow: 0 -12px 14px -20px black, 0 12px 14px -20px black;
  background-image: linear-gradient(90deg, transparent 0%, var(--content-background-color) 2%, var(--content-background-color) 98%, transparent 100%);
  transition: all 0.2s ease;
}

.card {
  display: flex;
  flex-direction: row;
  justify-content: center;
  padding-block: 64px;
  margin-inline: 3vw;
  font-weight: 300;
}

.card:not(:last-child) {
  border-bottom: 1px solid rgba(110, 120, 130, 0.4);
}

.card-text,
.card-image {
  width: 50%;
  padding-inline: 30px;
}

.card-image {
  display: flex;
  justify-content: center;
}

.card .interface-image {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: filter 0.4s ease;
  filter: drop-shadow(0 6px 6px rgba(0, 0, 0, 0.6));
}

.card .tilt:hover .interface-image {
  filter: drop-shadow(0 20px 20px rgba(0, 0, 0, 0.4));
}

.card img {
  width: 100%;
  max-width: 800px;
  align-self: center;
}

.card h3,
.card h4 {
  font-family: "Lexend Light", sans-serif;
}

.card h3 {
  font-size: 54px;
  font-weight: 400;
  margin-bottom: 28px;
}

.card h3 a,
.card h4 a {
  color: var(--text-color);
  text-decoration: none;
}

.card h3 a::after,
.card h4 a::after {
  content:"#";
  margin-left: 2px;
  opacity: 0;
  user-select: none;
  transition: opacity 0.4s ease;
}

.card h3 a:hover::after,
.card h4 a:hover::after {
  opacity: 0.5;
}

.card h4 {
  font-size: 36px;
  font-weight: 400;
  margin: 60px 0 16px 0;
}

.card p,
.card li {
  font-family: "Lexend Light", sans-serif;
  font-size: 28px;
}

.card p {
  line-height: 1.5;
}

.card li {
  line-height: 2;
}

.card .button {
  font-family: "Lexend", sans-serif;
  font-weight: 600;
  font-size: 26px;
  background-color: var(--background-color-reverse);
  color: var(--text-color-reverse);
  border-radius: 60px;
  padding: 20px 50px;
  margin-top: 40px;
  display: inline-block;
  text-decoration: none;
  transition: background-color 0.4s ease, filter 0.4s ease, box-shadow 0.3s ease;
}

.card .button:hover {
  background-color: var(--background-color-reverse-hover);
  box-shadow: 0 10px 20px -12px #000;
}

.tilt {
  position: relative;
  transform-style: preserve-3d;
  transform: perspective(4000px);
}

.tilt-alt {
  display: none;
}

.tilt .summary {
  width: 100%;
  image-rendering: optimizeQuality;
}

.summary.layer {
  padding: inherit;
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  top: 0;
  bottom: 0;
  box-sizing: border-box;
}

.cookie-settings {
  position: fixed;
  font-size: 24px;
  bottom: 0;
  background: #43444D;
  color: #FFF;
  padding-inline: 40px;
  z-index: 4;
  margin: 10px;
  border-radius: 8px;
  box-sizing: border-box;
  box-shadow: 0 10px 20px -12px #000;
}

.cookie-settings h2,
.cookie-settings h4 {
  margin-block: 0;
}

.cookie-settings h4 {
  font-size: 28px;
  font-weight: 400;
}

.cookie-settings .close-button {
  position: absolute;
  top: 14px;
  right: 20px;
  cursor: pointer;
}

.cookie-preferences-container,
.cookie-preference-row,
.input-toggle-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.input-toggle-row p {
  margin-inline: 18px;
}

.cookie-preferences-container.bottom {
  border-top: 1px solid #9FA1AE;
  padding-block: 8px;
}

.cookie-preferences-container.top p {
  width: calc(100% - 250px);
}

.cookie-preferences-container.top img {
  width: 250px;
  position: absolute;
  right: 20px;
  bottom: 100px;
}

.cookie-preference {
  width: 33%;
  padding: 8px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 8px;
  transition: 0.4s;
}

.cookie-preference:hover {
  background-color: #5D5E68;
}

.preference-info {
  cursor: help;
}

.input-toggle-container {
  height: 40px;
  width: 75px;
  cursor: pointer;
  display: inline-block;
}

.input-toggle-container input {
  display: none;
}

.input-toggle {
  width: 100%;
  height: 100%;
  border-radius: 50px;
  transition: 0.4s;
  background-color: #9FA1AE;
  position: relative;
}

.input-toggle::before {
  width: 30px;
  height: 30px;
  margin: 5px;
  border-radius: 50px;
  transition: 0.4s;
  background-color: #5D5E68;
  content: "";
  display: block;
  position: absolute;
}

.input-toggle-container input:checked + .input-toggle {
  background-color: #FFF;
}

.input-toggle-container input:checked + .input-toggle::before {
  transform: translateX(35px);
  background-color: #5EC045;
}

@media screen and (max-width: 1500px) {
  h1 {
    font-size: 60px;
    letter-spacing: -1px;
  }
  
  h2 {
    font-size: 24px;
  }

  header {
    padding: 20px 30px;
  }

  pre code,
  code {
    font-size: 16px;
  }

  code .hover::after {
    margin-left: 16px;
  }

  .footer-content p {
    font-size: 14px;
  }

  .logo {
    width: 300px;
  }
 
  .header-nav a {
    font-size: 22px;
    margin-left: 40px;
  }
  
  .header-nav #change-mode {
    font-size: 16px;
    margin-left: 80px;
  }

  .hero-subject {
    bottom: 80px;
    right: 6vw;
    transform: scale(1.2);
  }

  .slideshow {
    padding: 60px 40px;
  }

  .slideshow a {
    font-size: 60px;
  }

  .content-blurb h1 {
    margin-block: 30px;
  }
  
  .content-blurb p {
    font-size: 20px;
  }

  .content-blurb .button {
    padding: 20px 50px;
  }
  
  .content-blurb.top {
    padding-bottom: 60px;
  }

  .content-blurb.top .button {
    margin-top: 40px;
    font-size: 30px;
  }
  
  .content-blurb.bottom .button {
    font-size: 18px;
  }

  .card {
    padding-block: 50px;
  }

  .card h3 {
    font-size: 32px;
    margin-bottom: 0;
  }

  .card h4 {
    font-size: 24px;
    font-weight: 350;
    margin: 40px 0 16px 0;
  }

  .card p,
  .card li {
    font-size: 18px;
  }

  .card-text,
  .card-image {
    padding-inline: 20px;
  }

  .card .button {
    font-size: 18px;
    padding: 14px 30px;
  }

  .cookie-settings {
    font-size: 14px;
  }

  .cookie-settings h4 {
    font-size: 16px;
  }

  .cookie-preferences-container.top p {
    width: calc(100% - 140px);
  }

  .cookie-preferences-container.top img {
    width: 140px;
    bottom: 85px;
  }

  .input-toggle-row p {
    margin-inline: 8px;
  }

  .input-toggle-container {
    height: 25px;
    width: 50px;
  }
  
  .input-toggle::before {
    width: 21px;
    height: 21px;
    margin: 2px;
  }

  .input-toggle-container input:checked + .input-toggle::before {
    transform: translateX(25px);
  }
}

@media screen and (max-width: 900px) {
  body {
    display: block;
  }

  .logo {
    width: 250px;
  }

  .header-nav a {
    font-size: 18px;
    margin-left: 32px;
  }

  .hero-blurb h1 {
    font-size: 36px;
  }

  .hero-subject {
    transform: scale(1);
    right: 1vw;
  }

  .cookie-settings h2 {
    font-size: 18px;
  }

  .cookie-settings h4 {
    font-size: 15px;
  }
}

@media screen and (max-width: 750px) {
  header {
    flex-direction: column;
  }

  .header-nav {
    margin-top: 10px;
  }

  .header-nav a {
    margin-left: 20px;
    margin-right: 20px;
  }

  .header-nav #change-mode {
    position: absolute;
    right: 20px;
  }

  .hero-subject {
    transform: scale(0.9);
    right: -8vw;
  }

  .card {
    align-items: center;
  }

  .card:nth-child(odd) {
    flex-direction: column-reverse;
  }

  .card:nth-child(even) {
    flex-direction: column;
  }

  .card-text,
  .card-image {
    width: 100%;
  }

  .tilt {
    display: none;
  }

  .tilt-alt {
    display: block;
  }

  .cookie-settings {
    width: 100%;
    margin: 0;
  }

  .cookie-preference {
    width: 50%;
  }

  .cookie-preferences-container.top img {
    bottom: 100px;
  }
}

@media screen and (max-width: 650px) {
  .footer-content p {
    font-size: 10px;
  }

  .hero-blurb,
  .hero-overlay {
    display: none;
  }

  .hero-subject {
    right: 0vw;
  }

  .cookie-preferences-container.bottom {
    flex-direction: column;
  }

  .cookie-preferences-container.bottom h2 {
    display: none;
  }

  .cookie-preference {
    width: 100%;
  }

  .cookie-preferences-container.top img {
    right: 25px;
    bottom: 145px;
  }
}

@media screen and (max-width: 450px) {
  .header-nav a {
    font-size: 14px;
    margin-left: 14px;
    margin-right: 14px;
  }

  .header-nav #change-mode {
    font-size: 12px;
  }

  .hero-foreground {
    perspective: 40vh;
  }

  .footer-content p {
    font-size: 8px;
  }
}

@media screen and (max-width: 450px) and (max-height: 450px) {
  .slideshow-container {
    height: 32vh;
  }
}

@media only screen and (hover: none) and (pointer: coarse) {
  .tilt {
    display: none;
  }

  .tilt-alt {
    display: block;
  }
}

@keyframes cloud-scroll {
  from { background-position: 0 0; }
  to { background-position: var(--hero-background-content-width) 0; }
}

@keyframes water-translate {
  from { background-position: 0 0; }
  to { background-position: 256px 256px; }
}

@keyframes lapras {
  from {background-position: 0 }
  to { background-position: -11730px }
}
