:root {
  --white: 255, 255, 255;
  --red: 229, 57, 53;
  --orange: 251, 140, 0;
  --yellow: 253, 216, 53;
  --green: 67, 160, 71;
  --blue: 30, 136, 229;
  --indigo: 57, 73, 171;
  --violet: 156, 39, 176;

  --theme-color: var(--orange);
}

body {
  background-color: black;
  background-image: radial-gradient(rgba(var(--theme-color), 0.4) 9%,
      transparent 9%);
  background-position: 0% 0%;
  background-size: 50px 50px;
  background-attachment: fixed;
  margin: 0px;
  color: white;
  font-family: "Rubik", sans-serif;
  font-size: 1em;
}

p,
li,
ul,
ol,
blockquote,
table {
  color: rgb(204, 204, 204);
  font-size: 1.1rem;
}

strong,
b {
  font-family: 'Rubik', sans-serif;
  font-weight: 700;
  /* optional: give it your theme color for extra contrast */
  color: white;
}

input,
label {
  color: white;
  font-family: "Rubik", sans-serif;
  font-size: 1em;
}

#example-wrapper {
  margin: 1rem auto;
  margin-bottom: 6rem;
  padding: 1rem;

  position: relative;
  z-index: 2;
  display: grid;
  gap: 1rem;
  grid-template-columns: 200px 1fr 60vw 1fr;
  grid-template-areas:
    "⬅️ title title title"
    "⬅️ t text a"
    "⬅️ t text a"
    "⬅️ t code1 a"
    "⬅️ t code3 a"
    "⬅️ t CarGame a"
    "⬅️ t code5 a";
  height: 100%;
}

p {
  font-size: 1.1em;
}

.article p,
h1,
h2,
h3,
div,
blockquote,
ol,
table,
details {
  display: block;
  margin-block-start: 1em;
  margin-block-end: 1em;
  margin-inline-start: 0px;
  margin-inline-end: 0px;
  grid-column: 2 / span 10;
}



.emoji {
  font-variant-emoji: emoji;
}

.codeblock {
  /* more space */
  grid-column: 3 / span 8;
}

.slideshow-parent {
  grid-column: 3 / span 8;
}

.article img {
  max-width: 100%;
  height: auto;
  margin-bottom: 0;
}

.image-description {
  margin-top: 0 !important;
  font-style: italic;
}

.test-results {
  /* width: max-content; */
  text-align: left;
  overflow-x: scroll;
  scrollbar-width: none;
  -ms-overflow-style: none;
  position: relative;
  user-select: none;
}

.test-results td,
th {
  padding: 0 1rem 0 0;
}

.test-results th {
  cursor: pointer;
}

/* Add styles for sort indicators */
.test-results th::after {
  content: '';
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
}

.test-results th.sort-asc::after {
  border-bottom-color: #000;
}

.test-results th.sort-desc::after {
  border-top-color: #000;
}

blockquote {
  border-left: 4px solid rgba(var(--theme-color), 1.0);
  margin: 2rem 0;
  padding-left: 1rem;
  font-style: italic;
  color: #ccc;
}

.centered-image {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}


.centered-image-next-to-each-other {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}

@media(max-width: 1100px) {
  .centered-image-next-to-each-other {
    flex-direction: column;
  }

  .article p,
  h1,
  image,
  div,
  blockquote,
  ol,
  table,
  details {
    grid-column: 1 / span 12;
  }
}

.box-outline {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.3rem;
  padding: 1rem;
}

details {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.3rem;
  padding: 0;
}

details>summary {
  padding: 1rem;
}

details>*:not(summary) {
  padding: 0 1rem 0 1rem;
}

details>ul {
  padding-left: 3rem;
}


details>summary {
  list-style: none;
}

details>summary::-webkit-details-marker {
  display: none;
}


/* 2. Make summary look clickable */
summary {
  cursor: pointer;
  /* Don't select text */
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  font-size: 1.5em;
  font-weight: bold;
}

/* 3. Insert a right-arrow before the summary text */
summary::before {
  content: "▶";
  /* arrow right emoji */
  padding-right: 0.5em;
  font-size: 1em;
  font-weight: bold;
  font-variant-emoji: emoji;
}

