@font-face {
  font-family: 'dik-temel-harfler';
  src: url('dik-temel-harfler.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}
html, body {
  font-family: 'dik-temel-harfler', sans-serif;
}
    .gallery { 
      display:grid; 
      gap:20px; 
      grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
      margin-top:12px;
      justify-items: center;
    }
    .tile {
      background: var(--card);
      border: 3px dashed rgba(99,102,241,.25);
      border-radius: 20px;
      padding: 10px; 
      box-shadow: var(--shadow);
      cursor: pointer;
      transition: transform .08s ease, box-shadow .12s ease, filter .12s ease, opacity .12s ease;
      width: 320px;
      height: 360px; /* 320px görsel + başlık */
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: flex-start;
    }
    .tile:hover{ transform: translateY(-2px); box-shadow: 0 10px 22px rgba(31,41,55,.16), 0 3px 8px rgba(31,41,55,.08); }
    .tile:active{ transform: translateY(0); }
    .tile img{ width:310px; height:310px; object-fit:contain; display:block; }
    .tile figcaption{ text-align:center; font-weight:900; margin-top:6px; color:var(--ink) }

    /* Tıklanan (dinlendi) görseller soluk görünür */
    .tile.is-done{ opacity:.55; filter: grayscale(.1); }

    .notice { display:none; margin:12px 0 0; padding:12px 14px; border-radius:14px; background:#eef6ff; color:#0f172a; border:2px solid #bfdbfe; font-weight:800 }
    .notice.show{ display:block }

    .modal {
      position:fixed; inset:0; display:none; place-items:center; background:rgba(0,0,0,.35);
    }
    .modal.show{ display:grid }
    .modal .box{ background:white; padding:18px; border-radius:18px; max-width:420px; text-align:center; box-shadow: var(--shadow); }
    a.back {
  display: inline-block;
  padding: 10px 18px;
  background-color: #007BFF; /* mavi buton */
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

a.back:hover {
  background-color: #0056b3; /* hover rengi */
}