* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: white;
    max-width: 100%;
}
.main {
    /* background-color: rgb(180, 160, 160); */
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    max-width: 100%;
    /* grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); */
}
.dersler {
    display: grid;
    grid-template-columns: auto auto auto;
    height: auto;
    width: 60%;
    height: 500px;
    padding: 4rem 3rem;
    gap: 0 3rem;
}
.ders {
    
    text-decoration: none;
    list-style: none;
    color: #000000;
    font-size: 1rem;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    background: linear-gradient(135deg, #ebebeb 0%, #d3d3d3 100%);
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    min-width: 9em;
    width: auto;
    height: 5em;
    text-align: center;
    font-weight: 600;
}
.ders:hover {
    background: linear-gradient(135deg, #d3d3d3 0%, #ebebeb 100%);
    transition: transform 0.3s ease, background-color 0.3s ease;
}
.kap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.ust {
    z-index: 1;
    width: 100%;
    position: fixed;
    background: #131A22;
    top: 0;
}

.ust .kap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 20px;
    /* min-height: 80px; */
    max-height: 80px;
}

.logo img {
    height: 70px;
    width: 110px;
    border-radius: 8px;
    transition: transform 0.3s ease;
}
.altbilgi {
    background: #1a1f3a;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: auto;
}

.altbilgi p {
    font-size: 0.9rem;
    opacity: 0.9;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
.kap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    line-height: 40px;
}
.navigasyon-liste {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.hamburger {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hamburger div {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.navigasyon-baglanti {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    position: relative;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.navigasyon-baglanti:hover {
    background-color: rgba(220, 38, 38, 0.2);
    transform: translateY(-2px);
}

.navigasyon-baglanti::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navigasyon-baglanti:hover::after {
    width: 80%;
}

.menuKapat {
  display: none;
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    /* transition: all 0.3s ease; */
    position: relative;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
.menuKapat:hover {
  background-color: rgba(220, 38, 38, 0.2);
  transform: translateY(-2px);
}
@media screen and (min-width: 768px) {
    .hamburger {
        display: none !important;
    }
}
/*responsive kodu*/
@media (max-width: 1030px) {
    .menuKapat {
        display: block;
        width: 100%;
        text-align: left;
        padding: 1rem 2rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        font-size: 1.1rem;
    }
    .ust .kap {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 1rem 20px;
    }

    .hamburger {
        display: flex !important;
        z-index: 1001;
    }

    .navigasyon-liste {
        position: fixed;
        top: 0;
        right: 0;
        width: 50%;
        height: 100vh;
        background: #131A22;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out, visibility 0.3s ease-in-out, opacity 0.3s ease-in-out;
        z-index: 1000;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
        margin: 0;
        padding: 0;
        visibility: hidden;
        opacity: 0;
    }

    .navigasyon-liste.aktif {
        transform: translateX(0);
        visibility: visible;
        opacity: 1;
    }

    .hamburger.aktif .hamburger-1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .hamburger.aktif .hamburger-2 {
        opacity: 0;
    }

    .hamburger.aktif .hamburger-3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .navigasyon-baglanti {
        font-size: 1rem;
        padding: 1rem 2rem;
        width: 100%;
        text-align: left;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

}

@media (max-width: 768px) {
    .menuKapat {
    display: block;
    width: 100%;
    text-align: left;
    padding: 1rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1.1rem;
    }
  
    .dersler {
    display:flex;
    height: auto;
    width: 0%;
    height: 500px;
    padding: 4rem 3rem;
    gap: 0 3rem;
    flex-wrap: wrap;
    position: relative;
    margin: auto;

    }
    
    .ders {
    
    text-decoration: none;
    list-style: none;
    color: #000000;
    font-size: 1rem;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    background: linear-gradient(135deg, #ebebeb 0%, #d3d3d3 100%);
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    min-width: 9em;
    width: auto;
    height: 5em;
    text-align: center;
    font-weight: 600;
    margin: 20px 0px;
    }

    .main {
    /* background-color: rgb(180, 160, 160); */
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    max-width: 90%;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    margin-top: 40px;
}

}

@media (max-width: 480px) {
    .menuKapat{
        display: block;
    } 
    
    .navigasyon-liste {
        width: 50%;
        gap: 1.5rem;
    }
    
    .navigasyon-baglanti {
        font-size: 1rem;
        padding: 0.8rem 1.5rem;
    }   
    
}

/* Genel sıfırlamalar ve kutu modeli */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.main {
  padding: 20px;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.dersler {
  display: flex;
  flex-wrap: wrap;
  gap: 15px; /* Linkler arası boşluk */
  max-width: 900px;
  width: 100%;
  justify-content: center;
}

.ders {
  background-color: #4a90e2;
  color: white;
  text-decoration: none;
  font-weight: 600;
  padding: 15px 25px;
  border-radius: 8px;
  flex: 1 1 150px; /* Esnek büyüyüp küçülebilir, minimum 150px */
  text-align: center;
  transition: background-color 0.3s ease;
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

.ders:hover {
  background-color: #357ABD;
}

/* Responsive için medya sorguları */

/* Küçük ekranlar (telefonlar) */
@media (max-width: 480px) {
  .ders {
    flex: 1 1 100%;
    font-size: 1.1rem;
  }
}

/* Orta ekranlar (tablet) */
@media (min-width: 481px) and (max-width: 768px) {
  .ders {
    flex: 1 1 45%;
    font-size: 1.2rem;
  }
}

/* Büyük ekranlar (masaüstü) */
@media (min-width: 769px) {
  .ders {
    flex: 1 1 30%;
    font-size: 1.3rem;
  }
}

.main {
    /* background-color: rgb(180, 160, 160); */
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    max-width: 100%;
}

.dersler {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 sütun */
    gap: 0 3rem;
    width: 60%;
    height: 500px;
    padding: 4rem 3rem;
    box-sizing: border-box;
}

.ders {
    text-decoration: none;
    color: #000000;
    font-size: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    background: linear-gradient(135deg, #ebebeb 0%, #d3d3d3 100%);
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    min-width: 9em;
    height: 5em;
    text-align: center;
    font-weight: 600;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.ders:hover {
    background: linear-gradient(135deg, #d3d3d3 0%, #ebebeb 100%);
    transform: scale(1.05);
}

/* Responsive: küçük ekranlarda 1 sütun */
@media (max-width: 768px) {
    .dersler {
        grid-template-columns: 1fr;
        width: 90%;
        height: auto;
        padding: 2rem 1rem;
        gap: 1rem 0;
    }
    
    .ders {
        min-width: auto;
        height: 4.5em;
        font-size: 1.1rem;
    }
}

/*
a[href*="atenar.io"],
a[href*="atenar.io"]:link,
a[href*="atenar.io"]:visited,
a[href*="atenar.io"]:focus,
a[href*="atenar.io"]:hover,
a[href*="atenar.io"]:active {
    color: #ffffff;
    background-color: #dc2626;
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    margin: auto 5px;
}*/

a[href*="atenar.io"]:not(.fab),
a[href*="atenar.io"]:not(.fab):link,
a[href*="atenar.io"]:not(.fab):visited,
a[href*="atenar.io"]:not(.fab):focus,
a[href*="atenar.io"]:not(.fab):hover,
a[href*="atenar.io"]:not(.fab):active {
    color: #ffffff;
    background-color: #dc2626;
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    margin: auto 5px;
}

