body{
    overflow-x: hidden;
    width: 100%;
    height: 100%;
    padding: 0px;
    margin: 0px;

    display: flex;
    flex-direction: column;
    align-items: center; 
    /*background: linear-gradient(135deg, #800000, #a10101);*/
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;

    background-image: url("../imgs/back4.jpg");
    background-size: cover; /* Tüm ekranı kaplar */
    background-position: center; /* Ortalar */
    background-attachment: fixed;
    /*background-repeat: no-repeat; /* Tekrar etmez */
}

html, body {
    width: 100%;
    overflow-x: hidden;
  }

/* Banner'ı ekranın en altına sabitleyen CSS */
.sabit-reklam-banner {
    position: fixed;
    bottom: 0;
    width: fit-content;
    text-align: center;
    background-color: #f1f1f1;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

/* Kapatma butonu için CSS */
.kapat-butonu {
    position: absolute; /* Bu etiketi ebeveyne göre konumlandırır. */
    top: -20px; /* Üstten 10 piksel dışarıda. */
    right: 0px; /* Sağdan 10 piksel dışarıda. */
    background: none;
    background-color: white;
    border: none;
    color: #5a5a5a;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
}

.kapat-butonu:hover {
    color: #000;
}

/* Reklam görselinin responsive (duyarlı) olması için */
.reklam-icerik img {
    width: auto;
    height: 10vh;
    display: block;
    margin: 0 auto;
}

.giris-buton{
    margin-left: auto;
}

.giris-btn{
    background-color: rgba(0, 0, 0, 0.95);
    color: white;
    border-left: 2px solid #8b0000;
    border-top: 2px solid #8b0000;
    border-right: 2px solid #9c9c9c;
    border-bottom: 2px solid #9c9c9c;
    padding: 10px 20px;
    border-radius: 1px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
    cursor: pointer;
  }

.giris-btn:active {
    transform: scale(0.9);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2) inset;
  }

.bosluk{
    width: 10vh;
    height: 40vh;
  }

  header {
    padding-top: 0px;
    margin-top: 0%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;

    /*padding: 15px 15px;*/
    background-color: rgba(0, 0, 0, 0.95);
    color: #000;
    flex-wrap: wrap;
    backdrop-filter: blur(4px);

    position: sticky;
    top: 0;
    z-index: 1000;

    position: fixed;
    top: 0;
    left: 0;
  }
  
  .logo {
    padding-left: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
  }
  
  .logo img {
    height: 90px;
    width: auto;
    padding-right: 10px;
  }

  .giris-buton{
    padding-right: 10px;
  }

  /* login form */
  .giris-formu {
      width: 100%;
      max-width: 400px;
      margin: 0 auto;
      padding: 30px 40px; /* Üst/alt: 30px, Sağ/sol: 40px */
      border-radius: 10px;
      color: white;
      text-align: center;
      background-color: rgba(0, 0, 0, 0.8);
      box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  }

  .giris-formu h2 {
      font-size: 24px;
      margin-bottom: 25px; /* Başlık ve form arasında daha fazla boşluk */
      color: #fff;
  }
  
  .giris-formu .form-group {
      margin-bottom: 20px; /* Form grupları arasında daha fazla boşluk */
      text-align: left;
  }
  
  .giris-formu label {
      display: block;
      margin-bottom: 8px; /* Label ve input arasında boşluk */
      font-weight: 500;
  }
  
  .giris-formu input {
      width: 100%;
      padding: 10px;
      border: 1px solid #555;
      border-radius: 5px;
      background-color: rgba(255, 255, 255, 0.1);
      color: white;
  }

  .giris-formu input::placeholder {
      color: #ccc;
  }

  #login-btn {
    width: 100%;
    background-color: #8b0000;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 15px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
  }

  #login-btn:hover {
      background-color: #c20000;
  }
  
  #login-btn:active {
      transform: scale(0.98);
      box-shadow: 0 2px 4px rgba(0,0,0,0.2) inset;
  }

  .error-message {
      color: #ffcccc;
      margin-top: 10px;
      font-weight: 500;
  }
  /* login form end */

  .baslikdiv{
    width: 95%; /* Genişliği artırıldı */
    display: flex;
    align-items: center;
  }

  .ilan-baslik{
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    margin-bottom: 0px;
    padding: 3px 10px 0px 10px; 


    background-color: rgba(0, 0, 0, 0.8);
    border-top: #000 solid 2px;
    border-left: #000 solid 2px;
    border-right: #000 solid 2px;
  }

  .ilan-baslik h1{
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 20px;
    color: #fff;
    text-align: center;
    margin: 0px;
  }

  .alt-arka-plan {
    width: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Üst menü ile uyumlu koyuluk */
    margin-top: 0px;
    margin-bottom: 20px;
    /*margin: 5%;
    margin-top: 30px;
    margin-bottom: 30px;*/
    padding: 20px 0px;
  }

  .hakkimizda {
    padding-left: 20px;
    padding-right: 20px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
  }
  
  .metin {
    text-align: center;
    flex: 1 1 300px;
  }
  
  .metin p {
    font-size: 16px;
    line-height: 1.6;
    text-align: left;
  }
  
  .gorsel {
    flex: 1 1 300px;
    text-align: center;
  }
  
  .gorsel img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.4);
  }

  #hakkimizda-btn {
    margin: 20px;
    background-color: #8b0000;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 15px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
  }
  
  #hakkimizda-btn:hover {
    background-color: #c20000;
  }

  #hakkimizda-btn:active {
    transform: scale(0.9);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2) inset;
  }

  /* Footer */
