body {
  font-family: arial, helvetica, sans-serif;
  font-size: 14px;
  letter-spacing: 1px; }

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  padding: 0; }

ul {
  margin: 0 0 0 5px;
  padding: 0;
  list-style-position: inside; }

p {
  margin: 0 0 20px; }

button.active {
  border-bottom: 4px solid #555;
  position: relative;
  bottom: 10px;
  margin-bottom: -4px; }

.wrapper {
  display: block;
  margin: 0 auto;
  width: 940px;
  position: relative; }

.map {
  border-collapse: collapse;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none; }
  .map .map-row {
    display: block;
    float: left;
    line-height: 0;
    position: relative; }
  .map .map-tile {
    border: 1px solid #aaa;
    width: 40px;
    height: 40px;
    margin: 0;
    padding: 0;
    cursor: pointer;
    position: relative;
    display: inline-block; }
    .map .map-tile:hover {
      border-color: #0af; }
    .map .map-tile[data-status="closed"] {
      background: #000; }
    .map .map-tile[data-status="begin"] {
      background: #0d0; }
    .map .map-tile[data-status="end"] {
      background: #d00; }
    .map .map-tile[data-status="set-closed"] {
      background: #8B7A5E; }
    .map .map-tile[data-status="set-opened"] {
      background: #9FD6D2; }
    .map .map-tile[data-status="path"] {
      background: #f0f; }
    .map .map-tile[data-status="jump"] {
      background: #FDD5B1; }

.cf:before, .cf:after {
  content: " ";
  /* 1 */
  display: table;
  /* 2 */ }
.cf:after {
  clear: both; }

form label {
  display: block;
  font-size: 120%;
  font-weight: bold; }
  form label small {
    font-size: 14px;
    font-weight: normal;
    letter-spacing: 0; }
form ul {
  list-style: none; }
  form ul li {
    display: block;
    margin-bottom: 10px; }
form input {
  width: 50px; }

.line {
  -webkit-transform-origin: 0 100%;
  transform-origin: 0 100%;
  height: 3px;
  /* Line width of 3 */
  background: #000;
  /* Black fill */
  opacity: 0.5; }
  .line:hover {
    opacity: 1; }

#map-wrapper {
  position: relative;
  padding-top: 20px;
  margin-right: 160px; }

#map {
  position: relative; }

.grid-container {
  position: absolute;
  left: 0;
  top: 0; }
  .grid-container.y {
    top: 20px; }

.grid {
  opacity: 0.8; }
  .grid.x {
    width: 42px;
    text-align: center;
    display: block;
    float: left;
    margin-bottom: 5px; }
  .grid.y {
    line-height: 42px;
    display: block;
    height: 42px;
    margin-left: -45px;
    text-align: right;
    width: 40px; }

.stat {
  position: absolute;
  font-size: 11px; }

.stat.f,
.stats-preview .f {
  top: 10px;
  left: 3px;
  position: absolute; }

.stat.g,
.stats-preview .g {
  bottom: 10px;
  left: 3px;
  position: absolute; }

.stat.h,
.stats-preview .h {
  position: absolute;
  bottom: 10px;
  right: 3px; }

.stat.c,
.stats-preview .c {
  position: absolute;
  top: 10px;
  right: 3px;
  opacity: 0.5; }

.stats-preview .m {
  position: absolute;
  top: 35px;
  left: 20px;
  text-align: center; }

.stat.m {
  position: absolute;
  top: 21px;
  left: 16px;
  text-align: center; }

.stats-preview {
  width: 100px;
  height: 100px;
  background: #9FD6D2;
  border: 5px solid #aaa;
  display: block;
  font-size: 22px;
  position: relative; }

.break {
  margin-bottom: 20px;
  display: block; }

.break.alt {
  margin-bottom: 10px; }

.legend-wrapper {
  float: right;
  z-index: 10; }
  .legend-wrapper * {
    display: block; }

.legend {
  padding: 0;
  background: #ddd;
  display: inline-block;
  list-style: none;
  border: 1px solid #aaa;
  margin-left: 0; }

.legend li {
  border-left: 30px solid #fff;
  padding: 5px 20px 5px 10px; }

.legend .closed {
  border-color: #000; }

.legend .begin {
  border-color: #0d0; }

.legend .end {
  border-color: #d00; }

.legend .set-opened {
  border-color: #9FD6D2; }

.legend .set-closed {
  border-color: #8B7A5E; }

.legend .path {
  border-color: #f0f; }

.legend .jump {
  border-color: #FDD5B1; }
