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

body, html {
  height: 100%;
  font-family: Arial, Helvetica, sans-serif; /* ✅ clean & simple */
  font-style: normal;  /* ✅ removes any italic */
  font-weight: normal; /* ✅ removes unwanted bold */
  -webkit-font-smoothing: antialiased; /* ✅ smooth text */
  -moz-osx-font-smoothing: grayscale;
  overflow-y: auto;
  background: #ffe4ec;
  color: #a259c6;
}

canvas#hearts {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.main-content {
  z-index: 2;
  position: absolute;
  top: 20%;
  width: 100%;
  text-align: center;
  padding: 20px;
}

.glow {
  font-size: 3em;
  color: #ff69b4;
  text-shadow: 0 0 5px #fff, 0 0 15px #ff69b4, 0 0 30px #ff69b4;
  margin-bottom: 30px;
  transition: transform 0.25s ease, text-shadow 0.25s ease;
  display: inline-block;
}

/* 🌸 Soft hover effect */
.glow:hover {
  transform: scale(1.08); /* only slightly pops out */
  text-shadow: 0 0 8px #fff, 0 0 25px #ff8ecf, 0 0 45px #ffc1e3;
  color: #ff7fc3;
}

.typewriter {
  font-size: 1.3em;
  max-width: 600px;
  margin: 0 auto 30px;
  min-height: 80px;
}

button {
  background:  linear-gradient(135deg, #ffd6f0, #fcd9ff, #fff0f9); /* dreamy pink-lilac blend */
  color: #8b2f7c;  /* soft romantic purple text */
  font-weight: 600;
  border: 2px solid #fbc6e4; 
  padding: 14px 35px;
  border-radius: 50px;
  font-size: 1.1em;
  cursor: pointer;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 20px rgba(255, 192, 203, 0.4);
  transition: all 0.3s ease-in-out;
  position: relative;
  overflow: hidden;
}

/* Glow effect */
button::before {
  content: "✨";
  position: absolute;
  left: 10%;
  opacity: 0;
  font-size: 1.3em;
  transition: all 0.4s ease;
}

button::after {
  content: "💖";
  position: absolute;
  right: 10%;
  opacity: 0;
  font-size: 1.3em;
  transition: all 0.4s ease;
}

/* Hover Effects */
button:hover {
  background: #FF8DA1;
  color: #a0458c;
  transform: translateY(-3px) scale(1.07);
  box-shadow: 0 8px 25px rgba(255, 182, 193, 0.6);
}

button:hover::before,
button:hover::after {
  opacity: 1;
  transform: translateY(-3px);
}

/* Popup Styling */
.popup {
  display: none;
  position: fixed;
  z-index: 5;
  left: 0; top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
}

.popup-card {
  background: rgb(255,250,250);
  color: #444;
  max-width: 500px;
  margin: 10% auto;
  padding: 30px;
  border-radius: 20px;
  position: relative;
  box-shadow: 0 0 30px rgba(255,105,180,0.5);
  text-align: center;
}

.popup-card h2 {
  color: #ff4da6;
  margin-bottom: 15px;
}

.popup-card p {
  line-height: 1.6;
  font-size: 1.1em;
}

.close {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 30px;
  color: #aaa;
  cursor: pointer;
}

/* ✅ Mobile-Only Adjustments */
@media (max-width: 768px) {
  .main-content {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    padding: 10px;
  }

  .glow {
    font-size: 2em;
  }

  .typewriter {
    font-size: 1em;
    max-width: 100%;
    word-wrap: break-word;
  }

.popup-card {
  background: white;
  color: #444;
  max-width: 500px;
  width: 90%;
  position: relative;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 0 30px rgba(255,105,180,0.5);
  text-align: center;

  /* ✅ FIX: Center with Flex and Avoid Navbar Overlap */
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
}

  .popup-card p {
    font-size: 1em;
  }
}

/* ✅ NAVBAR */
.navbar {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 800px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 10px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 20px rgba(255, 105, 180, 0.3);
  z-index: 100;
}

.nav-logo {
  font-size: 1.5em;
  font-weight: bold;
  color: #FF64B8; /* Pink matches button */
  text-shadow: 0 0 5px rgba(208, 120, 183, 0.841);
}

.nav-logo a {
  color: inherit;
  text-decoration: none;
}

.nav-logo a:hover {
  color: #E11B8D; /* Deeper pink */
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 25px;
}

.nav-links li a {
  color: #FF66CC;
  font-weight: 500;
  text-decoration: none;
  font-size: 1.1em;
  transition: all 0.3s ease;
}

.nav-links li a:hover {
color: #EC3AAA; /* Deeper pink */
}

/* for password modal*/
/* 🌸 Modal Background */
.modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #ffdde1, #ee9ca7);
  display: flex; justify-content: center; align-items: center;
  z-index: 9999;
  overflow: hidden;
}

/* 🌸 Floating PNGs */
.bg-floating {
  position: absolute;
  width: 70px;       /* all images small & cute */
  opacity: 0.7;
  animation: floaty 10s ease-in-out infinite;
}

/* 🌸 Animation */
@keyframes floaty {
  0%   { transform: translateY(0px) rotate(0deg); }
  50%  { transform: translateY(-25px) rotate(6deg); }
  100% { transform: translateY(0px) rotate(-6deg); }
}

/* 🌸 Modal Box */
.modal-content {
  background: rgba(255, 255, 255, 0.5); /* 50% transparent */
  padding: 30px;
  border-radius: 25px;
  text-align: center;
  max-width: 350px;
  z-index: 10;
  box-shadow: 0 0 20px rgba(255,105,180,0.4);
  animation: pop 0.5s ease;
}
@keyframes pop {
  from { transform: scale(0.7); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* 🌸 Input & Button */
.modal-content input {
  padding: 10px;
  border: 2px solid pink;
  border-radius: 10px;
  width: 80%;
  margin: 10px 0;
  font-size: 1rem;
  text-align: center;
}
.modal-content h2,
.modal-content p,
.error {
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.8); /* Added for text readability */
}
.heart-btn {
  background: #ff6b81;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 1rem;
  cursor: pointer;
  transition: 0.3s;
}
.heart-btn:hover {
  background: #ff3b69;
  transform: scale(1.1);
}
.error {
  color: red;
  font-size: 0.9rem;
  display: none;
  margin-top: 10px;
}