@font-face {
    font-family: GreatVibes-Regular;
    src: url(fonts/GreatVibes-Regular.ttf) format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: Helvetica;
    src: url(fonts/Helvetica.ttf) format('truetype');
    font-weight: 400;
    font-style: normal;
}

html, body {
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    font-family: Helvetica, Arial, sans-serif;
}

.content-container2 {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap; /* Allows wrapping on smaller screens */
}

.text-content2 {
    flex: 1;
    min-width: 200px; /* Ensures the text-content has a minimum width */
    margin: 10px;
}

.image-content {
    display: flex;
    flex-direction: column;
    min-width: 200px; /* Ensures the image-content has a minimum width */
    margin: 10px;
}

.main {
    margin: 0 auto;
    max-width: 990px;
    padding: 20px;
}

.misyonvizyonbasliktext {
    margin: 0 auto;
    font-size: xx-large !important;
    text-align: center;
    font-weight: 400;
}

.misyongüvenlitext {
    font-family: GreatVibes-Regular, sans-serif;
    margin-top: 10px;
    font-size: 30px !important;
    text-align: center;
}

.uzunyazitext {
    max-width: 480px;
    margin: 20px auto;
}

.element1, .element2 {
    position: relative;
    width: 350px;
    height: 225px;
    border: white solid 8px;
}

.element1 {
    left: 120px;
    background-color: red;
    z-index: 0;
}

.element2 {
    top: -70px;
    background-color: blue;
    z-index: 1;
}

.element1:hover,
.element2:hover {
    z-index: 3;
}

.fadeInLeft {
    -webkit-animation-name: fadeInLeft;
    animation-name: fadeInLeft;
    -webkit-animation-duration: 2.2s;
    animation-duration: 2.2s;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
}

@-webkit-keyframes fadeInLeft {
    0% {
        opacity: 0;
        -webkit-transform: translate3d(-100%, 0, 0);
        transform: translate3d(-100%, 0, 0);
    }
    100% {
        opacity: 1;
        -webkit-transform: none;
        transform: none;
    }
}

@keyframes fadeInLeft {
    0% {
        opacity: 0;
        -webkit-transform: translate3d(-100%, 0, 0);
        transform: translate3d(-50%, 0, 0);
    }
    100% {
        opacity: 1;
        -webkit-transform: none;
        transform: none;
    }
}

.fadeInUp {
    -webkit-animation-name: fadeInUp;
    animation-name: fadeInUp;
    -webkit-animation-duration: 2.2s;
    animation-duration: 2.2s;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
}

@-webkit-keyframes fadeInUp {
    0% {
        opacity: 0;
        -webkit-transform: translate3d(0, 100%, 0);
        transform: translate3d(0, 100%, 0);
    }
    100% {
        opacity: 1;
        -webkit-transform: none;
        transform: none;
    }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        -webkit-transform: translate3d(0, 100%, 0);
        transform: translate3d(0, 50%, 0);
    }
    100% {
        opacity: 1;
        -webkit-transform: none;
        transform: none;
    }
} 

/* Small devices (landscape phones, 576px and up) */
@media (max-width: 576px) {
    .content-container2 {
        display: block;
    }    
    .text-content2, .image-content {
        text-align: center;
        max-width: 100%;
        margin: 0 auto;
    }
    .element1, .element2 {
        display: none;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (max-width: 768px) {
    .content-container2 {
        display: block;
    }
    .text-content2, .image-content {
        text-align: center;
        max-width: 100%;
        margin: 0 auto;
    }
    .element1, .element2 {
        display: none;
    }
}

/* Large devices (desktops, 992px and up) */
@media (max-width: 992px) {
    .content-container2 {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .text-content2, .image-content {
        text-align: center;
        max-width: 90%;
        margin: 0 auto;
    }
    .element1, .element2 {
        display: none!important;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (max-width: 1200px) {
    .content-container2 {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
    }
    .element1, .element2 {
        display: block;
    }
}

/* Ultra large devices (extra large desktops, 1400px and up) */
@media (min-width: 1400px) {
    .content-container2 {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
    }
    .element1, .element2 {
        display: block;
    }
}
