/*CSS RESET*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* include border inside width calculation */
}

main {
    font-family: Arial, Helvetica, sans-serif;
}

.gems{
    background-color: bisque;
}

/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {
    main {
        display: flex;
        flex-direction: column;
        width: 85%;
        margin: 0 auto;
    }

    .gems {
        position: relative;
        height: 400px;
    }

    .pic1 {
        position: absolute;
        top: 5%;
        left: 10%;
        width: 70%;
    }

    .pic2 {
        position: absolute;
        top: 30%;
        right: 10%;
        width: 50%;
    }

    .pic1 img, .pic2 img {
        width: 100%; /* dress code */
    }

    .text {
        position: absolute;
        bottom: 0;
        text-align: center;
    }

    .col-xs-1 {
        width: 8.33%;
    }
    .col-xs-2 {
        width: 16.66%;
    }
    .col-xs-3 {
        width: 25%;
    }
    .col-xs-4 {
        width: 33.33%;
    }
    .col-xs-5 {
        width: 41.66%;
    }
    .col-xs-6 {
        width: 50%;
    }
    .col-xs-7 {
        width: 58.33%;
    }
    .col-xs-8 {
        width: 66.66%;
    }
    .col-xs-9 {
        width: 75%;
    }
    .col-xs-10 {
        width: 83.33%;
    }
    .col-xs-11 {
        width: 91.66%;
    }
    .col-xs-12 {
        width: 100%;
    }
}

/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 600px) {
    main {
        display: flex;
        flex-direction: column;
        width: 85%;
        margin: 0 auto;
    }

    .gems {
        position: relative;
        height: 400px;
    }

    .pic1 {
        position: absolute;
        top: 5%;
        left: 10%;
        width: 70%;
    }

    .pic2 {
        position: absolute;
        top: 30%;
        right: 10%;
        width: 50%;
    }

    .pic1 img, .pic2 img {
        width: 100%; /* dress code */
    }

    .text {
        position: absolute;
        bottom: 0;
        text-align: center;
    }

    .col-sm-1 {
        width: 8.33%;
    }
    .col-sm-2 {
        width: 16.66%;
    }
    .col-sm-3 {
        width: 25%;
    }
    .col-sm-4 {
        width: 33.33%;
    }
    .col-sm-5 {
        width: 41.66%;
    }
    .col-sm-6 {
        width: 50%;
    }
    .col-sm-7 {
        width: 58.33%;
    }
    .col-sm-8 {
        width: 66.66%;
    }
    .col-sm-9 {
        width: 75%;
    }
    .col-sm-10 {
        width: 83.33%;
    }
    .col-sm-11 {
        width: 91.66%;
    }
    .col-sm-12 {
        width: 100%;
    }
}

/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) {
    .gems{
        height: 700px;
    }

    .col-md-1 {
        width: 8.33%;
    }
    .col-md-2 {
        width: 16.66%;
    }
    .col-md-3 {
        width: 25%;
    }
    .col-md-4 {
        width: 33.33%;
    }
    .col-md-5 {
        width: 41.66%;
    }
    .col-md-6 {
        width: 50%;
    }
    .col-md-7 {
        width: 58.33%;
    }
    .col-md-8 {
        width: 66.66%;
    }
    .col-md-9 {
        width: 75%;
    }
    .col-md-10 {
        width: 83.33%;
    }
    .col-md-11 {
        width: 91.66%;
    }
    .col-md-12 {
        width: 100%;
    }
}

/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 992px) {

    .gems {
        position: static;
        height: 800px;

        display: flex;
        flex-direction: column;
        flex-wrap: wrap;
    }

    .pic1 {
        position: static;
        width: 50%;
        height: 400px;
        order: 1;
        padding-top: 50px;
    }

    .pic2 {
        position: static;
        width: 50%;
        height: 800px;
        order: 3;
    }

    .text {
        position: static;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        text-align: left;
        width: 50%;
        height: 400px;
        padding: 50px;
        order: 2;
    }

    
    .pic1 img{
        display: block;
        width: 50%;
        height: 100%;
        margin: 0 auto;
        object-fit: cover;
    }

    .pic2 img{
        width: 100%;
        height: 100%;
        object-fit: cover;
    }


    .col-lg-1 {
        width: 8.33%;
    }
    .col-lg-2 {
        width: 16.66%;
    }
    .col-lg-3 {
        width: 25%;
    }
    .col-lg-4 {
        width: 33.33%;
    }
    .col-lg-5 {
        width: 41.66%;
    }
    .col-lg-6 {
        width: 50%;
    }
    .col-lg-7 {
        width: 58.33%;
    }
    .col-lg-8 {
        width: 66.66%;
    }
    .col-lg-9 {
        width: 75%;
    }
    .col-lg-10 {
        width: 83.33%;
    }
    .col-lg-11 {
        width: 91.66%;
    }
    .col-lg-12 {
        width: 100%;
    }
}
