@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;700&display=swap");

body,
main {
  display: flex;
  flex-direction: column;
  align-items: center;
}

body {
  font-family: "Poppins", sans-serif;
  color: white;
  background: linear-gradient(to right, #30cfd0, #330867);
  margin: 0;
  min-height: 100vh;
  justify-content: flex-start;
  padding-top: 20px;
  gap: 20px;
}

header {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: sticky;
  top: 0;
  padding: 10px 0; /* Dikey dolgu azaltıldı */
  width: 100%;
  z-index: 10;
  background: inherit;
}

figure {
  overflow: hidden;
  width: 140px; /* Değiştirildi */
  height: 140px; /* Değiştirildi */
  border-radius: 50%;
  margin-top: 5px; /* Değiştirildi */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

h1 {
  font-family: "Nunito", sans-serif; /* Font değiştirildi */
  margin: 5px 0 0 0; /* Üst boşluk eklendi */
  font-size: 16px; /* Boyut tekrar küçültüldü */
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

h2 {
  font-family: "Nunito", sans-serif; /* Font değiştirildi */
  font-size: 22px; /* Boyut küçültüldü */
  margin: 0 0 10px 0; /* Alt boşluk ayarlandı */
  font-weight: 400;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

main {
  position: relative; /* Dil butonu konumlandırması için eklendi */
  gap: 20px;
  width: 80%;
  max-width: 500px;
  margin-top: 0px; /* Değiştirildi */
  padding-bottom: 40px;
  flex: 1;
  overflow-y: auto;
  padding-left: 15px;
  padding-right: 15px;
}

main a {
  width: 100%;
  text-decoration: none;
}

button {
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  font-size: 16px;
  width: 100%;
  height: 50px;
  background-color: #ffffff;
  color: #333;
  border: none;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding-left: 15px;
  padding-right: 15px;
  margin-top: 3px;
}

button:hover {
  cursor: pointer;
  background-color: #ffffff00;
  border: 1px solid white;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
}

.emoji-icon {
  margin-right: 10px;
  font-size: 1.5rem;
}

footer {
  margin-top: auto;
  padding: 20px 0;
  text-align: center;
  font-size: 14px;
  opacity: 0.8;
  width: 100%;
}

/* Yeni Eklenen CSS Kodları */
@import url('https://fonts.googleapis.com/css2?family=SUSE:wght@100..800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&family=SUSE:wght@100..800&display=swap');

/* Body stilini yukarıdakiyle birleştirelim veya çakışmaları giderelim */
body{
  background-color: #212121; /* Bu, yukarıdaki gradient ile çakışıyor. Hangisi tercih ediliyor? Şimdilik bunu yorum satırı yapalım. */
  /* background: linear-gradient(to right, #30cfd0, #330867); */ /* Yukarıdaki gradient kalsın */
}
h1{
  color: #fff;
  text-align:center;
  font-family:"SUSE", sans-serif; /* Yukarıdaki Poppins ile çakışıyor. Hangisi tercih ediliyor? */
  font-size: 72px; /* Yukarıdaki 24px ile çakışıyor. */
  margin-top: 10px; /* Değiştirildi */
}

h3{ /* Bu etiket HTML'de yok, h2 için mi geçerli olacak? */
  color: #fff;
  text-align:center;
  font-family:"Nunito", sans-serif;
  font-size: 48px;
  margin-top: 20px;
  font-style: normal;
}

input[type="checkbox"]#language-toggle { /* ID ile daha spesifik hale getirelim */
  display: none;
}

#button {
  /* Tüm komponentlerden bağımsız, sağ üstte sabit */
  position: fixed;
  top: 15px;
  /* Sağ kenar, ekranın sağından en az 20px içeride,
     ve ekranın ortasından en fazla 250px sağda olacak şekilde ayarlanır */
  right: max(20px, calc(50vw - 250px));
  display: block;
  width: 100px; /* Değiştirildi */
  height: 35px;
  background-color: #b80404;
  border-radius: 17.5px;
  cursor: pointer;
  /* margin kaldırıldı */
  transition: background-color 0.3s ease;
  z-index: 11; /* Header'ın üzerinde kalması için */
}

#knob {
  width: 25px; /* Yeni boyut */
  height: 25px; /* Yeni boyut */
  background-color: #fff;
  position: absolute;
  top: 5px; /* (35px - 25px) / 2 */
  left: 5px; /* Sol boşluk */
  border-radius: 50%;
  transition: 0.4s ease left, 0.4s ease background-color; /* Geçiş aynı kalsın */
  background-image: url(/assets/tr.jpg);
  background-size: cover;
  background-position: center;;
}

#language-text {
  position: absolute;
  top: 45%;
  left: 45px; /* Değiştirildi */
  transform: translateY(-50%);
  color: #fff;
  font-size: 14px; /* Boyut küçüldüğü için fontu küçültelim */
  font-weight: bold;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  transition: color 0.4s ease, left 0.4s ease;;
}

#language-toggle:checked + #button {
  background-color: #0d1366;
}

#language-toggle:checked + #button #knob {
  left: 70px; /* 100px (buton) - 25px (knob) - 5px (sağ boşluk) - Değiştirildi */
  background-color: #ffffff;
  background-image: url(assets/en.jpg);
}

#language-toggle:checked + #button #language-text {
  color: #ffffff;
  left: 10px; /* Değiştirildi */
  transition: left 0.4s ease;
}
/* Mobil Cihazlar İçin Stiller */
@media (max-width: 767px) {
  figure {
    width: 150px; /* Mobilde daha büyük */
    height: 150px; /* Mobilde daha büyük */
  }

  h1 {
    font-size: 28px; /* Mobilde biraz büyütüldü */
  }

  h2 {
    font-size: 15px; /* Mobilde biraz büyütüldü */
    margin-top: 10px;
  }

  #button {
    position: absolute; /* main'e göre konumlandır */
    top: 10px; /* main'in üstünden boşluk */
    right: 15px; /* main'in sağından boşluk */
    width: 50px;
    height: 25px;
    border-radius: 12.5px;
    margin: 0; /* Margin sıfırlandı */
  }

  #knob {
    width: 20px;
    height: 20px;
    top: 2.5px; /* (25px - 20px) / 2 */
    left: 2.5px;
  }

  #language-text {
    display: none; /* Mobilde metni gizle */
  }

  #language-toggle:checked + #button #knob {
    left: 27.5px; /* 50px (buton) - 20px (knob) - 2.5px (sağ boşluk) */
  }

  #language-toggle:checked + #button #language-text {
    left: 5px; /* Knob'un soluna */
  }
}