/* 4. When the details is open, replace it with a down-arrow */
details[open]>summary::before {
  content: "🔽";
  /* arrow down emoji */
  font-variant-emoji: emoji;
}

#selected-span {
  background-color: rgba(var(--theme-color), 0.1);
  /* font-size: 1.2rem; */
  width: auto;
}

#unselected-span {
  background-color: rgba(255, 255, 255, 0.1);
  /* font-size: 1.2rem; */
  width: auto;
}

blockquote p {
  margin: 0;
}

blockquote footer {
  text-align: right;
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--theme-color);
}

.article {
  display: grid !important;
  overflow: hidden;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-flow: column dense;
  align-content: start;
  column-gap: 1.5em;
}

.example-section {
  background-color: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.3rem;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 0.5rem;
  padding: 1rem;
  height: 1fr;
  width: 1fr;
}

.example-text {
  margin-top: 0;
  margin-bottom: 0;
}

.example-paragraph {
  display: block;
}

.example-section.vertical {
  flex-direction: column;
  height: max-content;
  width: max-content;
}

.example-button {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid transparent;
  border-radius: 0.3rem;
  color: rgb(var(--theme-color));
  flex-grow: 1;
  outline: none;
  padding: 1.25rem;
  cursor: pointer;
  width: 160px;
  transition: 100ms;
}

.example-button.short {
  color: white;
  padding: 0.3rem 1.5rem;
}

.example-button:hover,
.example-button:focus {
  border: 1px solid rgb(var(--theme-color));
}

.example-button>i {
  height: 2rem;
  font-size: 1.25rem;
  line-height: 2rem;
  width: 2rem;
}

.example-input {
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid transparent;
  border-radius: 0.25rem;
  color: white;
  outline: none;
  padding: 10px;
  width: 100%;
}

.example-input::placeholder {
  color: rgba(var(--theme-color), 0.5);
}

.example-input:focus {
  border-color: rgb(var(--theme-color));
}

#side-bar-section {
  grid-area: ⬅️;
  text-align: center;
}

#title-section {
  grid-area: title;
}

#view-section {
  grid-area: 🪟;
}

#CarGame-section {
  grid-area: CarGame;
}

#PaintGame-section {
  grid-area: PaintGame;
}

#text1-section {
  grid-area: text;
}

#image-section {
  grid-area: photo;
}

#code1-section {
  grid-area: code1;
}

#code2-section {
  grid-area: code2;
}

#code3-section {
  grid-area: code3;
}

#code4-section {
  grid-area: code4;
}

#code5-section {
  grid-area: code5;
}

#code6-section {
  grid-area: code6;
}

#progress-section {
  grid-area: 🅿️;
}

#fact-section {
  grid-area: fact;
}

/* Div that contains elements that are aligned to the side */
.align-side {
  display: flex;
  flex-direction: row;
  gap: 1rem;
}

.align-side>* {
  flex: 1 1 0;
  min-width: 0;
}

.full-width {
  grid-column: 1 / span 12;
}

.no-margin {
  margin: 0;
}

.progress-bar {
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  height: 1rem;
  flex-grow: 10;
}

.example-outmark {
  font-family: "proxima nova light", "Helvetica Neue", Helvetica, Arial, Sans-serif;
}

.progress-bar-completion {
  background-color: rgb(var(--theme-color));
  border-radius: inherit;
  height: 100%;
  width: 100%;
  margin: 0;
}

.example-href {
  text-decoration: underline;
  color: white;
}

.image-section {
  gap: 1rem;
  flex-direction: column;
  align-items: center;
  height: min-content;
}

.image-section>img {
  height: 100%;
  object-fit: cover;
}

.image-section-rotator {
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.image-section-rotator>.image-section-dot {
  background-color: rgba(var(--theme-color), 0.4);
  height: 0.5rem;
  width: 0.5rem;
  margin: 0px;
  padding: 0px;
  border-radius: 100%;
  border: none;
  outline: none;
}

.image-section-rotator>.image-section-dot:hover,
.image-section-rotator>.image-section-dot:focus {
  background-color: rgba(var(--theme-color), 0.8);
  cursor: pointer;
}

.image-section-rotator>.image-section-dot:first-child {
  background-color: rgb(var(--theme-color));
}

#shape-section {
  grid-area: 🔼;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}

