:root {
  /* Light mode variables */
  --primary-color: #eeeef4;
  --secondary-color: #f07828;
  --tertiary-color: #0a0514;
  --font-family: impact, monospace, comic-sans;
}

[data-theme="dark"] {
  /* Dark mode variables */
  --primary-color: #eeeef4;
  --secondary-color: #f07828;
  --tertiary-color: #0a0514;
  --font-family: impact, monospace, comic-sans;
}

[data-theme="light"] {
  /* Light mode variables (redundant but defined for clarity) */
  --primary-color: #0a0514;
  --secondary-color: #f07828;
  --tertiary-color: #eeeef4;
  --font-family: impact, monospace, comic-sans;
}


body {
  background: var(--tertiary-color);
  background-color: var(--tertiary-color);
  color: var(--primary-color);
  font-family: var(--font-family);
  transition: background-color 0.2s linear;
  display: flex;
  place-items: center;  
  justify-content: center;  /* Centers horizontally */
  align-items: center;      /* Centers vertically */
}

h1 {
  font-weight: 100;
  font-size: 28pt;
}

h2 {
  font-weight: 80;
  font-size: 14pt;
  color: var(--secondary-color);
}

p {
  font-weight: 300;
}

text {
  font-weight: 800;
  font-size: 28pt;
  color: var(--secondary-color);
  text-decoration: double;
}

.warning-content {
  position: absolute;
  top: 0;
  width: 100%;
  height: 300px;
  align-content: center;
  text-align: center;
  margin: 0;

}
svg path {
  transition: fill 1s, stroke 2s;
}

.toggle {
  font-size: 0.5rem; 
  border: .125em solid currentColor;
  border-radius: 2em;
  cursor: pointer;
  display: block;
  height: 2em;
  position: relative;
  align-self: flex-start;
  width: 3.75em;
}

.toggle span {
  background-color: currentColor;
  border-radius: 2em;
  display: block;
  height: 1.5em;
  left: .25em;
  overflow: hidden;
  position: absolute;
  top: .25em;
  text-indent: -9999px;
  transition: left .25s;
  width: 1.5em;
  z-index: 2;
}

/* Shadow and outline effects */
.toggle::before,
.toggle::after {
  content: '';
  display: block;
  border-radius: 1em;
  position: absolute;
  z-index: 1;
}

.toggle::after {
  box-shadow: .25em .25em #5901d8;
  height: 1.125em;
  right: .9em;
  top: .125em;
  width: 1.125em;
}

.toggle::before {
  background-color: #ffc409;
  height: .625em;
  outline: .25em dotted #ffc409;
  outline-offset: .125em;
  left: .7em;
  top: .7em;
  width: .625em;
}

/* Toggle state for dark mode */
[data-theme="dark"] .toggle span {
  left: 2em; /* Move the span to the right when dark mode is active */
}


.icon {
    background: linear-gradient(-45deg, var(--primary-color), var(--secondary-color));
}
