* {
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}
/*
body {
  background: linear-gradient(135deg, #667eea, #764ba2);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.container {
  background: white;
  padding: 30px;
  border-radius: 12px;
  width: 400px;
  animation: fadeIn 0.8s ease;
}
*/
body {
  background: linear-gradient(135deg,#667eea,#764ba2);
  min-height:100vh;
  display:flex;
  justify-content:center;
  align-items:center;
  font-family:Arial;
  overflow:hidden;
}

.container {
  background:white;
  padding:30px;
  width:420px;
  border-radius:14px;
  position:relative;
  z-index:2;
}

.cards {
  display:grid;
  gap:12px;
}

.card {
  padding:14px;
  border-radius:10px;
  border:2px solid #ddd;
  cursor:pointer;
  transition:.2s;
}

.card.active {
  background:#eef1ff;
  border-color:#667eea;
  font-weight:bold;
}

button {
  margin-top:20px;
  width:100%;
  padding:12px;
  border:none;
  border-radius:8px;
  background:#667eea;
  color:white;
  font-size:16px;
  cursor:pointer;
}

.overlay {
  position:fixed;
  inset:0;
  background:#667eea;
  z-index:1;
  opacity:0;
  pointer-events:none;
}


#result {
  margin-top:20px;
}

h2 {
  text-align: center;
  margin-bottom: 20px;
}

.options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.card {
  border: 2px solid #ddd;
  border-radius: 8px;
  padding: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
}

.card input {
  display: none;
}

.card span {
  width: 100%;
}

.card:hover {
  transform: scale(1.03);
  border-color: #667eea;
}

.card input:checked + span {
  font-weight: bold;
  color: #667eea;
}

.card:has(input:checked) {
  background: #eef1ff;
  border-color: #667eea;
}

button {
  margin-top: 20px;
  width: 100%;
  padding: 12px;
  border: none;
  background: #667eea;
  color: white;
  font-size: 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
}

button:hover {
  background: #5a67d8;
}

#result {
  margin-top: 20px;
  animation: slideUp 0.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
