
* {
    box-sizing: border-box;
}

body {
  font-family: "Nunito", sans-serif;
  margin: 0;
  margin-top: 98px;
  background-color: #2F4F4F;
}

#menu {
    position: fixed;
    top: 0;
    width: 100%;
    height: 98px;
    padding: 0 20px;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #2F4F4F;
    transition:opacity 0.4s ease; /* Geçiş efekti */
}

/* Logo stili */
#logo {
    font-size: 30px;
    font-weight: 700;
    line-height: 80px;
    color: #B78F57;
    display: flex;
    align-items: center;
}

#logo img {
    width: 95px;  /* Genişlik ayarı */
    height: auto;  /* Yükseklik, genişliğe göre otomatik ayarlanır */
    margin-right: 10px; /* Resim ile metin arasına boşluk ekler */
}

/* Menü stili */
#nav-menu {
    display: flex;
    line-height: 80px;
}

#nav-menu a {
    text-decoration: none;
    margin-right: 25px;
    color: white;
    position: relative;
    font-size: 18px;
}

#nav-menu a::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: white;
    transition: all 0.4s ease;
    transform: translateX(-50%);
}

#nav-menu a:hover::before {
    width: 100%;
}

#nav-menu a:hover {
    border-bottom: none;
}

.icon {
    margin-right: 7px;
    font-size: 18px;
}

.menu-toggle {
    display: none;
    font-size: 30px;
    color: white;
    cursor: pointer;
}

#nav-menu {
    display: flex;
}

#nav-menu.show {
    display: flex;
    position: absolute;
    top: 95px;
    right: 0;
    background-color: #2F4F4F;
    width: 100%;
    flex-direction: column; /* Menü ögelerini alt alta sıralar */
    padding: 10px; /* Menü ögeleri arasına boşluk ekler */
}

#nav-menu.show a {
    margin: 10px 0;
}

@media (max-width: 1080px) {
    #nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
    }

    .menu-toggle {
        display: block;
    }

    #logo-title {
        display: none;
    }
}









/* Ana sayfa kısmı - Videonun olduğu yer */


#anasayfa {
    position: relative;
    height: 100vh;
    overflow: hidden; 
}

#background-video {
    position: fixed; /* Ekrana sabitler */
    top: 0;
    left: 0;
    width: 100%; /* Ekranın genişliğine uyum sağlar */
    height: 100%; /* Ekranın yüksekliğine uyum sağlar */
    object-fit: cover; /* Videonun ekranı kaplamasını sağlar */
    z-index: -1;
    pointer-events: none; /* Kullanıcı etkileşimlerini devre dışı bırakır */
    filter: brightness(60%);
}

.logo-back {
    position: absolute;
    top: 30%; 
    left: 50%;
    transform: translate(-50%, -50%);
}

.logo-back img {
    width: 300px;
    height: auto;
}

/* Daktilo Animasyonu için Yazı */
.text-back {
    position: absolute;
    top: 50%; 
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Nunito', monospace; /* Daktilo fontu */
    font-weight: 700;
    font-size: 80px;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    /* border-right: 4px solid white;  Yanıp sönen imleç efekti */
    z-index: 1;
    animation: typing 3s steps(30, end), blink-caret 0.75s step-end infinite;
    /*text-shadow: -4px 0 0 #2F4F4F, 0 2px 0 #2F4F4F, 2px 0 0 #2F4F4F, 0 -2px 0 #2F4F4F;*/
    text-shadow: 
        2px 2px 0 #2F4F4F, /* Sağ alt */
       -2px 2px 0 #2F4F4F, /* Sol alt */
        2px -2px 0 #2F4F4F, /* Sağ üst */
       -2px -2px 0 #2F4F4F, /* Sol üst */
        2px 0px 0 #2F4F4F, /* Sağ */
       -2px 0px 0 #2F4F4F, /* Sol */
        0px 2px 0 #2F4F4F, /* Alt */
        0px -2px 0 #2F4F4F; /* Üst */
}

/* Daktilo yazma animasyonu */
@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

/* Yanıp sönen imleç animasyonu */
@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: white; }
}

@media (min-aspect-ratio: 1/1) {
    .logo-back {
        display: none; /* Logoyu gizle */
    }
}

/* Ekran genişliği 1000px ve altına düştüğünde */
@media (max-width: 1000px) {
    .text-back {
        font-size: 30px; /* Küçültülmüş yazı boyutu */
        top: 50%;
    }
    .logo-back img {
        width: 300px;
        height: auto;
    }
}

