:root {
    --primary-color: #ff4d6d;
    --secondary-color: #ff8fa3;
    --tertiary-color: #fdd1d9;
    --yes-color: #67a67b;
    --accent-color: #c9184a;
    --bg-gradient: linear-gradient(135deg, #fff0f3 0%, #ffccd5 100%);
    --white: #ffffff;
    --font-heading: 'Great Vibes', cursive;
    --font-body: 'Poppins', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    font-family: var(--font-body);
    background: var(--bg-gradient);
    user-select: none; /* Prevent selection during game */
}

body {
    background-image: url("images/sky.jpg");
    background-color: #cccccc;
    background-size: cover; /* This makes the image cover the entire element */
    background-position: center; /* Centers the image */
    background-repeat: no-repeat; /* Prevents the image from repeating */
}
#confetti-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 9999;
}

.confetti {
  position: absolute;
  width: 10px;
  height: 14px;
  opacity: 0.9;
  animation: fall 2.5s linear forwards;
}

@keyframes fall {
  from {
    transform: translateY(-20px) rotate(0deg);
  }
  to {
    transform: translateY(110vh) rotate(720deg);
  }
}

#celebration-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    /*background-image: url("images/flowersky.png");*/
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    
    z-index: 50;
}

video {
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  object-fit: cover; /* Ensures the video covers the area while maintaining aspect ratio */
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translateX(-50%) translateY(-50%); /* Centers the video */
}

#lovebench {
    display: block;
    margin-top: 50px;
    margin-right: 20px;
    position: relative; /* Needed to be above the video's negative z-index */
    z-index: 1;
}

#wishes {
   color: var(--tertiary-color); 
   position: absolute;
  top: 550px;   /* adjust */
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  z-index: 60;
  width: 100%;
  text-align: center;
}

#camera {
  float: right;
  margin: -50px -80px 15px 15px;
}

#game-container {
    position: relative;
    width: 100%;
    height: 100%;
}

canvas {
    display: block;
    width: 100%;
    height: 100%;
}

/* UI Layer */
#ui-layer {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
    pointer-events: none;
}

#score-board {
    background: rgba(255, 255, 255, 0.8);
    padding: 10px 20px;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(255, 77, 109, 0.2);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--accent-color);
}

.progress-bar {
    width: 150px;
    height: 30px;
    background: #ffe5ec;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--secondary-color);
}

#love-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transition: width 0.3s ease-out;
}

/* Screens */
.screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(255, 240, 243, 0.7);
    z-index: 20;
    transition: opacity 0.5s ease;
}


.screen.hidden {
    opacity: 0;
    pointer-events: none;
    display: none; /* simple hide for logic */
}

.screen.active {
    opacity: 1;
    pointer-events: auto;
    display: flex;
}

.display {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(255, 240, 243, 0.7);
    z-index: 20;
    transition: opacity 2.5s ease;
}

.display.hidden {
    opacity: 0;
    pointer-events: none;
    visibility: hidden; /* simple hide for logic */
}

.display.active {
    opacity: 1;
    pointer-events: auto;
}

.hidden_cloud {
    opacity: 0;
    pointer-events: none;
    display: none; /* simple hide for logic */
}

h1 {
    font-family: var(--font-heading);
    font-size: 5rem;
    color: var(--accent-color);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    text-align: center;
    line-height: 1.2;
}


p {
    font-size: 1.2rem;
    color: #590d22;
    margin-bottom: 30px;
    text-align: center;
}

.btn {
    padding: 15px 40px;
    font-size: 1.2rem;
    font-family: var(--font-body);
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 5px 15px rgba(201, 24, 74, 0.3);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(201, 24, 74, 0.4);
}

.btn:active {
    transform: translateY(1px);
}

#start-btn {
    background: var(--primary-color);
    color: white;
}

.buttons {
    display: flex;
    gap: 20px;
}

.yes-btn {
    background: var(--accent-color);/*#2dc653; */
    color: white;
    font-size: 1.5rem;
    padding: 20px 60px;
}

