* {
  pointer-events: auto !important;
}

body {
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #ffffff; /* solid light blue */
  color: #2d4771; /* darker text for readability */
}

/* Logo na početnoj stranici */
#logo-container {
  margin-bottom: 2rem;
}

.logo-start {
  width: 75px;
  height: 75px;
  object-fit: contain;
}

/* Header na stranicama s pitanjima i rezultatima */
.quiz-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100px;
  background-color: #ffffff;
}

.header-logo {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

.header-logo-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.header-title {
  flex: 1;
  text-align: center;
  color: #39547B;
  font-size: 1.1rem;
  font-weight: bold;
}

.header-back {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

.back-btn {
  padding: 8px 16px;
  font-size: 0.9rem;
  background-color: rgba(29, 109, 141, 0.5);
  color: #ffffff;
  border: 0px solid #ffffff;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s ease;
}

.back-btn:hover {
  background-color: #39547B;
}

/* Centrirani kontejneri */
#start-screen {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  text-align: center;
}

#quiz-container, #result-screen {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  text-align: center;
  padding-top: 0;
}

#start-screen {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh; /* Full height of the viewport */
  text-align: center;
}

.start-btn {
  position: relative;
  z-index: 10;
  cursor: pointer;
  pointer-events: auto;
}

/* Gumbi */
button {
  padding: 10px 20px;
  margin: 10px 5px;
  font-size: 1rem;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  background-color: rgba(29, 109, 141, 0.5);
  color: white;
  transition: 0.3s ease;
}

button:hover {
  background-color: #2d4771;
}

