input.toggle {
  height: 40px;
  left: 0;
  opacity: 0;
  position: absolute;
  top: 0;
  width: 40px;
}

.toggle-wrapper {
	display: inline-flex;
}

.toggle-text {
  display: inline;
  vertical-align: top;
}

.toggle {
  position: relative;
  display: inline-block;
  box-sizing: border-box;
  overflow: hidden;
  max-height: 27px;
}

label.toggle-item {
  width: 7.6em;
  background: #2e394d;
  height: 3em;
  display: inline-block;
  border-radius: 50px;
  margin-top: -8px;
  position: relative;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
  transform: scale(0.6);
}
label.toggle-item:before {
  display: block;
  transition: all 0.2s ease;
  width: 2.3em;	
  height: 2.3em;
  top: 0.25em;
  left: 0.25em;
  border-radius: 2em;
  border: 2px solid #88cf8f;
  transition: 0.3s ease;
  content: "";
  position: absolute;
  box-sizing: border-box;
}

.dog-rollover label:before {
  content: none;
  position: absolute;
  box-sizing: border-box;
}
.dog-rollover label .dog {
  display: inline-block;
  position: absolute;
  width: 2.5em;
  height: 2.5em;
  top: 0.25em;
  left: 0.2em;
  transition: 0.6s ease;
  box-sizing: border-box;
}
.dog-rollover label .eyes {
  position: absolute;
  width: 8px;
  height: 8px;
  background: #222;
  border-radius: 50%;
  transform: translate(6px, 14px);
  box-shadow: 15px 0 0 #222, 22px -4px 0 12px #e4ac04;
  box-sizing: border-box;
}
.dog-rollover label .ear {
  width: 18px;
  height: 20px;
  position: absolute;
  left: -4px;
  bottom: 80%;
  background: #f9bb00;
  margin-bottom: -5px;
  border-radius: 50% 50% 0 0/100% 100% 0 0;
  box-shadow: inset 4px 0 0 0px #ffffff, inset -4px 0 0 0px #ffffff;
  transform: rotate(-40deg);
  box-sizing: border-box;
}
.dog-rollover label .ear.right {
  transform: rotate(60deg) scaleX(-1);
  left: auto;
  transform-origin: center bottom;
  transition: 0.4s ease-in-out;
  right: 0px;
  box-sizing: border-box;
}
.dog-rollover label .face {
  overflow: hidden;
  border-radius: 50%;
  width: 2.5em;
  height: 2.5em;
  position: absolute;
  background: #fff;
  z-index: 8;
  box-sizing: border-box;
}
.dog-rollover label .mouth {
  position: absolute;
  background: #222;
  width: 14px;
  height: 7px;
  left: 50%;
  margin-left: -7px;
  bottom: 3px;
  border-radius: 2px 2px 20px 20px;
  transform: scale(1.1);
  transition: 0.1s ease;
  box-sizing: border-box;
}
.dog-rollover label .mouth:before {
  width: 8px;
  height: 8px;
  background: #ec788d;
  border-radius: 0 0 50% 50%;
  transform: translate(2px, 3px);
  content: "";
  position: absolute;
  box-sizing: border-box;
}
.dog-rollover label:before {
  border-color: white;
  background: white;
  content: none;
  position: absolute;
  box-sizing: border-box;
}

#doggo:checked + label .dog {
  left: 68px;
  transform: rotate(360deg);
  box-sizing: border-box;
}
#doggo:checked + label .mouth {
  transform: scale(1.1);
  transition-delay: 0.7s;
  box-sizing: border-box;
}
#doggo:checked + label .mouth:before {
transform: translate(5px, 3px);
}
#doggo:checked + label .ear.right {
  transform: scaleX(-1) rotate(-37deg);
  transition-delay: 0.6s;
  box-sizing: border-box;
}