@import url('https://fonts.googleapis.com/css?family=Roboto+Mono:400,700');

body {
  font-family: 'Roboto Mono', monospace;
  font-weight: 400;
  background-color: #90a9d1;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
  cursor: default;
}

.button {
  display: inline-block;
  height: 100px;
  width: 100px;
  margin: 5px 3px;
  filter: brightness(40%);
  cursor: pointer;
}

.bright {
  filter: brightness(100%);
}

#board {
  text-align: center;
  margin-top: 50px;
}

.red {
  background-color: red;
  border-radius: 50px 0 0 0;
}

.blue {
  background-color: blue;
  border-radius: 0 50px 0 0;
}

.green {
  background-color: green;
  border-radius: 0 0 0 50px;
}

.yellow {
  background-color: yellow;
  border-radius: 0 0 50px 0;
}

#victory {
  position: absolute;
  font-size: 2.5em;
  left: 50%;
  top: 90px;
  width: 170px;
  transform: translate(-50%, 0);
  z-index: 1;
  background-color: #DDD;
  padding: 10px;
  visibility: hidden;
}

#victory span {
  font-size: 0.5em;
}

#levelDisplay {
  text-align: center;
  margin-top: 20px;
}

#buttons {
  text-align: center;
}

.srbutton {
  display: inline-block;
  margin: 0 50px;
  background-color: #556687;
  height: 40px;
  width: 80px;
  line-height: 40px;
  color: #DDD;
  opacity: 0.6;
}

.active {
  opacity: 1;
  cursor: pointer;
}

#controls {
  text-align: center;
  margin-top: 20px;
}

.label {
  width: 300px;
  margin: 0 auto 10px auto;
}

.sublabel {
  margin-top: 5px;
  font-size: 0.8em;
}

/* STRICT SWITCH */

/* The switch - the box around the slider */
.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

/* Hide default HTML checkbox */
.switch input {display:none;}

/* The slider */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked + .slider {
  background-color: #ff8282;
}

input:focus + .slider {
  box-shadow: 0 0 1px #ff8282;
}

input:checked + .slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

/* BACKGROUND COLOUR STUFF */

@-webkit-keyframes fadeWrong {
  0%   { background-color: #90a9d1; }
  50%  { background-color: #AD301B; }
  100% { background-color: #90a9d1; }
}
@-moz-keyframes fadeWrong {
  0%   { background-color: #90a9d1; }
  50%  { background-color: #AD301B; }
  100% { background-color: #90a9d1; }
}
@-o-keyframes fadeWrong {
  0%   { background-color: #90a9d1; }
  50%  { background-color: #AD301B; }
  100% { background-color: #90a9d1; }
}
@keyframes fadeWrong {
  0%   { background-color: #90a9d1; }
  50%  { background-color: #AD301B; }
  100% { background-color: #90a9d1; }
}

.backgroundWrong{    
    background-image:none !important;
    -webkit-animation: fadeWrong 1s; 
       -moz-animation: fadeWrong 1s; 
         -o-animation: fadeWrong 1s; 
            animation: fadeWrong 1s; 
}

@-webkit-keyframes fadeRight {
  0%   { background-color: #90a9d1; }
  50%  { background-color: #76cc79; }
  100% { background-color: #90a9d1; }
}
@-moz-keyframes fadeRight {
  0%   { background-color: #90a9d1; }
  50%  { background-color: #76cc79; }
  100% { background-color: #90a9d1; }
}
@-o-keyframes fadeRight {
  0%   { background-color: #90a9d1; }
  50%  { background-color: #76cc79; }
  100% { background-color: #90a9d1; }
}
@keyframes fadeRight {
  0%   { background-color: #90a9d1; }
  50%  { background-color: #76cc79; }
  100% { background-color: #90a9d1; }
}

.backgroundRight{    
    background-image:none !important;
    -webkit-animation: fadeRight 1s; 
       -moz-animation: fadeRight 1s; 
         -o-animation: fadeRight 1s; 
            animation: fadeRight 1s; 
}