body {
  background: #91ffaa;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
  height: 100vh;
  overflow: hidden;
  font-family: cursive;
}

.container {
  width: 20em;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #ffffff;
  padding-bottom: 1em;
  padding-top: 1em;
  border-radius: 0.5em;
  box-shadow: 2px 4px 12px rgb(0 0 0 / 8%);
}

.switch input {
  cursor: pointer;
  height: 100%;
  opacity: 0;
  position: absolute;
  width: 100%;
  z-index: 100;
}

.switch {
  position: relative;
  width: 9em;
}

.label_text {
  font-size: 0.83rem;
  font-weight: 700;
  margin: unset;
  text-align: center;
  padding-top: 0.3em;
  color: lightgray;
}

.label_text span:nth-child(2) {
  color: #00dd5b;
}

.switch label {
  background: #ebebeb;
  color: #ebebeb;
  border-radius: 0.5rem;
  display: block;
  height: 2rem;
  position: relative;
  transition: all 0.15s ease;
  width: 100%;
  box-shadow: 0 1px 0 transparent, 0 1px 3px rgb(0 0 0 / 20%) inset;
}

.switch label .switch_key {
  background: white;
  border-radius: 50px;
  display: block;
  height: 24px;
  transform: translateX(0.7em);
  position: absolute;
  top: 4px;
  transition: all 0.15s ease;
  width: 53px;
  z-index: 3;
}

.switch label div::before {
  background: #e9e9e9;
  bottom: 0;
  box-shadow: -6px 0 0 0 #e9e9e9, 6px 0 0 0 #e9e9e9;
  content: "";
  display: block;
  height: 15px;
  left: 0;
  margin: auto;
  position: absolute;
  right: 0;
  top: 0;
  transition: all 0.15s ease;
  width: 3px;
}

.switch input:checked ~ label {
  background: #91ffbb;
  color: #91ffbb;
}

.switch input:checked ~ label .switch_key {
  transform: translateX(5em);
}
h1 {
  position: absolute;
  top: 140px;
  font-family: cursive;
  text-align: center;
  color: gray;
  width: 100%;
}
