@import url('https://fonts.googleapis.com/css2?family=Edu+SA+Beginner&family=Inconsolata:wght@300&family=Josefin+Sans&family=Teko&display=swap');
* {
  box-sizing: border-box;
  font-family: 'Josefin Sans', sans-serif;
}
html{
  
}

::-webkit-scrollbar {
    width: 10px; /* Kaydırma çubuğu genişliği */
}

::-webkit-scrollbar-thumb {
    background-color: #888; /* Kaydırma çubuğu rengi */
    border-radius: 15px; /* Yuvarlak köşeler */
}

::-webkit-scrollbar-thumb:hover {
    background-color: #555; /* Fare üzerine gelindiğinde renk değiştirme */
}

/* -----------------------------DARK MODE-------------------------------- */

/* Dark Mode Styles */
body.dark-mode {
  background-color: #121212;
  color: #e0e0e0;
}

body.dark-mode .main {
  background-color: #1e1e1e;
}

body.dark-mode .side {
  background-color: #1a1a1a;
  box-shadow: 2px 0 10px rgba(255, 255, 255, 0.05);
}

body.dark-mode .side h1 {
  color: #bb86fc;
  border-bottom-color: #bb86fc;
}

body.dark-mode .side a {
  color: #e0e0e0;
}

body.dark-mode .side a:hover {
  background: #bb86fc;
  color: #121212;
}

body.dark-mode .question {
  background: #2d2d2d;
}

body.dark-mode .question p {
  color: #e0e0e0;
}

body.dark-mode .options label {
  background: #333;
  color: #e0e0e0;
}

body.dark-mode .options label:hover {
  background: #444;
}

body.dark-mode .accordion-btn {
  background-color: #232323;
  color: #bb86fc;
}

body.dark-mode .accordion-btn:hover {
  background-color: #444;
}

body.dark-mode .accordion-btn span {
  color: #bb86fc;
}

body.dark-mode .accordion-content {
  background-color: #1e1e1e;
  color: #e0e0e0;
}

body.dark-mode .accordion-content h2,
body.dark-mode .accordion-content h3,
body.dark-mode .accordion-content h4 {
  color: #bb86fc;
}

body.dark-mode .accordion-content p,
body.dark-mode .accordion-content li {
  color: #e0e0e0;
}

body.dark-mode .resources {
  background: #2d2d2d;
}

body.dark-mode .resource-card {
  background: #333;
}

body.dark-mode .resource-card h3 {
  color: #e0e0e0;
}

body.dark-mode .resource-card p {
  color: #b0b0b0;
}

body.dark-mode .feature-item{
  background: #333;
}

body.dark-mode .main h1{
  color: #fff;
}
body.dark-mode .intro-text{
  color: #fff;
}
body.dark-mode .section-title{
  color: #fff;
}
body.dark-mode .feature-item h3{
  color: #fff;
}
* DARK MODE UYUMLULUK */
body.dark-mode .resource-section h3 {
  color: #bb86fc;
}
body.dark-mode .resource-card {
  background: #232323;
  color: #e0e0e0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
}
body.dark-mode .resource-card:hover {
  background: #232c3d;
  color: #bb86fc;
}
body.dark-mode .resource-note {
  color: #b0b0b0;
}
body.dark-mode .resource-title h2 {
  color: #bb86fc;
  text-shadow: 0 2px 8px rgba(187,134,252,0.08);
}
body.dark-mode .resource-title h2::after {
  background: linear-gradient(90deg, #bb86fc 0%, #1a4fff 100%);
}

body.dark-mode .closing-section {
  background: #232323;
  box-shadow: 0 2px 10px rgba(0,0,0,0.18);
}
body.dark-mode .success-message {
  color: #bb86fc;
}
body.dark-mode .contact-invite {
  color: #e0e0e0;
}
body.dark-mode .contact-link {
  color: #bb86fc;
}
body.dark-mode .contact-link:hover {
  color: #1a4fff;
}
body.dark-mode .lesson-title{
  color: #fff !important;
}


/*------------------------------------------------------*/



/* Dark Mode Toggle Button */
.dark-mode-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  background: #82060b;
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.dark-mode-toggle:hover {
  transform: scale(1.1);
}

body.dark-mode .dark-mode-toggle {
  background: #bb86fc;
  color: #121212;
}

/*-------------------------------------------------------------------------*/

/* Header */

#navbar {
  background: rgb(130,6,11);
  background: linear-gradient(90deg, rgba(130,6,11,1) 45%, rgba(166,69,63,1) 100%);
  position: fixed;
  top: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: top 0.3s;
  z-index: 999; /* Navbar en önde */
}