/* Ekran genişliği 600px ve altına düştüğünde */
@media (max-width: 600px) {
    .text-back {
        font-size: 25px; /* Daha da küçültülmüş yazı boyutu */
    }
    .logo-back img {
        width: 200px;
        height: auto;
    }
}



/* Hakkımızda */

#hakkimizda {
    background-color: #2F4F4F;
    padding: 50px 20px; /* Kenarlardan biraz boşluk bırakmak için padding'i ayarla */
    text-align: center;
    /*text-transform: capitalize;*/
    font-weight: 600;
    animation: slideInFromTop 1s ease-out;
}

/* Başlık */
h3 {
    font-size: 55px;
    color: #B78F57;
    text-shadow: 0px 1px 1px black;
    font-weight: 600;
    margin-bottom: 30px;
}

/* Konteyner */
.container {
    max-width: 1200px;
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

#sag {
    flex: 2 1 800px; /* Esnek yapıya geçiş */
    color: white;
    text-align: left;
    letter-spacing: 1px;
    font-size: 20px;
    line-height: 1.8;
    animation: slideInFromRight 1s ease-out;
}

#sol {
    flex: 2 1 800px; /* Esnek yapıya geçiş */
    color: white;
    text-align: left;
    letter-spacing: 1px;
    font-size: 20px;
    line-height: 1.8;
    animation: slideInFromRight 1s ease-out;
}

span {
    font-size: 50px;
    margin-right: 7px;
    line-height: 42px;
    color: white;
    font-weight: 600;
    float: left;
}

/* Resim */
.img-fluid {
    max-width: 100%;
    height: auto;
    margin: 20px auto 0; /* Üst boşluk için 20px, yanlarda otomatik boşluk */
    display: block;
}

/* Responsive medya sorguları */
@media (max-width: 992px) {
    
    #container {
        flex-direction: column;
        text-align: center;
    }

    #sol, #sag {
        flex: 1 1 100%;
        border-right: none; /* Küçük ekranlarda kenar çizgisini kaldır */
        padding-right: 0;
    }

    span {
        float: none;
        margin-right: 0;
        font-size: 40px;
    }

    h3 {
        font-size: 45px;
    }

    #h5sol {
        font-size: 22px;
    }

    #sag {
        font-size: 14px;
    }

    #pson {
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    h3 {
        font-size: 35px;
    }

    #h5sol {
        font-size: 20px;
    }

    span {
        font-size: 30px;
    }

    #sag {
        font-size: 13px;
    }

    #pson {
        font-size: 12px;
    }
}








/* Galeri bölümü 

#galeri {
    background-color: #2F4F4F;
    padding: 50px;
    text-align: center;
    height: 700px;
}

.card {
    width: 320px;
    height: 320px;
    border: 1px solid #B78F57;
    padding: 0;
    display: inline-block;
}

.cardtitle {
    font-size: 15px;
    color: #B78F57;
}

.cardp {
    color: white;
}

.card:hover{
    border: 4px solid;
    color: #B78F57;
}

*/

#galeri {
    background-color: #2F4F4F;
    padding: 50px;
    text-align: center;
    height: auto; /* Yüksekliği otomatik yaparak içerik boyutuna göre uyum sağlar */
}

.card {
    width: 100%; /* Kart genişliği parent öğeye göre uyum sağlar */
    max-width: 320px; /* Maksimum genişlik belirler */
    height: auto; /* Yüksekliği otomatik yaparak içeriğe göre ayarlar */
    /* border: 1px solid #B78F57; */
    margin: 0 auto; /* Kartları ortalar */
}

.card img {
    width: 100%; /* Resmin kartın genişliğine uyum sağlar */
    height: auto;
    border: 2px solid #B78F57; /* Yüksekliği otomatik yapar */
}

.cardtitle {
    font-size: 15px;
    color: #B78F57;
}

.cardp {
    color: white;
}

.card img:hover {
    border: 4px solid #B78F57; /* Hover durumunda border rengini belirler */
    color: #B78F57;
}

@media (max-width: 1200px) {
    .card {
        max-width: 270px;
    }
}

@media (max-width: 992px) {
    .card {
        max-width: 250px;
    }
}

@media (max-width: 768px) {
    .card {
        max-width: 220px;
    }
}









/* Kurallar bölümü */

#kurallar {
    background-color: #2F4F4F;
    padding: 50px;
    padding-left: 20%;
    padding-right: 20%;
    text-align: center;
    height: auto;
}

#kural-container {
    display: flex;
    flex-wrap: wrap;
}

