/* ============ GLOBAL BLUE-GREEN THEME ============ */

body {
  margin: 0;
  padding: 0;
  background: linear-gradient(135deg, #0066cc, #00bfa6);
  font-family: "Poppins", sans-serif;
  color: white;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* General container */
.main-container {
  text-align: center;
  padding: 2rem;
}

/* Title and subtitle */
.title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.subtitle {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
}

/* Main menu buttons */
.menu-buttons {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  align-items: center;
}

.menu-btn {
  background: white;
  color: #004d80;
  border: none;
  border-radius: 12px;
  padding: 1rem 3rem;
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  width: 220px;
  transition: all 0.3s ease;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.menu-btn i {
  margin-right: 10px;
}

.menu-btn:hover {
  background: #004d80;
  color: white;
  transform: scale(1.05);
}

footer {
  margin-top: 3rem;
  font-size: 0.9rem;
  opacity: 0.8;
}

/* ============= RESULTS PAGE ============= */

.leaderboard {
  margin: 2rem auto;
  max-width: 1000px;
}

.results-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .results-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  color: #222;
}



.card-header {
  background: #004d80;
  color: white;
  font-weight: 600;
  padding: 0.8rem;
  text-align: center;
}

.result-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.result-table th,
.result-table td {
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid #ddd;
  text-align: center;
}

.result-table th {
  background: #f5f5f5;
  font-weight: 600;
}

/* ============= QUIZ PAGE ============= */

.quiz-wrapper {
  max-width: 800px;
  margin: 2rem auto;
  padding: 1rem;
  text-align: center;
  color: #333;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.quiz-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1rem;
}

#progress-bar {
  width: 100%;
  height: 12px;
  background: #ddd;
  border-radius: 8px;
  overflow: hidden;
  margin: 0.5rem 0;
}

#progress-fill {
  height: 100%;
  width: 0;
  background: #004d80;
  transition: width 0.3s ease;
}

#logoImage,
#locationImage {
  height: 280px;
  width: auto;
  object-fit: contain;
}

.answers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.5rem 0;
}

.answer-btn {
  background: white;
  border: 2px solid #0078d7;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 1rem;
  cursor: pointer;
  transition: all 0.25s ease;
}

.answer-btn:hover {
  background: #0078d7;
  color: white;
}

.answer-correct {
  background: #4caf50 !important;
  color: white;
  border-color: #4caf50;
  opacity: 1 !important;
}

.answer-wrong {
  background: #f44336 !important;
  color: white;
  border-color: #f44336;
  opacity: 1 !important;
}

.quiz-image {
  max-width: 100%;
  border-radius: 10px;
  margin-bottom: 0.8rem;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.next-btn {
  background: #0078d7;
  color: white;
  border: none;
  border-radius: 10px;
  padding: 0.8rem 1.5rem;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.next-btn:hover {
  background: #005fa3;
}

.back-btn {
  position: fixed;
  top: 20px;
  left: 20px;
  background: rgba(255, 255, 255, 0.9);
  color: #0078d7;
  border: 2px solid #0078d7;
  font-size: 0.9rem;
  font-weight: 600;
}

.back-btn:hover {
  background: #0078d7;
  color: white;
}

/* Utility */
.d-none {
  display: none !important;
}

/* Make answer buttons match menu button style */
.answer-btn {
  background: white;
  color: #004d80;
  border: none;
  border-radius: 12px;
  padding: 1rem;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.answer-btn:hover {
  background: #004d80;
  color: white;
  transform: scale(1.05);
}

.answer-correct {
  background: #4caf50 !important;
  color: white !important;
  border: none !important;
}

.answer-wrong {
  background: #f44336 !important;
  color: white !important;
  border: none !important;
}

.btn {
  background: white;
  color: #004d80;
  border: none;
  border-radius: 12px;
  padding: 1rem 3rem;
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  width: 220px;
  transition: all 0.3s ease;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  border: 2px solid #004d80;
  white-space: wrap;
}

.btn i {
  margin-right: 10px;
}

.btn:hover {
  background: #004d80;
  color: white;
  transform: scale(1.02);
}

/*
.btn {
 background: #004d80;
  color: white;
  border: none;
  border-radius: 10px;
  padding: 0.8rem 1.5rem;
  font-size: 1.1rem;
  cursor: pointer;
  margin-top: 2rem;
  transition: all 0.3s ease;
}

.btn:hover {
  background: #006bb3;
}
  */

.btn:disabled {
  background: white;
  color: #004d80;
  border: none;
  border-radius: 12px;
  padding: 1rem 3rem;
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  width: 220px;
  transition: all 0.3s ease;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  border: 2px solid #004d80;
}

/* Layout for Izhod + Naprej buttons */
.nav-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

/* Base style already from .menu-btn, here we just tweak sizes */
.exit-btn,
.next-btn {
  min-width: 160px;
}

/* Optional: slightly different colors to distinguish actions */
.exit-btn {
  background: #fff;
  color: #004d80;
  border: 2px solid #004d80;
}

.exit-btn:hover {
  background: #004d80;
  color: #fff;
}

.next-btn {
  background: #0078d7;
  color: #fff;
  border: none;
}

.next-btn:hover {
  background: #005fa3;
}


.leaderboard {
  margin: 2rem auto;
  max-width: 1200px;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 1.5rem;
}



.card-header {
  background: #004d80;
  color: #fff;
  font-weight: 600;
  padding: 0.8rem;
  text-align: center;
  font-size: 1.1rem;
}

.result-table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
  font-size: 1rem;
}

.result-table th,
.result-table td {
  color: #222;
  background: #fff;
  padding: 0.8rem 0.5rem;
  border-bottom: 1px solid #ddd;
  word-wrap: break-word;
  white-space: nowrap;
}

.no-data {
  text-align: center;
  color: #777;
  font-style: italic;
}

.text-success {
  font-size: 2.2rem;
  font-weight: 700;
  color: #ffffff !important;
}

.btn-save{
  padding: 0.9rem 2rem !important;
  font-size: 1.05rem !important;
  font-weight: 600 !important;
  white-space: nowrap;
}