﻿/* Define the palettes as maps */
/* Mixin to generate CSS custom properties from a color map */
/* Apply themes as classes */
.light-mode {
  --hero-color: rgb(11, 70, 80);
  --hero-contrast: rgb(80, 21, 11);
  --inverse-hero: white;
  --inverse-contrast: #151515;
  --plain-text: black;
  --bg-color: white;
  --inverse-text-color: white;
  --highlight1: rgba(11, 70, 80, 0.2);
  --highlight2: rgba(11, 70, 80, 0.15);
  --highlight3: rgba(11, 70, 80, 0.1);
  --link-hover: rgb(34, 88, 195);
  --cta-block-1-bg: rgba(11, 70, 80, 0.2);
  --cta-block-2-bg: rgba(11, 70, 80, 0.15);
  --cta-block-3-bg: rgba(11, 70, 80, 0.1);
  --tinted-bg: rgba(11, 70, 80, 0.1);
  --tinted-bg-2: rgba(11, 70, 80, 0.1);
  --tinted-bg-3: rgba(11, 70, 80, 0.2);
  --complimentary70: rgb(80, 21, 11);
  --thumbnail-background: rgba(0, 0, 0, 0);
  --sidebar-bg: rgba(255, 255, 255, 0.4);
  --edge-fade-color: #e8ecec;
}

.dark-mode {
  --hero-color: white;
  --hero-contrast: rgba(179, 47, 25, 0.7);
  --inverse-hero: rgb(11, 70, 80);
  --inverse-contrast: rgb(80, 21, 11);
  --plain-text: white;
  --bg-color: rgb(85, 85, 85);
  --inverse-text-color: rgb(11, 70, 80);
  --highlight1: rgba(165, 231, 243, 0.8);
  --highlight2: rgba(165, 231, 243, 0.75);
  --highlight3: rgba(165, 231, 243, 0.7);
  --link-hover: rgb(34, 88, 195);
  --cta-block-1-bg: rgba(165, 231, 243, 0.8);
  --cta-block-2-bg: rgba(165, 231, 243, 0.75);
  --cta-block-3-bg: rgba(165, 231, 243, 0.7);
  --tinted-bg: rgba(11, 70, 80, 0.7);
  --tinted-bg-2: rgb(72, 114, 121);
  --tinted-bg-3: rgb(72, 114, 121);
  --complimentary70: rgba(179, 47, 25, 0.7);
  --thumbnail-background: white;
  --sidebar-bg: rgba(0, 0, 0, 0.5);
  --edge-fade-color: #254951;
}

.dmt-body {
  margin: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.darkmode-toggle-container label {
  width: 112.5px;
  height: 45px;
  position: relative;
  display: block;
  background: var(--bg-color);
  border-radius: 45px;
  box-shadow: inset 0px 5px 15px rgba(0, 0, 0, 0.4), inset 0px -5px 15px rgba(255, 255, 255, 0.4), 0px 0px 2px 1px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: 0.4s;
  margin-top: -6px;
}
.darkmode-toggle-container label:after {
  content: "";
  width: 38.25px;
  height: 38.25px;
  position: absolute;
  top: 4.5px;
  left: 4.5px;
  background: linear-gradient(180deg, rgba(11, 70, 80, 0.7), rgb(11, 70, 80));
  border-radius: 38.25px;
  box-shadow: 2px 5px 10px rgba(0, 0, 0, 0.25);
  transition: 0.4s;
}

#darkmode-checkbox {
  width: 0;
  height: 0;
  visibility: hidden;
}

input:checked + label {
  background-color: rgba(255, 255, 255, 0.1);
}

input:checked + label:after {
  left: 110.25px;
  transform: translateX(-100%);
  background: linear-gradient(360deg, rgb(220, 220, 220), white);
  box-shadow: inset 0px 5px 15px rgba(220, 220, 220, 0.2);
}

label:active:after {
  width: 54px;
}
