

.wrapper {
    display: flex;
    flex-direction: column;
    margin-left: 150px;
    margin-left: max(150px, 10%);

}

aside {
    box-sizing: unset;
    display: block;
    border-right: 1px dotted #ddd;
    width: 100px;
    padding-right: 10px;
    height: 100%;
    position: fixed;
    left: 3px;
    top: 0;
    overflow-y:scroll;
    /*direction: rtl;*/
    }

    aside::-webkit-scrollbar {
        background: #eee;
        border-radius: 3px;
        width: 4px;
        margin-left: 2px;

    }
    aside::-webkit-scrollbar-thumb {
        background: #aaa;
        border-radius: 10pt;
        cursor: pointer;
    }
    aside ul {
        margin: 9px 0 0 0;
        padding: 0;
        }
        aside li {
            margin:0;
            padding:0;
        }
        aside a {
            display: flex;
            flex-direction: column;
            color: #888;
            width: 100%;

            text-align: center;
            text-decoration: none;
            padding: 10px;
            justify-content: center;
        }
        aside li.active a {
            color: #000;
        }
        aside a:hover {
            color: #aaa;
        }

        aside b {
            padding-top: 5px;
            font-size: 0.7em;
            font-weight: normal;
        }

main {
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    }
    article {
        min-height: 100%;
        flex: 1;
        margin-top: 40px;
        margin-right: 20px;
    }

    header {
        display: flex;
        border-bottom: 1px solid #ddd;
        height: 80px;
        justify-content: space-between;
        }
        header .logo {
            align-content: flex-end;
        }
        header .user-info {
            align-content: flex-end;
            display: flex;
            flex-direction: row;
            font-size: 0.95em;
            }
            header .message {
                color: #aaa;
                position: relative;
                margin: 15px 20px 0 20px;
                }
                header a.envelope {
                    width: 40px;
                    font-size: 2.1em;
                    text-decoration: none;
                    color: #aaa;
                }
                header a.envelope:hover {
                    color: #000;
                }
                header .unread-amount {
                    width: 20px;
                    height: 20px;
                    font-size: 12px;
                    position: absolute;
                    top: 20px;
                    right: 0;
                    padding: 3px;
                    font-weight: bold;
                    color: #fff;
                    z-index: 100;
                    text-align: center;
                    border-radius: 12px;
                    background: #ccc;
                    line-height: 1.4em;
                }
                header .bubble_1 {
                    background: #278f49;
                }
            header .info {
                margin-top: 20px;
                text-align: center;
                }
                header .name {
                    font-weight: bold;
                }
                header .group {
                    color: #aaa;
                    font-size: 0.8em;
                    margin-top: 5px;
                }
            header .avatar {
                margin: 5px 20px;
                width: 90px;
                height: 80px;
                text-align: center;
            }

    footer {
        display: flex;
    }

h1 {
    margin: 0 0 20px 0;
    font-size: 2em;
    font-weight: normal;
}