#navbar .menu-elements a {
  float: left;
  display: block;
  text-align: center;
  padding: 20px;
  text-decoration: none;
  font-size: 17px;
}

#navbar .menu-elements a:hover {
  background-color: #ddd;
  color: black;
}

.menu-title{
  color: #f1f1f1;
}

.dropdown {
  position: relative;
  display: inline-block;
}


.dropbtn {
  padding: 20px;
  background-color: transparent;
  border: none;
  cursor: pointer;
}

.dropdown-content {
    display: none;
    position: fixed;
    left: 0;
    top: 60px;
    width: 100%;
    background-color: #f9f9f9;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 998;
    padding: 15px;
    display: none;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.3s;
}

.dropdown-content a:hover {
    background-color: #ddd;
    border-radius: 4px;
}

.dropdown:hover .dropdown-content {
    display: flex;
}

.dropdown:hover .dropbtn {
  background-color: red;
}

.hamburger {
  display: none;
  cursor: pointer;
  padding: 20px;
}

.hamburger i {
  font-size: 24px;
  color: #f2f2f2;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .links {
    display: none;
    flex-direction: column;
    width: 100%;
  }

  .links a {
    padding: 15px;
    text-align: center;
    width: 100%;
    border-bottom: 1px solid #f2f2f2;
  }

  .hamburger {
    display: block;
  }

  .dropdown-content {
    position: static;
    top: auto;
    flex-direction: column;
    gap: 5px;
  }

  .dropdown-content a {
    width: 100%;
    text-align: center;
  }

  .dropdown:hover .dropdown-content {
    display: none; /* Hover disabled on mobile */
  }
}

/*MENU ELEMENTS*/
.menu-elements{
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: auto;
}


/*-------ARAMA ÇUBUĞU---------------*/

.search-container {
    position: relative;
    max-width: 500px;
    margin: 10px 15px;
    display: flex;
}

#dersArama {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #82060b;
    border-radius: 5px 0 0 5px;
    font-size: 16px;
}

.search-container button {
    background: #82060b;
    color: white;
    border: none;
    padding: 0 20px;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 5px 5px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    z-index: 100;
    display: none;
}

.search-result-item {
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background 0.2s;
}

.search-result-item:hover {
    background: #f5f5f5;
}

.search-result-item i {
    margin-right: 10px;
    color: #82060b;
}



/*instagram account bölümü*/
/*-----*/
.account-link{  
display: flex;
justify-content: center;
align-items: center;
}
.account-link a {
    height: 100%;
    background: #fff;
    padding:10px 15px;
    transition: 0.3s ease;
}
.account-link a i {
 font-size: 3rem;
}

.account-link a:hover{
    background: rgb(130,6,11);
}
.account-link a:hover  {
    color: #fff;
}
.account-link a {
    color: #ac0c0c;
    text-decoration: none;
}

/*------------------------------*/





/* Style the body */
body {
  font-family: Arial, Helvetica, sans-serif;
  margin: 0;
}

/*-----------------------------------------------SAYFA GİRİŞ TASARIMI------------------------------------------------------------*/

/* Header/logo Title */
.lesson-header {
  height: 58vh;
  text-align: center;
  background: url("image/lessonwallpaper.webp");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 15px solid rgb(130,6,11);
}

