/* Alap */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', sans-serif;
}

body {
  background: #f5f7fa;
  color: #333;
  font-size: 16px;
  line-height: 1.6;
}

.container {
  max-width: 900px;
  margin: 40px auto;
  padding: 20px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* Fejléc és nyelvválasztó */
.header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.header-row h2 {
  margin: 0;
  font-size: 22px;
}

.lang-dropdown select {
  padding: 6px 10px;
  font-size: 14px;
  border-radius: 6px;
  border: 1px solid #ccc;
  background: white;
  font-weight: bold;
  cursor: pointer;
  min-width: 140px;
}

/* Táblázatok */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

table th, table td {
  border: 1px solid #ddd;
  padding: 10px;
  text-align: left;
}

table th {
  background: #f0f0f0;
}

/* Gombok */
button, .btn, input[type=submit] {
  background: #2c3e50;
  color: #fff;
  padding: 8px 15px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin-right: 5px;
  text-decoration: none;
}

button:hover, .btn:hover, input[type=submit]:hover {
  background: #34495e;
}

/* Űrlapok */
input[type=text], input[type=password], input[type=email], input[type=number], textarea, select {
  width: 100%;
  padding: 10px;
  margin: 10px 0 20px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

/* Navigáció */
nav ul {
  list-style: none;
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
}

nav a {
  text-decoration: none;
  color: #2c3e50;
  font-weight: bold;
}

nav a:hover {
  color: #1abc9c;
}

/* Login form */
.login-container {
  max-width: 400px;
  margin: 80px auto;
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.login-container h2 {
  text-align: center;
  margin-bottom: 20px;
}

.error {
  color: #c0392b;
  margin-bottom: 15px;
}

/* Kérdések */
.question-box {
  background: #f9f9f9;
  border-left: 4px solid #3498db;
  padding: 15px;
  margin: 20px 0;
}

.answer-row {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

/* Timer */
#timer {
  font-weight: bold;
  font-size: 18px;
  color: #e67e22;
  margin-bottom: 15px;
}

/* Reszponzivitás */
@media screen and (max-width: 600px) {
  .answer-row {
    flex-direction: column;
  }

  nav ul {
    flex-direction: column;
    gap: 10px;
  }

  .container {
    padding: 10px;
    margin: 10px;
  }

  .header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .lang-dropdown select {
    min-width: 100%;
  }
}

/* Táblázat gomb ne törjön */
table td .btn {
  white-space: nowrap;
  padding: 6px 12px;
  font-size: 14px;
  display: inline-block;
}

/* Kijelentkezés gomb elválasztása */
.logout-btn {
  margin-top: 25px;
  display: inline-block;
}

/* Modern teszt wrapper */
.test-wrapper {
  min-height: 100vh;
  background: linear-gradient(135deg, #f0f4f8, #d9e2ec);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.test-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  padding: 40px;
  max-width: 700px;
  width: 100%;
}

.test-card h2 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 24px;
  color: #2c3e50;
}

/* Modern kérdésdoboz finomhangolás */
.question-box-modern {
  border-left: 5px solid #1abc9c;
  background: #fdfdfd;
  padding: 20px 30px;
  margin: 30px 0;
  border-radius: 8px;
  margin-left: 30px; /* Tolás jobbra */
}

/* Kérdésszöveg erős kiemelés */
.question-box-modern p {
  font-weight: bold;
  margin-bottom: 15px; /* ez adja a fél üres sort a válaszok előtt */
}

/* Válasz opciók */
.answer-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 15px;
}

.answer-option {
  background: #f2f2f2;
  padding: 10px 15px;
  border-radius: 6px;
  transition: background 0.2s ease;
  cursor: pointer;
}

.answer-option:hover {
  background: #e0e0e0;
}

.answer-option input {
  margin-right: 10px;
}

/* Gomb sor */
.submit-btn-row {
  text-align: center;
  margin-top: 30px;
}

.btn.large {
  font-size: 16px;
  padding: 12px 30px;
}

/* Test Card (hiányzó osztályok) */
.test-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  background-color: #f5f7fa; /* vagy válaszd azt a háttérszínt, ami jobban illik a többihez */
  min-height: 100vh;
}

.test-card {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  padding: 25px;
  width: 100%;
  max-width: 700px;
  margin: 20px auto;
}

