/* -----------------------------------------------------
TABLE OF CONTENTS
--------------------------------------------------------
	1. Contrast Toggle Switch Style
	2. Media Query Breakpoints
--------------------------------------------------------
----------------------------------------------------- */

/* -----------------------------------------------------
1. Contrast Toggle Switch Style
----------------------------------------------------- */
.switch {
  position: relative;
  margin: 0 0 20px 0;
  height: 36px;
  width: 160px;
  background: #bbb;
  border-radius: 3px;
  -webkit-box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3), 0 1px rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3), 0 1px rgba(255, 255, 255, 0.1);
}

.switch-label {
  position: relative;
  z-index: 2;
  float: left;
  width: 78px;
  line-height: 36px;
  font-size: 14px;
  color: #111;
  text-align: center;
  cursor: pointer;
}

.switch-label:active {
  font-weight:bold;
}

.switch-label-off {
  padding-left: 2px;
}

.switch-label-on {
  padding-right: 2px;
}

.switch-label:hover {
	opacity: 0.5;
}

/*
 * Note: using adjacent or general sibling selectors combined with
 *       pseudo classes doesn't work in Safari 5.0 and Chrome 12.
 *       See this article for more info and a potential fix:
 *       http://css-tricks.com/webkit-sibling-bug/
 */
.switch-input {
  display: none;
}
.switch-input:checked + .switch-label {
  font-weight: bold;
  color: #fff;
  -webkit-transition: 0.15s ease-out;
  -moz-transition: 0.15s ease-out;
  -o-transition: 0.15s ease-out;
  transition: 0.15s ease-out;
}

.switch-input:checked + .switch-label:hover {
	opacity: 1;
}

.switch-input:checked + .switch-label-on ~ .switch-selection {
  left: 80px;
  /* Note: left: 50% doesn't transition in WebKit */
}

.switch-selection {
  display: block;
  position: absolute;
  z-index: 1;
  top: 2px;
  left: 2px;
  width: 78px;
  height: 32px;
  background: #3A5B91;
  border-radius: 3px;
  -webkit-transition: left 0.15s ease-out;
  -moz-transition: left 0.15s ease-out;
  -o-transition: left 0.15s ease-out;
  transition: left 0.15s ease-out;
}



/* -----------------------------------------------------
2. Media Query Breakpoints
----------------------------------------------------- */
@media only screen and (max-width : 909px) {
  .switch {
    width: 120px;
  }

  .switch-label {
    width: 58px;
  }


  .switch-input:checked + .switch-label-on ~ .switch-selection {
    left: 60px;
    /* Note: left: 50% doesn't transition in WebKit */
  }

  .switch-selection {
    width: 58px;
  }

}