.footer {
    width: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    color: white;
    text-align: center;
    padding: 5px;
    margin-top: 10px;
}

  .card-container {
    width: 100%;
    display: flex;
    flex-wrap: wrap; /* Yan yana sığmayanlar alta geçsin */
    justify-content: center;
    gap: 20px;
    box-sizing: border-box;
  }

  .card {
    width: 300px;
    background-color: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    overflow: hidden;
    /*transition: transform 0.2s;*/
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .card:hover {
    transform: scale(1.06);
    box-shadow: 0 10px 20px rgba(139, 0, 0, 0.9); /* Koyu bordo gölge */
    z-index: 10; /* Üstte görünmesi için */
  }
  
  .card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
  }
  
  .card-info {
    padding: 15px;
    color: #333;
  }
  
  .card-info h3 {
    font-size: 20px;
    margin-bottom: 8px;
  }

  .card-info .description {
    font-size: 0.9rem;
    color: #555;
    margin: 8px 0;
    line-height: 1.3;
  }
  
  .card-info button {
    background-color: #8b0000;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    margin-top: 10px;
    cursor: pointer;
  }

  .card-info button:active {
    transform: scale(0.9);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2) inset;
  }

  .menu-area{
    padding: 10px;
    margin-bottom: 30px;
    color: white;
    display: flex;
    gap: 5px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
  }

  .menu-card{
    width: 100px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    background-color: #8b0000;
    border: #8b0000 solid 2px;
    border-radius: 10px;
    padding: 5px;
  }

  .menu-card:active {
    transform: scale(0.9); /* biraz küçült, basılmış hissi */
    box-shadow: 0 4px 4px rgba(0,0,0,0.5) inset; /* içe göçmüş gibi görünüm */
  }

  .menu-ikon{
    width: 100%;
    font-size: 25px;
    margin-bottom: 8px;
    text-align: center;
  }

  .menu-yazi{
    text-align: center;
    font-weight: 400;
  }

  .filter-area {
    margin-bottom: 30px;
    padding: 10px;

    background-color: rgba(0, 0, 0, 0.8);
    border: #000 solid 2px;
    border-radius: 10px;

    color: white;
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .filter-area label {
    font-weight: 400;
  }
  
  .filter-area select {
    padding: 5px;
    border-radius: 6px;
    border: none;
    font-size: 1rem;
  }

  #filter-btn {
    background-color: #8b0000;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 15px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
  }
  
  #filter-btn:hover {
    background-color: #c20000;
  }

  #filter-btn:active {
    transform: scale(0.9);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2) inset;
  }

  .menu-toggle {
    display: none;
    font-size: 24px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
  }

  /* İLETİŞİM SAYFASI */
  /* Sayfa içeriği */