#header-area{
  height: 70vh;
  background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('image/library.webp'); 
  background-size: cover;
  background-position: center; 
  position: center;
}

/* Increase the font size of the heading */
.header h1 {
  font-size: 40px;
}

.header p{
  margin-top: -15px;
}

/* Sol ve sağ bölümler */
.header .left, .header .right {
    width: 30%; /* Sol ve sağ bölümlerin genişliği */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10px;
}



.header .left ul, .header .right ul {
    list-style: none; /* Madde işaretlerini kaldır */
    padding: 0;
    width: 70%;
}

.header .left ul li, .header .right ul li {
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 15px;
    transition: 0.3s ease;
}
.header .left ul li:hover, .header .right ul li:hover {
 
}
.header .left ul li i, .header .right ul li i{
  opacity: 0;
  margin-left: -11px;
  transition: 0.3s ease;
}
.header .left .fade-in, .header .right .fade-in{
  cursor: pointer;
}
.header .left ul li:hover i, .header .right ul li:hover i{
  opacity: 1;
  margin-left: 5px;
}



.header .left ul li a, .header .right ul li a {
    color: #fff; /* Beyaz yazı rengi */
    text-decoration: none; /* Alt çizgiyi kaldır */
    font-size: 16px;
    transition: color 0.3s ease;
}

.header .left ul li:hover a, .header .right ul li:hover a {
    color: #ffcc00; /* Hover efekt: Sarı */
}

.side-title {
  text-align: center;
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 1rem; /* Daha az alt boşluk */
  letter-spacing: 1px;
}

.kutu-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  gap: 10px; /* Kutular arası boşluğu azalttık */
  width: 100%;
  margin-bottom: 1rem;
  padding: 0 5px; /* Yanlardan padding ekledik */
}

.kutu {
  width: 90%; /* Kutu genişliğini %100 yaptık */
  max-width: 150px; /* Maksimum genişlik belirledik */
  height: 90%;
  background: #f8f9fa;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  padding: 15px; /* Padding'i biraz azalttık */
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 80px; /* Minimum yüksekliği azalttık */
  position: relative;
  transition: box-shadow 0.2s, transform 0.2s;
  box-sizing: border-box;
  margin: 0 auto; /* Kutuları ortalamak için */
  cursor: pointer;
}


.kutu-content img{
  width: 100%;
  height: 100%;
}

.kutu:hover {
  box-shadow: 0 6px 18px rgba(130,6,11,0.13);
  transform: translateY(-3px) scale(1.03);
}

.kutu-content {
  font-size: 1rem; /* Yazı boyutunu küçülttük */
  color: #82060b;
  font-weight: 600;
  margin-bottom: 0;
}

.kutu-alt {
  font-size: 0.85rem; /* Yazı boyutunu küçülttük */
  color: #fff;
  text-align: center;
  margin: 5px 0 0 0; /* Üst boşluğu azalttık */
  width: 100%;
}

.kutu-grid-item{
  width: 30%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.kutu-wrapper {
  width: 100%;
  height: 100%;
  display: block;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-bottom: 5px; /* Sadece alt kutu-wrapper'lar için boşluk */
}

/* Animasyon: aşağıdan yukarıya ve opacity */
.slide-up-fade-in {
  opacity: 0;
  transform: translateY(40px);
  animation: slideUpFadeIn 0.8s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

@keyframes slideUpFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 900px) {
  .kutu-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .kutu {
    max-width: 100%;
  }
}



/* Orta bölüm */
.header .center {
    width: 40%; /* Orta bölüm genişliği */
    display: flex;
 /* Elemanları solda ve sağda konumlandır */
    align-items: center;
    position: relative; /* Konumlar sabitleniyor */
    background-position: center; 
    background-repeat: no-repeat; 
    background-size: cover; 
    background-attachment: fixed;
}

/* Maskot resmi */
/* Maskot hover efekti */
/* Maskot container */
#maskot-container {
    margin-left: 10%;
    width: 50%; /* Orjinal resim boyutuna göre ayarlayın */
    height: auto;
    position: relative;
}


