body {
  margin: 0px;
  color: #666;
  font-family: 'Raleway';
  background: #7ec9c9; /* Old browsers */
background: -moz-linear-gradient(top, #7ec9c9 0%, #b3d6c9 19%, #fff7e2 58%, #ffffff 96%); /* FF3.6-15 */
background: -webkit-linear-gradient(top, #7ec9c9 0%,#b3d6c9 19%,#fff7e2 58%,#ffffff 96%); /* Chrome10-25,Safari5.1-6 */
background: linear-gradient(to bottom, #7ec9c9 0%,#b3d6c9 19%,#fff7e2 58%,#ffffff 96%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#7ec9c9', endColorstr='#ffffff',GradientType=0 );
}
canvas { width: 100%; height: 100%; }
ul, p, h2 { padding: 0; margin: 0;}
* {box-sizing: border-box;}

button {
  font-size: 1.5em;
  color: #666;
  border-radius: 5px;
  background: none;
  border: 1px solid #888;
  outline: none;
  cursor: pointer;
  padding: 5px 10px;
}

body > button {
  border: none;
  padding: 20px;
  position: absolute;
  width: 72px;
  height: 64px;
  margin: auto;
  top: 0;
  text-align: center;
}
body > button:not(:disabled):hover {
  color: #444;
}
body > button:disabled {
  cursor: default;
  opacity: 0.4;
}
#reset-level {
  left: 0; right: 0;
}
#last-level {
  left: 0;
}
#next-level {
  left: 64px;
}
#show-instructions {
  right: 0;
  font-size: 1.2em;
}
.error {
  color: red;
}
.overlay {
  width: 100%;
  height: 100%;
  background-color: transparent;
  position: absolute;
  top: 0; left: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.overlay > div {
  width: 50%;
  height: 160px;
  background-color: rgba(255, 255, 255, 0.8);
  margin: auto;
  position: absolute;
  top: 0; bottom: 0; left: 0; right: 0;
  padding: 20px;
  border-radius: 5px;
  -moz-box-shadow:    1px 1px 6px rgba(0, 0, 0, 0.1);
  -webkit-box-shadow: 1px 1px 6px rgba(0, 0, 0, 0.1);
  box-shadow:         1px 1px 6px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.15);
  text-align: center;
}
.overlay.visible { opacity: 1; }
.overlay.visible > div { pointer-events: all; }

#complete > div {
  text-align: center;
}

#complete h2 {
  margin-bottom: 30px;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

#complete button:disabled {
  display: none;
}

#instructions > div {
  display: flex;
  flex-direction:column;
  justify-content: space-between;
  align-items: center;
}

#instructions > div ul {
  list-style: none;
}

#instructions > div p {
  text-align: center;
  margin-bottom: 20px;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

#instructions > div > div:last-of-type {
  display: none;
}

#instructions.alt > div > div:first-of-type {
  display: none;
}

#instructions.alt > div > div:last-of-type {
  display: block;
}

#close-instructions {
  width: 100px;
}

#controls {
  position: absolute;
  top: 25%;
  left: 20px;
  text-align: center;
  width: 100%;
  margin-left: -20px;
}

#controls > li {
  display: inline-block;
  margin-right: 20px;
  position: relative;
}
#controls > li:last-of-type {
  margin-right: 0;
}

#controls .icon-dot-2, #controls .icon-circle-outline {
  position: relative;
  top: -5px;
}

#controls .icon-pointer {
  position: absolute;
  left: 4px;
  top: 5px;
  -ms-transform: rotate(-30deg); /* IE 9 */
  -webkit-transform: rotate(-30deg); /* Chrome, Safari, Opera */
  transform: rotate(-30deg);
}

#title {
  position: absolute;
  width: 100%;
  text-align: left;
  bottom: 0;
  padding: 20px;
}
#splits {
  position: absolute;
  text-align: center;
  padding: 20px;
  bottom: 0; right: 0;
  transition: color 0.2s ease;
}
#splits i {
  display: block;
  position: absolute;
  width: 22px;
  margin: auto;
  bottom: 10px;
  left: 0; right: 0;
}
#splits:after {
  content: 'You have no remaining splits';
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: 0; right: 0;
  width: 200px;
  font-size: 0.8em;
  font-weight: normal;
  color: #444;
  transition: opacity 0.2s ease;
}
#splits.error {
  font-weight: bold;
}
#splits.error:after {
  opacity: 1;
}
