:root {
  --gap-scale-factor: 250;
  --primary-pink: #ff9bc1;
  --secondary-pink: #f9d6d6;
  --light-pink: #fff0f5;
  --green-yes: #57915e;
  --green-yes-hover: #6ba872;
  --red-no: #db4e4e;
  --red-no-hover: #e56767;
  --white: #ffffff;
  --shadow-color: rgba(0, 0, 0, 0.1);
  --text-shadow: rgba(0, 0, 0, 0.05);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  overflow: hidden;
}

body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: linear-gradient(135deg, var(--white) 0%, var(--light-pink) 50%, var(--secondary-pink) 100%);
  font-family: "Steph", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  position: relative;
  padding: 1rem;
}

@font-face {
  font-family: "Steph";
  src: url("assets/fonts/steph-font.ttf") format("truetype");
  font-weight: normal;
  font-display: swap;
}

@font-face {
  font-family: "Steph";
  src: url("assets/fonts/steph-font-bold.ttf") format("truetype");
  font-weight: bold;
  font-display: swap;
}

/* Floating hearts background */
.hearts-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.heart {
  position: absolute;
  width: 20px;
  height: 20px;
  background: var(--primary-pink);
  opacity: 0.3;
  animation: float 15s infinite;
}

.heart:before,
.heart:after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  background: var(--primary-pink);
  border-radius: 50%;
}

.heart:before {
  top: -10px;
  left: 0;
}

.heart:after {
  top: 0;
  left: 10px;
}

.heart:nth-child(1) {
  left: 10%;
  animation-delay: 0s;
  animation-duration: 12s;
}

.heart:nth-child(2) {
  left: 30%;
  animation-delay: 2s;
  animation-duration: 15s;
}

.heart:nth-child(3) {
  left: 50%;
  animation-delay: 4s;
  animation-duration: 18s;
}

.heart:nth-child(4) {
  left: 70%;
  animation-delay: 1s;
  animation-duration: 14s;
}

.heart:nth-child(5) {
  left: 90%;
  animation-delay: 3s;
  animation-duration: 16s;
}

@keyframes float {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.3;
  }
  90% {
    opacity: 0.3;
  }
  100% {
    transform: translateY(-100px) rotate(360deg);
    opacity: 0;
  }
}

/* Main container */
.container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 900px;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  animation: fadeIn 0.8s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Image container */
.image-container {
  position: relative;
  animation: bounce 2s infinite;
}

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

#togepi-gif {
  width: 400px;
  height: 320px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 10px 40px var(--shadow-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#togepi-gif:hover {
  transform: scale(1.02);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
}

/* Question text */
h1 {
  font-size: 3rem;
  margin: 0;
  background: linear-gradient(135deg, var(--primary-pink), var(--red-no));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.3;
  animation: textGlow 3s ease-in-out infinite;
}

@keyframes textGlow {
  0%, 100% {
    filter: drop-shadow(0 0 10px rgba(255, 155, 193, 0.3));
  }
  50% {
    filter: drop-shadow(0 0 20px rgba(255, 155, 193, 0.6));
  }
}

.emoji {
  display: inline-block;
  animation: wave 1.5s ease-in-out infinite;
}

@keyframes wave {
  0%, 100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(-10deg);
  }
  75% {
    transform: rotate(10deg);
  }
}

/* Button container */
.btn-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 60px;
  margin-top: 1rem;
  transition: gap 0.3s ease;
}

/* Buttons */
.btn {
  border-radius: 12px;
  min-width: 120px;
  max-width: 550px;
  border: none;
  cursor: pointer;
  padding: 16px 32px;
  font-size: 1.4rem;
  font-weight: 700;
  font-family: inherit;
  box-shadow: 0 4px 15px var(--shadow-color);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  transform-origin: center;
}

.btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn-text {
  position: relative;
  z-index: 1;
}

.btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.btn:active {
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 4px 15px var(--shadow-color);
}

#yes-btn {
  background: linear-gradient(135deg, var(--green-yes), var(--green-yes-hover));
  color: var(--white);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 4px 15px var(--shadow-color);
  }
  50% {
    box-shadow: 0 4px 25px rgba(87, 145, 94, 0.4);
  }
}

#yes-btn:hover {
  background: linear-gradient(135deg, var(--green-yes-hover), var(--green-yes));
}

#no-btn {
  background: linear-gradient(135deg, var(--red-no), var(--red-no-hover));
  color: var(--white);
}

#no-btn:hover {
  background: linear-gradient(135deg, var(--red-no-hover), var(--red-no));
}

/* Responsive Design */
@media (max-width: 1150px) {
  :root {
    --gap-scale-factor: 200;
  }

  #togepi-gif {
    width: 350px;
    height: 280px;
  }

  h1 {
    font-size: 2.5rem;
  }

  .btn-container {
    gap: 40px;
  }

  .btn {
    font-size: 1.2rem;
    padding: 14px 28px;
  }
}

@media (max-width: 768px) {
  :root {
    --gap-scale-factor: 150;
  }

  .content-wrapper {
    gap: 1.5rem;
  }

  #togepi-gif {
    width: 280px;
    height: 224px;
  }

  h1 {
    font-size: 2rem;
  }

  .btn-container {
    gap: 30px;
  }

  .btn {
    font-size: 1.1rem;
    padding: 12px 24px;
  }
}

@media (max-width: 600px) {
  :root {
    --gap-scale-factor: 50;
  }

  body {
    padding: 0.5rem;
  }

  .image-container {
    animation: none;
  }

  .content-wrapper {
    gap: 1rem;
  }

  #togepi-gif {
    width: 220px;
    height: 176px;
    border-radius: 12px;
  }

  h1 {
    font-size: 1.5rem;
    padding: 0 0.5rem;
  }

  .btn-container {
    gap: 15px;
    margin-top: 0.75rem;
  }

  .btn {
    font-size: 1rem;
    padding: 12px 20px;
    min-width: 90px;
    max-width: 200px;
  }

  .heart {
    width: 12px;
    height: 12px;
  }

  .heart:before,
  .heart:after {
    width: 12px;
    height: 12px;
  }

  .heart:before {
    top: -6px;
  }

  .heart:after {
    left: 6px;
  }
}

@media (max-width: 400px) {
  .content-wrapper {
    gap: 0.75rem;
  }

  h1 {
    font-size: 1.3rem;
    padding: 0 0.25rem;
  }

  #togepi-gif {
    width: 190px;
    height: 152px;
  }

  .btn {
    font-size: 0.9rem;
    padding: 10px 16px;
    min-width: 80px;
  }

  .btn-container {
    gap: 12px;
  }
}

/* For very short screens */
@media (max-height: 650px) {
  .content-wrapper {
    gap: 0.75rem;
  }

  #togepi-gif {
    width: 180px;
    height: 144px;
  }

  h1 {
    font-size: 1.3rem;
  }

  .btn {
    font-size: 0.95rem;
    padding: 10px 18px;
  }
}
