body {
  font-family: 'Arial', sans-serif;
  background: linear-gradient(135deg, #ffe0f0, #e0f7ff);
  text-align: center;
  margin: 0;
  padding: 0;
  color: #444;
  overflow-x: hidden;
}

h1, h2 {
  color: #d63384;
  animation: fadeInDown 2s ease;
}

#login-screen {
  margin-top: 20vh;
  animation: fadeIn 2s ease;
}

input[type="password"], input[type="text"] {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #aaa;
  margin: 10px;
}

button {
  padding: 10px 20px;
  background: #ff6fa3;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.3s ease;
}
button:hover {
  background: #ff4f8c;
  transform: scale(1.05);
}

/* Album grid */
.album {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 20px;
}

.memory.card {
  background: white;
  padding: 20px;
  border-radius: 16px;
  width: 320px;
  box-shadow: 0px 6px 16px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: fadeInUp 1s ease;
}
.memory.card:hover {
  transform: scale(1.02);
  box-shadow: 0px 8px 20px rgba(0,0,0,0.2);
}

.unlock-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}
.unlock-row input[type="text"] {
  margin: 0;
  max-width: 160px;
}
.unlock-row button {
  padding: 10px 14px;
}

/* Gallery layout for subpages */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin: 24px auto;
  width: min(1000px, 92vw);
}
.gallery img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.gallery img:hover {
  transform: scale(1.05);
}

/* Animations */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Floating hearts animation */
@keyframes float {
  0% { transform: translateY(0) scale(1); opacity: 1; }
  100% { transform: translateY(-800px) scale(0.5); opacity: 0; }
}
.heart {
  position: fixed;
  bottom: -50px;
  font-size: 24px;
  color: #ff6fa3;
  animation: float 6s linear infinite;
  z-index: -1;
}

/* Back button */
.back {
  margin: 20px 0 0;
  display: inline-block;
}
