*, *::before, *::after {
    box-sizing: border-box;
}

body {
    background-color: #f1f1f1;
    font-family: Roboto, sans-serif;
    font-size: 14px;
    color: rgba(0, 0, 0, 0.6);
    margin: 0;
    line-height: 1.3;
}

a {
    color: inherit;
    text-decoration: none;
}

.topbar {
    background-color: #2C3E50;
    color: #FFF;
}

.topbar-logo {
    display: block;
    text-align: center;
    font-size: 24px;
    padding: 11px 0;
}

.topbar-nav {
    text-align: center;
    padding-bottom: 16px;
    line-height: 2;
}

.topbar-nav a {
    display: inline-block;
    margin: 0 12px; /*changed in @media */
    color: rgba(255, 255, 255, 0.67);
    transition: color .3s;
}

.topbar-nav a:hover,
.topbar-nav a.active {
    color: #FFF;
}

.container {
    padding: 0 15px;
    max-width: 1080px;
    margin-left: auto;
    margin-right: auto;
}

.site {
    margin-bottom: 20px;
    margin-top: 20px
}
.sidebar {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.sidebar a {
    display: block;
    padding: 0.6em 0;
    transition: all .3s;
    width: 50%; /* flex + flex-wrap */
    border:solid 1px transparent; /* +border in sidebar a:hover*/
    padding-left: 10px;
}

.sidebar a.active::before,
.sidebar a:hover::before {
    opacity: 1;
}

.sidebar a.active,
.sidebar a:hover {
    color: #000;
    /* before hover, border is transparent, when hovering border visible */
    border: solid 1px #DBDBDB; /* border in sidebar a */
    background: #FFF;
    border-radius: 3px;
    font-weight: bold;
}

/*
.sidebar a:hover {
    text-decoration: underline;
}
*/

.sidebar a::before {
    content: '';
    display: inline-block;
    width: 15px;
    height: 15px;
    background: url(img/home-solid.svg) center center / contain no-repeat;
    margin-top: -1px;
    vertical-align: middle;
    margin-right: 20px;
    opacity: 0.67;
    transition: opacity .3s;
    
}

.sidebar .sidebar-messages::before {
    background-image: url(img/envelope-open-solid.svg);
}

.sidebar .sidebar-event::before {
    background-image: url(img/calendar-alt-regular.svg);
}

.sidebar .sidebar-groupes::before {
    background-image: url(img/users-solid.svg);
}

.main {
    margin-bottom: 20px;
}

.card {
    border: solid 1px #DBDBDB;
    background: #FFF;
    border-radius: 3px;
    margin-bottom: 15px;
}

.card:last-child {
    margin-bottom: 0;
}

.card-header {
    padding: 10px;
    position: relative;
}

.card-header-avatar {
    padding-left: 65px;
}

.card-avatar {
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    border-radius: 50%;
}

.card-title {
    font-weight: bold;
    color: #000;
    font-size: 18px;
    margin-bottom: 5px;
}

.card-date {
    color: rgba(0, 0, 0, 0.38);
    font-size: 12px;
}

.card-body p:first-child {
    margin-top: ;
}

.card-body p:last-child {
    margin-bottom: 0;
}

.card-body {
    padding: 0 10px 30px 10px;
}

.card-body .fullwidth {
    width: calc(100% + 20px);
    display: block;
    margin-left: -10px;
    margin-right: -10px;
}

.card-footer {
    border-top: solid 1px #DBDBDB;
    background: #FBFBFB;
    display: flex;
    padding: 10px;
    color: #BDBDBD;
    font-size: 12px;
    
}

.card-footer:hover{
    text-decoration: underline;
}

.card-like::before,
.card-comment::before {
    content: '';
    display: inline-block;
    vertical-align: middle;
    width: 20px;
    height: 20px;
    margin-right: 5px;
    background: url(img/like.svg) center center / 20px 18px no-repeat;
    
}

.card-comment::before {
    background: url(img/comment.svg) center center / 18px 17px no-repeat;
}

.card-comment {
    margin-left: auto;
}

.card-body a {
    color: #34aaff;
    text-decoration: underline;
}

.sidebar-title {
    margin-top: 30px;
    margin-bottom: 18px;
    color: #000;
    font-size: 15px;
    font-weight: bold;
}

.sidebar-title::after {
    content: '';
    display: block;
    height: 1px;
    width: 100%;
    background: #000;
    margin-top: 4px;
}

.friend {
    margin: 14px 0;
    display: flex;
}

.friend-avatar {
    width: 73px;
    height: 73px;
    flex: none;
    margin-right: 10px;
}

.friend-body {
    display: flex;
    flex-direction: column;
}

.friend-name {
    display: block;
    font-weight: bold;
    color: #000;
    font-size: 15px;
    margin-bottom: 5px;
}

.friend-connections {
    color: rgba(0, 0, 0, .38);
    font-size: 12px;
}

.friend-add {
    font-size: 12px;
    color: #000;
    margin-top: auto; /*+ display flex + flex-direction column in parent */
    margin-bottom: 3px;;
}

.friend-add::before {
    content: '';
    height: 13px;
    width: 18px;
    display: inline-block;
    background: center center / 18px 13px no-repeat url(img/users2.svg) ;
    vertical-align: middle;
    margin-right: 5px;
    transform: translateY(-1px);
}

.profil {
    display: none;
}

@media only screen and (min-width:520px) {
    .topbar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        height: 64px;
        padding: 0 25px;
    }
    
    .topbar-logo,
    .topbar-nav {
        padding: 0;
    }
    
    .topbar-nav a {
        margin: 0 20px;
    }    
}

@media only screen and (min-width:950px) {
    .site {
        display: flex;
    }
    
    .sidebar {
        display: block;
        width: 180px;
        flex: none;
    }
    
    .sidebar a {
        width: 100%;
    }
    
    .aside {
        width: 310px;
        flex: none;
    }
    
    .main {
        margin-left: 30px;
        margin-right: 30px;
        width: 100%;
    }
    
    .profil {
    display: block;
    }
}


/*MINTUE 1 31 DAR refa partea asta

.card-like::before,
.card-comment::before {
    content: '';
    display: inline-block;
    vertical-align: middle;
    width: 20px;
    height: 20px;
    margin-right: 5px;
    background: url(img/like.svg) center center / 20px 18px no-repeat;
    
}
*/






















