body {
    background-color: #212121;
    width: 100vw;
    height: 100vh;
    margin: 0;
    padding: 0;
    overflow: hidden;
    transition: background-color 0.1s ease-in-out;
    user-select: none;
}

#centered {
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    display: flex;
    position: relative;
}

.switch {
  display: block;
  background-color: black;
  width: 150px;
  height: 195px;
  -webkit-box-shadow: 0 0 10px 2px rgba(0, 0, 0, 0.2), 0 0 1px 2px black, inset 0 2px 2px -2px white, inset 0 0 2px 15px #47434c, inset 0 0 2px 22px black;
          box-shadow: 0 0 10px 2px rgba(0, 0, 0, 0.2), 0 0 1px 2px black, inset 0 2px 2px -2px white, inset 0 0 2px 15px #47434c, inset 0 0 2px 22px black;
  border-radius: 5px;
  padding: 20px;
  -webkit-perspective: 700px;
          perspective: 700px;
}

.switch input {
  display: none;
}

.switch input:checked + .button {
  -webkit-transform: translateZ(20px) rotateX(25deg);
          transform: translateZ(20px) rotateX(25deg);
  -webkit-box-shadow: 0 -10px 20px #ff1818;
          box-shadow: 0 -10px 20px #ff1818;
}

.switch input:checked + .button .light {
  -webkit-animation: flicker 0.2s infinite 0.3s;
          animation: flicker 0.2s infinite 0.3s;
}

.switch input:checked + .button .shine {
  opacity: 1;
}

.switch input:checked + .button .shadow {
  opacity: 0;
}

.switch .button {
  display: block;
  -webkit-transition: all 0.3s cubic-bezier(1, 0, 1, 1);
  transition: all 0.3s cubic-bezier(1, 0, 1, 1);
  -webkit-transform-origin: center center -20px;
      -ms-transform-origin: center center -20px;
          transform-origin: center center -20px;
  -webkit-transform: translateZ(20px) rotateX(-25deg);
          transform: translateZ(20px) rotateX(-25deg);
  -webkit-transform-style: preserve-3d;
          transform-style: preserve-3d;
  background-color: #9b0621;
  height: 100%;
  position: relative;
  cursor: pointer;
  background: -webkit-gradient(linear, left top, left bottom, from(#980000), color-stop(30%, #6f0000), color-stop(70%, #6f0000), to(#980000));
  background: linear-gradient(#980000 0%, #6f0000 30%, #6f0000 70%, #980000 100%);
  background-repeat: no-repeat;
}

.switch .button::before {
  content: "";
  background: -webkit-gradient(linear, left top, left bottom, color-stop(10%, rgba(255, 255, 255, 0.8)), color-stop(30%, rgba(255, 255, 255, 0.3)), color-stop(75%, #650000), to(#320000)) 50% 50%/97% 97%, #b10000;
  background: linear-gradient(rgba(255, 255, 255, 0.8) 10%, rgba(255, 255, 255, 0.3) 30%, #650000 75%, #320000) 50% 50%/97% 97%, #b10000;
  background-repeat: no-repeat;
  width: 100%;
  height: 50px;
  -webkit-transform-origin: top;
      -ms-transform-origin: top;
          transform-origin: top;
  -webkit-transform: rotateX(-90deg);
          transform: rotateX(-90deg);
  position: absolute;
  top: 0;
}

.switch .button::after {
  content: "";
  background-image: -webkit-gradient(linear, left top, left bottom, from(#650000), to(#320000));
  background-image: linear-gradient(#650000, #320000);
  width: 100%;
  height: 50px;
  -webkit-transform-origin: top;
      -ms-transform-origin: top;
          transform-origin: top;
  -webkit-transform: translateY(50px) rotateX(-90deg);
          transform: translateY(50px) rotateX(-90deg);
  position: absolute;
  bottom: 0;
  -webkit-box-shadow: 0 50px 8px 0px black, 0 80px 20px 0px rgba(0, 0, 0, 0.5);
          box-shadow: 0 50px 8px 0px black, 0 80px 20px 0px rgba(0, 0, 0, 0.5);
}

.switch .light {
  opacity: 0;
  -webkit-animation: light-off 1s;
          animation: light-off 1s;
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(#ffc97e, #ff1818 40%, transparent 70%);
}

.switch .dots {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(transparent 30%, rgba(101, 0, 0, 0.7) 70%);
  background-size: 10px 10px;
}

.switch .characters {
  position: absolute;
  width: 100%;
  height: 100%;
  background: -webkit-gradient(linear, left top, left bottom, from(white), to(white)) 50% 20%/5% 20%, radial-gradient(circle, transparent 50%, white 52%, white 70%, transparent 72%) 50% 80%/33% 25%;
  background: linear-gradient(white, white) 50% 20%/5% 20%, radial-gradient(circle, transparent 50%, white 52%, white 70%, transparent 72%) 50% 80%/33% 25%;
  background-repeat: no-repeat;
}

.switch .shine {
  -webkit-transition: all 0.3s cubic-bezier(1, 0, 1, 1);
  transition: all 0.3s cubic-bezier(1, 0, 1, 1);
  opacity: 0.3;
  position: absolute;
  width: 100%;
  height: 100%;
  background: -webkit-gradient(linear, left top, left bottom, from(white), color-stop(3%, transparent)) 50% 50%/97% 97%, -webkit-gradient(linear, left top, left bottom, from(rgba(255, 255, 255, 0.5)), color-stop(50%, transparent), color-stop(80%, transparent), to(rgba(255, 255, 255, 0.5))) 50% 50%/97% 97%;
  background: linear-gradient(white, transparent 3%) 50% 50%/97% 97%, linear-gradient(rgba(255, 255, 255, 0.5), transparent 50%, transparent 80%, rgba(255, 255, 255, 0.5)) 50% 50%/97% 97%;
  background-repeat: no-repeat;
}

.switch .shadow {
  -webkit-transition: all 0.3s cubic-bezier(1, 0, 1, 1);
  transition: all 0.3s cubic-bezier(1, 0, 1, 1);
  opacity: 1;
  position: absolute;
  width: 100%;
  height: 100%;
  background: -webkit-gradient(linear, left top, left bottom, color-stop(70%, transparent), to(rgba(0, 0, 0, 0.8)));
  background: linear-gradient(transparent 70%, rgba(0, 0, 0, 0.8));
  background-repeat: no-repeat;
}

@-webkit-keyframes flicker {
  0% {
    opacity: 1;
  }

  80% {
    opacity: 0.8;
  }

  100% {
    opacity: 1;
  }
}

@keyframes flicker {
  0% {
    opacity: 1;
  }

  80% {
    opacity: 0.8;
  }

  100% {
    opacity: 1;
  }
}

@-webkit-keyframes light-off {
  0% {
    opacity: 1;
  }

  80% {
    opacity: 0;
  }
}

@keyframes light-off {
  0% {
    opacity: 1;
  }

  80% {
    opacity: 0;
  }
}