/* --------------------- global ---------------------*/
* {
    box-sizing: border-box;
}

.container {
    margin: 0 auto;
    width: 100%;
    max-width: 1280px;
    margin-top: 5%;
}

body,
html {
    letter-spacing: 0.02em;
}


h2 {
    font-size: 3em;
    font-family: 'Times New Roman', Times, serif;
    color: #0D2736;
    margin: 20px 0;
    line-height: 50px;
}

h4 {
    line-height: 0px;
    font-size: 16px;
    color: #0D2736;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    text-align: center;
}

p {
    line-height: 24px;
    font-size: 16px;
    color: #0D2736;
    font-weight: 350;
}

p,
a {
    font-family: 'Roboto', sans-serif;

}

.date {
    color: gray;
    font-family: 'Roboto', sans-serif;
    display: block;
    line-height: 0;
}

.resource {
    display: block;
    color: gray;
    font-style: italic;
}

.copyright p {
    color: #585858;
    font-size: 14px;
}

a {
    text-decoration: none;
    color: #0D2736;
}

.link_style img {
    width: 20px;
    margin-right: 5px;
    vertical-align: middle;
    padding-bottom: 6px;
}

.link_style {
    background-color: #C8DBDE;
    padding: 10px;
}

.link_style:hover {
    background-color: #C2F549;
    transition: .2s;
    padding: 10px;
}

.arrow {
    display: inline-block;
    padding-top: 5px;
}

ul,
li {
    list-style: none;
}

/* --------------------- header ---------------------*/
header {
    height: 64px;
    z-index: 9;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding-top: 5px;
    padding-left: 5px;
    background-color: #fff;
}

.logo {
    float: left;
}

.logo img {
    width: 80%;
}



/* --------------------- burger menu ---------------------*/

.menu_toggle {
    display: block;
    float: right;
    padding-top: 26px;
    padding-right: 26px;

}

.menu_toggle span {
    display: block;
    width: 30px;
    height: 2px;
    background-color: #0D2736;
    margin-bottom: 6px;
}



/* --------------------- blog --------------------- */
.blogList {
    margin: auto;
}

.blogList {
    padding: 80px 0;
}

.blogList .blogItem {
    width: 100%;
    padding: 20px;
    text-align: center;
}

.blogItem .txt {
    display: inline-block;
    line-height: 30px;
    text-align: left;
}

.blogItem .txt,
.blogItem img {
    vertical-align: middle;
    width: 100%;
    max-width: 500px;
}

.edit_container {
    max-width: 740px;
    padding-left: 20px;
    padding-right: 20px
}

.draft p {
    font-size: 14px;
}

.status {
    margin-left: 15px;
    color: gray;
}

.publish_button {
    background-color: #C8DBDE;
    padding: 10px 15px;
    border-radius: 30px;
    float: right;
}

.publish_button:hover {
    background-color: #C2F549;
    transition: .2s;
}

/* --------------------- gpt --------------------- */
.chat_icon {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 3;
    cursor: pointer;
}

.title_box {
    width: 320px;
    height: 110px;
    background-color: #E3EDEE;
    position: fixed;
    right: 20px;
    bottom: 470px;
    z-index: 3;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.gpt_icon {
    width: 40px;
    margin: 20px auto 0px;
}

.gpt_ask_icon img {
    width: 35px;
    margin: 10px;
}

.message_box {
    width: 320px;
    height: 300px;
    background-color: #fff;
    position: fixed;
    right: 20px;
    bottom: 170px;
    z-index: 3;
    border-top: 2px solid #C2F549;
    padding: 0;
    overflow: auto;
}



.gpt_message {
    display: flex;
    margin-bottom: -15px;
}

.gpt_message p {
    background-color: #E3EDEE;
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    margin-right: 10px;
}

.user_message {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.user_message p {
    background-color: #dcf5a0;
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 400;
    float: right;
    margin-right: 10px;
    line-height: 14px;
    line-height: 20px;
    margin-left: 53px;

}

.message_group {
    margin-bottom: 70px;
}


.compose_message {
    width: 320px;
    position: fixed;
    right: 20px;
    bottom: 128px;
    z-index: 3;
    padding-left: 10px;
    border-top: 1px solid rgb(216, 216, 216);
    font-size: 14px;
    line-height: 2.5;
}

.compose_message[contenteditable="true"]:focus {
    outline: none;
}

.compose_message.placeholder {
    color: gray;
    font-size: 14px;
}

.compose_message p {
    color: gray;
    font-size: 14px;
    padding-top: 0px;
    line-height: 14px;
}


.chat_open {
    width: 320px;
    height: 480px;
    box-shadow: 1px 2px 14px rgba(0, 0, 0, 0.281);
    position: fixed;
    right: 20px;
    bottom: 100px;
    border-radius: 10px;
    z-index: 3;
    background-color: #fff;
}

.close {
    color: #0D2736;
    float: right;
    font-size: 20px;
    cursor: pointer;
    display: block;
    padding-top: 5px;
    padding-right: 10px;
}

.close:hover {
    opacity: .8;
}

/* --------------------- footer --------------------- */
footer {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    background-color: #fff;
    max-height: 90%;
}

.copyright {
    margin-left: 15px;
}


/* -------------- RWD --------------*/
/* Medium Device */
@media(max-width: 950px) {

    .blogItem .txt,
    .blogItem img {
        max-width: 600px;
    }

    .txt {
        margin-bottom: 20px;
    }

}




/* XX-Large Device */
@media(min-width: 951px) {
    .blogList .blogItem {
        margin-bottom: 20px;
    }

    .blogList .blogItem:nth-child(odd) {
        direction: rtl;
    }

    .blogItem .txt,
    .blogItem img {
        direction: ltr;
    }

    .blogItem .txt {
        width: 60%;
        padding: 20px;
    }

    .blogItem img {
        width: 40%;
    }


}