/* From Uiverse.io by Praashoo7 */ 
.theme-switch {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  width: 9em;
  height: 2.5em;
  font-size: 20px;
  font-family: Montserrat;
  font-weight: 600;
  color: black;
  background-color: white;
  padding: 0.5em;
  border: 1px solid black;
  box-shadow: 6px 6px 0px black;
  transition: .4s;
  z-index: 1;
}

.name1::before {
  color: black;
  content: "Dark Mode";
  margin-right: 2em;
  transition: .2s ease-in-out;
}

.name1::after {
  color: black;
  content: "Light Mode";
  margin-right: 1.7em;
  transition: .2s ease-in-out;
  display: none;
}

.theme-switch .slider1 {
  position: absolute;
  background-color: #222;
  margin-left: 6.2em;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  border: 4px solid #222;
  transform: rotate(-120deg);
  box-shadow: inset 0px 6px #999, inset 0px 6px 1px 1px #999;
  -moz-box-shadow: inset 0px 6px #999, inset 0px 6px 1px 1px #999;
}

.theme-switch:hover {
  color: white;
  cursor: pointer;
  box-shadow: none;
  transform: translateX(6px) translateY(6px);
  background-color: black;
  border: none;
}

.theme-switch:hover .name1::before {
  color: white;
}

.theme-switch:hover .name1::after {
  color: white;
}

.theme-switch input[type=checkbox]:checked + .slider1 {
  transform: rotate(360deg);
  box-shadow: none;
  border: 4px solid #F28C38;
  background-color: #F28C38;
}

.theme-switch input[type=checkbox]:checked ~ .name1::before {
  display: none;
}

.theme-switch input[type=checkbox]:checked ~ .name1::after {
  display: block;
}

.theme-switch input[type=checkbox]#darkModeSwitch  {
  position: absolute;
  visibility: hidden;
}

.slider1 {
  transition: 300ms ease;
}