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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.header {
  text-align: center;
  margin-bottom: 40px;
  padding: 30px;
  background-color: #2563eb;
  color: white;
  border-radius: 12px;
}

.header h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  font-weight: 700;
}

.header p {
  font-size: 1.1rem;
  opacity: 0.9;
}

.quiz-container {
  background-color: white;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
}

.question { display: none; }
.question.active { display: block; }

.question h2 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: #1f2937;
}

.progress {
  background-color: #e5e7eb;
  height: 8px;
  border-radius: 4px;
  margin-bottom: 30px;
  overflow: hidden;
}

.progress-bar {
  background-color: #10b981;
  height: 100%;
  transition: width 0.3s ease;
  border-radius: 4px;
}

.options {
  display: grid;
  gap: 15px;
}

.option {
  background-color: #f3f4f6;
  border: 2px solid transparent;
  padding: 20px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  font-weight: 500;
}

.option:hover {
  background-color: #e5e7eb;
  transform: translateY(-2px);
}

.option.selected {
  background-color: #dbeafe;
  border-color: #2563eb;
  color: #1d4ed8;
}

.navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
}

.btn {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.btn-secondary {
  background-color: #6b7280;
  color: white;
}

.btn-secondary:hover {
  background-color: #4b5563;
}

.btn-primary {
  background-color: #2563eb;
  color: white;
}

.btn-primary:hover {
  background-color: #1d4ed8;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.results {
  display: none;
}

.results.show {
  display: block;
}

.breed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.breed-card {
  background-color: white;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-left: 4px solid #10b981;
}

.breed-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.rank-badge {
  background-color: #2563eb;
  color: white;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: .8rem;
  font-weight: 600;
  margin-right: 8px;
  display:inline-block;
  vertical-align:middle;
}

.match-percentage {
  background-color: #10b981;
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}

.breed-details {
  display: grid;
  gap: 8px;
  margin-bottom: 20px;
}

.trait {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
}

.trait-label {
  color: #6b7280;
  font-weight: 500;
}

.trait-value {
  color: #1f2937;
  font-weight: 600;
  padding: 4px 8px;
  background-color: #f3f4f6;
  border-radius: 4px;
  font-size: 0.8rem;
}

.breed-link {
  display: inline-block;
  background-color: #2563eb;
  color: white;
  padding: 10px 16px;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

.breed-link:hover {
  background-color: #1d4ed8;
}

.restart-btn {
  background-color: #dc2626;
  color: white;
  margin-top: 20px;
}

.restart-btn:hover {
  background-color: #b91c1c;
}

.copy-btn {
  background-color: #10b981;
  color: white;
  margin-top: 20px;
  margin-left: 10px;
}

.copy-btn:hover {
  background-color: #059669;
}

/* Toast notification */
.toast {
  visibility: hidden;
  min-width: 200px;
  margin-left: -100px;
  background-color: #10b981;
  color: #fff;
  text-align: center;
  border-radius: 8px;
  padding: 12px;
  position: fixed;
  left: 50%;
  bottom: 30px;
  z-index: 9999;
  font-size: 1rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.toast.show {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .header h1 { font-size: 2rem; }
  .quiz-container { padding: 20px; }
  .breed-grid { grid-template-columns: 1fr; }
}