#anasol {
    text-align: left;
    padding-left: 50%;
}

#kuralsol p{
    color: white;
}

#anasag {
    text-align: left;
    padding-right: 25%;
}

#kuralsag p{
    color: white;
}

@media (max-width: 900px) {
    #kural-container {
        flex-direction: column;
    }
}

/* Şerit Video */

#serit {
    background-color: #2F4F4F;
    height: 500px;
    position: relative; /* Video'nun serit içinde kalmasını sağlar */
}

#serit-video {
    position: absolute; /* Serit div'ine göre konumlandırır */
    top: 50%; 
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: 0; /* Serit'in arka planında kalmasını sağlar */
    pointer-events: none; /* Kullanıcı etkileşimlerini devre dışı bırakır */
    filter: brightness(60%);
}

/* Daktilo Animasyonu için Yazı */
.typewriter-text {
    position: absolute;
    top: 50%; 
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Nunito', monospace; /* Daktilo fontu */
    font-weight: 700;
    font-size: 50px;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    /* border-right: 4px solid white; Yanıp sönen imleç efekti */
    z-index: 1;
    animation: typing 3s steps(30, end), blink-caret 0.75s step-end infinite;
}

/* Daktilo yazma animasyonu */
@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

/* Yanıp sönen imleç animasyonu */
@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: white; }
}

/* Ekran genişliği 1000px ve altına düştüğünde */
@media (max-width: 1000px) {
    .typewriter-text {
        font-size: 30px; /* Küçültülmüş yazı boyutu */
    }
}

/* Ekran genişliği 600px ve altına düştüğünde */
@media (max-width: 600px) {
    .typewriter-text {
        font-size: 20px; /* Daha da küçültülmüş yazı boyutu */
    }
}











/* İletişim kısmı */

    #iletisim {
        background-color: #2F4F4F;
        padding: 40px 0;
        display: flex;
        align-items: center;
    }

    .container {
        display: flex;
        justify-content: center; /* Yatayda ortalar */
        align-items: center;     /* Dikeyde ortalar */
        height: auto;           /* İsteğe bağlı: Container yüksekliğini belirler */
        text-align: center;      /* Metni ortalar */
    }
    
    .iletisimopak {
        background-color: #2F4F4F;
        padding: 30px;
        border-radius: 8px;
    }
    
    .formgroup {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
    }
    
    .solform, .sagform {
        width: 48%;
    }
    
    .solform input, .sagform input, textarea {
        width: 100%;
        padding: 10px;
        margin-bottom: 20px;
        border-radius: 4px;
        border: 1px solid #bdc3c7;
        box-sizing: border-box;
    }
    
    textarea {
        height: 100px;
        resize: none;
    }
    
    input[type="submit"] {
        width: 100%;
        padding: 15px;
        background-color: #B78F57;
        border: none;
        border-radius: 4px;
        color: white;
        font-size: 18px;
        cursor: pointer;
        transition: background-color 0.3s;
    }
    
    input[type="submit"]:hover {
        background-color: #d2a362;
    }
    
    /* Adres bölümü */
    #adres {
        margin-top: 10px;
    }
    
    #adres h4 {
        margin-bottom: 10px;
        color: #B78F57;
    }
    
    #adres p {
        margin: 5px 0;
        color: white;
    }

    #socialfooter{
        display: flex;
        justify-content: center; /* Logoları yatayda ortalar */
        margin-top: 40px; /* Üst boşluk ekler */
    }
    
    #socialfooter a {
        color: #B78F57;
        margin: 0 10px;
        text-decoration: none;
        font-size: 30px;
        transition: color 0.3s;
    }
    
    #socialfooter a:hover {
        color: #d2a362;
    }
    
    footer a .fa-hand-o-up {
        font-size: 24px;
        color: #B78F57;
    }
    
    footer a .fa-hand-o-up:hover {
        color: #B78F57;
    }
    
    /* Footer bölümü */
    footer {
        margin-top: 10px;
        padding-top: 10px;
        text-align: center;
        width: 100%;

    }
    
    #copyright {
        margin-bottom: 10px;
        color: #B78F57;
    }

    @media (max-width: 645px) {
        .formgroup {
            display: flex;
            flex-direction: column; /* Dikeyde düzenle */
            align-items: center; /* Yatayda ortala */
        }
        .solform, .sagform {
            width: 100%;
        }
        #socialfooter {
            display: flex;
            justify-content: center; /* Yatayda ortala */
            margin: 20px 0; /* Üst ve alt boşluk */
        }
    }