#shape-section>.example-button {
  border: 1px solid rgba(var(--theme-color), 0.4);
  height: 100px;
}


.selected {
  background-color: rgba(var(--theme-color), 0.1);
  border-color: rgb(var(--theme-color));
}

@media(max-width: 1100px) {
  #example-wrapper {
    grid-template-areas:
      "⬅️"
      "title"
      "text"
      "photo"
      "code1"
      "code2"
      "code3"
      "code4"
      "CarGame"
      "PaintGame"
      "code5";
    margin: 1rem 0 100px;
    padding: 5%;
    grid-template-columns: 100%;
    overflow-x: hidden;
  }

  .twitter-tweet {
    width: 100% !important;
  }

  /*     "⬅️ title title"
    "⬅️ text photo"
    "⬅️ text photo"
    "⬅️ code1 code2"
    "⬅️ code3 code4"; */

  .example-button>i {
    height: 1.5rem;
    font-size: 1rem;
    line-height: 1.5rem;
    width: 1.5rem;
  }

  body {
    overflow-y: scroll;
  }

  #view-section {
    flex-direction: column;
  }

  #view-section>button {
    width: 100%;
  }

  #side-bar-section {
    flex-direction: row;
    flex-wrap: wrap;
    width: calc(100% - 2rem);
    text-align: center;
  }

  #fact-section {
    height: 150px;
  }

  .align-side {
    flex-direction: column;
  }
}

/* -- YouTube Link Styles -- */

body.menu-toggled>.meta-link>span {
  color: rgb(30, 30, 30);
}

#grid-layout-link {
  bottom: 62px;
}

.yt-link>i {
  color: rgb(239, 83, 80);
}

.meta-link {
  align-items: center;
  backdrop-filter: blur(3px);
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  bottom: 10px;
  box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  display: inline-flex;
  gap: 5px;
  left: 10px;
  padding: 10px 20px;
  position: fixed;
  text-decoration: none;
  transition: background-color 400ms, border-color 400ms;
  z-index: 10000;
}

.meta-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.meta-link>i,
.meta-link>span {
  height: 20px;
  line-height: 20px;
}

.meta-link>span {
  color: white;
  font-family: "Rubik", sans-serif;
  font-weight: 500;
}

/* Slideshow container */
.slideshow-container {
  height: 100%;
  width: 100%;
  position: relative;
}

/* Hide the images by default */
.mySlides {
  display: none;
  height: 100%;
}

.mySlides img {
  height: 500px;
  width: 100%;
  object-fit: cover
}

/* Next & previous buttons */
.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  margin-top: -22px;
  padding: 16px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
  background-color: rgba(0, 0, 0, 0.8);
}

/* Position the "next button" to the right */
.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}


/* On hover, add a black background color with a little bit see-through */
.prev:hover,
.next:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.prev {
  left: 0;
}

/* Caption text */
.text {
  color: #f2f2f2;
  font-size: 15px;
  padding: 8px 12px;
  position: absolute;
  bottom: 8px;
  width: 100%;
  text-align: center;
}

/* Number text (1/3 etc) */
.numbertext {
  color: #f2f2f2;
  font-size: 12px;
  padding: 8px 12px;
  position: absolute;
  top: 0;
}

/* The dots/bullets/indicators */
.dot {
  cursor: pointer;
  height: 15px;
  width: 15px;
  margin: 0 2px;
  background-color: rgb(251, 140, 0, 0.3);
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.active,
.dot:hover {
  background-color: rgb(251, 140, 0);
}

/* Fading animation */
.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

@keyframes fade {
  from {
    opacity: .4
  }

  to {
    opacity: 1
  }
}

















.card {
  position: relative;
}

.card:hover::before {
  opacity: 1;
}

.card::before,
.card::after {
  border-radius: inherit;
  content: "";
  height: 100%;
  left: 0px;
  opacity: 0;
  position: absolute;
  top: 0px;
  transition: opacity 500ms;
  width: 100%;
  pointer-events: none;
}

.card::before {
  background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y),
      rgba(255, 87, 20, .1),
      transparent 40%);
  z-index: 3;
  pointer-events: none;
}

