* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  outline: 0 none;
  text-shadow: 1px 1px 2px rgba(0,0,0,.33);
}
html, body {
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  height: 100%;
  width: 100%;
  text-align: center;
  background: #111 url("bg.png");
  color: #ddd;
  font-family: monospace;
  font-weight: bold;
  position: absolute;
  font-size: 16px;
  white-space: nowrap;
}
body::before {
  content: "";
  display: inline-block;
  height: 100%;
  vertical-align: middle;
}
#wrapper {
  display: inline-block;
  vertical-align: middle;
  padding: 2em;
  max-width: 90%;
  max-height: 90%;
  overflow: auto;
  background-color: #222;
  box-shadow: 2px 2px 5px rgba(0,0,0,.33);
  border-radius: 3px;
}
#settings, #menu {
  margin-bottom: 1em;
}

label, input, .button {
  display: inline-block;
  font-size: inherit;
  height: 3em;
  line-height: 3em;
  vertical-align: middle;
  padding: 0 1em;
  border: 2px solid #333;
  box-shadow: 1px 1px 2px rgba(0,0,0,.4);
  background-color: #333;
  color: inherit;
  font-weight: inherit;
  text-decoration: none;
  -moz-appearance: none;
  transition: .2s background, .2s border;
}
label:hover,
.button:hover,
label:hover + input
{
  background-color: #444;
  border-color: #444;
}
label, .button {
  cursor: pointer;
}
input {
  background: #111 !important;
  box-shadow: inset 1px 1px 3px rgba(0,0,0,.4),
              1px 1px 2px rgba(0,0,0,.4);
}
.button::-moz-focus-inner {
    padding: 0;
    border: 0
}

.minefield-wrapper {
  margin: 1em 0;
}
#minefield {
  display: inline-block;
  border-collapse: collapse;
  // background-color: #333;
  border: .5em solid #333;
  font-size: 1.2em;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
#minefield td {
  cursor: default;
  border: 1px solid #333;
  text-shadow: none;
}
#minefield .icon {
  height: 1em;
  line-height: 1em;
}
.minefield-button,
.minefield-uncovered
{
  display: inline-block;
  vertical-align: bottom;
  height: 1.5em;
  width: 1.5em;
  line-height: 1.5em;
  border: 2px solid transparent;
}
.minefield-button {
  background-color: #333;
  border-color: #444 #222 #222 #444;
  cursor: pointer;
}
.minefield-button:hover {
  background-color: #444;
  border-color: #555 #333 #333 #555;
}
.minefield-adjacent-0 { color: transparent; text-shadow: none; }
.minefield-adjacent-1 { color: #55f; } /* blue */
.minefield-adjacent-2 { color: #5f5; } /*green*/
.minefield-adjacent-3 { color: red; }
.minefield-adjacent-4 { color: violet; }
.minefield-adjacent-5 { color: orange; }
.minefield-exploded, .minefield-exploded:hover {
  background-color: #f50;
}
