.top-img-section {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}
.top-banner {
  max-width: 600px;
}
.left-banner-section {
  display: flex;
  align-items: center;
  height: 100%;
}
.left-banner-section img {
  max-width: 108px;
}
.crossword {
  margin: 1em auto;
  position: relative;
  font-family: sans-serif;
  min-height: 400px;
  min-width: 300px;
  margin: 0 auto;
  background: #f8f9fa;
  border: 2px solid #dee2e6;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.page-header {
  font-weight: 700;
  letter-spacing: 2px;
  color: #003366;
}
.h4 {
  text-align: center;
}
.crossword-clues {
  font-size: 14px;
}
.across-clues,
.down-clues {
  padding: 0 5px;
}
.card-header {
  font-size: 1.1em;
}
.list-group-item label {
  font-weight: normal;
  margin-bottom: 0;
}

.crossword-buttons {
  clear: both;
  text-align: center;
  padding-top: 1em;
}
.crossword-buttons button {
  margin: 0 0.5em;
  min-width: 200px;
}
table.crossword-grid {
  width: 100%;
  max-width: 100%;
  border-spacing: 0;
  border-collapse: collapse;
}
.grid-row {
  clear: left;
}
.grid-square {
  position: relative;
  background-clip: padding-box;
}
.grid-square:after {
  content: "";
  display: block;
  margin-top: 100%;
}
.grid-square.active {
  border: 1px solid black;
  background: #fff;
}
.grid-square.current-word {
  background-color: #ffff99;
}
.grid-square.correct-across,
.grid-square.correct-down {
  background-color: #dff0d8;
}
.grid-square.correct-across.current-word,
.grid-square.correct-down.current-word {
  background-color: #dff082;
}
.grid-square .word-label {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  line-height: 1;
  font-size: calc(8px + 0.25vw);
  color: #000;
  pointer-events: none;
}
.grid-square input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  text-align: center;
  font-size: 1.5em;
  font-size: calc(10px + 0.5vw);
  font-weight: 600;
  border: 0;
  padding: 0;
  text-transform: uppercase;
  border-radius: 0;
  background: transparent;
}

.crossword-clues li {
  position: relative;
}
.crossword-clues li label {
  display: block;
  font-weight: normal;
  cursor: pointer;
}
.crossword-clues li.active {
  background: #ffff99;
  color: #000;
}
.crossword-buttons {
  display: flex;
  justify-content: center;
  gap: 1em;
  margin: 1.5em 0 1em 0;
}
.crossword-buttons button {
  min-width: 140px;
  font-size: 1.05em;
  font-weight: 500;
  border-radius: 25px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.07);
  transition: background 0.2s, color 0.2s;
}
.crossword-buttons button i {
  margin-right: 0.5em;
}
.crossword-clues li.correct {
  background: transparent;
  color: green;
  text-decoration: line-through;
}
.crossword-clues li.correct.active {
  background: #dff082;
}
.crossword-clues li.correct label:before {
  content: "\f00c";
  display: inline-block;
  font: normal normal normal 14px/1 FontAwesome;
  font-size: inherit;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: absolute;
  left: 0;
  top: 0.1em;
}
.crossword-clues a.hint {
  display: none;
}
.show-hints.crossword-clues a.hint {
  display: inline;
}
.clue-tooltip {
  position: absolute;
  z-index: 10;
  background: rgba(255, 196, 35, 0.9);
  padding: 4px 10px;
  margin-bottom: 10px;
  transform: translateY(-100%);
  max-width: 90vw;
}
.clue-tooltip .clue-tooltip-arrow {
  display: block;
  border: 8px solid transparent;
  border-top-color: rgba(255, 196, 35, 0.9);
  border-bottom: none;
  position: absolute;
  top: 100%;
}

/*  */

.grid-square {
  background: #000;
}

@media (max-width: 767px) {
  .top-banner {
    max-width: 100%;
  }
  .left-banner-section img {
    max-width: unset;
    width: 100%;
  }
  .crossword {
    min-width: unset;
    padding: 0.5em;
  }
  .crossword-buttons {
    gap: 10px;
  }
  .crossword-buttons button {
    min-width: 75px;
    font-size: 10px;
    margin: 0;
  }

  .crossword-puzzle {
    min-width: unset;
    padding: 0.5em;
    padding-left: 0;
  }
  .crossword-clues {
    font-size: 13px;
    margin-top: 1em;
  }
}
