/* CSS Document */
.lg-model {
    display: none;
    box-sizing: border-box;
    position: fixed;
    z-index: 50;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 95%;
    height: 95%;
    background-color: lightgray;
    overflow: hidden;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 1);
    border: 1px solid lightgray;
    border-radius: 6px;
}

.close {
    position: absolute;
    top: 5px;
    right: 5px;
    padding: 8px 11px;
    border: 1px solid gray;
    border-radius: 6px;
    background-color: #C7C7C7;
}

.close:hover {
    background-color: gray;
    color: var(--text-color);
    cursor: pointer;
    padding: 12px 15px;
}

@keyframes shake {
    0% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(-25deg);
    }

    50% {
        transform: rotate(0deg);
    }

    75% {
        transform: rotate(25deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

.model-left {
    position: relative;
    float: left;
    width: 50%;
    height: 100%;
    overflow: auto;
}

.model-left .model-zoom-btn {
    position: fixed;
    left: 7%;
    bottom: 10%;
    width: 35%;
}

.model-left .model-zoom-btn button {
    width: 45%;
    height: 50px;
    margin: 0 2%;
    box-shadow: 0 4px 8px 0 rgba(58, 58, 58, 1.00);
    background-color: var(--bg-color);
    color: var(--text-color);
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.model-left .model-zoom-btn a {
    margin-top: 10px;
}

.model-left .model-zoom-btn button:hover {
    background-color: var(--hover-color);
}

.model-left img {
    width: 100%;
    height: auto;
    transition: 0.1s linear;
}

.model-border {
    box-sizing: border-box;
    width: 0.5%;
    float: left;
    height: 100%;
    margin: 0;
    background-color: rgba(0, 0, 0, 1);
}

.model-right {
    box-sizing: border-box;
    float: right;
    width: 49.5%;
    height: 100%;
}

.model-r-item {
    box-sizing: border-box;
    margin: 0 auto;
    width: 80%;
    transition: 1.8s linear;
}

@keyframes model-margin {
    from {
        margin-top: 30px;
        margin-bottom: 30px;
    }

    to {
        margin-top: 5px;
        margin-bottom: 5px;
    }
}

@keyframes model-margin-reverse {
    from {
        margin-top: 5px;
        margin-bottom: 5px;
    }

    to {
        margin-top: 30px;
        margin-bottom: 30px;
    }
}

.md-company,
.md-name,
.md-price,
.md-discount {
    margin-top: 30px;
    margin-bottom: 30px;
    animation: 2.5s model-margin-reverse;
}

.md-company {
    font-size: 3.5vw;
    border-bottom: 5px double black;
}

.md-name {}

.md-price {
    font-size: 2vw;
}

.md-discount {
    font-size: 2.5vw;
}

.model-r-top {
    height: 49%;
    position: relative;
    overflow: hidden;
}

.model-r-cart {
    position: relative;
    height: 2%;
    background-color: darkgray;
    border-top: 8px double black;
    border-bottom: 8px double black;
    overflow: hidden;
}

.model-r-bottom {
    position: relative;
    height: 49%;
    padding: 15px;
}

.md-buy,
.md-descrip {
    display: block;
    width: 45%;
    min-width: 120px;
    height: 50px;
    box-shadow: 0 4px 8px 0 rgba(58, 58, 58, 1.00);
    background-color: var(--bg-color);
    color: var(--text-color);
    border: none;
    border-radius: 8px;
    margin: 15px 0;
    cursor: pointer;
    animation: 3s model-right-bottom-up;
}

@keyframes model-right-bottom-up {
    from {
        margin: 50px 0;
    }

    to {
        margin: 15px 0;
    }
}

.md-buy:hover,
.md-descrip:hover {
    background-color: var(--hover-color);
}

.model-r-bottom p {
    margin-top: 25px;
    font-size: 20px;
    font-weight: bold;
}

.ct-form {
    width: 100%;
    height: 100%;
    padding: 20px 10%;
}

.ct-form div {
    width: 100%;
    height: auto;
    margin: 2% auto;
}

.ct-form div input {
    width: 45%;
    height: 25px;
    border: none;
    border-radius: 4px;
    outline: none;
    padding: 0 5px;
    float: right;
    margin-right: 20%;
}

.ct-form center>input {
    display: block;
    width: 40%;
    min-width: 120px;
    height: 35px;
    box-shadow: 0 4px 8px 0 rgba(58, 58, 58, 1.00);
    background-color: var(--bg-color);
    color: var(--text-color);
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.ct-form center>input:hover {
    background-color: var(--hover-color);
}

.ct-form div h3 {
    display: inline;
}

.hide {
    display: none;
}

.ct-ordered {
    display: none;
    padding: 10%;
}

.ct-ordered h2 {
    color: darkblue;
    font-weight: bold;
    font-size: 30px;
}

.ct-ordered h3 {
    color: saddlebrown;
    font-size: 22px;
}

.ct-ordered p {
    font-weight: bold;
}