@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  src: local('Roboto'), local('Roboto-Regular'), url(./assets/Roboto-Regular.woff2) format('woff2');
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 700;
  src: local('Roboto Bold'), local('Roboto-Bold'), url(./assets/Roboto-Bold.woff2) format('woff2');
}

* {
    font-family: 'Roboto', sans-serif;
    user-select:none;
}

html, body {
    height: 100%;
}

body {
    margin: 0;
    cursor: default;
    background-color: #333;
	color: #ccc;
}

a {
	text-decoration: none;
	color: #eee;
}
a:hover {
	text-decoration: underline;
	color: #ddd;
}

#help {
	position: absolute;
	top: 6px;
	right: 6px;
}

#feedback {
	position: absolute;
	bottom: 6px;
	left: 6px;
}

#footer {
	position: absolute;
	bottom: 6px;
	right: 6px;
}

input {
    user-select: text;
    -webkit-appearance: none;
    -webkit-border-radius: 0;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

#main {
	border-radius: 6px;
	background: #78909c;
    padding: 12px;
    transform: translate(-50%, -50%);
    left: 50%;
    top: 50%;
    position: absolute;
	color: #000;
}

#main.generating #table, #main.youwin #table {
    width: 200px !important;
}

#main.generating #table {
    padding-top: 0;
}

#main.generating #menu, #main.youwin #hint {
    display: none;
}

#table {
    position: relative;
    margin: 0 auto;
    font-size: 32px;
    text-align: center;
    font-style: italic;
    clear: both;
    padding-top: 6px;
}

#table > div {
    height: 56px;
    width: 56px;
    display: inline-block;
    position: relative;
    color: rgba(255, 255, 255, .87);
}

#table > div > span {
    position: absolute;
    top: 1px;
    left: 4px;
    clear: both;
    font-weight: bold;
    font-size: 16px;
    font-style: normal;
    pointer-events: none;
    -webkit-user-select: none;
}

#table > div > input {
    text-align: center;
    font-size: 25px;
    height: 55px;
    width: 55px;
    padding: 0;
    border-style: dashed;
    border-width: 2px;
    border-color: rgba(0, 0, 0, 0.74);
    outline-width: 0;
    transition: box-shadow 0.1s;
}

#table > div.n > input {
    border-top-style: solid;
    border-top-color: rgba(0, 0, 0, 0.87);
}
#table > div.e > input {
    border-right-style: solid;
    border-right-color: rgba(0, 0, 0, 0.87);
}
#table > div.s > input {
    border-bottom-style: solid;
    border-bottom-color: rgba(0, 0, 0, 0.87);
}
#table > div.w > input {
    border-left-style: solid;
    border-left-color: rgba(0, 0, 0, 0.87);
}

#table > div > input.flash {
    box-shadow: 0 0 55px #fff inset;
}

#table > div > input.flash.wrong {
    box-shadow: 0 0 55px #f00 inset;
}

#menu {
    text-align: center;
    -webkit-user-select: none;
}

#size, #new {
    float: left;
}

#size, #hint {
    font-size: 16px;
}

#hint {
    float: right;
}

.r0 input {
    border-color: #000;
    background-color: #e53935;
    color: #fff;
}
.r1 input {
    border-color: #000;
    background-color: #e91e63;
    color: #fff;
}
.r2 input {
    border-color: #000;
    background-color: #ba68c8;
    color: #fff;
}
.r3 input {
    border-color: #000;
    background-color: #9575cd;
    color: #fff;
}
.r4 input {
    border-color: #000;
    background-color: #7986cb;
    color: #fff;
}
.r5 input {
    border-color: #000;
    background-color: #1e88e5;
    color: #fff;
}
.r6 input {
    border-color: #000;
    background-color: #0288d1;
    color: #fff;
}
.r7 input {
    border-color: #000;
    background-color: #0097a7;
    color: #fff;
}
.r8 input {
    border-color: #000;
    background-color: #00897b;
    color: #fff;
}
.r9 input {
    border-color: #000;
    background-color: #388e3c;
    color: #fff;
}
.r10 input {
    border-color: #000;
    background-color: #558b2f;
    color: #fff;
}
.r11 input {
    border-color: #000;
    background-color: #9e9d24;
    color: #fff;
}
.r12 input {
    border-color: #000;
    background-color: #f57f17;
    color: #fff;
}
.r13 input {
    border-color: #000;
    background-color: #ff6f00;
    color: #fff;
}
.r14 input {
    border-color: #000;
    background-color: #e65100;
    color: #fff;
}
.r15 input {
    border-color: #000;
    background-color: #d84315;
    color: #fff;
}
