
:root {
  --disco-indigo: #442E72;
  --disco-mint: #A6F2CE;
  --disco-gold: #FFC449;
  --disco-white: #F4F2ED;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--disco-white);
  color: var(--disco-indigo);
  margin: 0;
  padding: 0;
  text-align: center;
}

header img.site-logo {
  max-width: 140px;
  margin: 2em auto 1em;
  display: block;
}

.site-logo {
  max-width: 140px;
  margin: 2em auto 1em;
  display: block;
}


.hero-text {
  max-width: 700px;
  margin: 0 auto;
  padding-top: 1em;
}

.hero-text p {
  margin-top: 1em;
  margin-bottom: 2em;
}

.hero-text-highlight {
  background-color: var(--disco-white);
  display: inline;
  padding: 0 0.2em;
}

.step {
  display: none;
  padding: 2em 1em;
}

.step.active {
  display: block;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1.2em;
  max-width: 600px;
  margin: 2em auto;
  padding: 1em;
}

label {
  font-weight: bold;
  text-align: left;
}

input, select {
  padding: 0.75em;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 1em;
}

button {
  background-color: var(--disco-mint);
  color: var(--disco-indigo);
  font-weight: bold;
  font-size: 1em;
  border: none;
  border-radius: 8px;
  padding: 0.75em 1.5em;
  cursor: pointer;
}

.card-options {
  display: flex;
  flex-direction: column;
  gap: 0.5em;
}

.card-options button {
  padding: 1em;
  font-weight: bold;
  background: white;
  border: 1px solid #ccc;
  border-radius: 8px;
  cursor: pointer;
}

.card-options button.selected {
  background-color: var(--disco-mint);
  color: var(--disco-indigo);
}

.how-it-works {
  background-color: var(--disco-white);
  padding: 3em 1.5em;
}


.how-it-works img {
  max-width: 80px;
  height: auto;
  display: block;
  margin: 0 auto 1em;
  color: var(--disco-indigo);
  fill: var(--disco-indigo);
}


.how-step {
  text-align: center;
  max-width: 280px;
  margin: 1.5em;
}


.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1em 3em;         
  margin: 3em auto 2em;
  font-size: 0.95em;
  text-align: center;
  max-width: 800px;
  line-height: 1.6;
}


.footer-meta {
  text-align: center;
  font-size: 0.75em;
  color: #aaa;
  margin-top: 2em;
}

.footer-meta a {
  color: var(--disco-mint);
  font-weight: 500;
  text-decoration: none;
}
.footer-meta a:hover {
  text-decoration: underline;
}

.lang-toggle {
  font-size: 1.1rem;
  cursor: pointer;
}

.steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2em;
  margin-top: 2em;
}

.step img {
  max-width: 100px;
  margin-bottom: 1em;
}

/* Emoji Game Section */
#step-emoji {
  position: relative;
  min-height: 500px;
  height: auto;
  padding-bottom: 2em;
  overflow: hidden;
}

#emojiCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

.game-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(244, 242, 237, 0.96);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 15;
  opacity: 1;
  transition: opacity 1.5s ease;
}

.emoji-toolbar {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75em;
  padding: 0.5em 1em;
  background: white;
  color: var(--disco-indigo);
  font-size: 1.2rem;
  font-weight: bold;
  border-radius: 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  z-index: 20;
  white-space: nowrap;
}

.flip {
  animation: flipCount 0.3s ease-in-out;
}

@keyframes flipCount {
  0% { transform: rotateX(0); }
  50% { transform: rotateX(90deg); opacity: 0; }
  51% { transform: rotateX(-90deg); opacity: 0; }
  100% { transform: rotateX(0); opacity: 1; }
}


.hidden {
  display: none;
}


.language-toggle {
  font-size: 1rem;
  text-align: center;
  margin-top: 1em;
}


.language-toggle a {
  color: var(--disco-indigo);
  text-decoration: none;
  margin: 0 0.5em;
}

.language-toggle a:hover {
  text-decoration: underline;
}



.he ul {
  padding-right: 1.5em;
  list-style-position: inside;
  direction: rtl;
  text-align: right;
}
.he h1,
.he h2,
.he h3,
.he h4,
.he h5,
.he h6 {
  text-align: right;
}

.footer-links .en,
.footer-links .he {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5em 2.5em;
  max-width: 850px;
  margin: 0 auto;
  text-align: center;
}


.progress-bar {
  display: flex;
  justify-content: space-between;
  margin: 2em auto;
  max-width: 500px;
  padding: 0 1em;
  gap: 10px;
}

.progress-step {
  flex: 1;
  height: 4px;
  background-color: #ddd;
  border-radius: 2px;
  transition: background-color 0.3s ease;
}