.no-btn {
    background: #ffb703;
    color: white;
    position: relative;
    transition: all 0.2s;
}

/* Animations */
@keyframes heartbeat {
    0% { transform: scale(1); }
    15% { transform: scale(1.1); }
    30% { transform: scale(1); }
    45% { transform: scale(1.1); }
    60% { transform: scale(1); }
}

.proposal-content h1 {
    animation: heartbeat 2s infinite;
}

/*CLOUDS */
#background-wrap {
    bottom: 0;
	left: 0;
	padding-top: 50px;
	position: fixed;
	right: 0;
	top: 0;
	z-index: -1;
}

/* KEYFRAMES */

@-webkit-keyframes animateCloud {
    0% {
        margin-left: -1000px;
    }
    100% {
        margin-left: 100%;
    }
}

@-moz-keyframes animateCloud {
    0% {
        margin-left: -1000px;
    }
    100% {
        margin-left: 100%;
    }
}

@keyframes animateCloud {
    0% {
        margin-left: -1000px;
    }
    100% {
        margin-left: 100%;
    }
}

/* ANIMATIONS */

.x1 {
	-webkit-animation: animateCloud 35s linear infinite;
	-moz-animation: animateCloud 35s linear infinite;
	animation: animateCloud 35s linear infinite;
	
	-webkit-transform: scale(0.65);
	-moz-transform: scale(0.65);
	transform: scale(0.65);
}

.x2 {
	-webkit-animation: animateCloud 20s linear infinite;
	-moz-animation: animateCloud 20s linear infinite;
	animation: animateCloud 20s linear infinite;
	
	-webkit-transform: scale(0.3);
	-moz-transform: scale(0.3);
	transform: scale(0.3);
}

.x3 {
	-webkit-animation: animateCloud 30s linear infinite;
	-moz-animation: animateCloud 30s linear infinite;
	animation: animateCloud 30s linear infinite;
	
	-webkit-transform: scale(0.5);
	-moz-transform: scale(0.5);
	transform: scale(0.5);
}

.x4 {
	-webkit-animation: animateCloud 18s linear infinite;
	-moz-animation: animateCloud 18s linear infinite;
	animation: animateCloud 18s linear infinite;
	
	-webkit-transform: scale(0.4);
	-moz-transform: scale(0.4);
	transform: scale(0.4);
}

.x5 {
	-webkit-animation: animateCloud 25s linear infinite;
	-moz-animation: animateCloud 25s linear infinite;
	animation: animateCloud 25s linear infinite;
	
	-webkit-transform: scale(0.55);
	-moz-transform: scale(0.55);
	transform: scale(0.55);
}

/* OBJECTS */

