body {
  font-size: 40px;
  padding: 0;
  margin: 0;
  background: #eafeff;
  color: #171414;
  display: flex;
  flex-direction: column;

  p, h1, h2, h3, h4, ul, button {
    padding: 0 0.5em;
  }

  button {
    margin: 1em;
  }

  p {
    line-height: 1.6;
  }

  a:link {
    color: #2000ff;
  }

  a:visited {
    color: #6664b3
  }

  a:hover {
    color: hotpink;
  }

  a:active {
    color: red;
  }

  .categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    padding: 1em;
    gap: 1em;
  }
}

@media only screen and (min-width: 1025px) {
  body {
    font-size: 20px;
    max-width: 1025px;
    align-items: center;  
    margin: 0 auto;
  }
}

.crossword {
  display: grid;
  width: 100%;
  max-width: 90vh;
  aspect-ratio: 1/1;
  box-shadow: 4px 8px 12px 2px rgba(0, 0, 0, 0.15);
}

.crossword-cell {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid #d6e7e7;
  background: #f9ffff;

  .cell-number {
    position: absolute;
    top: 1px;
    left: 3px;
    font-size: 0.4em;
  }

  .cell-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    border: none;
    padding: 0;
    pointer-events: none;
    /* 16px minimum keeps iOS Safari from zooming in when the input is focused */
    font-size: 16px;
  }

  &:hover {
    background: red;
  }
}

.crossword-cell.active {
  background: #7cb8f7;
}

.crossword-cell.wrong {
  background: #f28b82;
}

.crossword-cell.filled {
  background: #212121;
  border: none;
}
