@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: "Montserrat", sans-serif;
    font-weight: 500;
}

.containered {
    display: flex;
    height: 100%;
    flex-direction: row; /* Varsayılan olarak yatay düzen */
}

.text, .imagetext {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.text {
    padding: 20px;
    box-sizing: border-box;
    background-color: #f4f4f4;
}

.imagetext img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Resmi oranlarını koruyarak tam olarak gösterir */
    background-color: white; /* Resmin arka plan rengi (isteğe bağlı) */
}

.content {
    max-width: 600px;
    text-align: left;
}

h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

p {
    font-size: 1.2em;
    line-height: 1.6;
}

/* Responsive Tasarım */
@media (max-width: 768px) {
    .containered {
        flex-direction: column; /* Mobilde alt alta düzen */
    }

    .text, .imagetext {
        flex: none;
        width: 100%;
        height: 50vh; /* Mobilde her biri ekranın yarısını kaplasın */
    }

    .text {
        order: 2; /* Yazıyı altta göstermek için */
    
    }

    .imagetext {
        order: 1; /* Resmi üstte göstermek için */
    }
    p {
        font-size: 20px;
    }
}
@media (max-width: 485px) {
    .containered {
        flex-direction: column; /* Mobilde alt alta düzen */
    }

    .text, .imagetext {
        flex: none;
        width: 100%;
        height: 50vh; /* Mobilde her biri ekranın yarısını kaplasın */
    }

   

    .imagetext {
        order: 1; /* Resmi üstte göstermek için */
    }
    p {
        font-size: 12px;
    }
    h1{
        font-size: 20px;
    }
}