.cloud {
	background: #fff;
	background: -moz-linear-gradient(top,  #fff 5%, #f1f1f1 100%);
	background: -webkit-gradient(linear, left top, left bottom, color-stop(5%,#fff), color-stop(100%,#f1f1f1));
	background: -webkit-linear-gradient(top,  #fff 5%,#f1f1f1 100%);
	background: -o-linear-gradient(top,  #fff 5%,#f1f1f1 100%);
	background: -ms-linear-gradient(top,  #fff 5%,#f1f1f1 100%);
	background: linear-gradient(top,  #fff 5%,#f1f1f1 100%);
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#fff', endColorstr='#f1f1f1',GradientType=0 );
	
	-webkit-border-radius: 100px;
	-moz-border-radius: 100px;
	border-radius: 100px;
	
	-webkit-box-shadow: 0 8px 5px rgba(0, 0, 0, 0.1);
	-moz-box-shadow: 0 8px 5px rgba(0, 0, 0, 0.1);
	box-shadow: 0 8px 5px rgba(0, 0, 0, 0.1);

	height: 120px;
	position: relative;
	width: 350px;
}

.cloud:after, .cloud:before {
    background: #fff;
	content: '';
	position: absolute;
	z-indeX: -1;
}

.cloud:after {
	-webkit-border-radius: 100px;
	-moz-border-radius: 100px;
	border-radius: 100px;

	height: 100px;
	left: 50px;
	top: -50px;
	width: 100px;
}

.cloud:before {
	-webkit-border-radius: 200px;
	-moz-border-radius: 200px;
	border-radius: 200px;

	width: 180px;
	height: 180px;
	right: 50px;
	top: -90px;
}

/*BIRDS ANIMATIONS*/

.bird{
    background-image: url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/174479/bird-cells-new.svg');
    filter: invert(34%) sepia(55%) saturate(427%) hue-rotate(141deg) brightness(93%) contrast(91%);
    background-size: auto 100%;
    width: 88px;
    height: 125px;
    will-change: background-position;

    animation-name: fly-cycle;
    animation-timing-function: steps(10);
    animation-iteration-count: infinite;
}

.bird-one{
    animation-duration: 1s;
    animation-delay: -0.5s;

}
.bird-two{ 
  animation-duration: 0.9s; 
  animation-delay: -0.75s; 
}
.bird-three{
    animation-duration:1.25s;
    animation-delay: -0.25s

}
.bird-four{
    animation-duration: 1.1s;
    animation-delay: -0.5s;
}

.bird-container {
	position: absolute;
	top: 10%;
  left: -3%;
	transform: scale(0) translateX(-10vw);
	will-change: transform;
	
	animation-name: fly-right-one;
	animation-timing-function: linear;
	animation-iteration-count: infinite;
}
	
.bird-container-one{
	animation-duration: 15s;
	animation-delay: 0;
}
	
.bird-container-two{
	animation-duration: 16s;
	animation-delay: 1s;
}
	
.bird-container-three{
	animation-duration: 14.6s;
	animation-delay: 9.5s;
}
	
.bird-container-four {
		animation-duration: 16s;
		animation-delay: 10.25s;
}
/* @keyframes fly-cycle {
    100%{
        background-position: -3600px 0;
    }
} */
@keyframes fly-cycle {
	
	100% {
		background-position: -900px 0;
	}
	
}

@keyframes fly-right-one {
	
	0% {
		transform: scale(0.3) translateX(-10vw);
	}
	
	10% {
		transform: translateY(2vh) translateX(10vw) scale(0.4);
	}
	
	20% {
		transform: translateY(0vh) translateX(30vw) scale(0.5);
	}
	
	30% {
		transform: translateY(4vh) translateX(50vw) scale(0.6);
	}
	
	40% {
		transform: translateY(2vh) translateX(70vw) scale(0.6);
	}
	
	50% {
		transform: translateY(0vh) translateX(90vw) scale(0.6);
	}
	
	60% {
		transform: translateY(0vh) translateX(110vw) scale(0.6);
	}
	
	100% {
		transform: translateY(0vh) translateX(110vw) scale(0.6);
	}
	
}

@keyframes fly-right-two {
	
	0% {
		transform: translateY(-2vh) translateX(-10vw) scale(0.5);
	}
	
	10% {
		transform: translateY(0vh) translateX(10vw) scale(0.4);
	}
	
	20% {
		transform: translateY(-4vh) translateX(30vw) scale(0.6);
	}
	
	30% {
		transform: translateY(1vh) translateX(50vw) scale(0.45);
	}
	
	40% {
		transform: translateY(-2.5vh) translateX(70vw) scale(0.5);
	}
	
	50% {
		transform: translateY(0vh) translateX(90vw) scale(0.45);
	}
	
	51% {
		transform: translateY(0vh) translateX(110vw) scale(0.45);
	}
	
	100% {
		transform: translateY(0vh) translateX(110vw) scale(0.45);
	}
	
}


/* BUTTERFLY ANIMATION*/

div#butterfly-container{

    perspective: 600px;
    perspective-origin: 0% 0%;
    width: 850px;
    height: 566px;
    left: 200px;
    top: 0px;
    color:rgb(255, 255, 255);
    margin: 0px auto;
    background: transparent;
    z-index: 9999;
}

div#butterflypink{
    transform-origin: 80% 50%;
    left:0px;
    top:0px;
    width: 366px;
    height: 208px;
    transform-style: preserve-3d;
    animation-name: butterflypink;
    animation-duration: 5s;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
}
div#butterflyblue{
    transform-origin: 80% 50%;
    left:0px;
    top:0px;
    width: 366px;
    height: 208px;
    transform-style: preserve-3d;
    animation-name: butterflyblue;
    animation-duration: 9s;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
}

@keyframes butterflypink {
    from {
        transform: rotate3d(0, 1, 0, 0deg) scale3d(0.2, 0.2, 0.2) translate3d(-500px, 350px, 0px);
    }
    25% {
        transform: rotate3d(0, 1, 0, -90deg) scale3d(0.2, 0.2, 0.2) translate3d(-500px, 350px, 0px);
    }
    50% {
        transform: rotate3d(0, 1, 0, -180deg) scale3d(0.2, 0.2, 0.2) translate3d(-500px, 350px, 0px);
    }
    75% {
        transform: rotate3d(0, 1, 0, -270deg) scale3d(0.2, 0.2, 0.2) translate3d(-500px, 350px, 0px);
    }
    to{
        transform: rotate3d(0, 1, 0, -360deg) scale3d(0.2, 0.2, 0.2) translate3d(-500px, 350px, 0px);
    }
}

@keyframes butterflyblue {
    from {
    transform: scaleX(-1) rotate3d(0, 1, 0, 0deg) scale3d(0.2, 0.2, 0.2) translate3d(-1000px, 350px, 0px);
  }
  25% {
    transform: scaleX(-1) rotate3d(0, 1, 0, -90deg) scale3d(0.2, 0.2, 0.2) translate3d(-1000px, 350px, 0px);
  }
  50% {
    transform: scaleX(-1) rotate3d(0, 1, 0, -180deg) scale3d(0.2, 0.2, 0.2) translate3d(-1000px, 350px, 0px);
  }
  75% {
    transform: scaleX(-1) rotate3d(0, 1, 0, -270deg) scale3d(0.2, 0.2, 0.2) translate3d(-1000px, 350px, 0px);
  }
  to {
    transform: scaleX(-1) rotate3d(0, 1, 0, -360deg) scale3d(0.2, 0.2, 0.2) translate3d(-1000px, 350px, 0px);
  }
}

div#rightwingpink{
    transform: rotateX(90deg) translate3d(-178px, 0px, 0px) rotate3d(0, 1, 0, 180deg) ;
    transform-origin: top right;
    position: absolute;
    left:178px;
    top:0px;
    width: 178px;
    height: 208px;
    background-image: url("images/pinkwingscrop.png");
    background-repeat:no-repeat;
    animation-name: rightwingpink;
    animation-duration: 0.2s;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
}

div#rightwingblue{
    transform: rotateX(90deg) translate3d(-178px, 0px, 0px) rotate3d(0, 1, 0, 180deg) ;
    transform-origin: top right;
    position: absolute;
    left:178px;
    top:0px;
    width: 178px;
    height: 208px;
    background-image: url("images/bluewingscrop.png");
    background-repeat:no-repeat;
    animation-name: rightwingpink;
    animation-duration: 0.2s;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
}

@keyframes rightwingpink {
    from {
        transform:rotateX(90deg) translate3d(-178px, 0px, 0px) rotate3d(0, 1, 0, 180deg);
    }
    50% {
        transform:rotateX(90deg) translate3d(-178px, 0px, 0px) rotate3d(0, 1, 0, 100deg);
    }
    to{
        transform:rotateX(90deg) translate3d(-178px, 0px, 0px) rotate3d(0, 1, 0, 180deg);
    }
}

@keyframes rightwingblue {
    from {
        transform: rotateX(90deg) translate3d(-178px, 0px, 0px) rotate3d(0, 1, 0, 180deg);
    }
    50% {
        transform:rotateX(90deg) translate3d(-178px, 0px, 0px) rotate3d(0, 1, 0, 100deg);
    }
    to{
        transform:rotateX(90deg) translate3d(-178px, 0px, 0px) rotate3d(0, 1, 0, 180deg);
    }
}

div#leftwingpink{
    transform: rotateX(90deg) rotate3d(0, 1, 0, 0deg) ;
    position: absolute;
    transform-origin: top right;
    left:0px;
    top:0px;
    width: 178px;
    height: 208px;
    background-image: url("images/pinkwingscrop.png");
    background-repeat: no-repeat;
    animation-name: leftwingpink;
    animation-duration: 0.2s;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
}

div#leftwingblue{
    transform: rotateX(90deg) rotate3d(0, 1, 0, 0deg) ;
    position: absolute;
    transform-origin: top right;
    left:0px;
    top:0px;
    width: 178px;
    height: 208px;
    background-image: url("images/bluewingscrop.png");
    background-repeat: no-repeat;
    animation-name: leftwingblue;
    animation-duration: 0.2s;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
}

