
body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: #fff0f5;
  color: #333;
}

header {
  text-align: center;
  padding: 50px 20px 20px;
}

header h1 {
  font-size: 2.5em;
  color: #d81b60;
}

section {
  padding: 40px 20px;
  max-width: 900px;
  margin: auto;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}


.gallery img {
  width: 100%;
  border-radius: 10px;
}

.memory-entry {
  background: #ffffff;
  color: #333333; /* koyu yazı rengi */
  border-left: 5px solid #d81b60;
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1); /* gölgeyle ayrılır */
  transition: transform 0.2s ease;
}

.memory-entry:hover {
  transform: scale(1.01);
}


.music-player {
  text-align: center;
  margin: 40px 0;
}

.surprise {
  text-align: center;
  background: #ffe0f0;
  padding: 30px;
  border-radius: 10px;
  margin-top: 50px;
}

.intro-text {
  font-size: 1.4em;
  font-weight: bold;
  max-width: 700px;
  margin: 30px auto;
  line-height: 1.3;
  text-align: center;
  color: #f5f5f5;
}

.baslik-text {
  font-size: 1.8em;
  font-weight: bold;
  max-width: 700px;
  margin: 30px auto;
  line-height: 1.3;
  text-align: center;
  color: #f5f5f5;
}

.image-text {
  font-size: 1.2em;
  font-weight: bold;
  max-width: 700px;
  margin: 10px auto;
  line-height: 1.3;
  text-align: center;
  color: #4a0b2b;
}

.memory-card {
  background-color: #e1bee7; /* Açık mor */
  border-radius: 15px;
  padding: 15px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.memory-card:hover {
  transform: scale(1.02);
}

.memory-card img {
  border-radius: 10px;
  width: 100%;
  max-height: 360px;
  object-fit: cover;
}

.memory-card p {
  font-weight: bold;
  color: #4a004e;
  margin-top: 10px;
}

/* Lightbox stil */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  box-shadow: 0 0 20px #000;
  animation: fadein 0.3s ease;
}

@keyframes fadein {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 30px;
  background-color: #ba68c8;
  color: white;
  font-size: 26px;
  font-weight: bold;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0,0,0,0.4);
  transition: background-color 0.3s;
  z-index: 1100;
}

.close-btn:hover {
  background-color: #ab47bc;
}

.heart {
  position: fixed;
  width: 20px;
  height: 20px;
  background: red;
  transform: rotate(45deg);
  animation: floatUp 4s linear forwards;
  opacity: 0.8;
  z-index: 999999 !important;
  pointer-events: none;
}

.heart::before,
.heart::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  background: red;
  border-radius: 50%;
}

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

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

@keyframes floatUp {
  0% { transform: translateY(0) rotate(45deg); opacity: 1; }
  100% { transform: translateY(-120vh) rotate(45deg); opacity: 0; }
}


html, body {
  overflow-x: hidden;
  position: relative;
}

@media (max-width: 768px) {
  .gallery {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }

  .memory-card {
    margin: 0 15px;
    font-size: 1em;
  }

  .intro-text {
    font-size: 1.1em;
    padding: 0 15px;
  }

  .memory-entry {
    font-size: 1em;
    padding: 15px;
    margin: 15px;
  }

  .music-player {
    padding: 0 15px;
  }
}

#lock-screen {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, #000000, #1a1a1a);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999999;
  color: white;
}

.lock-box {
  text-align: center;
  background: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.lock-icon {
  font-size: 50px;
  margin-bottom: 10px;
}

.lock-message {
  font-size: 20px;
  margin-bottom: 10px;
}

#password-input {
  padding: 10px;
  font-size: 16px;
  border-radius: 10px;
  border: none;
  outline: none;
  margin-bottom: 10px;
  width: 200px;
}

button {
  background: #d81b60;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  cursor: pointer;
}

button:hover {
  background: #c2185b;
}

#hint {
  margin-top: 10px;
  font-size: 14px;
  color: #aaa;
}

