body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: url('content/background.jpg') no-repeat center center fixed;
  background-size: cover;
  overflow: hidden;
}

.overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0, 0, 0, 0.65);
  z-index: 0;
}

.card {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 2rem;
  width: 90%;
  max-width: 500px;
  color: white;
  text-align: center;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.4);
  animation: fadeIn 0.6s ease-in-out;
  z-index: 1;
}

.card button {
  padding: 0.6rem 1.2rem;
  margin-top: 1rem;
  border: none;
  border-radius: 8px;
  background: #00bcd4;
  color: white;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s;
}
.card button:hover {
  background: #008c9e;
}

#options button {
  display: block;
  width: 100%;
  margin: 0.5rem 0;
  padding: 0.8rem;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s;
}
#options button:hover {
  background: rgba(255, 255, 255, 0.3);
}

#resultImage {
  width: 100%;
  max-width: 300px;
  border-radius: 15px;
  margin: 1rem 0;
}

.hidden {
  display: none;
}

.fade-out {
  animation: fadeOut 0.4s forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translate(-50%, -60%); }
  to { opacity: 1; transform: translate(-50%, -50%); }
}

@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; transform: translate(-50%, -40%); }
}

#confetti-canvas {
  position: fixed;
  pointer-events: none;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.title {
  font-size: 2rem;
  line-height: 1.3;
  margin-bottom: 1.5rem;
}

#startContainer {
  animation: fadeInScale 1s ease-out;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}
