#puzzle-pane {
  margin: 0;
}

#puzzle-title {
  font-size: 2rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
  text-align: center;
  font-weight: bold;
}

#puzzle-desc {
  font-size: 1.5rem;
  color: #aaa;
}

#puzzle-timer {
  margin: 1rem;
  overflow: hidden;
}

#puzzle-timer div {
  height: 5px;
}

#puzzle-timer.timer-bar div {
  animation: roundtime calc(var(--duration) * 1s) linear forwards;
  background-color: #080;
  background-image: linear-gradient(to bottom, #0a0,#030);
}

@keyframes roundtime {
  to {
    transform: scaleX(0);
  }
}

#puzzle {
  display: table;
  margin: 0 auto;
}

.clue-list {
  margin-top: 1rem;
}

.clue-list ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
  user-select: none;
}

.clue-list ul li.active {
  color: #7f7;
  /* font-size: 1.1rem; */
}

.cell {
  position: relative;
  box-sizing: border-box;
  color: #000;
  font-size: 1.5rem;
  width: 2em;
  height: 2em;
  background-color: #fff;
  padding: 0;
  display: table-cell;
  outline: 1px solid #000;
  outline-offset: -1px;
  user-select: none;
}

@media (max-width: 768px) {
  .cell {
    font-size: calc(90vw / 30);
    width: 2em;
    height: 2em;
  }
}

.cell-letter {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  text-transform: uppercase;
  font-weight: bold;
  text-align: center;
  width: 1.7rem;
  height: 1.7rem;
  line-height: 1.7rem;
}

.cell-number {
  position: absolute;
  top: 2px;
  left: 3px;
  width: 2rem;
  font-size: 0.5em;
}

.puzzle-row {
  margin: 0;
  padding: 0;
  display: table-row;
}

#puzzle-controls {
  width: 30em;
  margin: 0 auto;
}

#puzzle-clues {
  max-width: 30em;
  margin: 0 auto;
  line-height: 1.3em;
}

#puzzle-clues div {
  padding: 0;
}

@media (min-width: 769px) {
  #puzzle-clues div {
    height: 3.9em;
  }
}

.alt-active-boxes {
  background-color: #aaa;
}

.active-boxes {
  background-color: #aea;
}

.active-cell {
  background-color: #dfd;
  outline: 3px solid #f00;
  outline-offset: -3px;
}

.cell-black {
  background-color: #000;
  color: #fff;
}

.cell-hint {
  color: #080;
  /* background-color: #dfd; */
}

.cell-black.cell-hint {
  background-color: #393;
  color: #fff;
}

.cell-hint.current {
  color: #b33;
}

.cell-black.cell-hint.current {
  background-color: #b33;
  color: #fff;
}

#dummy-input {
  position: absolute;
  top: -999px;
  right: 99999999px;
  font-size: 1px;
  width: 2em;
  height: 2em;
}

#instructions-title {
  font-size: 2rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
  text-align: center;
  font-weight: bold;
}

#instructions-title span {
  cursor: pointer;
}

#instructions-detail {
  margin-left: auto;
  margin-right: auto;
}

#puzzle-controls div {
  text-align: center;
}

/** SWITCH FOR NUMBERS **/
/* The switch - the box around the slider */
.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

/* Hide default HTML checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* The slider */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #2196F3;
}

input:focus + .slider {
  box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}

#puzzle-clue-across.active span {
  color: #7f7;
}

#puzzle-clue-across span.wrong {
  color: #f77;
}

#puzzle-clue-down.active span {
  color: #7f7;
}

#puzzle-clue-down span.wrong {
  color: #f77;
}