* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, #1f1c2c, #928dab);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: 20px;
  color: #fff;
  -webkit-font-smoothing: antialiased;
}

.quiz-wrapper {
  width: 100%;
  max-width: 500px;
  flex: 1;
  padding: 0 10px;
}

.header {
  text-align: center;
  margin-bottom: 15px;
}

.header h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 5px;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.counter {
  font-size: 16px;
  font-weight: 600;
  color: #ffd700;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.quiz-container {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(15px);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: transform 0.3s ease;
}

.quiz-container:hover {
  transform: translateY(-3px);
}

.question-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: opacity 0.5s ease, transform 0.3s ease;
}

.fade-in {
  opacity: 1;
  animation: fadeIn 0.5s;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.question-card h2 {
  font-size: 1.3rem;
  line-height: 1.6;
  margin-bottom: 15px;
}

.question-card img {
  width: 100%;
  max-width: 100px;
  border-radius: 15px;
  margin-top: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  object-fit: contain;
}

.answers {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.answer-btn {
  width: 100%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: none;
  border-radius: 15px;
  padding: 15px;
  font-size: 16px;
  cursor: pointer;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.answer-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px) scale(1.02);
}

.correct {
  background: #4caf50 !important;
  box-shadow: 0 0 15px #4caf50, 0 4px 15px rgba(76, 175, 80, 0.6);
  animation: glow 0.8s ease-in-out infinite alternate;
}

.wrong {
  background: #f44336 !important;
  box-shadow: 0 0 15px #f44336, 0 4px 15px rgba(244, 67, 54, 0.6);
}

@keyframes glow {
  from {
    box-shadow: 0 0 10px #4caf50, 0 4px 15px rgba(76, 175, 80, 0.6);
  }

  to {
    box-shadow: 0 0 20px #4caf50, 0 4px 15px rgba(76, 175, 80, 0.8);
  }
}

footer {
  width: 100%;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  color: #ddd;
  margin-top: auto;
  backdrop-filter: blur(10px);
}

/* RESPONSYWNOSC */

@media (max-width: 600px) {
  .question-card img {
    width: 30%;
  }

  .header h1 {
    font-size: 1.8rem;
  }

  .counter {
    font-size: 14px;
  }

  .question-card h2 {
    font-size: 1.4rem;
  }

  .answer-btn {
    font-size: 16px;
    padding: 15px;
  }

  .question-card img {
    max-width: 95%;
  }
}

@media (max-width: 400px) {
  .question-card img {
    width: 30%;
  }

  .header h1 {
    font-size: 1.5rem;
  }

  .counter {
    font-size: 13px;
  }

  .question-card h2 {
    font-size: 1.3rem;
  }

  .answer-btn {
    font-size: 15px;
    padding: 14px;
  }
}