body {
   background-image: linear-gradient(to right, #8CC0CA, #D9D9D9 70%);
     position: relative;
     z-index: -99;
}

header {
    background-image: url(/Images/CSM-desktop/explore.png);
    background-repeat: no-repeat;
    background-size: 100% 100%;
    height: 400px;
    z-index: 1;
}

.explore-container {
    display: flex;
    flex-direction: column;
    padding: 4rem 0;
    font-size: 1.7rem;
}

.text p {
    box-sizing: border-box;
    padding: 0 4rem;
    text-align: center;
}

h1, h2 {
    font-size: 2rem;
    text-align: center;
}

.kids-image {
    width: 20rem;
    height: 12rem;
    align-self: center;
}

.teachers-image {
    width: 10.7rem;
    height: 19.2rem;
    align-self: center;
}

.researchers-image {
    width: 12rem;
    height: 16.3rem;
    align-self: center;
}

.img {
    padding: 2rem 0;
}

.explore-container {
     height: fit-content;
}

@media only screen and (min-width: 950px) {
    header {
        height: 800px;
    }
    
    .explore-container {
        display: grid;
        grid-template-rows: 1fr 1fr 1fr;
        grid-template-columns: 50% 50%;
        grid-row: 3;
        grid-gap: 1rem;
        padding: 5rem 0;
        justify-items: center;

    }

    .teachers-image {
        grid-row: 2;
        width: 19.7rem;
        height: 35rem;
    }

    .kids-image {
        width: 41.5rem;
        height: 25rem;
    }
    
    .researchers-image {
        width: 25.6rem;
        height: 35rem;
    }

    .text p {
        box-sizing: border-box;
        padding: 0 7rem;
        font-size: 2rem;
    }
    
    h1, h2 {
        font-size: 2.5rem;
        text-align: center;
    }

    .text {
        align-self: center;
    }
}

@media only screen and (min-width: 600px) and (max-width: 949px) {
    header {
        height: 600px;
    }

    .text p {
        padding: 0 10rem;
        font-size: 1.8rem;
    }

    h1, h2 {
        font-size: 2.3rem;
    }
}