.contact-container {
    padding: 20px;
    background: rgba(0,0,0,0.95);
    border-radius: 15px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    text-align: center;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;

    max-width: 500px; /* Div'in alabileceği maksimum genişlik 500px */
    width: calc(100% - 40px); /* Ekranın %100'ünden sağ ve sol marjinleri çıkar */
    margin: 20px;
    /* Veya daha kısa haliyle margin: 0 20px; (üst/alt 0, sağ/sol 20px) */
  }

  .contact-form{
    display: flex; /* Form içindeki elementler için de Flexbox kullan */
    flex-direction: column; /* Form elementlerini dikey olarak sırala */
    width: 100%; /* Formun genişliğini ayarla */
    max-width: 400px; /* Formun maksimum genişliğini ayarla (isteğe bağlı) */
    gap: 10px; /* Form elementleri arasına boşluk ekle */
  }
  
  .contact-container h1 {
    margin-bottom: 20px;
    font-size: 20px;
    color: #fff;
  }
  
  .contact-form input,
  .contact-form textarea {
    box-sizing: border-box;
    width: 100%;
    padding: 7px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
    margin: 5px;
  }
  
  .contact-form button {
    box-sizing: border-box;
    width: 100%;
    background-color: #8b0000;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
    margin: 5px;
  }
  
  .contact-form button:hover {
    background-color: #a30000;
  }

  .contact-container ul {
    color: #fff;
    list-style: none;
    padding: 15px;
  }

  .contact-container ul li {
    margin-bottom: 8px;
}

@keyframes fast-shake-pause {
    0%, 33.33% { transform: translate(0, 0) rotate(0deg); }
    2.77% { transform: translate(1px, 0px) rotate(1deg); }
    5.54% { transform: translate(-1px, 0px) rotate(-1deg); }
    8.31% { transform: translate(1px, 0px) rotate(1deg); }
    11.08% { transform: translate(-1px, 0px) rotate(-1deg); }
    13.85% { transform: translate(1px, 0px) rotate(1deg); }
    16.62% { transform: translate(-1px, 0px) rotate(-1deg); }
    19.39% { transform: translate(1px, 0px) rotate(1deg); }
    22.16% { transform: translate(-1px, 0px) rotate(-1deg); }
    24.93% { transform: translate(1px, 0px) rotate(1deg); }
    27.70% { transform: translate(-1px, 0px) rotate(-1deg); }
    30.47% { transform: translate(1px, 0px) rotate(1deg); }
    33.33%, 100% { transform: translate(0, 0) rotate(0deg); }
  }
  
  .reklam-alani img {
    width: 100%;
    height: auto;
    display: block;
    animation: fast-shake-pause 1.5s infinite; /* cubic-bezier değerini kaldırdık, daha düz bir hızda sallanır */
    transform-origin: center center;
  }
  
  .reklam-alani {
    width: 95%;
    max-width: 600px;
    height: auto;
    margin: 15px auto;
    margin-bottom: 30px;
    display: block;
  }
  
  /* Aktif menü linki */
  .main-nav .aktif {
    color: #ca0101;
    font-weight: bold;
  }

  @media (max-width: 400px) {
    body{
      background-image: url("../imgs/back5.jpg");
    }

    .logo img {
      height: 70px;
      }

    .giris-btn{
      padding: 7px 13px;
      font-weight: 400;
      }
  }
