/* Basics */

@charset "UTF-8";


/* Font face */
@font-face {
    font-family: sahel;
    font-weight: normal;
    src: url("https://cdn.bayan.ir/static/fonts/rastikerdar/sahel-font@v3.4.0/dist/Sahel.woff2") format("woff2");
}

@font-face {
    font-family: sahel-bold;
    font-weight: bold;
    src: url("https://cdn.bayan.ir/static/fonts/rastikerdar/sahel-font@v3.4.0/dist/Sahel-Bold.woff2") format("woff2");
}

@font-face {
    font-family: sahel-black;
    font-weight: bold;
    src: url("https://cdn.bayan.ir/static/fonts/rastikerdar/sahel-font@v3.4.0/dist/Sahel-Black.woff2") format("woff2");
}


/* Font */

.fa,
.far,
.fas,
.fab {
    font-size: 1em;
}


/* START TEMPLATE */

html {
    scroll-behavior: smooth;
    direction: rtl;
    text-align: right;
    height: 100vh;
}

body {
    color: #333333;
    background-color: #f5f5f5;
    font-size: 16px;
    font-family: sahel, sans-serif;
    line-height: 1.7em;
    height: 100vh;
}

body.dark {
    color: rgb(243, 243, 243);
    background-color: rgb(43, 43, 43);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: sahel-black, sans-serif;
    font-weight: bold;
}

a,
a:link {
    color: rgb(99, 99, 99);
    text-decoration: none;
    transition-duration: 300ms;
}

body.dark a,
body.dark a:link {
    color: rgb(145, 145, 145);
}

a:hover,
a.selected {
    color: rgb(25, 29, 50);
    text-decoration: underline;
}

body.dark a:hover,
body.dark a.selected {
    color: rgb(233, 55, 55);
}


/* COMPONENTS */

.button {
    display: inline-block;
    padding: 10px;
    background-color: rgb(25, 29, 50);
    color: rgb(255, 255, 255);
}

body.dark .button {
    background-color: rgb(233, 55, 55);
    color: rgb(255, 255, 255);
}

.button:hover {
    background-color: rgb(226, 231, 255);
    color: rgb(25, 29, 50);
    text-decoration: none;
}

body.dark .button:hover {
    background-color: rgb(43, 43, 43);
    color: rgb(233, 55, 55);
}

.float-left {
    float: left;
}

.float-right {
    float: right;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.text-red {
    color: rgb(247, 43, 43);
}

.reset-decoration:link,
.reset-decoration:hover,
.reset-decoration:active {
    text-decoration: none;
}

.clear {
    clear: both;
}

.box-shadow {
    box-shadow: 0px 3px 6px rgba(0, 0, 0, 15%);
}

body.dark .box-shadow {
    box-shadow: 0px 3px 6px rgba(0, 0, 0, 35%);
}

.hoverable {
    transition-duration: 200ms;
}

.hoverable:hover {
    box-shadow: 0px 8px 15px rgba(0, 0, 0, 50%);
    transform: translateY(-3px);
}

body.dark .hoverable:hover {
    box-shadow: 0px 5px 10px rgba(0, 0, 0, 60%);
}

.minibox {}

.minibox::after {
    content: " | ";
    color: rgb(160, 160, 160);
}

body.dark .minibox::after {
    color: rgb(73, 73, 73);
}

.minibox:last-child::after {
    content: "";
}

.comment {}

.comment img.author {
    width: 40px;
    height: 40px;
    border-radius: 0 10px 10px 10px;
    position: absolute;
    top: 0;
    right: -50px;
}

.comment img.reply-author {
    width: 40px;
    height: 40px;
    border-radius: 10px 0 10px 10px;
    position: absolute;
    top: 0;
    left: -50px;
}

.comment .body {
    border-radius: 15px 0 15px 15px;
    background-color: rgb(255, 255, 255);
    margin-right: 50px;
    position: relative;
}

body.dark .comment .body {
    background-color: rgb(29, 29, 29);
}

.comment .reply {
    border-radius: 0 15px 15px 15px;
    background-color: rgb(226, 231, 255);
    margin-left: 50px;
    position: relative;
}

body.dark .comment .reply {
    background: linear-gradient(90deg, rgb(44, 44, 44), rgb(27, 27, 27));
}

.card {
    background-color: rgb(255, 255, 255);
    position: relative;
    overflow: hidden;
}

body.dark .card {
    background-color: rgb(29, 29, 29);
}

.card img {
    max-width: 100% !important;
    height: auto !important;
}

.card-title {
    color: rgb(85, 85, 85);
}

body.dark .card-title {
    color: rgb(255, 255, 255);
}

.card-icon {
    color: rgb(136, 136, 136);
    background-color: rgb(240, 240, 240);
    border-radius: 10px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 20px;
    left: 20px;
}

body.dark .card-icon {
    color: rgb(105, 105, 105);
    background-color: rgb(26, 26, 26);
}

.card:hover .card-info {
    bottom: 0;
}

.card-info {
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0px -3px 6px rgba(0, 0, 0, 15%);
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    transition-duration: 300ms;
}

body.dark .card-info {
    background-color: rgba(22, 22, 22, .9);
    box-shadow: 0px -3px 6px rgba(0, 0, 0, 45%);
}

.card-pin {
    color: rgb(25, 29, 50);
    background-color: rgb(245, 245, 245);
    display: inline-block;
    padding: 5px 10px;
    position: absolute;
    top: 1em;
    left: 1em;
}

body.dark .card-pin {
    background-color: rgb(43, 43, 43);
    color: rgb(233, 55, 55);
}

.card-pin:hover {
    background-color: rgb(25, 29, 50);
    color: rgb(245, 245, 245);
    text-decoration: none;
}

body.dark .card-pin:hover {
    background-color: rgb(233, 55, 55);
    color: rgb(255, 255, 255);
}

.border-radius {
    border-radius: 5px;
}


/* NAVBAR */

.navbar {
    background-color: rgb(255, 255, 255);
}

body.dark .navbar {
    background-color: rgb(26, 26, 26);
}

.navbar ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    float: left;
}

