.container {
  max-width: 1000px;
  margin: 10px auto;
  padding: 20px;
  text-align: center;
}

h1 {
  color: #333;
}

.hint {
  color: #666;
  font-style: italic;
  margin-bottom: 20px;
}

.crossword-container {
  display: flex;
  gap: 40px;
  justify-content: center;
  margin: 30px 0;
  align-items: flex-start;
}

.crossword {
  display: grid;
  grid-template-columns: repeat(10, 40px);
  grid-template-rows: repeat(10, 40px);
  gap: 1px;
  background-color: #333;
  padding: 1px;
  border-radius: 4px;
}

.cell {
  width: 40px;
  height: 40px;
  background-color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.cell.inactive {
  background-color: #333;
}

.cell input {
  width: 100%;
  height: 100%;
  border: none;
  text-align: center;
  font-size: 20px;
  text-transform: uppercase;
  background: transparent;
}

.cell input:focus {
  outline: 2px solid #2196F3;
}

.cell .number {
  position: absolute;
  top: 2px;
  left: 2px;
  font-size: 12px;
  color: #666;
}

.clues {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 250px;
  background-color: #f5f5f5;
  padding: 20px;
  border-radius: 8px;
}

.horizontal, .vertical {
  background-color: white;
  padding: 15px;
  border-radius: 8px;
}

.clue {
  margin: 10px 0;
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.emoji {
  cursor: pointer;
  font-size: 24px;
  padding: 2px 5px;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.emoji:hover {
  background-color: rgba(33, 150, 243, 0.1);
}

.button-group {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
}

.check-button, .reset-button {
  padding: 12px 24px;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.check-button {
  background-color: #4CAF50;
  color: white;
}

.reset-button {
  background-color: #f44336;
  color: white;
}

.check-button:hover {
  background-color: #45a049;
}

.reset-button:hover {
  background-color: #d32f2f;
}

.cell.correct {
  background-color: #e8f5e9;
}

.cell.incorrect {
  background-color: #ffebee;
}

.navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  padding: 0 20px;
}

.nav-button {
  background-color: #2196F3;
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 5px;
  font-size: 24px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.3s;
}

.nav-button:hover {
  background-color: #1976D2;
}

/* Prevent text selection */
.cell input, .button-group button, .nav-button {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .crossword-container {
    flex-direction: column;
    align-items: center;
  }

  .clues {
    width: 100%;
    max-width: 401px;
    margin-top: 20px;
  }
}
