/* pop up img*/
.img-modal,
.img-modal .overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 3000;
}

.img-modal {
    overflow: hidden;
    position: fixed;
    opacity: 0.0;
    -webkit-transform: translate(500%, 0%);
    transform: translate(500%, 0%);
    -webkit-transition: -webkit-transform 0s linear 0s;
    transition: transform 0s linear 0s;

    /* using flexbox for vertical centering */

    /* Flexbox display */
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;

    /* Vertical alignment */
    -webkit-box-align: center;
    -moz-box-align: center;
    -ms-flex-align: center;
    -webkit-align-items: center;
    align-items: center;

    -webkit-transform-style: preserve-3d;
    -moz-transform-style: preserve-3d;
    transform-style: preserve-3d;
}

.img-modal .overlay {
    z-index: 0;
    background: rgba(0, 0, 0, 0.82);
    /* overlay color */
    opacity: 0.0;
    -webkit-transition: opacity 0.2s ease-out 0.05s;
    transition: opacity 0.2s ease-out 0.05s;
}

.img-modal-content {
    position: relative;
    z-index: 1;
    margin: 0 auto;
    overflow-y: visible;
    width: auto;
    display: flex;
    justify-content: center;
}

.img-modal-content>img {
    width: 90%;
    max-width: 1200px;
    max-height: 85vh;
    border-radius: 10px;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.82);
}

/* show the modal:
   add class to the body to reveal */
.show-img-modal .img-modal {
    opacity: 1.0;
    transform: translate(0%, 0%);
    -webkit-transform: translate(0%, 0%);
}

.show-img-modal .img-modal .overlay {
    opacity: 1.0;
}

.show-img-modal .img-modal-content {
    transform: translate(0%, 0%);
    -webkit-transform: translate(0%, 0%);
}

.img-modal .close_btn {
    position: absolute;
    right: 2.5%;
    top: calc(-30px - 2.5%);
    z-index: 999;
    font-size: 2rem;
    font-weight: normal;
    color: #fff;
    opacity: 0.8;
    line-height: 1;
    cursor: pointer;
    transition: all 0.3s;
}

.img-modal .close_btn:hover {
    opacity: 1;
    transform: rotate(90deg);
}

/* text */
.modal {
    display: none;
    position: fixed;
    z-index: 8887;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.82);
    transition: all 1s ease-in-out;
    overflow: hidden;
    justify-content: center;
    align-items: center;
}

.modal-content {
    position: relative;
    box-sizing: border-box;
    z-index: 1;
    margin: 0 auto;
    overflow-y: visible;
    max-width: 1200px;
    width: 90%;
    max-height: 85vh;
    border-radius: 10px;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.82);
    padding: 48px 52px;
    background-color: #eeeeee;
    color: #595959;
    line-height: 1.7;
}

.inner_content {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: calc(85vh - 96px);
}

.inner_content {
    overflow-y: scroll;
}

.modal-content>h3 {
    padding-bottom: 24px;
}

.modal-content>p {
    padding-bottom: 12px;
}

.modal-content>p:last-child {
    padding-bottom: 0;
}

.modal .close_btn {
    position: absolute;
    right: 0;
    top: calc(-30px - 2.5%);
    z-index: 999;
    font-size: 2rem;
    font-weight: normal;
    color: #fff;
    opacity: 0.8;
    line-height: 1;
    cursor: pointer;
    transition: all 0.3s;
}

.modal .close_btn:hover {
    opacity: 1;
    transform: rotate(90deg);
}

.text_modal_btn {
    display: inline-block;
    width: auto;
    font-size: 16px;
    font-weight: 300;
    font-family: inherit;
    background: none;
    outline: none;
    border: none;
    color: #007ED4;
    cursor: pointer;
    padding: 0;
}

.text_modal_btn:hover {
    text-decoration: underline;
}

.input_container {
    width: 100%;
    margin: 0 auto;
    line-height: 20px;
    display: flex;
    justify-content: center;
}

.input,
button,
textarea,
select,
option,
text,
checkbox {
    font-style: inherit;
    font-weight: inherit;
    border: 0px;
    -webkit-border-radius: 5px;
    border-radius: 5px;
    font-family: roboto;
    font-size: 16px;
    line-height: 16px;
    color: #494949;
    padding: 10px;
    resize: none;
    width: calc(100% - 20px);
    margin: 0 0 12px 0;
    appearance: none;
    /*-moz-appearance: none;  Firefox */
    /*-webkit-appearance: none;  Safari and Chrome */
}

select {
    width: 100%;
}

.textarea {
    resize: both;
    overflow: auto;
    height: 150px;
}

.codeimg {
    vertical-align: bottom;
    margin: 0;
}

.chk_1 {
    display: none;
}

.chk_1+label {
    border: 1px solid white;
    background-color: white;
    padding: 9px;
    border-radius: 5px;
    display: inline-block;
    position: relative;
    margin: 0px 8px 0px 0;
}

.chk_1:checked+label {
    background-color: white;
}

.chk_1:checked+label:after {
    content: '\2714';
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    text-align: center;
    font-size: 1.4em;
    padding: 1px 0 0 0;
    vertical-align: text-top;
}

.input[type="submit"] {
    position: relative;
    border: none;
    cursor: pointer;
    background: #199EAE;
    border-radius: 30px;
    padding: 10px 20px;
    color: #fff;
    text-decoration: none;
    display: flex;
    width: 25%;
    justify-content: center;
    align-items: center;
    column-gap: 8px;
    margin-top: 30px;
    font-size: 1.25em;
    transition: background 0.45s;
}

.input[type="submit"]:hover {
    background: #1daebe;
}

@media only screen and (max-width: 768px) {
    .textarea {
        resize: none;
        overflow: auto;
    }

    .codeimg {
        vertical-align: bottom;
        margin: 0;
        height: 40px;
    }

    .input[type="submit"] {
        padding: 15px 16px;
        margin: 20px 0 0 0;
        width: 100%;
        appearance: none;
        -moz-appearance: none;
        /* Firefox */
        -webkit-appearance: none;
        /* Safari and Chrome */
    }

    .modal-content {
        overflow-y: scroll;
    }

    .modal .close_btn {
        position: absolute;
        right: 0;
        top: calc(-30px - 2.5%);
    }
}

/*--600寬開始--------------------------------------------------------------------------------*/
@media only screen and (max-width: 600px) {
    #modal_form .modal-content {
        padding: 24px;
    }
}