.navbar ul>li {
    float: right;
    padding: 0;
    margin: 0;
}

.navbar ul>li>a {
    display: inline-block;
    margin: 0;
    padding: 1em .75em;
    text-decoration: none;
    text-align: center;
    border: 2px solid transparent;
    transition-duration: 300ms;
}

.navbar ul>li>a:hover {
    color: rgb(25, 29, 50);
}

body.dark .navbar ul>li>a:hover {
    color: rgb(255, 255, 255);
}

.navbar ul>li>a.selected {
    color: rgb(4, 123, 221);
    border-bottom-color: rgb(4, 123, 221);
}

body.dark .navbar ul>li>a.selected {
    color: rgb(233, 55, 55);
    border-bottom-color: rgb(233, 55, 55);
}

@media (max-width: 767px) {
    .navbar {
        text-align: center;
    }
    .navbar ul {
        float: none;
    }
    .navbar ul>li {
        float: none;
        display: inline-block;
    }
}


/* Social */

.social {
    padding: 0 10px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.social i {
    font-size: 1.7em;
}


/* Sidebar */


/* Categories, Links, Tags, Comments */

ul.categories,
ul.links,
ul.tags,
ul.comments {
    padding: 0;
    margin: 0;
    list-style: none;
}

ul.categories i,
ul.links i {
    font-size: .9em;
}

ul.categories li,
ul.links li,
ul.tags li,
ul.comments li {
    padding: 3px 0;
}

ul.categories a:hover,
ul.links a:hover,
ul.tags a:hover,
ul.comments a:hover {
    text-decoration: none;
}

ul.categories a.selected,
ul.links a.selected,
ul.tags a.selected,
ul.comments a.selected {
    color: rgb(4, 123, 221);
    text-decoration: none;
}

body.dark ul.categories a.selected,
body.dark ul.links a.selected,
body.dark ul.tags a.selected,
body.dark ul.comments a.selected {
    color: rgb(233, 55, 55);
}

ul.categories ul {
    padding-right: 15px;
    list-style: none;
}

ul.tags {
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-wrap: wrap;
}

ul.tags li {
    display: inline;
}

ul.tags a {
    display: inline-block;
    border-radius: 5px;
    background-color: rgb(245, 245, 245);
    padding: 5px 10px;
    margin: 0 1.5px;
}

body.dark ul.tags a {
    background-color: rgb(34, 34, 34);
}

ul.comments li {
    padding: 5px 0;
}

ul.comments span {
    font-weight: bold;
    color: #333333;
}

body.dark ul.comments span {
    color: rgb(240, 240, 240);
}

ul.comments img {
    width: 40px !important;
    height: 40px !important;
    margin-left: 5px;
    border-radius: 20px;
    vertical-align: middle;
}


/* Pictures */

.picture-list {
    height: 150px;
    background-position: center center;
    background-size: cover;
    background-attachment: scroll;
    background-repeat: no-repeat;
}


/* Others */

.search-box *,
.followBx * {
    font-family: sahel, sans-serif !important;
}

.followBx {
    margin-top: 20px;
    margin-bottom: 10px;
}

