/* ✅ Base Styles */
* {
  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;
}

/* ❤️ Heart Canvas */
canvas#hearts {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* 🌸 Main Content */
.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;
}

.glow:hover {
  transform: scale(1.08);
  text-shadow: 0 0 8px #fff, 0 0 25px #ff8ecf, 0 0 45px #ffc1e3;
  color: #ff7fc3;
}

/* ✅ Memories Container */
.memories-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding: 20px;
}

/* 📸 Memory Card */
.memory-card {
  background: rgba(255, 255, 255, 0.5); /* 50% transparent */
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 20px;
  width: 300px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(255, 105, 180, 0.2);
  animation: fadeIn 1s ease-in-out;
}

.memory-card h3,
.memory-card p {
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.8); /* Added for text readability */
}

.memory-card h3 {
  color: #ff66cc;
  margin-bottom: 10px;
}

.memory-card p {
  color: #a259c6;
  font-size: 1.1em;
  line-height: 1.5em;
}

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

/* ✅ Mobile Adjustments */
@media (max-width: 768px) {
  .main-content {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    padding: 10px;
  }
  .glow {
    font-size: 2em;
  }
  .memory-card {
    width: 90%;
  }
}

/* ✅ 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;
  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;
}

.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;
}

/* for password modal and memories page modal */
.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;
}

.days-counter {
  text-align: center;
  margin-top: 40px;
}

.days-counter h2 {
  font-size: 1rem; /* smaller heading */
  color: #8b2f7c;
  text-shadow: 0 0 6px rgba(255, 110, 199, 0.4);
}

#daysTogether {
  font-size: 1rem; /* smaller counter text */
  font-weight: bold;
  color: #8b2f7c;
  text-shadow: 0 0 8px rgba(255, 153, 204, 0.6);
  font-family: 'Arial', sans-serif;
}

/* ⏳ Time Counter Box */
.time-container {
  display: inline-block;
  background: rgba(255, 255, 255, 0.6);
  padding: 4px 10px;   /* smaller padding */
  border-radius: 8px;  /* smaller corners */
  box-shadow: 0 2px 5px rgba(255, 105, 180, 0.2);
  font-size: 0.9em;    /* smaller font inside the container */
  font-weight: bold;
  color: #ff69b4;
  animation: fadeIn 1.5s ease-in-out;
}