body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #222;
  margin: 0;
  min-height: 100vh;
}

.main-card {
  max-width: 500px;
  margin: 20px auto;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  padding: 30px;
  backdrop-filter: blur(10px);
}

h2, h3 { margin-top: 0; }

.selector {
  margin: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
  font-size: 1.1rem;
}

.selector label {
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 10px;
  border-radius: 10px;
  transition: background 0.2s;
}

.selector label:hover {
  background: rgba(102, 126, 234, 0.1);
}

.selector input[type="checkbox"] {
  margin-right: 10px;
  transform: scale(1.2);
}

.btn, .answer-btn {
  display: block;
  width: 100%;
  margin: 15px 0;
  padding: 15px 20px;
  background: #667eea;
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn:hover, .answer-btn:hover:not(:disabled) {
  background: #5a67d8;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.answer-btn.correct {
  background: #48bb78;
  box-shadow: 0 4px 15px rgba(72, 187, 120, 0.3);
}

.answer-btn.wrong {
  background: #f56565;
  box-shadow: 0 4px 15px rgba(245, 101, 101, 0.3);
}

.progress-bar {
  width: 100%;
  height: 10px;
  background: rgba(102, 126, 234, 0.2);
  border-radius: 5px;
  margin: 20px 0;
  overflow: hidden;
}

.progress {
  height: 100%;
  background: linear-gradient(90deg, #667eea, #764ba2);
  border-radius: 5px;
  transition: width 0.4s ease;
}

.recipe-option {
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 15px;
  margin: 10px 0;
  cursor: pointer;
  transition: all 0.3s;
}

.recipe-option:hover:not(.correct):not(.wrong) {
  border-color: #667eea;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.1);
}

.recipe-option.correct {
  background: #f0fff4;
  border-color: #48bb78;
  box-shadow: 0 4px 15px rgba(72, 187, 120, 0.2);
}

.recipe-option.wrong {
  background: #fff5f5;
  border-color: #f56565;
  box-shadow: 0 4px 15px rgba(245, 101, 101, 0.2);
}

.ingredient {
  padding: 5px 0;
  font-weight: 500;
  color: #4a5568;
}

.score {
  font-size: 2.5rem;
  font-weight: bold;
  color: #667eea;
  margin: 10px 0;
}

.percentage {
  font-size: 1.5rem;
  color: #718096;
  margin-bottom: 20px;
}

.yn-wrapper {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 20px;
}

.yn-btn {
  width: 45%;
  font-size: 1.2rem;
  font-weight: bold;
}

/* Sekcja wyświetlająca przepis po odpowiedzi */
.recipe-review-box {
  background: #f8f9ff;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  margin: 24px auto 0 auto;
  padding: 20px;
  text-align: left;
  max-width: 400px;
  box-shadow: 0 2px 10px rgba(102, 126, 234, 0.1);
  animation: slideIn 0.3s ease-out;
}

.recipe-review-box h4 {
  margin: 0 0 15px 0;
  color: #667eea;
  font-size: 1.1rem;
  text-align: center;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 10px;
}

.recipe-review-box ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.recipe-review-box li {
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 0.95rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.recipe-review-box li:last-child {
  border-bottom: none;
}

.recipe-review-box strong {
  color: #667eea;
  font-weight: 600;
  min-width: 50px;
}

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

.center { text-align: center; }

@media (max-width: 600px) {
  .main-card {
    margin: 10px;
    padding: 20px;
  }

  .recipe-review-box {
    margin: 20px auto 0 auto;
    padding: 15px;
  }
}
