﻿#frame {
    width: 100%;
    height: 79vh;
    min-height: 300px;
    background: #E6EAEA;
}

@media screen and (max-width: 360px) {
    #frame {
        width: 100%;
        height: 100vh;
    }
}

#frame #sidepanel {
    float: left;
    width: 25%;
    height: 100%;
    background: #0B345D;
    color: #f5f5f5;
    overflow: hidden;
    position: relative;
    border-style: solid;
    border-width: 2px 1px 2px 2px;
    border-color: #0B345D;
}

@media screen and (max-width: 735px) {
    #frame #sidepanel {
        width: 100%;
        min-width: 66px;
        border-width: 2px;
    }
}

#frame #sidepanel #profile {
    width: 100%;
    height: 10%;
    padding: 5% 0% 5% 5%;
}

@media screen and (max-width: 735px) {
    #frame #sidepanel #profile {
        width: 100%;
        margin: 0 auto;
        padding: 10px 0 0 10px;
        background: #32465a;
    }
}

#frame #sidepanel #profile .wrap {
    line-height: 60px;
    overflow: hidden;
    -moz-transition: 0.3s height ease;
    -o-transition: 0.3s height ease;
    -webkit-transition: 0.3s height ease;
    transition: 0.3s height ease;
}

    #frame #sidepanel #profile .wrap img {
        width: 34px;
        border: 2px solid #e74c3c;
        height: auto;
        float: left;
        -moz-transition: 0.3s border ease;
        -o-transition: 0.3s border ease;
        -webkit-transition: 0.3s border ease;
        transition: 0.3s border ease;
    }

@media screen and (max-width: 735px) {
    #frame #sidepanel #profile .wrap img {
        width: 40px;
        margin-left: 4px;
    }
}

#frame #sidepanel #profile .wrap img.online {
    border: 1px solid #68A5CE;
}

#frame #sidepanel #contacts {
    height: 80%;
}

@media screen and (max-width: 735px) {
    #frame #sidepanel #contacts {
        height: 85%;
        overflow-x: hidden;
    }
}

#frame #sidepanel #contacts .rlbList .rlbItem #seperatorDanisman {
    margin-top: 105px;
}

@media screen and (max-width: 735px) {
    #frame #sidepanel #contacts .rlbList .rlbItem #seperatorDanisman {
        margin-top: 60px;
    }
}

#frame .content {
    float: right;
    width: 75%;
    height: 100%;
    overflow: hidden;
    position: relative;
    border-style: solid;
    border-width: 2px 2px 2px 1px;
    border-color: #0B345D;
}

@media screen and (max-width: 735px) {
    #frame .content {
        width: 100%;
        border-width: 2px;
    }
}

#frame .content .contact-profile {
    width: 100%;
    height: 10%;
    line-height: 50px;
    background: #f5f5f5;
    border-bottom: 2px solid #0B345D;
}

    #frame .content .contact-profile img {
        width: 34px;
        border-style: solid;
        border-width: 1px;
        border-color: #0B345D;
        float: left;
        margin: 10px 10px 0 10px;
    }

    #frame .content .contact-profile p {
        float: left;
        font-weight: bold;
        margin: 7px 0 0 0;
    }

#frame .content #panelMessages {
    width: 100%;
    height: 80%;
    overflow-y: scroll;
    overflow-x: hidden;
}

@media screen and (max-width: 735px) {
    #frame .content #panelMessages .messages {
        max-height: calc(100% - 105px);
    }
}

#frame .content #panelMessages::-webkit-scrollbar {
    background: transparent;
}

#frame .content #panelMessages::-webkit-scrollbar-thumb {
    background-color: #0B345D;
}

    #frame .content #panelMessages::-webkit-scrollbar-thumb:hover {
        background-color: #9BC0D8;
    }

#frame .content #panelMessages .messages ul li {
    display: inline-block;
    clear: both;
    float: left;
    margin: 15px 15px 5px 15px;
    width: calc(100% - 25px);
}

    #frame .content #panelMessages .messages ul li:nth-last-child(1) {
        margin-bottom: 20px;
    }

    #frame .content #panelMessages .messages ul li.replies img {
        margin: 6px 8px 0 0;
        border-style: solid;
        border-width: 2px;
        border-color: #0B345D;
    }

    #frame .content #panelMessages .messages ul li.replies p {
        background: #0B345D;
        color: #f5f5f5;
    }

    #frame .content #panelMessages .messages ul li.sent img {
        float: right;
        margin: 6px 0 0 8px;
        border-style: solid;
        border-width: 2px;
        border-color: #68A5CE;
    }

    #frame .content #panelMessages .messages ul li.sent p {
        background: #68A5CE;
        float: right;
        color: #f5f5f5;
    }

    #frame .content #panelMessages .messages ul li img {
        width: 22px;
        float: left;
    }

    #frame .content #panelMessages .messages ul li p {
        display: inline-block;
        padding: 10px 15px;
        border-radius: 20px;
        max-width: 205px;
        line-height: 130%;
    }

@media screen and (min-width: 735px) {
    #frame .content #panelMessages .messages ul li p {
        max-width: 300px;
    }
}

#frame .content .message-input {
    position: absolute;
    width: 100%;
    height: 10%;
    z-index: 99;
    border-top: 2px solid #0B345D;
}

    #frame .content .message-input .wrap {
        position: relative;
        height: 100%;
    }

        #frame .content .message-input .wrap textarea {
            float: left;
            border: none;
            width: calc(100% - 50px);
            height: 100%;
            padding: 0 32px 19px 8px;
            color: #32465a;
        }

@media screen and (max-width: 735px) {
    #frame .content .message-input .wrap textarea {
        padding: 15px 32px 16px 8px;
    }
}

#frame .content .message-input .wrap textarea:focus {
    outline: none;
}

#frame .content .message-input .wrap span {
    float: right;
    border: none;
    width: 50px;
    height: 100%;
    padding: 14px 0;
    cursor: pointer;
    background: #32465a;
    color: #f5f5f5;
}

@media screen and (max-width: 735px) {
    #frame .content .message-input .wrap span {
        padding: 16px 0;
    }
}

#frame .content .message-input .wrap span .button:hover {
    background: #435f7a;
}

#frame .content .message-input .wrap span .button:focus {
    outline: none;
}
