/* The Modal (background) */
.modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    max-width: 100%;
    overflow: hidden;
    background-color: rgb(0, 0, 0);
    background-color: rgba(0, 0, 0, 0.2);
}

/* Modal Content/Box */
.modal-content {
    display: flex;
    flex-direction: column;
    background-color: rgba(0, 0, 0, 0.95);
    color: rgba(250, 250, 250, 0.8);
    padding: 1rem;
    height: 100%;
    border: 1px dashed rgb(250, 250, 250);

}

.modal-cart-content,
.modal-userdata-content,
.modal-checkout-content,
.modal-order-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background-color: #000000;
    margin: 2rem auto;
    padding: 1rem;
    max-width: 85%;
    height: 90%;
    border: 1px dashed rgb(250, 250, 250);
}

.modal-header,
.modal-portfolio-header {
    flex-direction: row;
    justify-content: space-between;
    color: rgb(250, 250, 250);
    max-height: 3rem;
    margin-top: .5rem;
}



.modal-cart-footer {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 80%;
    width: 81%;
    background-color: #282127;
    height: 5rem;
    padding: 0.5rem;

}

#cart-footer-summary {
    display: flex;
    justify-content: flex-start;
    /* 
    width: 100%;
    padding: 0 2rem 0 1rem;
    background-color: #282127; */

}

#cart-footer-btns {
    display: flex;
    justify-content: flex-end;

}

#summary-amount {
    margin-right: .3rem;
}

#ordersummary {
    margin-right: .3rem;
}

/* table {
    display: grid;
} */

#order-table-body>tr {
    padding: 2rem;
    border-bottom: 1px solid rgb(250, 250, 250);
}

#order-table-body>td {
    margin: 20rem;
}

.order-table-img {
    display: flex;
    max-width: 80%;
}

.img-remove {
    max-width: 50%;
    max-height: auto;
    background-color: #665f65;
    text-align: center;
}

#img-container {
    display: flex;
    justify-content: center;
    padding-top: 1rem;
}

#img-container-portfolio {
    padding: 1rem;
    height: 100%;
}

.cart-container {
    margin: 1rem auto;
    padding: 1rem 1rem 0rem 1rem;
    max-width: 100%;
    max-height: 70%;
    overflow-y: scroll;
}

.userdata-container {
    display: inline-grid;
    /* flex-direction: row; */
    margin: 1rem auto;
    padding: 1rem;
    width: 50%;
    max-height: 70%;
    /* 
    justify-content: flex-end; */
    overflow-y: auto;
}

label {
    display: block;
}

.checkout-container {
    display: flex;
    flex-direction: row;
    margin: 1rem auto;
    padding: 1rem;
    max-width: 100%;
    max-height: 70%;
    justify-content: space-between;
    overflow-y: auto;
}

#userdata-left,
#userdata-right {
    display: flex;
    padding-right: 2rem;
    flex-direction: column;
    max-width: 50%;
}


#checkout-left {
    display: inline-grid;
    padding-right: 2rem;
    /* flex-direction: row; */
    width: 50%;
    text-align: left;
}

#checkout-right {
    /* display: inline-grid; */
    padding-right: 2rem;
    /* flex-direction: row; */
    width: 50%;
    text-align: left;
}


#checkout-right>img {
    max-width: 100%;
}


.image-price-box {
    display: flex;
    margin: 2rem;
    justify-content: center;
}

.image-price-box>label,
.image-price-box>select {
    margin-right: 2rem;
}



#expandedImg {
    max-width: 90%;
    padding: 0rem 1rem 0rem 1rem;
    max-height: 78vh;
}

#expandedImg-portfolio {
    max-width: 100%;
    /* 
    height: 100%; */
    padding: 0rem 1rem 0rem 1rem;
}

.expanded-img-container {
    display: flex;
}

#imgThumbnail {
    max-width: 15%;
}

/* The Close Button */
.close {
    color: rgb(250, 250, 250);
    float: right;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    width: auto;
    padding: 1rem;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    -webkit-user-select: none;
}

.close-portfolio {
    color: rgb(250, 250, 250);
    float: right;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    width: auto;
    padding: 0 1rem 0 0;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    -webkit-user-select: none;
}

.close:hover,
.close:focus,
.close-portfolio:hover,
.close-portfolio:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}


.btn-back,
.btn-next {
    display: flex;
    cursor: pointer;
    align-items: center;
    /*  position: relative; */
    top: 50%;
    width: auto;
    /* padding: 1rem; */
    color: rgb(250, 250, 250);
    font-weight: bold;
    font-size: 2rem;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    -webkit-user-select: none;
}

.btn-back-portfolio,
.btn-next-portfolio {
    display: flex;
    cursor: pointer;
    align-items: center;
    position: relative;
    top: 50%;
    width: 5%;
    /* padding: 1rem; */
    color: rgb(250, 250, 250);
    font-weight: bold;
    font-size: 2rem;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    -webkit-user-select: none;
}

.btn-back-overlay,
.btn-next-overlay,
.btn-back-overlay-portfolio,
.btn-next-overlay-portfolio {
    display: none;
}

.btn-back:hover,
.btn-next:hover,
.btn-back-portfolio:hover,
.btn-next-portfolio:hover {
    background-color: #282127;
    ;
}