/* Maskot temel stilleri */
.maskot-normal {
    width: 100%;
    padding-bottom: 100%; /* Kare şeklinde olması için */
    background-image: url('image/sad_squirrel-removebg-preview.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0;
    transform: scale(0.8) translateY(0);
    animation: moveUpDown 2s ease-in-out infinite;
    transition: all 0.3s ease;
    border-radius: 10%;
    cursor: pointer;
}

/* Hover efekti */
.maskot-normal:hover{
    background-image: url('image/sad rat.png');
    transform: scale(1.1) translateY(-10px);
    filter: drop-shadow(0 0 40px #ffe066) drop-shadow(0 0 80px #ffd700) drop-shadow(0 0 120px #fffbe6);
}

/* Animasyon */
@keyframes moveUpDown {
    0% { transform: scale(0.8) translateY(0); }
    50% { transform: scale(0.8) translateY(-10px); }
    100% { transform: scale(0.8) translateY(0); }
}
@keyframes moveUpDown {
    0% { transform: scale(0.8) translateY(0); }
    50% { transform: scale(0.8) translateY(-10px); }
    100% { transform: scale(0.8) translateY(0); }
}

/* Yazı (Hoş geldiniz) */
#welcome-text {
    font-size: 1.3rem;
    font-weight: bold;
    color: #fff;
    white-space: pre-wrap; /* Satır atlamasını sağlar */
    width: 100%; /* Yazının genişliği */
    max-width: 80%; /* Yazının genişliği ekranın %80'ini geçmesin */
    text-align: left; /* Yazıyı ortala */
    transition: opacity 1.5s ease; /* Görünürlük geçişi */
    overflow-wrap: break-word; /* Uzun kelimelerin kırılmasını sağlar */
    overflow: hidden; /* Taşmaları gizle */
    margin: 0 auto; /* Ortala */
    display: block;
    opacity: 0; /* Başlangıçta görünmez */
    padding: 5px;
}

/* BİLGİ AL BUTONU */
.info-button{
  padding: 10px 20px;
  font-size: 16px;
  font-weight: bold;
  background-color: #82060b; /* Kırmızı tema */
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.info-button:hover {
  background-color: #9B0000; /* Hover'de biraz daha koyu kırmızı */
}
/* Yeni animasyon için CSS ekleyin */
.fade-in {
  opacity: 0; /* Başlangıçta görünmez */
  transform: translateY(20px); /* Aşağıdan başla */
  animation: fadeInUp 0.5s forwards; /* Animasyonu uygula */
}

@keyframes fadeInUp {
  to {
      opacity: 1; /* Görünür hale gel */
      transform: translateY(0); /* Yukarı doğru kaydır */
  }
}

/* Her bir link için animasyon gecikmesi ekleyin */
.left .fade-in:nth-child(1) { animation-delay: 0.1s; }
.left .fade-in:nth-child(2) { animation-delay: 0.2s; }
.left .fade-in:nth-child(3) { animation-delay: 0.3s; }
.left .fade-in:nth-child(4) { animation-delay: 0.4s; }

.right .fade-in:nth-child(1) { animation-delay: 0.1s; }
.right .fade-in:nth-child(2) { animation-delay: 0.2s; }
.right .fade-in:nth-child(3) { animation-delay: 0.3s; }
.right .fade-in:nth-child(4) { animation-delay: 0.4s; }

#info-button {
  position: absolute; /* Butonu sabit bir konuma getir */
  bottom: -25.5%; /* Sayfanın alt kısmına doğru konumlandır */
  left: 73%; /* Yatayda merkezle */
  transform: translateX(-50%); /* Tam ortalamak için */
  padding: 8px 10px;
  font-size: 16px;
  font-weight: bold;
  background-color: #007BFF;
  color: #fff; /* Başlangıçta beyaz renk */
  border: none;
  border-radius: 5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0; /* Butonu görünür yap */
  transform: translateY(20px); /* Aşağıdan başla */
  animation: colorChange 1s infinite, slideUp 0.9s forwards; /* Renk değişim animasyonu ve yukarı kaydırma */
}


#info-button .info-text {
  animation: colorChange 1s infinite; /* Renk değişim animasyonu */
  transition: color 0.5s ease; /* Sadece yazı rengini değiştir */
}

