/* styles.css */

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 2rem;
  background-color: #fdfdfd;
  color: #333;
  text-align: center;
}

h1 {
  margin-bottom: 2rem;
}

.three-columns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.column {
  background-color: #ffffff;
  border: 2px solid #ccc;
  border-radius: 12px;
  padding: 1rem;
  width: 250px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.column h2 {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.word-pattern {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.letter-slot {
  border-bottom: 2px solid #888;
  min-width: 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.letter-slot.active {
  background-color: #d0e8ff;
  transform: scale(1.1);
}

.letter-slot.filled {
  font-weight: bold;
}

.letter-slot.correct {
  color: green;
  border-color: green;
}

.letter-slot.incorrect {
  color: red;
  border-color: red;
  animation: shake 0.3s ease-in-out;
}

@keyframes shake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  50% { transform: translateX(5px); }
  75% { transform: translateX(-5px); }
  100% { transform: translateX(0); }
}

.vowel-picker {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.vowel-picker button {
  padding: 0.5rem 1rem;
  font-size: 1.2rem;
  border: none;
  background-color: #f0f0f0;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}

.vowel-picker button:hover {
  background-color: #e0e0e0;
}

.hidden {
  display: none;
}

#next-btn, #check-btn {
  padding: 0.75rem 2rem;
  font-size: 1rem;
  background-color: #1976d2;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}

#next-btn:hover {
  background-color: #145ea8;
}

.column.correct {
  border: 2px solid green;
}

.column.incorrect {
  border: 2px solid red;
}

/* Lebegő kérdőjel gomb */
.floating-help {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #007BFF;
  color: white;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transition: background-color 0.2s;
}
.floating-help:hover {
  background-color: #0056b3;
}

/* Felugró szabálypanel (modal) */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  background-color: white;
  padding: 20px 30px;
  border-radius: 12px;
  max-width: 600px;
  width: 90%;
  box-shadow: 0 8px 16px rgba(0,0,0,0.3);
  position: relative;
  line-height: 1.6;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 16px;
  font-size: 24px;
  color: #888;
  cursor: pointer;
}

.close-btn:hover {
  color: #000;
}

.hidden {
  display: none;
}

.final-panel {
  background-color: #f9f9f9;
  border: 2px solid #ccc;
  border-radius: 12px;
  padding: 30px;
  max-width: 500px;
  margin: 40px auto;
  text-align: center;
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.final-panel h2 {
  font-size: 2em;
  margin-bottom: 20px;
  color: #2d6a4f;
}

.final-panel p {
  font-size: 1.2em;
  margin: 10px 0;
}

.final-panel button {
  margin-top: 20px;
  padding: 10px 24px;
  font-size: 1em;
  background-color: #007BFF;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.final-panel button:hover {
  background-color: #0056b3;
}




@media (max-width: 800px) {
  .three-columns {
    flex-direction: column;
    align-items: center;
  }
}
