@font-face {
  font-family: 'Open Sans';
  src: url('../fonts/OpenSans-Regular.ttf') format('truetype');
}
@font-face {
  font-family: 'Open Sans Bold';
  src: url('../fonts/OpenSans-Bold.ttf') format('truetype');
}
@font-face {
  font-family: 'Courier Prime';
  src: url('../fonts/CourierPrime-Regular.ttf') format('truetype');
}
@font-face {
  font-family: 'Courier Prime Bold';
  src: url('../fonts/CourierPrime-Bold.ttf') format('truetype');
}
@font-face {
  font-family: 'Courier Prime Italic';
  src: url('../fonts/CourierPrime-Italic.ttf') format('truetype');
}
@font-face {
  font-family: 'Courier Prime Bold Italic';
  src: url('../fonts/CourierPrime-BoldItalic.ttf') format('truetype');
}

body {
    font-family: "Open Sans", Arial, Tahoma, Geneva, sans-serif;
    margin: 0;
    padding: 0;
    color: #555;
    font-size: 1rem;
}

form {
    width: 100%;
}

h1 {
    font-size: 2em;
    line-height: 1.75em;
    margin-bottom: 0.2em;
    text-align: center;
    color: #45c03f;
    background-color: #000;
}

h2 {
    font-size: 1.5em;
}

p {
    line-height: 1.5em;
}

a {
    color: SteelBlue;
}

a:hover {
    color: #36658c;
}

input[type="text"], input[type="email"], input[type="password"], select {
    padding: 0.6em 0.6em;
    font-size: 1em;
    border: 1px #333 solid;
    box-sizing: border-box;
}

input[type="text"]:focus, textarea:focus, input[type="email"]:focus, input[type="password"]:focus, select:focus {
    border: 1px SteelBlue solid;
    outline: 0;
}

input[type="text"], input[type="email"], input[type="password"], button, textarea, select {
    border-radius: 6px;
}

textarea {
    padding: 0.6em 0.6em;
    font-size: 1.231em;
    width: 100%;
    height: 100%; 
    box-sizing: border-box;
    border: 1px #333 solid; 
    line-height: 1.6em;       
}

label {
    margin: 1.4em 0 0.4em 1em;
    font-weight: bold;
    clear: both;
    display: inline-block;
}

button {
    background-color: SteelBlue;
    border: 1px SteelBlue solid;
    margin: 1em .5em;
    padding: 0.6em 1.2em;
    color: #fff;
    font-size: 0.9em;
    cursor: pointer;
    transition: 0.6s;
}

button:hover {
    background-color: #36658c;
    border: 1px #36658c solid;
}

.alt {
    background-color: transparent;
    border: 1px SteelBlue solid;
    color: #333;        
}

.alt:hover {
    background-color: transparent;
    border: 1px #36658c solid;
    color: SteelBlue;
}

ul {
    margin: 2em 0;
    list-style-type: circle;
}

li {
    line-height: 1.8em;
}

input[type="checkbox"] {
  top: 0.3em;
  position: relative;
  width: 1.4em; height: 1.4em;
}

input[type="radio"] {
    margin: 1.6em 0 2em 1em;
}

hr {
    border: 0;
    height: 1px;
    background: #555;
    margin: 2em 0;
}

@media screen and (max-width: 550px) {
  button {
    width: 100%;
  }
}

/* Application specific CSS */

header {
    display: inline-block;
    margin: 0 20px;
    text-align: center;
    font-family: "Open Sans Bold", Arial, Tahoma, Geneva, sans-serif;
    font-size: 2em;
    font-weight: bold;
}

#hide-solutions {
    display: none;
}

.game {
    display: block;
    margin-left: 20px;
}

.puzzle {
    display: inline-block;
    caret-color: transparent;
}

.instructions {
    display: inline-block;
    vertical-align: top;
    margin: 0 0 0 20px;
    font-family: "Open Sans Bold", Arial, Tahoma, Geneva, sans-serif;
    font-size: .5em !important;
    width: 50%;
}

.game {
    font-family: "Courier Prime", monotype;
    font-size: 2em;
}

.game tbody td {
    text-align: center;
    border: solid #ccc 3px;
    height: 50px;
    width: 50px;
}

.game tbody td.verify {
    border: solid transparent 3px;
}

.game tbody td input[type="text"] {
    display: inline-block;
    padding: 13px 15px;
    margin: 0;
    font-family: "Courier Prime", monotype;
    font-size: 1em;
    border: none;
    outline: none;
    box-sizing: auto;
    border-radius: 0;
    height: 50px;
    width: 50px;
}

input[type="text"]#word {
    width: 4em;
}

.game tbody td input[type="text"]:focus {
    border: none;
    outline: none;
    background-color: orange;
}

.game tbody td.grid {
    color: royalblue;
}

.game tbody td.error {
    background-color: #f99;
}

.game tbody td.solved,
.game tbody td.solved input[type="text"] {
    background-color: #9f9;
}

.game tbody td input[type="text"], input[type="email"], input[type="password"], button, textarea, select {
}

.solution {
    display: inline-block;
    font-family: "Courier Prime", monotype;
    margin: 10px;
    border: solid #ccc 1px;
}

.solution table {
    float: left;
    padding: 10px;
}

.error {
    color: red;
}

.success {
    color: green;
}

.big {
    font-size: 1em;
}

#loading {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 100;
}

#winner {
    display: none;
    position: absolute;
    top: 10px;
    left: 0;
    width: 800px;
    z-index: 100;
}