@keyframes colorChange {
  0% { color: #fff; } /* Beyaz renk */
  50% { color: #f00; } /* Kırmızı renk */
  100% { color: #fff; } /* Tekrar beyaz renk */
}

@keyframes slideUp {
    to {
        opacity: 1; /* Görünür hale gel */
        transform: translateY(0); /* Yukarı doğru kaydır */
    }
}
#info-button i{
  opacity: 0;
  font-size: 17px;
  margin-left: -8px;
  transition: 0.3s ease;
  color: #fff !important;
}

#info-button:hover {
    background-color: #000;
}
#info-button:hover i{
  opacity: 1;
  font-size: 25px;
  margin-left: 8px;
  border-left: #fff solid 3px;
  padding-left: 5px;
}

/*---------------------------------------------------------------------------------------------------------*/

/* Style the top navigation bar */
.Line {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 30px;
  width: 100%;
  overflow: hidden;
  background: rgb(156,86,88);
background: linear-gradient(90deg, rgba(156,86,88,1) 0%, rgba(130,6,11,1) 28%, rgba(130,6,11,1) 72%, rgba(156,86,88,1) 100%);
padding: 25px 0;
}

/*LİKE BUTONU*/
.like-container {
  margin: 20px;
  font-family: Arial, sans-serif;
}

#likeBtn {
  background-color: #4CAF50; /* Yeşil */
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 5px;
  cursor: pointer;
}

#likeBtn:hover {
  background-color: #45a049; /* Koyu yeşil */
}

#likeBtn {
  transition: transform 0.3s;
}
#likeBtn:active {
  transform: scale(1.1);
}

#likeCount {
  font-weight: bold;
  color: #fff;
}
/* Column container */
.row {  
  display: -ms-flexbox; /* IE10 */
  display: flex;
  -ms-flex-wrap: wrap; /* IE10 */
  flex-wrap: wrap;
}

/* Create two unequal columns that sits next to each other */
/* Sidebar/left column */
/* Main column */




.main {
  flex: 75%;
  background-color: white;
  padding: 10px 50px 10px 100px;
  overflow-y: auto;
}


.side-menu-deskop{
  display: block;
}

/* Toggle butonu (Her zaman görünür) */
.side-toggle {
    padding: 6px 15px;
    background-color: #82060b;
    color: white;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
     position: sticky;
  top: 0;
  height: 100vh;
}

.side-toggle:hover {
    background-color: #5c0407;
}

.toggle-text {
    display: inline; /* Varsayılan olarak göster */
}

/* Side menü varsayılan durumu */
.side {
    flex: 0 0 300px; /* Sabit genişlik */
    transform: translateX(20px);
    transition: transform 0.3s ease, opacity 0.3s ease; 
     position: sticky;
  top: 0;
  height: 100vh;
}
.side-links{
  margin-top: 100px;
}

/* Ana içerik varsayılan durumu */
.main {
    flex: 1;
    transition: margin-left 0.3s ease;
}

/* Kapalı durum için stiller */
.side.collapsed {
    transform: translateX(-100%);
    position: absolute;
    opacity: 0;
    z-index: 1000;
}

.side.collapsed + .main {
    margin-left: 0;
}

/* Buton kapalı durumda iken */
.side-toggle.collapsed i {
    transform: rotate(90deg);
}

/* Responsive ayarlar */
@media (max-width: 768px) {
    .toggle-text {
        display: none; /* Mobilde sadece ikon göster */
    }
    
    .side {
        width: 80%; /* Mobilde daha geniş */
    }
}