#error-msg {
  margin-top: 10px;
  color: #ff8080;
  font-weight: bold;
}

@keyframes fadeInZoom {
  0% {
    opacity: 0;
    transform: scale(0.95);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

#main-content.show {
  animation: fadeInZoom 1.2s ease-out;
}

@keyframes fadeOut {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

#lock-screen.fade-out {
  animation: fadeOut 0.8s ease-out forwards;
}

#audio-player, audio {
  display: none;
}

/* Yıldızlı gece arka planı */
body {
  background: linear-gradient(to bottom, #79405b, #000);
  overflow: hidden;
}

.star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: white;
  border-radius: 50%;
  animation: twinkle 2s infinite ease-in-out alternate;
  z-index: 0;
}

@keyframes twinkle {
  0% { opacity: 0.2; transform: scale(1); }
  100% { opacity: 1; transform: scale(1.5); }
}

.shooting-star {
  position: absolute;
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, white, transparent);
  opacity: 0;
  transform: rotate(-40deg);
  animation: shoot 4s ease-in-out;
  z-index: 0;
  filter: drop-shadow(0 0 6px white);
}

@keyframes shoot {
  0% { top: -10%; left: 120%; opacity: 0; }
  10% { opacity: 1; }
  100% { top: 100%; left: -20%; opacity: 0; }
}

body {
  margin: 0;
  background: radial-gradient(circle, #e976c5, #2c1625);
  font-family: 'Segoe UI', sans-serif;
  color: white;
  overflow-x: hidden;
}

#lock-screen {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, #000, #1a1a1a);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px;
}

.lock-icon {
  font-size: 50px;
  margin-bottom: 10px;
}

.lock-message {
  font-size: 18px;
  margin-bottom: 20px;
}

#password-input {
  padding: 10px;
  font-size: 16px;
  border-radius: 10px;
  border: none;
  outline: none;
  width: 200px;
}

button {
  background: #d81b60;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  cursor: pointer;
  margin-top: 15px;
}

button:hover {
  background: #c2185b;
}

#hint {
  font-size: 14px;
  color: #aaa;
  margin-top: 10px;
}

#error-msg {
  color: #ff8080;
  margin-top: 10px;
}

.welcome-message {
  font-size: 1.3em;
  margin-top: 25px;
  opacity: 0;
  animation: fadeIn 4s forwards;
}

@keyframes fadeIn {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}

.music-button {
  margin-top: 25px;
  background: #d81b60;
  color: white;
  padding: 10px 18px;
  border: none;
  border-radius: 25px;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

#add-memory-btn {
  position: fixed;
  bottom: 20px;    
  right: 20px;
  z-index: 5000;
  font-size: 30px;
  background-color: #d81b60;
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  display: none;
  justify-content: center;
  align-items: center;
}

#add-memory-btn:hover {
  background-color: #c2185b;
}

/* Popup Overlay */
.popup-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
  z-index: 9998;
}

/* Popup İçeriği */
.popup-content {
  background-color: #fff;
  padding: 20px;
  border-radius: 12px;
  width: 90%;
  max-width: 350px;
  color: #000;
  box-shadow: 0 0 10px #333;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.popup-content textarea {
  width: 100%;
  border-radius: 8px;
  border: 1px solid #ccc;
  padding: 10px;
  font-family: inherit;
  margin-top: 10px;
  resize: vertical;
}

.popup-close {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 20px;
  cursor: pointer;
  color: #888;
  font-weight: bold;
}


.memory-card {
  position: relative;
  overflow: hidden;
}

.memory-actions {
  position: absolute;
  bottom: 6px;
  right: 8px;
  display: flex;
  gap: 6px;
}

.memory-actions button {
  background-color: rgba(0, 0, 0, 0.6);
  border: none;
  color: white;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.3s ease;
}

.memory-actions button:hover {
  background-color: rgba(0, 0, 0, 0.85);
}