.buy-button {
    display: flex;
    /* //justify-t */
    text-align: right;
    max-width: 100%;
    background-color: #282127;
    margin: 0.5rem 0 0 0;

}

.buy-button:hover {
    display: flex;
    /* //justify-t */
    text-align: right;
    max-width: 100%;
    background-color: #665f65;
    margin: 0.5rem 0 0 0;

}

/* //////////////////////////////////////////////////////// */
@media screen and (orientation: landscape) {

    .modal-content {
        max-height: 100%;
        overflow-y: auto;

    }

    .modal-header {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        color: rgb(250, 250, 250);
        max-height: 3rem;
        margin-top: 0;
    }

    .modal-portfolio-header {
        margin-bottom: 1rem;
    }

    #expandedImg {
        max-width: 90%;
        /* max-height: 75vh; */
    }

    #expandedImg-portfolio {
        max-width: 100%;
        max-height: 80%;
        padding: 0rem 1rem 0rem 1rem;
    }

    .image-price-box {
        display: flex;
        flex-direction: column;
        margin: .5rem 2rem 2rem 2rem;
        justify-content: center;
    }

    .image-price-box>label {
        margin-bottom: 0.51rem;
    }

    .image-price-box>select {
        margin-bottom: 1rem;
        width: 100%;
    }

    #img-container {
        position: relative;
        /*  display: flex;
        flex-direction: column; */
        justify-content: center;
        padding-top: 1rem;
    }

}

@media screen and (max-width: 800px) {
    .modal {
        display: none;
        position: fixed;
        z-index: 100;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        overflow: auto;
        background-color: rgb(0, 0, 0);
        background-color: rgba(0, 0, 0, 0.4);
    }

    .modal-content {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        background-color: rgba(0, 0, 0, 0.95);
        color: rgb(250, 250, 250);
        /* margin: 2rem auto; */
        padding: 1rem;
        /* max-width: 85%; */
        height: 100%;
        border: 1px dashed rgb(250, 250, 250);

    }

    .modal-header {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        color: rgb(250, 250, 250);
        max-height: 3rem;
        margin-top: .5rem;
    }

    .modal-portfolio-header {
        margin-bottom: 1rem;
    }

    #cart-footer-summary {
        display: flex;
        /* justify-content: flex-end;
        width: 100%;
        padding: 0 2rem 0 1rem;
        background-color: #282127; */

    }

    .checkout-container {
        display: inline-grid;
        margin: 1rem auto;
        padding: 1rem;
        /* max-height: 67%; */
        overflow-y: auto;
    }

    #checkout-left {
        /* display: inline-grid; */
        padding-right: 2rem;
        /* flex-direction: row; */
        max-width: 100%;
        text-align: left;
        margin-bottom: 2rem;
    }

    #checkout-right {
        display: contents;
        margin-top: 2rem;
        /* flex-direction: row; */
        max-width: 100%;
        text-align: left;
    }

    .userdata-container {
        overflow-y: auto;
        max-height: 67%;
        width: 90%;
    }

    #expandedImg {
        max-width: 100%;
    }

    #expandedImg-portfolio {
        max-width: 100%;
        padding: 0rem 1rem 0rem 1rem;
    }

    .image-price-box {
        display: flex;
        flex-direction: column;
        margin: 2rem 2rem 1.5rem 2rem;
        justify-content: center;
    }

    .image-price-box>label {
        margin-bottom: 0.51rem;
    }

    .image-price-box>select {
        margin-bottom: 1rem;
        width: 100%;
    }

    .btn-back-overlay {
        display: flex;
        position: absolute;
        top: 30%;
        bottom: 10%;
        left: 5%;
        right: 75%;
        height: 10%;
        width: 10%;
        opacity: .8;
        transition: .5s ease-in-out;
        background-color: #282127;
        justify-content: center;
        align-items: center;
        cursor: pointer;
    }


    .btn-next-overlay {
        display: flex;
        position: absolute;
        top: 30%;
        bottom: 10%;
        left: 85%;
        right: 10%;
        height: 10%;
        width: 10%;
        opacity: .8;
        transition: .5s ease-in-out;
        background-color: #282127;
        justify-content: center;
        align-items: center;
        cursor: pointer;
    }

    .btn-next-overlay:hover,
    .btn-back-overlay:hover {
        opacity: 1;
        transition: .5s ease-in-out;
        background-color: #282127;
        justify-content: center;
        align-items: center;
    }

    .btn-next,
    .btn-back {
        display: none;

    }

    #img-container {
        position: relative;
        /* display: flex;
        flex-direction: column; */
        justify-content: center;
        padding-top: 1rem;
    }

    #img-container-portfolio {
        padding: 0;
    }

    #image-price-box {
        display: flex;
        margin: 2rem;
        justify-content: space-evenly;
    }

    /* thead {
        display: contents;
    }
    tbody {
        display: block;
    } */


}



@media screen and (max-width: 400px) {


    .modal {
        display: none;
        position: fixed;
        z-index: 100;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        overflow: auto;
        background-color: rgb(0, 0, 0);
        background-color: rgba(0, 0, 0, 0.4);
    }

    .modal-content {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        background-color: rgba(0, 0, 0, 0.95);
        color: rgb(250, 250, 250);
        padding: 1rem;
        height: 100%;
        border: 1px dashed rgb(250, 250, 250);
    }
}