html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: 'Comic Sans MS', sans-serif;
  background: url('Assets/Images/Bg.webp') center/cover no-repeat;
  overflow: hidden;
}

/* CINEMATIC OVERLAY */
body::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%; 
  background: linear-gradient(to bottom,
      rgba(0, 0, 0, 0.2),
      rgba(0, 0, 0, 0.5));
}

.wrapper {
  width: 100%;
  height: 100%;
  max-width: 1920px;
  max-height: 1800px;

  display: flex;
  flex-direction: row-reverse;
  justify-content: center;
  align-items: center;
}

#effects-layer {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
}

/* GANESHA */
.ganesha {
  position: relative;
  width: 400px;
  z-index: 5;
  transition: transform 0.3s ease;
  margin-left: 40px;
}

/* GLOW */
.ganesha-glow {
  position: absolute;
  left: 40px;
  bottom: 40px;
  width: 260px;
  height: 120px;
  background: radial-gradient(circle, rgba(255, 200, 100, 0.5), transparent);
  filter: blur(20px);
  z-index: 4;
}

/* CARD */
.card {
  max-width: 820px;
  max-height: 520px;
  /* width: 100%;
  height: 100%; */
  background: rgba(255, 248, 230, 0.97);
  border-radius: 25px;
  padding: 35px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  text-align: center;
  transition: transform 0.3s ease;
}

.card-layout {
  display: flex;
  gap: 25px;
  align-items: center;
}

/* LEFT SIDE (IMAGE) */
.left {
  width: 40%;
}

/* QUESTION */
.question {
  font-size: 26px;
  margin-bottom: 25px;
  color: #333;
}

.top-row {
  display: flex;
  align-items: center;
  gap: 20px;
}

.scene-img {
  width: 100%;
  height: 400px;
  /* max-height: 140px; */
  /* object-fit: contain; */
  object-fit: cover;
  /* margin: 10px auto 20px; */
  margin: 0;
  display: block;
  /* border-radius: 15px; */
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: scale(0.95);
  transition: all 0.3s ease;
  filter: blur(6px);
}

.scene-img.show {
  opacity: 1;
  filter: blur(0px);
  transform: scale(1);
  animation: float 3s ease-in-out infinite;
}

/* RIGHT SIDE (TEXT + OPTIONS) */
.right {
  width: 60%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Question right */
.question {
  font-size: 24px;
  text-align: left;
  margin: 0;
  margin-bottom: 50px;
}

@keyframes float {
  0% {
    transform: scale(1) translateY(0px);
  }

  50% {
    transform: scale(1.02) translateY(-5px);
  }

  100% {
    transform: scale(1) translateY(0px);
  }
}

/* OPTIONS */
.options {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.option {
  text-align: center;
  flex: 1;
  padding: 16px;
  background: linear-gradient(145deg, #ffc46b, #ffa726);
  border-radius: 25px;
  cursor: pointer;
  font-size: 19px;
  transition: 0.3s;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.option:hover {
  transform: translateY(-5px);
}

.correct {
  background: #81c784 !important;
}

.wrong {
  background: #e57373 !important;
}

@keyframes pop {
  0% {
    transform: scale(0);
  }

  100% {
    transform: scale(1);
  }
}

/* PROGRESS */
.progress {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.step {
  width: 25px;
  height: 6px;
  border-radius: 10px;
  background: #ddd;
}

.active {
  background: #ff9800;
}

/* RESULT */
.result {
  font-size: 32px;
}

.btn {
  margin-top: 20px;
  padding: 10px 25px;
  border-radius: 20px;
  border: none;
  background: #ff9800;
  color: white;
  font-size: 18px;
  cursor: pointer;
}

/* GANESHA REACTIONS */
.jump {
  /* transform: translateX(50%) translateY(-20px); */
  transform: translateY(-50px);
}

.sad {
  /* transform: translateX(50%) rotate(-8deg); */
  animation: shake 0.5s;
  animation: shake 0.5s;
}

@keyframes shake {
  0% {
    transform: translate(0, 0);
  }

  20% {
    transform: translate(-5px, 0);
  }

  40% {
    transform: translate(5px, 0);
  }

  60% {
    transform: translate(-4px, 0);
  }

  80% {
    transform: translate(4px, 0);
  }

  100% {
    transform: translate(0, 0);
  }
}

.shake {
  animation: shake 0.5s;
}

.flash {
  animation: flashRed 0.25s;
}

@keyframes flashRed {
  0% {
    background-color: rgba(255, 0, 0, 0.0);
  }

  50% {
    background-color: rgba(255, 0, 0, 0.25);
  }

  100% {
    background-color: rgba(255, 0, 0, 0.0);
  }
}

.result-screen {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 20;
}

.hidden {
  display: none;
}

.result-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.result-ganesha {
  width: 300px;
  animation: float 3s ease-in-out infinite;
}

#stars {
  font-size: 40px;
  margin-bottom: 10px;
  animation: pop 0.4s ease;
}

#result-text {
  font-size: 36px;
  color: white;
  margin-bottom: 20px;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}


/* 🎈 BALLOONS CONTAINER */
#balloons-container {
  position: fixed;
  /* 🔥 THIS IS THE FIX */
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 15;
}

/* 🎈 SINGLE BALLOON */
.balloon {
  position: absolute;
  bottom: -100px;
  border-radius: 50%;
  opacity: 0.95;

  /* 🎨 3D LOOK */
  background: radial-gradient(circle at 30% 30%, #ffffffaa, transparent 40%), var(--color);

  /* 🎭 depth blur */
  filter: blur(var(--blur));

  /* 🎈 animation */
  animation: floatUp var(--duration) linear forwards;
}

/* 🎈 STRING */
.balloon::after {
  content: "";
  position: absolute;
  width: 2px;
  height: 40px;
  background: rgba(255, 255, 255, 0.7);
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
}

/* 🎈 FLOAT ANIMATION */
@keyframes floatUp {
  0% {
    transform: translateY(0) translateX(0) scale(1);
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  100% {
    transform: translateY(-120vh) translateX(var(--drift)) scale(1.1);
    opacity: 0;
  }
}

.screen {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.screen.active {
    display: flex;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

#app {
    width: 100%;
    max-width: 1920px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 10;
}

#global-logo {
    position: absolute;
    top: 20px;
    right: 20px;
    height: 50px;
    z-index: 100;
    pointer-events: none;
}

.title-img {
    
    width: 740px;
    height: 490px;
    object-fit: cover;
    max-width: 1000px;
    animation: floaty 3s ease-in-out infinite;
    /* margin-top: -350px; */
}

@keyframes floaty {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.start-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0px; 
  z-index: 2;
  
  transform: translateY(-35px); 
}

#start-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  background: url('Assets/Images/bg.webp') center/cover no-repeat;

  display: flex;
  align-items: center;
  justify-content: center;
}
.start-btn {
    width: 400px;
    cursor: pointer;
    transition: transform 0.2s ease;
    animation: pulse 2s infinite;
    z-index: 2;
    margin-top: -40px;
}

.start-btn:hover {
    transform: scale(1.05);
}

.start-btn:active {
    transform: scale(0.95);
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.08); }
    100% { transform: scale(1); }
}

/* ANTI-DRAG */
* {
    user-select: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
}
img {
    pointer-events: none;
}
.start-btn, #start-btn {
    pointer-events: auto;
}
.option {
    pointer-events: auto;
}
