/* General Body Styles */
@import url('https://fonts.googleapis.com/css2?family=Poppins&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Fredoka+One&display=swap');

body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  background: linear-gradient(to bottom, #ffe7f8 0%, #fff9fc 100%);
  color: #9f74b7;
  position: relative;
  overflow-x: hidden;
  cursor: url(https://cdn.custom-cursor.com/db/21814/32/color-pixels-magic-of-love-cursor.png), auto;

a,
button,
input[type="button"],
input[type="submit"] {
  cursor: url(https://cdn.custom-cursor.com/db/21813/32/color-pixels-magic-of-love-pointer.png)   , pointer !important;
}

.sparkle {
  position: fixed;
  width: 10px;
  height: 10px;
  pointer-events: none;
  background: #ffb6f2;
  clip-path: polygon(
    50% 0%, 61% 35%, 98% 35%, 68% 57%,
    79% 91%, 50% 70%, 21% 91%, 32% 57%,
    2% 35%, 39% 35%
  );
  filter: drop-shadow(0 0 3px #ff99cc);
  opacity: 1;
  z-index: 9999;
  will-change: transform, opacity;
}


/* Header Styles */
#header {
  background: linear-gradient(to right, #f9c1f4, #e0d4f7, #fff3fa, #e0d4f7, #f9c1f4);
  box-shadow: 0 4px 20px rgba(244, 173, 233, 0.3);
  border-bottom: 4px dotted #ffc0df;
  font-family: 'Permanent Marker', cursive;
  color: #d66caa;
  text-shadow: 0 0 8px #f9a8d1;
  padding: 20px 0;
}

/* Navbar Styles */
#navbar {
  padding: 18px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  background-color: rgba(255, 240, 245, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid #f7c3dd;
  border-radius: 0 0 20px 20px;
  position: relative;
  z-index: 10;
  margin: 0 auto 32px auto;
  max-width: 1100px;
  box-sizing: border-box;
}

#navbar .text-xl {
  font-size: 1.8rem;
  font-weight: 700;
  color: #d36f9e;
  letter-spacing: 0.8px;
  text-transform: lowercase;
  text-shadow: 0 0 5px #ffb6df;
  font-family: 'Baloo 2', cursive;
}

#navbar_items {
  display: flex;
  gap: 28px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.navbar_item {
  font-weight: 700;
  font-family: 'Baloo 2', cursive;
}

.navbar_item a {
  text-decoration: none;
  color: #d781b4;
  padding: 10px 6px;
  display: inline-block;
  transition: color 0.3s ease, transform 0.25s ease;
  position: relative;
}

.navbar_item a::after {
  content: '✨';
  position: absolute;
  right: -18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  color: #ffb6f2;
}

.navbar_item a:hover::after,
.navbar_item a:focus::after {
  opacity: 1;
}

.navbar_item a:hover,
.navbar_item a:focus {
  color: #ff9adb;
  transform: scale(1.1);
  text-shadow: 0 0 8px #ffb6f2;
}

/* Content Styles */
#content {
  padding: 32px 28px;
  max-width: 850px;
  margin: 40px auto;
  position: relative;
  z-index: 5;
  background: #fff8fc;
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(245, 182, 223, 0.3);
  font-family: 'Baloo 2', cursive;
  color: #865a8a;
}

/* Box Styles */
#new_survey,
#simple_results,
#new_link {
  background: #fff0fa;
  border-radius: 28px;
  box-shadow: 0 8px 26px rgba(241, 158, 208, 0.15);
  padding: 32px;
  margin-bottom: 30px;
  position: relative;
}

#new_survey::after,
#new_link::after {
  content: '🌟';
  position: absolute;
  top: -10px;
  right: -12px;
  font-size: 1.8rem;
  animation: sparkle 2.2s ease-in-out infinite;
  filter: drop-shadow(0 0 4px #ffb6f2);
}

/* Forms */
form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

form label {
  font-weight: 700;
  color: #cc8bcc;
  font-family: 'Baloo 2', cursive;
  font-size: 1.15rem;
}

/* Inputs */
input[type="text"],
textarea {
  padding: 16px;
  border: 2px solid #ffb6f2;
  border-radius: 16px;
  background-color: #fff5fb;
  color: #7e5a87;
  font-size: 1.1rem;
  font-family: 'Courier New', monospace;
  transition: border-color 0.3s ease;
}

input[type="text"]:focus,
textarea:focus {
  border-color: #e17aa5;
  outline: none;
  box-shadow: 0 0 8px #f9a8d1;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

/* Buttons */
button,
#get_results_button,
#create_survey,
#new_link_button,
#survey_controls button {
  background: linear-gradient(135deg, #ff9ade, #ffb6f2);
  color: white;
  border: none;
  border-radius: 30px;
  padding: 14px 36px;
  cursor: pointer;
  font-size: 1.15rem;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(241, 134, 196, 0.6);
  transition: background 0.3s ease, transform 0.25s ease;
  font-family: 'Poppins', cursive;
  text-shadow: 0 0 4px #ffb6f2;
}

button:hover,
#get_results_button:hover,
#create_survey:hover,
#new_link_button:hover,
#survey_controls button:hover {
  background: linear-gradient(135deg, #f86db7, #e952a8);
  transform: scale(1.07);
  box-shadow: 0 10px 22px rgba(222, 90, 154, 0.75);
  text-shadow: 0 0 6px #ff99cc;
}

/* Feedback */
#simple_results_feedback,
#new_link_feedback {
  margin-top: 12px;
  font-size: 1rem;
  color: #2eb1a7;
  font-weight: 600;
  font-family: 'Baloo 2', cursive;
}

/* Footer */
#footer {
  text-align: center;
  padding: 24px;
  background-color: #ffdcf5;
  color: #c973b9;
  margin-top: 36px;
  border-top: 2px solid #f7c3dd;
  font-family: 'Permanent Marker', cursive;
  font-size: 1.1rem;
  text-shadow: 0 0 6px #f9a8d1;
  position: relative;
}

