* { margin: 0; padding: 0; font-family: cursive; }

/*
.background {
  background-image: url(/src/images/heart.png);
  background-repeat: repeat;
	background-size: 50px 50px;
  position: absolute;
  inset: 0;
  z-index: -1000;
}
*/
a,
a:checked {
	text-decoration: none;
	color: inherit;
}
body.love-active .background {
  animation-play-state: running;
}

body.love-active .cupid_right,
body.love-active .cupid_left {
  opacity: 1;
  animation-play-state: running;
}
body.love-active .cupid_right {
  animation-delay: 0.5s, 0s;
}
body.love-active .cupid_left {
  animation-delay: 1s, 0s;
}
.background {
  background: url(/src/images/heart.png) center/contain no-repeat;
  position: fixed;
  width: 100vw;
  max-width: 300px;
  height: 100vh;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  z-index: -1000;

  animation: beatingheart 1s ease-in-out infinite;
  animation-play-state: paused;
}

/*
.background:hover,
.background:focus {
	transform: scale(1.25) translateX(-40%) rotate(-10deg);
}
*/
@keyframes beatingheart {
	0% {
		transform: scale(1) translateX(-50%);
	}
	30% {
		transform: scale(1.25) translateX(-40%);
	}
	100% {
		transform: scale(1) translateX(-50%);
	}
}


.cupid_right,
.cupid_left {
  opacity: 0;
  animation-play-state: paused;
  transition: opacity 0.8s ease;
}
.cupid_right {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 50px;
  height: 100px;

  background: url(/src/images/cupid.png) no-repeat center;
  background-size: contain;

  pointer-events: none;
  z-index: 999;

  animation:
    fly-around 18s linear infinite,
    flutter 1.5s ease-in-out infinite;
}
.cupid_left {
	position: fixed;
  top: 50%;
  left: 30%;
  width: 50px;
  height: 100px;

  background: url(/src/images/cupid_left.png) no-repeat center;
  background-size: contain;

  pointer-events: none;
  z-index: 999;
}
.c4,
.c2 {
  animation-name: fly-around-a, flutter;
}

.c3,
.c1 {
  animation-name: fly-around-b, flutter;
}
.c2 { animation-duration: 22s, 1.3s; }
.c3 { animation-duration: 16s, 1.7s; }
.c4 { animation-duration: 25s, 1.4s; }

.delay1 { animation-delay: -6s, 0s; }
.delay2 { animation-delay: -12s, 0s; }

@keyframes fly-around-a {
  0%   { transform: translate(-40vw, -30vh) rotate(0deg); }
  50%  { transform: translate(30vw, 40vh) rotate(25deg); }
  100% { transform: translate(-40vw, -30vh) rotate(0deg); }
}

@keyframes fly-around-b {
  0%   { transform: translate(40vw, -20vh) rotate(10deg); }
  50%  { transform: translate(-30vw, 30vh) rotate(-20deg); }
  100% { transform: translate(40vw, -20vh) rotate(10deg); }
}
@keyframes flutter {
  0%, 100% {
    scale: 1;
  }
  50% {
    scale: 1.05;
  }
}




body {
	display: flex;
	overflow: hidden;
}
h1 {
	background-color: #fff;
	padding: 10px 30px;
	margin: auto;
	border-radius: 20px;
	font-weight: bold;
	border: solid 3px #000;
	margin-top: 100px;
	z-index: 1000;
}
@media only screen and (max-width: 500px) {
	h1 {
		font-size: 1.5rem;
	}
}

.answer {
	/*background-color: #000;*/
	padding: 120px;
	position: absolute;
	border-radius: 30%;
	top: 35%;
	left: 50%;
	transform: translateX(-49%);
	font-size: 2rem;
	color: #fff;
	text-shadow: 0 0 3px rgba(0,0,0,1);
	transition: all 0.2s ease;
}
.answer:hover {
	transform: scale(1.5) translateX(-33%);
	text-shadow: 0 0 5px rgba(0,0,0,1);
}

.wrong_answer {
	position: absolute;
	bottom: 20%;
	left: 50%;
	transform: translateX(-50%);
}

.popup {
  position: fixed;
  bottom: 5%;
  left: 50%;
  transform: translateX(-50%) scale(0.9);
  background: #fff;
  padding: 15px 25px;
  border-radius: 15px;
  border: 2px solid #000;
  font-size: 1.2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 2000;
}

.popup.show {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}