.side h1 {
  border-bottom: 2px solid #82060b; /* Ana tema rengiyle uyumlu */
  margin: 0 0 15px 0;
  padding: 10px 2px;
  color: #82060b;
}

.side i {
  margin-left: -20px;
  opacity: 0;
  transition: all 0.3s ease; /* Geçiş efekti düzeltmesi */
}

.side a {
  color: #333;
  display: flex;
  align-items: center; /* Dikey hizalama */
  font-size: 18px;
  cursor: pointer;
  padding: 12px 15px;
  margin: 5px 0;
  transition: all 0.3s ease;
  text-decoration: none;
  border-radius: 8px; /* Yuvarlak köşeler */
}

.side a:hover {
  background: #82060b;
  color: white;
  transform: translateX(10px); /* Hover'da sağa kayma efekti */
}

.side a:hover i {
  opacity: 1;
  margin-left: 10px;
  margin-right: 10px; /* Icon ile metin arası boşluk */
  color: white;
}

#content8{
  animation: backgroundChange 10s infinite; /* Animasyon 10 saniyede tamamlanır */
  margin: -20px;
  padding: 15px 0 100px 20px;
  height: 100%;
}

@keyframes backgroundChange {
  0% { background-color: #FFCDD2; }  /* Orta Pembe */
  6.67% { background-color: #FFF9C4; } /* Açık Sarı */
  13.34% { background-color: #C8E6C9; } /* Orta Yeşil */
  20.01% { background-color: #BBDEFB; } /* Orta Mavi */
  26.68% { background-color: #F8BBD0; } /* Pastel Pembe */
  33.35% { background-color: #FFE0B2; } /* Orta Şeftali */
  40.02% { background-color: #D1C4E9; } /* Orta Lavanta */
  46.69% { background-color: #80DEEA; } /* Turkuaz (Koyu) */
  53.36% { background-color: #FFCC80; } /* Koyu Altın */
  60.03% { background-color: #AED581; } /* Orta Yeşil Tonu */
  66.7% { background-color: #EF9A9A; } /* Koyu Pembe */
  73.37% { background-color: #81D4FA; } /* Orta Pastel Mavi */
  80.04% { background-color: #FFAB91; } /* Şeftali Koyu */
  86.71% { background-color: #B39DDB; } /* Koyu Lavanta */
  93.38% { background-color: #FF7043; } /* Turuncu (Biraz daha koyu) */
  100% { background-color: #FFCDD2; }  /* İlk renge geri döner */
}

/*SORU BÖLÜMÜ*/

.question {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  padding: 25px;
  margin: 20px 0;
  transition: transform 0.2s;
}

.question:hover {
  transform: translateY(-2px);
}

.question p {
  font-size: 1.1em;
  color: #2c3e50;
  margin-bottom: 20px;
  font-weight: 500;
}

.options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.options label {
  display: flex;
  align-items: center;
  padding: 12px 15px;
  background: #f8f9fa;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  padding-right: 40px; /* İkonlar için yer açıyoruz */
}

.options label:hover {
  background: #e9ecef;
}

.options input[type="radio"] {
  margin-right: 12px;
  width: 18px;
  height: 18px;
  accent-color: #2c3e50;
}

.answer {
  margin-top: 20px;
  padding: 12px;
  background: #e8f5e9;
  border-left: 4px solid #4caf50;
  border-radius: 4px;
  font-weight: 500;
  color: #2e7d32;
  display: none;
}

/* Doğru cevap seçildiğinde göster */
.answer.show {
  display: block;
  animation: fadeIn 0.3s ease-in;
}

/*Akordiyon bölümü*/

.accordion {
  margin: 20px 0;
}
.accordion-content{
  
}

.accordion-btn {
  background-color: #f4f4f4;
  color: #444;
  cursor: pointer;
  padding: 18px;
  width: 100%;
  text-align: left;
  border: none;
  outline: none;
  transition: 0.4s;
  font-size: 16px;
  font-weight: bold;
  border-radius: 5px;
}
.accordion-btn span{
  color: #e42e28;
}

.accordion-btn:hover {
  background-color: #ddd;
}

.accordion-btn:after {
  content: '\02795'; /* Unicode karakter için "+" işareti */
  font-size: 13px;
  color: #777;
  float: right;
  margin-left: 5px;
}

.accordion-btn.active:after {
  content: "\2796"; /* Unicode karakter için "-" işareti */
}

.accordion-content {
  padding: 0 18px;
  background-color: white;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease-out;
}

.active + .accordion-content {
  max-height: 2000px; /* Sabit bir yüksek değer veriyoruz */
  padding: 18px;
  transition: max-height 0.4s ease-in-out;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Seçenek seçildiğinde stil değişikliği */
.options input[type="radio"]:checked + span {
  color: #2c3e50;
  font-weight: 500;
}

/* Doğru cevap için yeşil arka plan */
.options label.correct {
  background: #e8f5e9;
  border-color: #4caf50;
}

/* Yanlış cevap için kırmızı arka plan */
.options label.incorrect {
  background: #ffebee;
  border-color: #ef5350;
}


/* Fake image, just for this example */
.fakeimg {
  background-color: #aaa;
  width: 100%;
  padding: 20px;
}

/* Footer */
.footer {
  padding: 20px;
  text-align: center;
  background: #ddd;
}

/* Responsive layout - when the screen is less than 700px wide, make the two columns stack on top of each other instead of next to each other */
@media screen and (max-width: 700px) {
  .row {   
    flex-direction: column;
  }
}

/* Responsive layout - when the screen is less than 400px wide, make the navigation links stack on top of each other instead of next to each other */
@media screen and (max-width: 400px) {
  .navbar a {
    float: none;
    width: 100%;
  }
}


/*FOOTER ALANI*/

footer{
  background-color: #82060b;
}
.footerContainer{
  width: 100%;
  padding: 30px 0 0 0  ;
}
.socialIcons{
  display: flex;
  justify-content: center;
}
.socialIcons a{
  text-decoration: none;
  padding:  10px;
  background-color: white;
  margin: 10px;
  border-radius: 50%;
}
.socialIcons a i{
  font-size: 2em;
  color: black;
  opacity: 0,9;
}
/* Hover affect on social media icon */
.socialIcons a:hover{
  background-color: #111;
  transition: 0.5s;
}
.socialIcons a:hover i{
  color: white;
  transition: 0.5s;
}
.footerNav{
  margin: 30px 0;
}
.footerNav ul{
  display: flex;
  justify-content: center;
  list-style-type: none;
}
.footerNav ul li a{
  color:white;
  margin: 20px;
  text-decoration: none;
  font-size: 1.3em;
  opacity: 0.7;
  transition: 0.5s;

}
.footerNav ul li a:hover{
  opacity: 1;
}
.footerBottom{
  background-color: #000;
  padding: 20px;
  text-align: center;
}
.footerBottom p{
  color: white;
}
.designer{
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 400;
  margin: 0px 5px;
}
@media (max-width: 700px){
  .footerNav ul{
      flex-direction: column;
  } 
  .footerNav ul li{
      width:100%;
      text-align: center;
      margin: 10px;
  }
  .socialIcons a{
      padding: 8px;
      margin: 4px;
  }
}

/*Ünite başlığı*/
.unite-title{
width: 100%;
padding:10px;
background-color: #000;
color: #f2f2f2;
}

/*Uyarı alanı*/
.info{
  width: 100%;
  color: #000;
  background-color: #d5dc3f;
  padding: 10px;
  font-size: 15px;
}

.unite-title span{
  color: red;
}


/**/
label:hover{
  cursor: pointer;
}
input:hover{
  cursor: pointer;
}

.sources a{
  padding: 15px;
  text-decoration: none;
  font-size: 15px;
  background-color: #888;
  margin: 3px;
  transition: 0.4s;
}

.sources a:hover{
  font-size: 14px;
  margin: 5px;
  background-color: aqua;
}

.resources {
  padding: 2rem;
  background: #f8f9fa;
  border-radius: 10px;
  margin: 2rem 0;
}

.resources-title {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: #333;
  font-size: 1.8rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 3px solid #82060b;
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.resource-card {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  text-align: center;
}

.resource-card:hover {
  transform: translateY(-5px);
}

.resource-icon {
  font-size: 2rem;
  color: #82060b;
  margin-bottom: 1rem;
}

.resource-card h3 {
  color: #333;
  margin: 0.5rem 0;
}

.resource-card p {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.resource-card a {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background: #82060b;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s ease;
}

.resource-card a:hover {
  background: #5c0407;
}

@media (max-width: 768px) {
  .resources-grid {
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}




@media (max-width: 600px){
.main{
  width: 100%;
}
.side{
  position: static;
}
.header{
  background-attachment: initial;
}
.hackerText {
  font-size: 30px !important;
}
.header h1 {
  font-size: 20px;
}

.lesson-title{
  font-size: 25px !important;
}


  .a-s{
  display: flex;
  flex-direction: column;
  height: auto;
  width: 90%;
  margin: 0 auto;
}
.a-s .col-2{
  width: 100%;
}
.a-s .skills .icons i{
  font-size: 40px;
  margin: 0 23px;
}
.a-s .title-text h3{
  font-size: 30px;
}
.a-s .skill-container{
  width: 70px;
}
.a-s .about{
  height: 600px;
  display: flex;
  flex-direction: column;
}
.a-s .img-box{
  width: 100%;
  height: 70%;
}
.a-s .about-text{
  width: 100%;
  height: 30%;
}
.info-icon{
  display: none;
}
.title-text h3{
  font-size: 30px;
}

.container-2{
  display: flex;
  flex-direction: column;
  height: auto;
  width: 90%;
  margin: 0 auto;
}
.col-icons .icons i{
  font-size: 42px;
  margin: 0 25px;
}
.container-2 .col-3{
  width: 100%;
  height: 310px;
}
.p-c{
  display: flex;
  flex-direction: column;
  height: auto;
  width: 90%;
  margin: 0 auto;
}

.p-c .col-33{
  width: 100%;
  height: 275px;
}




.imgalgorithm {
  background: url("image/algorithm.webp") !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}



}   /*bu kısım bitiyo*/




.check-icon, .times-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    display: none;
}

.check-icon {
    color: #4CAF50;
    font-size: 20px;
}

.times-icon {
    color: #f44336;
    font-size: 20px;
}

/* Hover efekti için */
.options label:hover .check-icon,
.options label:hover .times-icon {
    opacity: 0.7;
}


/*SORU BÖLÜMÜ*/
.soru-kutu ol.soru-listesi > li {
  margin-bottom: 30px !important;
}
.soru-secenek li {
  margin-bottom: 5px !important;
}
.dogru-yesil {
  color: #219a00 !important;
  font-weight: bold;
}
.soru-cevap-anahtari {
  margin-top: 10px;
}

.accordion-questions h3{
  font-size: 1.8rem;
  border-bottom: 2px solid black;
  padding-bottom: 5px;
}



/*-------BACK TO TOP----------*/

.back-to-top {
    position: fixed;
    bottom: -60px; /* Başlangıçta gizli */
    right: 80px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #82060b;
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: all 0.4s ease;
    opacity: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.visible {
    bottom: 20px;
    opacity: 1;
}

.back-to-top:hover {
    background: #5c0407;
    transform: translateY(-3px);
}

.back-to-top::after {
    content: "Yukarı Çık";
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    margin-right: 10px;
    white-space: nowrap;
    background: #333;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s;
}

.back-to-top:hover::after {
    opacity: 1;
}
/* Mobil için */
@media (max-width: 768px) {
    .back-to-top {
        right: 15px;
        width: 45px;
        height: 45px;
    }
    
    .back-to-top.visible {
        bottom: 15px;
    }
}
















