*, *::before, *::after {
    box-sizing: border-box;
}

body {
    background: #f1f1f1;
    font-family: Roboto, sans-serif;
    font-size: 14px;
    color: rgba(0,0,0,0.6);
    line-height: 1.3;
}

a {
    color: inherit;
}

.topbar{
    z-index: 1;
    position: fixed;
    left: 0px;
    top: 0px;
    width: 100%;
    background: #5b7fa3;
    color: #FFF;
    padding-bottom: 10px;
}

.topbar a {
    text-decoration: none;
}

.topbar-logo{
    display: block;
    text-align: center;
    font-size: 24px;
    padding: 11px 0;
}

.topbar-nav {
    position: absolute;
    left: 175px;
    top: 28px;
    text-align: center;
}

.topbar-nav a {
    display: inline-block;
    margin: 0 8px;
    color: rgba(255, 255, 255, 0.67);
    transition: color .3s;
}

.topbar-nav a:hover,
.topbar-nav a.active{
    color: rgba(255, 255, 255, 1);
}

.topbar-login a {
    display: block;
    margin: 0 12px;
    color: rgba(255, 255, 255, 0.67);
    transition: color .3s;
}

.container {
    z-index: 2;
    padding: 0 15px;
    padding-top: 60px;
    max-width: 1800px;
    margin-left: auto;
    margin-right: auto;
    margin: 0 auto;
}

.content {
    margin-top: 20px;
    margin-bottom: 20px;
}

.sidebar {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.sidebar a {
    display: block;
    width: 46%;
    color: rgba(61, 59, 92, 0.67);
    padding: 0.6em 2%;
    padding-left: 10px;
    text-decoration: none;
    transition: .3s;
    border: solid 1px transparent;
}

.sidebar a::before{
    content: '';
    display: inline-block;
    width: 13px;
    height: 10px;
    vertical-align: middle;
    margin-top: -1px;
    margin-right: 20px;
    opacity: 0.67;
    background: url(/public/images/svg/home.svg) center center / contain;
    transition: opacity .3s;
}

.sidebar .messages::before {
    background: url(/public/images/svg/messages.svg) center center / contain;
}

.sidebar .calandar::before {
    background: url(/public/images/svg/calandar.svg) center center / contain;
}

.sidebar .groupes::before {
    background: url(/public/images/svg/groupes.svg) center center / contain;
}

.sidebar .amis::before {
    background: url(/public/images/svg/amis.svg) center center / contain;
}

.sidebar .user::before {
    background: url(/public/images/svg/user-shape.svg) center center / contain;
}

.sidebar .group::before {
    background: url(/public/images/svg/group-profile-users.svg) center center / contain;
}

.sidebar .menu::before {
    background: url(/public/images/svg/sitemap.svg) center center / contain;
}

.sidebar .categorie::before {
    background: url(/public/images/svg/tags.svg) center center / contain;
}

.sidebar a:hover,
.sidebar a.active{
    color: rgba(25, 25, 25, 1);
    border: solid 1px #dbdbdb;
    border-radius: 5px;
    background: rgb(255, 255, 255);
    font-weight: bold;
}

.sidebar a:hover::before,
.sidebar a:active::before {
    opacity: 1;
}

.main {
    width: 100%;
}

.card {
    background: #fff;
    border: solid 1px #dbdbdb;
    border-radius: 8px;
    margin-bottom: 15px;
}

.card-header {
    background: #fbfbfb;
    padding: 10px;
}

.card-avatar {
    position: absolute;
}

.card-title {
    padding-left: 55px;
    font-size: 18px;
    font-style: bold;
    color: #000;
    margin: 5px 0;
}

.card-time {
    padding-left: 55px;
    font-size: 12px;
    color: rgba(0, 0, 0, 0.38);
}

.card-body {
    text-align: justify;
    padding: 0 10px;
}

.card-body .fullwidth {
    width: calc(100% + 20px);
    display: block;
    margin-left: -10px;
    margin-right: -10px;
}

.card-body p {
    width: 100%;
}

.card-body p:first-child {
    margin-top: 0;
}

.card-body p:last-child {
    margin-bottom: 0;
}

.card-flex{
    display: flex;
    justify-content: space-around;
}

.card-flex a::before{
    content: '';
    display: inline-block;
    width: 13px;
    height: 10px;
    vertical-align: middle;
    margin-top: -1px;
    margin-right: 20px;
    opacity: 0.67;
    background: url(/public/images/svg/cog-wheel-silhouette.svg) center center / contain;
    transition: opacity .3s;
}

.col{
    width: 250px;
}

.card-footer {
    border-top: solid 1px #dbdbdb;
    background: #fbfbfb;
    display: flex;
    padding: 5px 10px;
    height: 30px;
    font-size: 12px;
    transition: .3s;
}

.card-footer a {
    text-decoration: none;
    transition: .3s;
}

.card-footer a:hover {
    text-decoration: underline;
}

.card-like::before,
.card-comment::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin-right: 5px;
    background: url(/public/images/svg/like.svg) center center / 20px 18px no-repeat;
    opacity: 0.5;
}

.card-comment {
    margin-left: auto;
}

.card-comment::before{
    background: url(/public/images/svg/comment.svg) center center / 20px 18px no-repeat;
}

.aside {
    height: 100%;
}

.aside-news {
    border-radius: 5px;
    margin-bottom: 15px;
    border: solid 1px #dbdbdb;
    background: #fbfbfb;
}

.news-header {
    padding: 10px;
}

.news-avatar {
    position: absolute;
}

.news-title {
    padding-left: 55px;
    font-size: 18px;
    font-style: bold;
    color: #000;
    margin: 5px 0;
}

.news-time {
    padding-left: 55px;
    font-size: 12px;
    color: rgba(0, 0, 0, 0.38);
}

.news-body {
    text-align: justify;
    padding: 0 10px;
}

.aside-title {
    padding-left: 10px;
    font-size: 22px;
    font-style: bold;
    color: #000;
    margin: 5px 0;
    border-bottom: solid 2px #000;
}

.aside-ami {
    padding: 5px 0;
    border-bottom: solid 1px #dbdbdb;
}

.aside-ami a {
    text-decoration: none;
    transition: .3s;
}

.aside-ami a:hover {
    text-decoration: underline;
}

.ami-avatar {
    position: absolute;
}

.ami-name,
.ami-commun,
.ami-add {
    padding-left: 60px;
    margin-left: 5px;
    font-size: 15px;
    color: #000;
}

.ami-commun {
    margin-top: -2px;
    font-size: 10px;
}

.ami-add {
    margin-top: -2px;
    font-size: 12px;
}

.ami-add::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin-right: 5px;
    background: url(/public/images/svg/add.svg) center center / 15px 15px no-repeat;
    opacity: 0.5;
}



@media only screen and (min-width: 600px) {
    .topbar {
        height: 64px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 25px;
    }

    .topbar-logo,
    .topbar-nav {
        padding: 0px;
    }

    .topbar-nav a {
        margin: 0 20px;
    }
}


@media only screen and (min-width: 1000px) {
    .content {
        display: flex;
    }

    .sidebar {
        display: block;
        text-align: left;
    }

    .sidebar a {
        flex: none;
        width: 180px;
    }

    .sidebar a:hover,
    .sidebar a.active{
        opacity: 1;
    }

    .main {
        margin-left: 30px;
        margin-right: 30px;
    }

    .aside {
        flex: none;
        width: 250px;
    }
}