@keyframes leftwingpink {
    from {
        transform:rotateX(90deg) rotate3d(0, 1, 0, 0deg);
    }
    50% {
        transform:rotateX(90deg) rotate3d(0, 1, 0, 80deg);
    }
    to{
        transform:rotateX(90deg) rotate3d(0, 1, 0, 00deg);
    }
}

@keyframes leftwingblue {
    from {
        transform:rotateX(90deg) rotate3d(0, 1, 0, 0deg);
    }
    50% {
        transform:rotateX(90deg) rotate3d(0, 1, 0, 80deg);
    }
    to{
        transform:rotateX(90deg) rotate3d(0, 1, 0, 00deg);
    }
}

/* LOVE LETTER */

#letter_body {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(12, 1fr);
  min-height: 100vh;
  width: 100%;
  background: transparent;
  margin: 0;
  padding: 0;
  font-family: "Courgette";
  
}

.instruction{
    color: rgb(119, 76, 76);
    margin-top: 10px;
    font-size: 15px;
    
}

#letter_ct {
  width: 400px;
  height: 300px;
  grid-row: 4/7;
  grid-column: 5/9;
  display: flex;
  align-items: center;
  text-align: center;
  margin: auto;
}

.txt {
  grid-row: 9/11;
  grid-column: 5/9;
  text-align: center;
  font-size: large;
}