.card::after {
  background: radial-gradient(600px circle at var(--mouse-x) var(--mouse-y),
      rgba(255, 255, 255, 0.4),
      transparent 40%);
  z-index: 1;
}

.card>.card-content {
  background-color: var(--card-color);
  border-radius: inherit;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  inset: 1px;
  padding: 10px;
  position: absolute;
  z-index: 2;
}

.twitter-tweet {
  width: 50%;
}

@font-face {
  font-family: "handwriting";
  src: url(../fonts/Excalifont-Regular.woff2);
}

.handwriting {
  font-family: "handwriting";
  pointer-events: none;
  /* make it so you cant copy the text */
  user-select: none;
}



/* Container for the circles */
#color-container {
  position: relative;
  width: 100%;
  height: 500px;
  margin: 0;
  border: 2px solid rgba(var(--theme-color), 1.0);
  border-radius: 10px;
  background-color: rgb(18, 18, 18);
  overflow: hidden;
  isolation: isolate;
}

/* Common styles for all circles */
.circle {
  mix-blend-mode: screen;
  position: absolute;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  opacity: 1;
  /* Semi-transparent for visual overlapping */
  cursor: grab;
  user-select: none;
  transition: transform 0.2s;
  margin: 0;
}

/* Specific colors for each circle */
#red-circle {
  background-color: red;
  top: calc(60% - (250px/4*3));
  left: calc(50% - 125px);
}

#green-circle {
  background-color: rgb(0, 255, 0);
  top: calc(60% - 125px);
  left: calc(50% - (250px/4*3));
}

#blue-circle {
  background-color: blue;
  top: calc(60% - 125px);
  left: calc(50% - (250px/4));
}

/* Optional: Hover effect */
.circle:hover {
  transform: scale(1.05);
}

/* Display the resulting color */
#result {
  margin: 20px auto;
  text-align: center;
  font-size: 1.5em;
  padding: 15px;
  border: 2px solid #ccc;
  display: inline-block;
  min-width: 200px;
  border-radius: 5px;
  background-color: white;
}

#settings {
  position: absolute;
  bottom: 0;
  left: 0;
  margin-left: 5px;
  margin-bottom: 0;
  pointer-events: none;
}

#color-info {
  position: absolute;
  bottom: 0;
  right: 0;
  margin-right: 5px;
  margin-bottom: 0;
  pointer-events: none;
  margin: 0;
  text-align: right;
}

.hex-value {
  margin: 0 5px 5px 0;
}

.slider-container * {
  pointer-events: auto;
}

#red-hex,
#red-rgb {
  color: rgb(224, 49, 49);
}

#green-hex,
#green-rgb {
  color: rgb(47, 158, 68);
}

#blue-hex,
#blue-rgb {
  color: #1971c2;
}

/*------ Style 2 ------*/
#color-input {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-color: transparent;
  width: 50px;
  height: 50px;
  border: none;
  cursor: pointer;
}

#color-input::-webkit-color-swatch {
  border-radius: 50%;
  border: 2px solid rgba(var(--theme-color), 1.0);
}

#color-input::-moz-color-swatch {
  border-radius: 50%;
  border: 2px solidrgba(var(--theme-color), 1.0);
}


/* ======= image sliders */

/* Container for the entire slider */
.image-slider {
  position: relative;
  /* needed for absolutely positioned buttons */
  width: min(580px, 100%);
  /* adjust as desired */
  height: auto;
  /* enough to fit images + text */
  margin: 2rem auto;
  /* center on page */
  overflow: hidden;
  /* hide overflowing slides */
  /* border: 1px solid #ccc; */
  border-radius: 6px;
}

/* The container that holds all the slides side by side */
.slider-container {
  display: flex;
  /* place slides in a row */
  transition: transform 0.4s ease-in-out;
  /* animate sliding effect */
  width: 100%;
  height: 100%;
  margin: 0;
  user-select: none;
}

/* Each individual slide */
.slide {
  min-width: 100%;
  /* ensure each slide takes full width of parent */
  box-sizing: border-box;
  padding: 0;
  text-align: center;
  /* center the content */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 0;
}

