body {
    margin: 0;
    padding: 0;
    background-color: white;
    font-family: 'primaryFont', sans-serif;
}

.body, .row, .container, .cards-1, .cards-2, .cards-3, .cards-4{
    transition: 0.6s ease;
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 0 0;
    padding-top: 2%;
}

.row {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 sütun */
    gap: 5%;
    grid-auto-rows:min-content;
    width: 90%;
    margin: 0 auto; /* Ortalamayı sağlar */
    transition: gap 0.1s ease;
}

.card-link {
    text-decoration: none; /* Varsayılan alt çizgiyi kaldırır */
    color: inherit; /* Bağlantı rengini devralır */
    display: flex; /* a etiketi içindeki div'lerin düzgün görünmesini sağlar */
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    align-items: center; /* Dikeyde ortalar */
    justify-content: center; /* Yatayda ortalar */
}

.cards-1, .cards-2, .cards-3, .cards-4 {
    background-size: cover;
    background-position: center;
    background-image: url(/pictures/products/Tesbih.jpg);
    aspect-ratio: 11/15;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative; /* İçeriklerin düzgün yerleşmesi için */
    background-color: rgba(255, 255, 255, 0.8); /* Beyaz, %80 şeffaflık */
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2); /* Hafif gölge efekti */
    border: 0.10vw dashed var(--primary-color); /* Kutunun içinde aralıklı çizgi */
}



.cards-1:hover, .cards-2:hover, .cards-3:hover, .cards-4:hover {
    transform: scale(1.05); /* Hover durumunda büyütme efekti */
}

.cards-1:hover .box,
.cards-2:hover .box,
.cards-3:hover .box,
.cards-4:hover .box,
.cards-1:hover .photo-1,
.cards-2:hover .photo-2,
.cards-3:hover .photo-3,
.cards-4:hover .photo-4 {
    border: 0px solid #ccc; /* Çerçeve rengi */
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.5), 0 0 25px white; /* Parlak gölge */
    transition: box-shadow 0.3s ease;
}

.cards-1 {
    background-image: url("/pictures/products/tesbih.png");
}

.cards-2 {
    background-image: url("/pictures/products/misineli-bileklik.png");
}

.cards-3 {
    background-image: url("/pictures/products/makrome-bileklik.png");
}

.cards-4 {
    background-image: url("/pictures/products/kolye.png");
}

.box {
    background-color: var(--secondary-color);
    margin: auto;
    width: 65%;
    aspect-ratio: 3/1;
    border-radius: 1vw;
    display: flex; /* Flexbox ile düzenlemeyi aktif et */
    align-items: center; /* Dikeyde ortalar */
    justify-content: center; /* Yatayda ortalar */
}

.box-text {
    color: white;
    text-align: center;
    font-family: 'primaryFont';
    font-size: 1.6vw;
    line-height: normal; /* Varsayılan line-height'ı kullan */
    transition: 0s ease;
}

.container-2 {
    width: 100%;
    text-align: center; /* İçerikleri ortalar */
    margin: 0.75vw 0 0.75vw 0; /* Üstten 20px, alttan 40px boşluk */
}

.subhead1{
    font-size: 2.5vw;
    font-family: 'secondaryFont', sans-serif; /* Yazı tipi */
    font-weight: normal;
    margin-bottom: 0.75vw; /* Başlık ile video arasında boşluk */
    color: #333; /* Başlık rengi */
}

.container-2 iframe {
    max-width: 100%; /* Responsive video için genişlik */
    width: 50vw; /* Genişlik oranı */
    aspect-ratio: 16 / 9; /* Video oranını korur */
    border-radius: 10px; /* Köşeleri yuvarlatma */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Hafif gölge efekti */
}

/* Responsive Düzenlemeler */
@media screen and (max-width: 1280px) {

    .row {
        grid-template-columns: repeat(2,minmax(0, 1fr)); /* 1200px altına düştüğünde 2 sütun */
        gap: 0;
    }

    .cards-1, .cards-2, .cards-3, .cards-4 {
        width: 40%;
        aspect-ratio: 11/15;
        margin: auto;
        border-radius: 0.5rem;
    }

    .cards-3, .cards-4 {
        margin-top: 5%;
    }

    .card-link {
        width: 100%;
        height: 100%;
        aspect-ratio: 11/15;
    }

    .cards-1, .cards-3 {
        margin-right: 5%;
    }

    .cards-2, .cards-4 {
        margin-left: 5%;
    }

    .box {
        border-radius: 0.75rem;

    }
    .instruction-text {
        text-align: center;
        font-size: 2.5vw;
        margin-bottom: 1vw;
        margin-top: 4vw;
        color: #333;
    }

    .subhead1 {
        font-size: 2vw;
    }
}

@media screen and (max-width: 768px) {

    .row {
        grid-template-columns: repeat(2,minmax(0, 1fr)); /* 1200px altına düştüğünde 2 sütun */
        gap: 0;
    }

    .box {
        border-radius: 0.5rem;
    }

    .cards-1, .cards-2, .cards-3, .cards-4 {
        width: 50%;
        aspect-ratio: 11/15;
        margin: auto;
        border-radius: 0.375rem;

    }

    .cards-3, .cards-4 {
        margin-top: 5%;
    }

    .card-link {
        width: 100%;
        height: 100%;
        aspect-ratio: 11/15;
    }

    .cards-1, .cards-3 {
        margin-right: 5%;
    }

    .cards-2, .cards-4 {
        margin-left: 5%;
    }
    
    .subhead1 {
        font-size: 2vw;
    }
}

@media screen and (max-width: 420px) {
    
    .subhead1 {
        font-size: 5vw;
    }

    .row {
        grid-template-columns: repeat(1,minmax(0, 1fr)); /* 1200px altına düştüğünde 2 sütun */
        gap: 0;
    }

    .box {
        border-radius: 0.25rem;
    }

    .box-text {
        font-size: 3.6vw;
    }

    .photo-1, .photo-2, .photo-3, .photo-4 {
        width: 80%;
        margin-top: 10%;
        aspect-ratio: 1/1;
        margin-bottom: 0;
    }

    .cards-1, .cards-2, .cards-3, .cards-4 {
        width: 50%;
        aspect-ratio: 11/15;
        margin: auto;
        margin-top: 3%;
        border-radius: 0.25rem;
    }

    .cards-2, .cards-3, .cards-4 {
        margin-top: 6%;
    }


    .card-link {
        width: 100%;
        aspect-ratio: 11/15;
    }

    .container-2 {
        margin-bottom: 0.75vw; /* Başlık ile video arasında boşluk */
    }

    .subhead {
        margin-bottom: 0.75vw; /* Başlık ile video arasında boşluk */
    }
}