label {
  position: absolute;
}

.letter {
  grid: inherit;
  width: 400px;
  height: 300px;
  background-color: pink;
  border: 4px solid palevioletred;
  display: grid;
  transition: all 0.3s ease-in-out;
  position: absolute;
  border-radius: 0 0 7px 7px;
}

.main {
  box-shadow: 0 10px 30px rgb(185, 129, 185);
}

.note {
  z-index: 1;
  justify-content: center;
  position: absolute;
  width: 390px;
  height: 270px;
  margin: 10px 9px;
  background-color: whitesmoke;
  font-family: "Brush Script MT";
  p {
    margin: 15px 30px;
    font-size: 17px;
    color: rgb(110, 0, 110);
  }
  .int {
    text-align: left;
  }
  .sign {
    text-align: right;
  }

  transform: translateY(0px);
  transition-duration: 1.3s;
}

.front {
  position: absolute;
  z-index: 2;
  width: 401px;
  height: 300px;
  background-color: rgb(252, 157, 188);
  margin: 4px;
  clip-path: polygon(50% 45%, 100% 0, 100% 100%, 0 100%, 0 0);
}

.flap-bg {
  z-index: 2;
  background-color: palevioletred;
  margin-top: 4px;
  clip-path: polygon(0% 0%, 100% 0%, 100% 1%, 50% 56%, 0 1%);

  transform: rotateX(0deg);
  transition-duration: 0.3s ease-in-out;
}

.flap {
  z-index: 2;
  margin-left: 3px;
  background-color: rgb(255, 163, 179);
  border: unset;
  clip-path: polygon(0 0, 100% 0, 50% 55%);

  transform: rotateX(0deg);
  transition-duration: 0.3s ease-in-out;
}

.heart {
  position: absolute;
  z-index: 4;
  cursor: pointer;
  height: 170px;
  width: 200px;

  scale: 30%;
  margin: 70px 102px;
  transition: transform 0.3s ease-in-out;
}

