/* Genel Ayarlar */
body {
    font-family: 'Segoe UI', sans-serif;
    background: linear-gradient(to bottom, #ffe6eb, #fff0f5);
    margin: 0;
    padding: 0;
    color: #4d0039;
  }
  
  .container {
    max-width: 700px;
    margin: 0 auto;
    padding: 40px 20px;
  }
  
  h1 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 40px;
    color: #d63384;
  }
  
  /* Timeline */
  #timeline {
    display: flex;
    flex-direction: column;
    gap: 30px;
    position: relative;
    border-left: 3px solid #d63384;
    padding-left: 20px;
  }
  
  /* Olay Kartı */
  .event {
    background: #fff;
    border-left: 5px solid #ff66a3;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .event::before {
    content: "";
    position: absolute;
    left: -13px;
    top: 30px;
    width: 14px;
    height: 14px;
    background-color: #ff66a3;
    border-radius: 50%;
    border: 2px solid #fff;
  }
  
  /* Polaroid */
  .polaroid {
    background: white;
    padding: 10px 10px 35px; /* Alt boşluk 35px */
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    display: inline-block;
    transition: transform 0.3s ease;
    position: relative;
    width: 250px;       /* Sabit genişlik */
    height: 320px;      /* Sabit yükseklik */
    overflow: hidden;   /* Taşmayı engelle */
  }
  
  .polaroid img {
    width: 100%;
    height: 300px;      /* Fotoğraf için yükseklik */
    object-fit: cover;  /* Kırpma ve doldurma */
    border-radius: 3px;
    display: block;
    user-select: none;  /* Seçilemez */
  }
  
  /* El yazısı not */
  .polaroid-note {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Comic Sans MS', 'Pacifico', cursive;
    font-size: 0.9em;
    color: #5e2c2c;
    text-align: center;
    white-space: pre-wrap;
    padding: 0 5px;
    width: 90%;         /* Taşmayı engelle */
    pointer-events: none;
    max-height: 3em;    /* Yaklaşık iki satır */
    overflow: hidden;   /* Taşan kısmı gizle */
  }
  
  /* Eğik pozisyonlar */
  .rotate-left {
    transform: rotate(-4deg);
  }
  .rotate-right {
    transform: rotate(3deg);
  }
  .rotate-slight {
    transform: rotate(1deg);
  }
  
  /* Hover efekti – düzleştir */
  .polaroid:hover {
    transform: rotate(0deg) scale(1.03);
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  }
  
  /* Yazılar */
  .event time {
    display: block;
    margin: 10px 0 5px;
    color: #888;
    font-size: 0.9em;
  }
  
  .event h3 {
    margin: 5px 0;
    font-size: 1.2em;
    color: #c2185b;
    text-align: center;
  }
  
  .event p {
    margin: 0;
    line-height: 1.6;
    font-size: 0.95em;
    text-align: center;
  }
  
  /* Mobil uyum */
  @media screen and (max-width: 600px) {
    .polaroid {
      width: 100%;
      height: auto;
      padding-bottom: 40px;
    }
    
    .polaroid img {
      height: auto;
    }
  }
  