/*
		Default puzzle styling
	*/
body main {
  font: 62.5%/1.3em serif;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
  max-width: 100%;
  width: fit-content;
}
table tr {
  width: 100%;
}
table td {
  width: 3em;
  height: 3em;
  padding: 0;
  margin: 0;
  background-color: #444;
  position: relative;
}

td input {
  width: 100%;
  height: 100%;
  padding: 0em;
  border: none;
  text-align: center;
  font-size: 2em;
  color: #666;
  background-color: #fdf6e3;
}

td input:focus {
  background-color: #fff;
}

td span {
  color: #444;
  font-size: 0.6em;
  position: absolute;
  top: -1px;
  left: 1px;
}

input.done {
  font-weight: bold;
  color: green;
}

.active,
.clues-active {
  background-color: #ddd;
}
.clue-done {
  color: #999;
  text-decoration: line-through;
}

#puzzle-wrapper {
  float: left;
  width: 54%;
  margin-right: 3%;
}
#puzzle-clues {
  float: left;
  width: 40%;
}

#puzzle-clues li {
  font-size: 1.2em;
  margin: 0.3em;
  line-height: 1.6em;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  #puzzle-wrapper {
    float: none;
    width: 100%;
    margin-right: 0;
  }
  #puzzle-clues {
    float: none;
    width: 100%;
    margin-top: 20px;
  }
  table td {
    width: 3em;
    height: 3em;
  }
  td input {
    font-size: 2em;
  }
  td span {
    font-size: 0.6em;
  }
}
