/*Every Element effect*/
* {
  box-sizing: border-box;
}

html {
  position: relative;
  height: 100%;
}

body {
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
  -moz-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  -o-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  background-color: #ecf0f1;
  color: #34495e;
  font-family: Trebuchet, Arial, sans-serif;
  text-align: center;
  transition: 0.7s ease;
  -moz-transition: 0.7s ease;
  -webkit-transition: 0.7s ease;
}


/*Box around text*/
.boxed {
  background: rgba(250, 250, 250, 0.7);
  padding: 15px 20px;
  border-width: 0;
  border-radius: 10px;
  -webkit-box-shadow: -11px 14px 5px 0px rgba(0, 0, 0, 0.75);
  -moz-box-shadow: -11px 14px 5px 0px rgba(0, 0, 0, 0.75);
  box-shadow: -11px 14px 5px 0px rgba(0, 0, 0, 0.75);
}

/*Header(Title) Banner*/
#h3 {
  font-size: x-large;
  font-weight: 600;
}

/*Modified selection*/
#h3::-moz-selection,
#h3::selection {
  color: #fff;
  background-color: grey;
}

/*Unselectable used for button*/
*.unselectable {
  -webkit-touch-callout: none;
  /* iOS Safari */
  -webkit-user-select: none;
  /* Safari */
  -khtml-user-select: none;
  /* Konqueror HTML */
  -moz-user-select: none;
  /* Firefox */
  -ms-user-select: none;
  /* Internet Explorer/Edge */
  user-select: none;
  /* Non-prefixed version, currently supported by Chrome and Opera */
}

/*Center aligns the button*/
#button.center {
  margin: 30px auto;
  width: auto;
  display: flex;
  justify-content: center;
}

.btn {
  font-size: 16px;
  position: relative;
  display: block;
  margin: 30px auto;
  padding: none;
  overflow: hidden;
  outline: none;
  border-width: 0;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
  box-shadow: inset 0 0 0 #27ae60;
  background-color: #2ecc71;
  color: #fff;
  transition: .5s ease-in-out;
  cursor: pointer;
}

.btn:hover {
  box-shadow: inset 300px 0 0 #27ae60;
}

.btn span {
  display: block;
  padding: 0.4em 0.4em;
  position: relative;
}


/*Color Box*/

#color {
  display: block;
  background-color: #fff;
  width: auto;
  padding: 10px 10px;
  margin-left: auto;
  margin-right: auto;
  max-width: 150px;
  color: #34495e;
  font-weight: bold;
}


/* Switch */

input#check-box {
  max-height: 0;
  min-height: 0;
  opacity: 0;
  display: none;
}

input#check-box + label {
  display: block;
  position: relative;
  left: 40%;
  box-shadow: inset 0 0 2px 2px #d6d6d6;
  text-indent: -10000px;
  height: 30px;
  width: 50px;
  border-radius: 15px;
  background: #ffffff;
  margin-bottom: 20px;
  cursor: pointer;
}

input#check-box + label:before {
  content: "";
  position: absolute;
  display: block;
  height: 30px;
  width: 30px;
  top: 0;
  left: 0;
  border-radius: 15px;
  background: #2ecc71;
  transition: .25s ease-in-out;
  -moz-transition: .25s ease-in-out;
  -webkit-transition: .25s ease-in-out;
}

input#check-box + label:after {
  content: "";
  position: absolute;
  display: block;
  height: 30px;
  width: 30px;
  top: 0;
  left: 0;
  border-radius: 15px;
  background: #ffffff;
  box-shadow: inset 0 0 0px 1px rgba(0, 0, 0, 0.2), 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: .25s ease-in-out;
  -moz-transition: .25s ease-in-out;
  -webkit-transition: .25s ease-in-out;
}

input#check-box:checked + label:before {
  width: 50px;
  background: rgba(19, 191, 17, 1);
}

input#check-box:checked + label:after {
  left: 20px;
  box-shadow: inset 0 0 0 1px rgba(19, 191, 17, 1), 0 2px 4px rgba(0, 0, 0, .2);
}
