/* ---------------------------------------------------
    TOGGLE CSS
    
    MASCOTTE
----------------------------------------------------- */


/* ---------------------------------------------------
    TOGGLE
----------------------------------------------------- */

#app-cover .checkbox {
	background: #fff none repeat scroll 0 0;
	display: block;
	height: 60px;
	position: relative;
}

* {
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

*:focus {
  outline: none;
}


#app-cover {
	display: table;
	width: 350px;
	margin: 60px auto;
	counter-reset: button-counter;
}
#app-cover .row {
  display: table-row;
}

.toggle-button-cover {
  display: table-cell;
  position: relative;
  box-sizing: border-box;
}

.button-cover {
  background-color: #fff;
}

.button-cover,
.knobs,
.layer {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.button {
	position: relative;
	top: 50%;
	width: 120px;
	height: 60px;
	margin: -20px auto 0 auto;
	overflow: hidden;
}

.button.r,
.button.r .layer {
  border-radius: 100px;
}

.button.b2 {
  border-radius: 2px;
}

.checkbox {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 3;
}

.knobs {
  z-index: 2;
}

.layer {
	width: 100%;
	background-color: #8fe2b0;
	transition: 0.3s ease all;
	z-index: 1;
}

/* Button 1 */
#button-1 .knobs::before {
	content: "JA";
	position: absolute;
	top: 4px;
	left: 5px;
	width: 52px;
	height: 52px;
	color: #fff;
	font-size: 20px;
	font-weight: bold;
	text-align: center;
	line-height: 1;
	padding: 16px 3px;
	background-color: #28334a;
	border-radius: 50%;
	transition: 0.3s cubic-bezier(0.18, 0.89, 0.35, 1.15) all;
}

#button-1 .checkbox:checked + .knobs:before {
  content: "NEE";
  left: 63px;
  background-color: #ff3312;
}

#button-1 .checkbox:checked ~ .layer {
	background-color: #28334a;
}

#button-1 .knobs,
#button-1 .knobs:before,
#button-1 .layer {
  transition: 0.3s ease all;
}

/* Button 2 */
#button-2 .knobs::before {
	content: "YES";
	position: absolute;
	top: 4px;
	left: 5px;
	width: 52px;
	height: 52px;
	color: #fff;
	font-size: 20px;
	font-weight: bold;
	text-align: center;
	line-height: 1;
	padding: 16px 3px;
	background-color: #28334a;
	border-radius: 50%;
	transition: 0.3s cubic-bezier(0.18, 0.89, 0.35, 1.15) all;
}

#button-2 .checkbox:checked + .knobs:before {
  content: "NO";
  left: 63px;
  background-color: #ff3312;
}

#button-2 .checkbox:checked ~ .layer {
	background-color: #28334a;
}

#button-2 .knobs,
#button-2 .knobs:before,
#button-2 .layer {
  transition: 0.3s ease all;
}