.heart::before,
.heart::after {
  content: "";
  position: absolute;
  width: 100px;
  height: 160px;
  background-color: rgb(178, 34, 106);
}

.heart::before {
  left: 100px;

  -webkit-transform-origin: 0 100%;
  transform-origin: 0 100%;

  -webkit-transform: rotate(-45deg);
  transform: rotate(-45deg);

  border-radius: 50px 50px 0 0;
}

.heart::after {
  right: 100px;

  -webkit-transform-origin: 100% 100%;
  transform-origin: 100% 100%;

  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);

  -webkit-border-radius: 50px 50px 0 0;
  border-radius: 50px 50px 0 0;
}

/* checkbox */
#check {
  display: none;
}

input:not(:checked) ~ label .flap {
  transform-origin: top;
  transform: rotateX(0deg);
  transition: 0.3s ease-in-out;
  transition-delay: 1.3s;

  transition-delay: q.3s;
  transform-origin: top;
  transform: rotateX(0deg);
}

input:not(:checked) ~ label .flap-bg {
  transform-origin: top;
  transform: rotateX(0deg);
  transition: 0.3s ease-in-out;
  transition-delay: 1.3s;

  transition-delay: 1.3s;
  transform-origin: top;
  transform: rotateX(0deg);
}

input:not(:checked) ~ label .heart {
  transform-origin: center 70%;
  transform: translateY(0px) rotate(0deg);
  transition-delay: 0.6s;

  transition-delay: 0.6s;
  transform-origin: center 70%;
  transform: translateX(0px) rotate(0deg);
}

input:checked ~ label .flap {
  transform: rotateX(-180deg) translateY(-4px);
  transition: 0.3s ease-in-out;
  transition-delay: 0.3s;

  transform-origin: top;
  transform: rotateX(-180deg) translateY(-4px);
  transition-delay: transform 0.3s ease;
}

input:checked ~ label .flap-bg {
  transform: rotateX(-180deg);
  transition: 0.3s ease-in-out;
  transition-delay: 0.3s;

  transform-origin: top;
  transform: rotateX(-180deg);
  transition-delay: transform 0.3s ease;
  transition-delay: 0.3s;
}

input:checked ~ label .flap,
input:checked ~ label .flap-bg {
  transform-origin: top;
  transition: transform 0.3s 0.4s, z-index 0s 0.6s;

  z-index: 0;
}

input:checked ~ label .heart {
  transform-origin: center 70%;
  transform: translateX(-60px) rotate(-70deg);
  transition-duration: 0.3s;

  transform-origin: center 70%;
  transform: translateX(-60px) rotate(-70deg);
  transition-duration: 0.3s;
}

input:checked ~ label .note {
  transform: translateY(-220px);
  transition-delay: 0.8s;
}

/* LOVE ARROW */



.boy-wrapper {
  position: absolute;
  top: 50%;
  right: 40px;
  transform: translateY(-50%);
  z-index: 1000;
  animation: arrowHover 2s ease-in-out infinite;
  transition: opacity 2s ease;
}


.boy-wrapper.hidden{
    opacity: 0;
    pointer-events: none;
    visibility: hidden; /* simple hide for logic */
}

.boy-wrapper.active{
    opacity: 1;
    pointer-events: auto;
    display: flex;
}

/* remove absolute positioning from the boy image */
.arrow-img {
  position: relative;
  width: 120px;
  height: auto;
  cursor: pointer;
  
}
@keyframes arrowHover {
  0%, 100% {
    transform: translateY(-50%) translateY(0px);
  }
  50% {
    transform: translateY(-50%) translateY(-12px);
  }
}
.speech-bubble {
  position: absolute;
  top: -70px;   /* adjust */
  
  transform: translateX(-50%);
  font-family:'Times New Roman', Times, serif;

  background: white;
  padding: 10px 15px;
  border-radius: 15px;
  font-weight: bold;
  font-size: 14px;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.speech-bubble::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);

  border-width: 10px;
  border-style: solid;
  border-color: white transparent transparent transparent;
}