/* Responsive */
@media (max-width: 768px) {
  #navbar {
    padding: 18px 20px;
    margin-bottom: 24px;
  }

  #navbar_items {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    margin-top: 16px;
  }

  .navbar_item {
    margin-bottom: 12px;
  }

  #new_link {
    padding: 28px;
  }

  button,
  #survey_controls button {
    width: 100%;
    max-width: 320px;
    text-align: center;
  }
}

/* Survey Form */
#survey {
  background: #ffe4f2;
  border-radius: 24px;
  box-shadow: 0 8px 22px rgba(237, 128, 188, 0.35);
  padding: 36px 32px;
  max-width: 650px;
  margin: 36px auto 44px auto;
  font-family: 'Baloo 2', cursive;
  color: #9b4f7c;
  letter-spacing: 0.4px;
}

/* Survey Panel */
#survey_panel {
  margin-bottom: 30px;
}

/* Question Block */
.question {
  margin-bottom: 32px;
}

.question > label {
  display: block;
  font-size: 1.3rem;
  font-weight: 700;
  color: #b97aaa;
  margin-bottom: 14px;
  text-shadow: 0 0 3px #f9a8d1;
}

/* Radio Button Groups */
.question fieldset {
  border: none;
  padding: 0;
}

.question fieldset > label {
  display: flex;
  align-items: center;
  background-color: #ffe1f4;
  padding: 14px 18px;
  border-radius: 16px;
  margin-bottom: 12px;
  cursor: pointer;
  font-weight: 600;
  color: #8a4e6b;
  transition: background-color 0.3s, box-shadow 0.3s;
  user-select: none;
  box-shadow: 0 2px 5px rgba(234, 153, 196, 0.2);
  font-family: 'Baloo 2', cursive;
}

.question fieldset input[type="radio"] {
  margin-right: 14px;
  accent-color: #f9a8d1;
  width: 20px;
  height: 20px;
  cursor: pointer;
  filter: drop-shadow(0 0 1px #ffb6f2);
}

.question fieldset > label:hover {
  background-color: #f9c1db;
  box-shadow: 0 0 16px rgba(234, 123, 176, 0.45);
}

.question fieldset input[type="radio"]:checked + label,
.question fieldset label input[type="radio"]:checked {
  font-weight: 800;
  color: #d05a94;
  text-shadow: 0 0 5px #f47fb5;
}


h1, h2, button {
  font-family: 'Fredoka One', cursive, sans-serif;
}

/* Enhanced Fairy Kei Headers — Soft, Cute, Glowey */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Fredoka One', cursive, sans-serif;
  color: #ffffff;
  text-shadow:
    0 0 4px #ffc1ea,
    0 0 8px #ffb6f2,
    0 0 14px #f9a8d1,
    0 0 20px #ffd6f2;
  background: none;
  -webkit-text-fill-color: white;
  margin-bottom: 16px;
  letter-spacing: 1px;
  position: relative;
  transition: all 0.3s ease-in-out;
}

/* Sizes and spacing */
h1 {
  font-size: 3rem;
  margin-top: 24px;
}

h2 {
  font-size: 2.5rem;
  margin-top: 22px;
}

h3 {
  font-size: 2rem;
  margin-top: 20px;
}

h4 {
  font-size: 1.6rem;
  color: #fff;
  text-shadow: 0 0 3px #ffcff0, 0 0 8px #ffbde3;
}

h5 {
  font-size: 1.3rem;
  color: #fff;
  text-shadow: 0 0 3px #ffc8ec, 0 0 6px #ffb6f2;
}

h6 {
  font-size: 1.15rem;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 0 2px #fdb3e7, 0 0 5px #f4a2d6;
}

/* Glow & float animation on hover */
h1:hover, h2:hover, h3:hover {
  text-shadow:
    0 0 6px #ffc4ec,
    0 0 14px #ffb6f2,
    0 0 22px #f9a8d1,
    0 0 32px #ffd6f2;
  transform: scale(1.025) translateY(-2px);
}

