﻿* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* width */
::-webkit-scrollbar {
    width: 20px;
}

/* Track */
::-webkit-scrollbar-track {
    box-shadow: inset 0 0 5px grey;
    border-radius: 10px;
}

/* Handle */
::-webkit-scrollbar-thumb {
    background: red;
    border-radius: 10px;
}

    /* Handle on hover */
    ::-webkit-scrollbar-thumb:hover {
        background: #b30000;
    }

.message-wrapper {
    border-radius: 10px;
    display: none;
    position: fixed;
    top: 1%;
    left: 25%;
    width: 50%;
    height: 95%;
    overflow: auto;
    z-index: 1;
    background-color: #7ae6a1;
    -webkit-animation-name: animatetop;
    -webkit-animation-duration: 0.4s;
    animation-name: animatetop;
    animation-duration: 0.4s
}

    .message-wrapper .message-modal {
        width: 100%;
        height: 100%;
        position: relative;
    }

        .message-wrapper .message-modal .modal-content {
            width: 100%;
            height: 80%;
            border-top: 1px solid #808080;
            border-bottom: 1px solid #808080;
            overflow-y: auto;
        }

        .message-wrapper .message-modal .modal-footer {
            width: 100%;
            position: absolute;
            bottom: 0;
            left: 0;
        }

            .message-wrapper .message-modal .modal-footer input[type=text] {
                width: 80%;
                border: none;
                outline: none;
                padding: 5px;
                margin: 5px 0px;
                font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
                font-style: italic;
            }

            .message-wrapper .message-modal .modal-footer input[type=submit] {
                width: 18%;
                padding: 5px;
                cursor: pointer;
                background-color: #ff6a00;
                color: lavender;
            }

                .message-wrapper .message-modal .modal-footer input[type=submit]:hover {
                    background: #ffd800;
                    color: #808080;
                }



        .message-wrapper .message-modal .modal-header .close-modal {
            position: absolute;
            top: 5px;
            right: 10px;
            color: red;
            cursor: pointer;
        }

            .message-wrapper .message-modal .modal-header .close-modal:hover {
                color: #000000;
            }

        .message-wrapper .message-modal .modal-header h2 {
            color: red;
            padding: 5px;
        }

        .message-wrapper .message-modal .modal-header p img {
            vertical-align: middle;
            width: 30px;
        }

        .message-wrapper .message-modal .modal-header p span {
            color: #ff6a00;
            margin-left: 10px;
        }




        .message-wrapper .message-modal .modal-content .container {
            border: 2px solid #dedede;
            background-color: #f1f1f1;
            border-radius: 5px;
            padding: 5px;
            margin: 5px 0;
            text-align: justify;
            text-justify: inter-word;
            overflow-wrap: break-word;
            word-wrap: break-word;
            hyphens: auto;
        }

        .message-wrapper .message-modal .modal-content .darker {
            border-color: #ccc;
            background-color: #ddd;
            text-align: justify;
            text-justify: inter-word;
            overflow-wrap: break-word;
            word-wrap: break-word;
            hyphens: auto;
        }

        .message-wrapper .message-modal .modal-content .container::after {
            content: "";
            clear: both;
            display: table;
        }

        .message-wrapper .message-modal .modal-content .container img {
            float: left;
            margin-right: 20px;
            border-radius: 50%;
        }

        .message-wrapper .message-modal .modal-content .container .right {
            float: right;
            margin-left: 20px;
            margin-right: 0;
        }

        .message-wrapper .message-modal .modal-content span.time-right {
            float: right;
            color: #aaa;
            font-size: 10px;
        }

        .message-wrapper .message-modal .modal-content span.time-left {
            float: left;
            color: #999;
            font-size: 10px;
        }




/* Add Animation */
@-webkit-keyframes animatetop {
    from {
        top: -300px;
        opacity: 0
    }

    to {
        top: 0;
        opacity: 1
    }
}

@keyframes animatetop {
    from {
        top: -300px;
        opacity: 0
    }

    to {
        top: 0;
        opacity: 1
    }
}


#article {
    position: relative;
    max-width: 100%;
}

    #article .recent-post-content img {
        vertical-align: middle;
    }

    #article .recent-post-content p {
        text-align: justify;
    }

.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade {
    from {
        opacity: .4
    }

    to {
        opacity: 1
    }
}

/*popup thong bao can dang nhap*/
.msg-open-chat-message {
    display: none;
    position: fixed;
    width: 50%;
    height: 30%;
    top: 2%;
    left: 25%;
    background: #ffd800;
    -webkit-animation-name: animatetop;
    -webkit-animation-duration: 0.4s;
    animation-name: animatetop;
    animation-duration: 0.4s
}

    .msg-open-chat-message h2 {
        color: red;
        padding: 10px;
    }

    .msg-open-chat-message .close-msg-open-chat {
        position: absolute;
        top: 5px;
        right: 10px;
        color: lawngreen;
        cursor: pointer;
        background: lavender;
        padding: 2px 4px;
    }

        .msg-open-chat-message .close-msg-open-chat:hover {
            color: red;
        }

    .msg-open-chat-message p {
        text-align: center;
        padding: 10px;
        color: aqua;
        background: #201346;
    }

    .msg-open-chat-message .msg-message-login {
        display: flex;
        flex-direction: row;
        justify-content: flex-end;
        margin-top: 10%;
    }

        .msg-open-chat-message .msg-message-login a {
            text-decoration: none;
            color: #1d0b5a;
            padding: 10px;
        }

            .msg-open-chat-message .msg-message-login a:hover {
                color: blue;
            }

@media only screen and (min-width: 200px) and (max-width: 500px) {
    .message-wrapper{
        width:100%;
        top: 0;
        left:0;
        height: 100%;
        font-size: 12px;
    }
        .message-wrapper .message-modal{
            width: 98%;
        }
            .message-wrapper .message-modal .modal-footer #btnAddMessage{
                font-size: 12px;
            }
}

@media only screen and (min-width: 501px) and (max-width: 600px) {
    .message-wrapper {
        width: 75%;
        top: 0;
        left: 12.5%;
        height: 100%;
        font-size: 12px;
    }

        .message-wrapper .message-modal {
            width: 98%;
        }

            .message-wrapper .message-modal .modal-footer #btnAddMessage {
                font-size: 12px;
            }
}