@font-face{
    font-family: "BKoodakBold";
    src: url("../fonts/BKoodakBold.woff") format("woff");
}
* {
    box-sizing: border-box;
}

body {
    font-family: "BKoodakBold";
    direction: rtl;
    background-color: rgb(220, 220, 220);
    padding: 0px;
    margin: 0px;
}

.container-fluid {
    width: 100%;
    padding: 15px;
}

.container {
    width: 1170px;
    margin-right: auto;
    margin-left: auto;
    padding: 15px;
}


#header-container {
    background-color: rgb(0, 150, 136);
    height: 150px;
}

#header-container ul {
    padding-right: 0px;
    margin-top: 0px;
    margin-bottom: 0px;
}

#header-container ul li {
    display: inline-block;
    list-style: none;
}

#header-container ul li a {
    color: white;
    text-decoration: none;
    padding: 5px 15px;
}

#header-container ul li a:hover {
    text-decoration: none;
}


#main-container {
    margin-top: -80px;
    overflow: hidden;
}

.sidebar-container {
    width: 20%;
    float: right;
    box-shadow: 0px 1px 2px rgba(0, 0, 0, .15);
    border-radius: 5px;
    background-color: rgb(240, 240, 240);
    height: auto;
    overflow: hidden;
}

.content-container {
    width: calc(80% - 20px);
    float: left;
    box-shadow: 0px 1px 2px rgba(0, 0, 0, .15);
    border-radius: 5px;
    background-color: rgb(240, 240, 240);
    height: auto;
}

.border-menu{
    width: 0%;
    height: 2px;
    background-color: white;
    margin-right: auto;
    margin-left: auto;
    transition: .3s;
}
#header-container li:hover .border-menu{
    width: 100%;
    transition: .2s;
}

.profile-container {
    width: 30%;
    border-radius: 7px;
    background-color: white;
    float: right;
    margin-right: 2.5%;
    margin-top: 20px;
    margin-bottom: 20px;
    transition: .3s;
}
.profile-container a{
    padding: 15px;
    color: black;
    text-decoration: none;
    display: block;
    width: 100%;
}
.profile-container a:hover{
    text-decoration: none;
}

.profile-container:hover{
    box-shadow: 0px 0px 30px 5px rgba(0, 0, 0, .1);
    transition: .2s;
}
.profile-image {
    width: 80%;
    text-align: center;
    margin-right: auto;
    margin-left: auto;
}

.profile-image img {
    max-width: 100%;
}

.profile-title {
    text-align: center;
}

.sidebar-container>p {
    text-align: center;
    border-bottom: 1px solid rgb(180, 180, 180);
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.best-user-container {
    display: block;
    width: 100%;
    color: black;
    text-decoration: none;
    overflow: hidden;
    padding: 10px 15px;
    transition: .3s;
}

.best-user-container:hover {
    text-decoration: none;
    background-color: rgb(220, 220, 220);
    transition: .2s;
}

.best-user-container img {
    width: 30px;
    height: 30px;
    float: right;
    margin-left: 10px;
}


@media all and (min-width:992px) and (max-width:1199.98px){
    .container{
        width: 960px;
    }
    .sidebar-container{
        width: 25%;
    }
    .content-container{
        width: calc(75% - 20px);
    }
}

@media all and (min-width:768px) and (max-width:991.98px){
    .container{
        width: 720px;
    }
    .sidebar-container{
        width: 30%;
    }
    .content-container{
        width: calc(70% - 20px);
        padding-top: 15px;
        padding-bottom: 15px;
    }
    .profile-container{
        width: 42.5%;
        margin-right: 5%;
        margin-top: 10px;
        margin-bottom: 10px;
    }
}

@media all and (min-width:576px) and (max-width:767.98px){
    #main-container{
        display: flex;
        flex-wrap: wrap;
    }
    .container{
        width: 540px;
    }
    .sidebar-container{
        width: 100%;
        order: 2;
    }
    .content-container{
        margin-bottom: 30px;
        width: 100%;
        order: 1;
        padding-top: 10px;
        padding-bottom: 10px;
    }
    .profile-container{
        width: 42.5%;
        margin-right: 5%;
        margin-top: 10px;
        margin-bottom: 10px;
    }
    .best-user-container img{
        width: 50px;
        height: 50px;
    }
    .best-user-container span{
        margin-top: 10px;
        display: inline-block;
    }
}

@media all and (max-width:575.98px){
    #main-container{
        display: flex;
        flex-wrap: wrap;
    }
    .container{
        width: 100%;
    }
    .sidebar-container{
        width: 100%;
        order: 2;
    }
    .content-container{
        margin-bottom: 30px;
        width: 100%;
        order: 1;
        padding-top: 10px;
        padding-bottom: 10px;
        display: flex;
        flex-wrap: wrap;
        justify-content: space-evenly;
    }
    .profile-container{
        width: 200px;
        margin-top: 10px;
        margin-bottom: 10px;
        margin-right: 15px;
        margin-left: 15px;
    }
    .best-user-container img{
        width: 50px;
        height: 50px;
    }
    .best-user-container span{
        margin-top: 10px;
        display: inline-block;
    }
    #header-container{
        height: auto;
    }
    #header-container ul{
        overflow: hidden;
        margin-bottom: 30px;
        display: flex;
        flex-wrap: wrap;
        justify-content: space-evenly;
    }

    #header-container ul li{
        display: block;
        width: 100px;
        float: right;
        text-align: center;
        margin-bottom: 15px;
    }
}