/* Tajmer */
.progress-9 {    
  --r1: 154%;
  --r2: 68.5%;
  width: 35px;
  height: 35px;
  border-radius: 50%; 
  background:
    radial-gradient(var(--r1) var(--r2) at top   ,#0000 79.5%,#608ee6 80%),
    radial-gradient(var(--r1) var(--r2) at bottom, #608ee6 79.5%,#0000 80%),
    radial-gradient(var(--r1) var(--r2) at top   ,#0000 79.5%,#608ee6 80%),
    #fff;
  background-size: 50.5% 220%;
  background-position: -100% 0%, 0% 0%, 100% 0%;
  background-repeat: no-repeat;
  animation: p9 30s linear forwards; 
  position: fixed;
  top: 1rem;
  right: 1rem;
  margin: 0; 
  z-index: 1000;
}

@keyframes p9 {
  33%  { background-position: 0% 33%, 100% 33%, 200% 33%; }
  66%  { background-position: -100% 66%, 0% 66%, 100% 66%; }
  100% { background-position: 0% 100%, 100% 100%, 200% 100%; }
}

.timer-text {
  position: absolute;
  top: 50%;
  left: 90%;
  transform: translate(-50%, -50%);
  font-size: 12px;
  font-weight: bold;
  color: white;
  pointer-events: none;
}

.progress-bar {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

.step {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background-color: #608ee6;
  color: #555;
  font-weight: bold;
  font-size: 13px;
  user-select: none;
  transition: background-color 0.3s, color 0.3s, transform 0.3s;
  margin-top: 35px;
  margin-left: -23px;
}

.step.active {
  background-color: #1d6d8d;
  color: white;
}

.step.completed {
  background-color: #2d4771;
  color: white;
}

.circle {
  width: 30px;
  height: 30px;
  background-color: white;
  border: 2px solid #2d4771;
  border-radius: 50%;
  color: #2d4771;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  font-size: 13px;
}

.step.active .circle {
  background-color: #2d4771;
  color: white;
  border: 3px solid #2d4771;
}

.step.completed .circle {
  background-color: #2d4771;
  color: white;
  font-weight: bold;
}

.line {
  width: 22px;
  height: 2px;
  background-color: #2d4771;
  margin-top: 35px;
  margin-left: -10px;
  margin-right: -5px;
}

/* Pitanja i opcije */
#question {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

#question-progress {
  display: flex;
  justify-content: center;
  margin: 10px 0 20px;
  gap: 8px;
  user-select: none;
}

.progress-step {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: #c4d9e8; /* neutral */
  cursor: default;
  transition: background-color 0.3s;
  box-shadow: 0 0 5px rgba(45, 71, 113, 0.3);
}

.progress-step.completed {
  background-color: #1d6f9f; /* done */
  box-shadow: 0 0 8px #1d6f9f;
}

.progress-step.current {
  background-color: #2d4771; /* current */
  box-shadow: 0 0 12px #2d4771;
  transform: scale(1.2);
}


#options {
  list-style: none;
  padding: 0;
  margin: 0 auto 1.5rem auto;
  max-width: 600px;
}

.option-btn {
  display: block;
  width: 100%;
  padding: 12px;
  margin: 6px 0;
  font-size: 1rem;
  border: 2px solid transparent;
  border-radius: 10px;
  background-color: #e9f1f5;
  color: #2d4771;
  cursor: pointer;
  transition: 0.2s ease;
  text-align: left;
}

.option-btn:hover {
  background-color: #d0e4ee;
}

.option-btn.selected {
  border-color: #1d6f9f;
  background-color: #c4d9e8;
}

.option-btn.correct {
  background-color: #b1e5c5;
  border-color: #2ecc71;
  color: #1d5e3e;
}

.option-btn.incorrect {
  background-color: #f8c7c7;
  border-color: #e74c3c;
  color: #861e1e;
}

/* Slike pitanja */
.question-img {
  max-width: 65%;
  max-height: 200px;
  border-radius: 12px;
  margin-bottom: 1rem;
}

/* Navigacija */
.nav-buttons {
  margin-top: 1rem;
}

.answer-button.selected {
  background-color: #2d4771;
  color: white;
  font-weight: bold;
}

#question-number {
  font-weight: bold;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

/* Rezultati */
#result-list {
  list-style: none;
  padding-left: 0;
  max-width: 700px;
  margin: 0 auto;
  text-align: left;
}

#result-list li {
  background: white;
  margin: 10px 0;
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.correct {
  color: #2ecc71;
  font-weight: bold;
}

.incorrect {
  color: #e74c3c;
  font-weight: bold;
}

/* Modal Styles */
.modal {
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(45, 71, 113, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-content {
  background-color: #ffffff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(45, 71, 113, 0.3);
  max-width: 400px;
  width: 90%;
  animation: slideIn 0.3s ease;
}

.modal-content.modal-large {
  max-width: 600px;
}

@keyframes slideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-content h2 {
  color: #39547B;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  text-align: center;
}

.modal-content p {
  color: #2d4771;
  text-align: center;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  color: #39547B;
  font-weight: bold;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.form-group input {
  width: 100%;
  padding: 10px;
  border: 2px solid #608ee6;
  border-radius: 8px;
  font-size: 1rem;
  color: #2d4771;
  box-sizing: border-box;
  transition: 0.2s ease;
}

.form-group input:focus {
  outline: none;
  border-color: #39547B;
  box-shadow: 0 0 8px rgba(57, 84, 123, 0.3);
}

.modal-btn {
  width: 100%;
  padding: 12px;
  margin-top: 1rem;
  font-size: 1rem;
  background-color: rgba(29, 109, 141, 0.7);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: 0.3s ease;
}

.modal-btn:hover {
  background-color: #39547B;
}

.modal-btn:active {
  transform: scale(0.98);
}

/* Scores Table */
.scores-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
}

.scores-table thead {
  background-color: rgba(29, 109, 141, 0.7);
  color: white;
}

.scores-table th,
.scores-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #e0e0e0;
}

.scores-table th {
  font-weight: bold;
  font-size: 1rem;
}

.scores-table tbody tr:hover {
  background-color: #f5f5f5;
}

.scores-table tbody tr:nth-child(even) {
  background-color: #f9f9f9;
}

.scores-table td {
  color: #2d4771;
  font-size: 0.95rem;
}

.scores-table td:first-child {
  font-weight: bold;
  color: #39547B;
  width: 15%;
}

.scores-table td:last-child {
  font-weight: bold;
  color: #1d6d8d;
  text-align: right;
}
