@import url('../global.v3.css');

main {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    margin: 95px;
}

.main-content {
    -webkit-box-flex: 0;
        -ms-flex-positive: 0;
            flex-grow: 0;
    -webkit-box-pack: start;
        -ms-flex-pack: start;
            justify-content: flex-start;
}

#heading {
    width: 50%;
}

.body-text {
    width: 50vw;
}

.items {
    margin-top: 30px;
    font-size: 24px;
    margin-left: 50px;
}

#contact-button {
    margin-top: 50px;
    width: 245px
}

.image-stack {
    width: 50vw;
    height: 1000px;
    position: relative;
}

.stack-image {
    position: absolute;
    display: inline-block;
    width: 400px;
    max-width: 450px;
    height: 200px;
    border-radius: 10px;
    object-fit: contain;
    /* overflow: hidden; */
}

.stack-image-wrapper {
    position: relative;
    max-width: 100%;
    max-height: 100%;
    width: max-content;
}

.stack-image-text {
    position: absolute;
    font-size: 2rem;
    top: -55px;
}

.stack-image-text--align-right {
    right: 0;
}

.stack-image img {
    border-radius: 10px;
    width: 100%;
    height: 100%;
    display: block;
    -webkit-box-shadow: 0 10px 10px rgba(59, 59, 59, 0.5);
    box-shadow: 0 10px 10px rgba(59, 59, 59, 0.5); 
}

#img-1 {
    z-index: -1;
    top: 0;
    left: 0;
}

#img-2 {
    z-index: 1;
    top: 200px;
    left: 30%;
}

#img-3 {
    z-index: -2;
    top: 580px;
    left: 30%;
}

#img-4 {
    z-index: -2;
    top: 780px;
}

/* Mobile View */

@media screen and (max-width: 1260px){
    #img-2, #img-3 {
        left: 0;
    }

    .stack-image {
        width: 30vw;
    }
}

@media screen and (max-width: 890px) {
    .image-stack {
        margin-top: 60px;
        width: 100%;
    }

    .body-text {
        width: 100%;
    }

    .stack-image {
        left: 0; 
        right: 0; 
        margin: auto;
        width: 40vw;
        height: auto;
    }

    .items {
        margin-left: 0;
    }
}

@media screen and (max-width: 425px) {
    #img-3 {
        top: 480px;
    }

    #img-4 {
        top: 680px;
    }

    .stack-image {
        width: 70vw;
    }
}