.slide img {
  width: auto;
  margin-bottom: 0.5rem;
}

.slide p {
  text-align: left;
  padding: 0 1rem;
}

/* Nav Buttons (Prev / Next) */
.nav-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(var(--theme-color), 0);
  color: rgba(var(--theme-color), 1.0);
  border: none;
  font-size: 1rem;
  cursor: pointer;
  padding: 0.5rem 1rem;
  opacity: 0.8;
  transition: opacity 0.2s ease-in-out;
  height: 50%;
  border-radius: 10px;
  font-family: "handwriting";
}

.nav-button:hover {
  /* opacity: 1; */
  background-color: rgba(var(--theme-color), 1.0);
  color: white;
}

.prev {
  left: 0px;
}

.next {
  right: 0px;
}


/* Modul */

.modal {
  /* Hidden by default */
  display: none;
  position: fixed;
  z-index: 1000;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  /* Enable scroll if needed */
  background-color: rgba(0, 0, 0, 0.8);
  /* Black w/ opacity */
  margin: 0;
  /* disabel scrollbar */
  overflow: hidden;

}

.modal-content {
  position: relative;
  margin: auto;
  padding: 0;
  cursor: grab;
  width: 100%;
  /* height: max-content; */
  /* Indicate that the image is draggable */
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  -webkit-user-select: none;
  /* Chrome all / Safari all */
  -moz-user-select: none;
  /* Firefox all */
  -ms-user-select: none;
  /* IE 10+ */
  user-select: none;
  /* Likely future */
}

.modal-content img {
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
  /* transition: transform 0.2s; */
  cursor: grab;
  /* Indicate that the image is draggable */
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  -webkit-user-select: none;
  /* Chrome all / Safari all */
  -moz-user-select: none;
  /* Firefox all */
  -ms-user-select: none;
  /* IE 10+ */
  user-select: none;
  /* Likely future */
}

/* Change cursor during active dragging */
.modal-content img.activeImage {
  cursor: grabbing;
}

/* Close Button */
.close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover,
.close:focus {
  color: #bbb;
  text-decoration: none;
}

/* Zoom Controls */
.zoom-controls {
  text-align: center;
  margin-top: 10px;
}

.zoom-controls button {
  padding: 10px 20px;
  margin: 0 5px;
  font-size: 18px;
  cursor: pointer;
}

.jx-image {
  width: 50%;
  height: auto;
  object-fit: cover;
}

div.jx-slider {
  /* theme color */
  color: rgb(var(--theme-color)) !important;
}


/* Slideshow container */
.slideshow-container {
  height: 100%;
  width: 100%;
  /* center items */
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Hide the images by default */
.mySlides {
  display: none;
  height: 100%;
  width: fit-content;
}

.mySlides img {
  height: 500px;
  width: 100%;
  object-fit: cover
}

/* Next & previous buttons */
.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  margin-top: -22px;
  padding: 16px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
  background-color: rgba(0, 0, 0, 0.8);
}

/* Position the "next button" to the right */
.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}


/* On hover, add a black background color with a little bit see-through */
.prev:hover,
.next:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.prev {
  left: 0;
}

/* Caption text */
.text {
  color: #f2f2f2;
  font-size: 15px;
  padding: 8px 12px;
  position: absolute;
  bottom: 8px;
  width: 100%;
  text-align: center;
}

/* Number text (1/3 etc) */
.numbertext {
  color: #f2f2f2;
  font-size: 12px;
  padding: 8px 12px;
  position: absolute;
  top: 0;
}

/* The dots/bullets/indicators */
.dot {
  cursor: pointer;
  height: 15px;
  width: 15px;
  margin: 0 2px;
  background-color: rgb(251, 140, 0, 0.3);
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.active,
.dot:hover {
  background-color: rgb(251, 140, 0);
}

/* Fading animation */
.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

@keyframes fade {
  from {
    opacity: .4
  }

  to {
    opacity: 1
  }
}

/* Change li dots size to be biggers */
li b,
li strong {
  font-size: 1.5rem;
  line-height: 1.5rem;
  margin-right: 0.5rem;
  margin-left: 0.5rem;
}
li::marker {
  font-size: 2rem;
}