/* Soft Rainbow Personality Theme */

body {
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, #ffe0ec, #e0f7ff, #e8ffe0, #fef3d7);
  background-size: 400% 400%;
  animation: rainbowShift 20s ease infinite;
  padding: 30px;
  max-width: 800px;
  margin: auto;
  color: #333;
  border-radius: 16px;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.08);
}

@keyframes rainbowShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

h1, h2 {
  color: #5a2f9d;
  text-align: center;
}

form label {
  font-weight: 600;
  margin-top: 20px;
}

input, select, textarea {
  border: 1px solid #ccc;
  padding: 10px;
  border-radius: 6px;
  font-size: 1rem;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
  transition: border 0.3s ease;
  width: 100%;
}

input:focus, select:focus, textarea:focus {
  border: 1px solid #9a72d1;
  outline: none;
}

button {
  background: linear-gradient(145deg, #9c71e3, #7e58c2);
  color: #fff;
  border: none;
  padding: 12px 24px;
  font-size: 1rem;
  margin-top: 20px;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 12px rgba(122, 87, 202, 0.4);
}

button:hover {
  background: linear-gradient(145deg, #7e58c2, #9c71e3);
  transform: translateY(-2px);
}

#results {
  background: #f6e9ff; /* soft lavender */
  margin-top: 40px;
  padding: 20px;
  border-left: 5px solid #9c71e3;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0,0,0,0.1);
  white-space: pre-line;
  animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.hidden {
	display: none !important;
}

.modal {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000;
}

.modal-content {
  background: #fff;
  padding: 25px;
  border-radius: 10px;
  max-width: 420px;
  text-align: left;
  box-shadow: 0 0 30px rgba(0,0,0,0.2);
  animation: bounceIn 0.6s ease-out;
}

@keyframes bounceIn {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  60% {
    transform: scale(1.05);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}