.progress-step[aria-current="step"] {
  background-color: var(--disco-mint);
}

.done-container {
  background: white;
  border-radius: 16px;
  max-width: 500px;
  margin: 2em auto;
  padding: 2em;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  color: var(--disco-indigo);
  text-align: center;
}

.done-container h2 {
  font-size: 1.8em;
  margin-bottom: 0.5em;
}

.done-container p {
  font-size: 1em;
  margin-bottom: 1em;
}

#referralCodeDisplay {
  font-size: 1.5em;
  color: var(--disco-indigo);
  border: 2px dashed var(--disco-mint);
  border-radius: 12px;
  padding: 0.75em 1.5em;
  background-color: #f8f8f8;
  display: inline-block;
  margin: 1em auto;
}

#copyReferralBtn,
#whatsappShareBtn button {
  background-color: var(--disco-mint);
  color: var(--disco-indigo);
  border: none;
  border-radius: 8px;
  padding: 0.75em 1.5em;
  font-weight: bold;
  font-size: 1em;
  cursor: pointer;
  margin: 0.5em 0;
  transition: background-color 0.3s ease;
}

#copyReferralBtn:hover,
#whatsappShareBtn button:hover {
  background-color: #8be4ba;
}

#selectedVibesList {
  list-style: none;
  padding-left: 0;
  margin: 1em auto;
  text-align: center;
}

#selectedVibesList li {
  margin-bottom: 0.5em;
  font-size: 1.1em;
}

.referral-summary {
  margin-top: 2em;
  padding: 1em;
  border: 1px solid var(--disco-indigo);
  border-radius: 10px;
  background: white;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.referral-text {
  font-size: 1.1rem;
  margin-bottom: 1em;
}

.referral-code {
  font-weight: bold;
  font-size: 1.3rem;
  color: var(--disco-indigo);
  margin-right: 10px;
}

.copy-button {
  background-color: var(--disco-mint);
  color: var(--disco-indigo);
  border: none;
  padding: 0.5em 1em;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
}

.copy-status {
  margin-top: 0.5em;
  color: var(--disco-indigo);
  font-size: 0.95rem;
}




@media (max-width: 600px) {

.footer-links .en,
  .footer-links .he {
    flex-direction: column;
    align-items: center;
  }


  .footer-links {
    flex-direction: column;
    align-items: center;
    gap: 1em;
  }

  .steps {
    flex-direction: column;
    align-items: center;
  }


  .step img {
    max-width: 80px;
  }

  h1, h2 {
    font-size: 1.8em;
  }

  p {
    font-size: 1em;
  }

  .btn {
    font-size: 0.95em;
    padding: 0.7em 1.2em;
  }

  
}

/* Footer link styling */
.footer-links a {
  color: var(--disco-indigo);
  text-decoration: none;
  font-weight: 500;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* Hero text layout spacing */
.hero-text p {
  margin-top: 1em;
  margin-bottom: 2em;
  display: block;
}

.hero-text h1 {
  margin-bottom: 1em;
}

/* Emoji pop animation on click */
@keyframes popFade {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.8; }
  100% { transform: scale(0.9); opacity: 0; }
}

.emoji-pop {
  animation: popFade 0.3s ease-out;
}

/* Glow trail effect */
.glow-ring {
  box-shadow: 0 0 12px 6px rgba(255,255,255,0.3);
  border-radius: 50%;
}

/* Game background gradient */
.emoji-game-bg {
  background: linear-gradient(135deg, #f4f2ed, #e6ddf2, #fefae0);
  background-size: 400% 400%;
  animation: bgFlow 10s ease infinite;
}

@keyframes bgFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Floating emoji background pre-game */
.emoji-float-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
  opacity: 0.25;
}

/* Final message after 🪩 click */
#winMessage {
  font-size: 1.6rem;
  font-weight: bold;
  margin-top: 2em;
  display: none;
  color: var(--disco-indigo);
}

/* === Legal Page Enhancements === */
.header .logo-link {
  display: inline-block;
}

.logo {
  height: 38px;
  margin-top: 12px;
}

.policy-container {
  max-width: 700px;
  margin: 3em auto;
  padding: 0 20px;
  text-align: left;
}

.language-toggle {
  font-size: 1rem;
  text-align: center;
  margin: 2em auto 1em;
  padding-top: 0.5em;
  border-top: 1px solid rgba(68, 46, 114, 0.15); 
  max-width: fit-content;
}


.language-toggle a {
  color: var(--disco-indigo);
  text-decoration: none;
  margin: 0 5px;
}

.language-toggle a:hover {
  text-decoration: underline;
}

.footer-meta a {
  color: var(--disco-indigo);
  font-weight: 500;
  text-decoration: none;
}

.footer-meta a:hover {
  text-decoration: underline;
}
