<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">
*,
*::after,
*::before {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

body {
  background: #5796b6;
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.container {
  background-color: #fff;
  max-height: 700px;
  min-width: 350px;
  max-width: 600px;
  width: 70vw;
  height: 80vh;
  border-radius: 8vw;
  box-shadow: 3px 3px 20px -6px rgba(0, 0, 0, 0.5);
  transition: background-color 700ms cubic-bezier(0.5, 0, 0.5, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2vmax;
}

.toggle--wrapper {
  background-color: #E6A555;
  width: 20em;
  height: 10em;
  border-radius: 20em;
  padding: 1em;
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
  transition: background-color 300ms ease-in;
  box-shadow: 3px 3px 20px -6px rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.toggle--knob {
  width: 50%;
  height: 0;
  padding-bottom: 50%;
  background: white;
  border-radius: 50%;
  transform: translateX(0);
  transition: transform 700ms cubic-bezier(0.5, 0, 0.5, 1);
  position: relative;
  border: none;
}
.toggle--knob::before {
  content: '';
  display: block;
  background-color: #E6A555;
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  left: -100%;
  transform-origin: center top;
  transform: translateX(0);
  transition: transform 700ms cubic-bezier(0.5, 0, 0.5, 1), background-color 300ms ease-in;
}

[data-state="day"] {
  background-color: #fff;
}
[data-state="day"] .toggle--wrapper {
  background-color: #E6A555;
}

[data-state="night"] {
  background-color: #000;
}
[data-state="night"] .toggle--wrapper {
  background-color: #2c4b98;
}
[data-state="night"] .toggle--knob {
  transform: translateX(100%) rotate(25deg);
}
[data-state="night"] .toggle--knob::before {
  transform: translateX(100%) rotate(45deg);
  background-color: #2c4b98;
}</pre></body></html>