@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

body {
  margin: 0;
  padding: 0;
  background-color: #121212;
  color: #e0e0e0;
  font-family: 'Inter', sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
}

h1, h2 {
  margin: 20px 0;
  font-weight: 700;
}

.container {
  width: 90%;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

#letter-selection {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.letter-btn {
  background-color: #1f1f1f;
  color: #e0e0e0;
  border: 1px solid #333;
  padding: 10px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.letter-btn:hover {
  background-color: #2c2c2c;
}

.letter-btn.selected {
  background-color: #4CAF50;
  color: white;
}

.select-buttons {
  display: flex;
  gap: 10px;
}

.margins {
  margin-top: 30px;
  margin-bottom: 30px;
}

button {
  background-color: #2c2c2c;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.2s ease;
}

button:hover {
  background-color: #3d3d3d;
}

.start-btn {
  background-color: #4CAF50;
}

.start-btn:hover {
  background-color: #43A047;
}

form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
}

.question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #1f1f1f;
  padding: 15px 20px;
  border-radius: 6px;
  border: 1px solid #333;
  width: 80%;
}

.morse-symbol {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 400px;
}

.dot, .dash {
  background-color: #e0e0e0;
  scale: 1.1;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dash {
  width: 40px;
  height: 12px;
  border-radius: 4px;
}

input[type="text"] {
  width: 50px;
  padding: 8px;
  border-radius: 4px;
  border: 1px solid #555;
  background-color: #1a1a1a;
  color: #e0e0e0;
  text-align: center;
  font-size: 1rem;
}

input[type="text"]:focus {
  outline: none;
  border-color: #2196F3;
}

.correct {
  color: #4CAF50;
}

.incorrect {
  color: #f44336;
}

#results {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

h2 {
  margin-top: 20px;
  font-weight: 700;
}

button:focus {
  outline: none;
}

@media (max-width: 600px) {
  .question {
    align-items: center;
    text-align: center;
    padding: 12px;
  }

  .morse-symbol {
    width: 100%;
    justify-content: center;
  }

  input[type="text"] {
    width: 40px;
    font-size: 0.9rem;
  }

  button {
    width: 100%;
    max-width: 300px;
  }

  .select-buttons {
    flex-direction: column;
    gap: 8px;
  }

  .letter-btn {
    padding: 8px 10px;
    font-size: 0.9rem;
  }
}
