@font-face {
    font-family: font;
    src: url("./../fonts/Shabnam.ttf");
}

* {
    box-sizing: border-box;
    font-family: font;
}

html {
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: sans-serif;
    direction: rtl;
    background: rgb(250, 250, 250);
}

ul {
    list-style: none !important;
}

a {
    text-decoration: none !important;
}

header {
    width: 100%;
    height: 50px;
    top: 0;
    background: #2e8555;
    padding: 5px 100px;
    position: fixed;
    z-index: 100000;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sm-header {
    display: none;
}

header > div {
    display: flex;
    align-items: center;
}

.search {
    width: auto;
    height: 100%;
}

form {
    direction: ltr;
}

.sm-search-box {
    display: none;
}

.search input:first-child {
    width: 198px;
    height: 30px;
    border: none;
    border: 1px solid #b4dfc7;
    background: #205c3b;
    padding-right: 20px;
    border: none;
    border-radius: 50px;
    transition: 0.2s;
    color: #fff !important;
    direction: rtl;
}

    .search input:first-child::placeholder {
        color: #fff;
    }

.search input:last-child {
    position: absolute;
    top: 10px;
    left: 105px;
    height: 30px;
    width: 30px;
    background: none;
    border: none;
    background: url("../img/icons8-search.svg") center no-repeat;
    background-size: cover;
    cursor: pointer;
}

.menu ul {
    display: flex;
    margin-right: 20px;
}

    .menu ul li {
        padding: 5px 15px;
    }

        .menu ul li a {
            color: rgb(238, 236, 236);
            font-weight: 100;
            font-size: 14px;
            opacity: 94%;
        }

            .menu ul li a:hover {
                color: #fff;
            }

.header-left {
    color: #fff;
    font-size: 25px;
}

main {
    width: 100%;
    height: auto;
    padding: 5px 100px;
    margin-top: 80px;
}

.inner-main {
    width: 100%;
    height: auto;
    display: flex;
    justify-content: space-between;
    direction: rtl;
}

.sidebar-container {
    width: 20%;
    position: -webkit-sticky;
    position: sticky;
    top: 100px;
    padding-bottom: 500px;
}

.sidebar {
    height: 256px;
}

.fixed-bar {
    position: fixed;
}

.non-fixed-bar {
    position: absolute;
}

.sidebar h3 {
    font-weight: 400;
    color: #393939;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-left: 100px;
}

.sidebar img {
    opacity: 70%;
}

.sidebar ul {
    padding-right: 10px;
    margin-top: -8px;
    width: 100% !important;
    height: 1%;
    overflow-y: hidden;
}

    .sidebar ul li {
        margin-bottom: 10px;
    }

        .sidebar ul li a {
            color: #717171;
            font-size: 15px;
        }

            .sidebar ul li a.hovered {
                color: #2e8555;
            }

            .sidebar ul li a:hover {
                color: #2e8555;
            }

.main-content {
    width: 60%;
    height: auto;
}

.empty-sidebar {
    width: 20%;
    height: 500px;
}

.open {
    height: auto !important;
}

.rotate {
    transform: rotate(-90deg);
    transition: transform 0.5s;
}

.pre {
    width: 100% !important;
    height: auto !important;
    padding: 100px;
    box-shadow: 1px 3px 13px #eee;
    direction: ltr !important;
}

.code {
    width: 100% !important;
    direction: ltr !important;
    background: #282c34;
    color: hsla(0,0%,100%,.6);
    font-weight: 100;
    line-height: 25px !important;
}

div.code {
    white-space: pre;
}

.hljs-selector-tag {
    font-weight: 100S;
}

.hljs-selector-class {
    color: #ffe564;
}

.tab-childes {
    position: relative;
    right: 50%;
    transform: translateX(50%);
    transition: 0.5s ease-in;
}

.tab-btn a {
    transition: 0.5s ease-in;
    color: #393939;
}

.hljs-string {
    color: #ffe564 !important;
}

.inner-main-content {
    height: auto;
    padding: 0 20px;
}

    .inner-main-content h2 {
        font-size: 20px;
        color: #24292e;
    }

    .inner-main-content h3 {
        font-size: 18px;
        color: #24292e;
    }

    .inner-main-content p {
        color: #404040;
        line-height: 30px;
        font-size: 15px;
    }

.alert-box {
    background-color: rgba(255,229,100,.3);
    border-right: 8px solid #ffe564;
    padding: 15px 30px 15px 15px;
    color: #404040;
    font-size: 15px;
    margin-top: 20px;
    margin-bottom: 20px;
}

    .alert-box strong {
        color: rgb(82, 78, 78);
    }

.search-opener {
    width: 230px !important;
    transition: 0.3s ease-in;
}

.checked {
    color: #2e8555 !important;
}

.checked-non {
    color: #393939 !important;
}

footer {
    width: 100%;
    height: 300px;
    margin-top: 100px;
    background: #20232a;
}

.ul-footer {
    width: 50%;
    position: relative;
    right: 50%;
    height: auto;
    transform: translateX(50%);
    display: flex;
    justify-content: space-between;
}

.footer-title {
    color: #fff !important;
    font-size: 18px !important;
}

.ul-footer li {
    margin-bottom: 15px;
}

    .ul-footer li a {
        color: hsla(0,0%,100%,.6);
        font-size: 15px;
    }

@media screen and (max-width : 1000px) {
    header {
        height: 60px;
        padding: 20px;
    }

    .empty-sidebar {
        width: 0% !important;
        display: none !important;
    }

    main {
        padding: 0 !important;
    }

    .inner-main, .main-content {
        width: 100% !important;
    }

    .header-right {
        display: none;
    }

    .sm-header {
        display: block !important;
        width: 60%;
        height: 50px;
    }

    .sm-search, .sm-opener {
        display: block;
        width: 23px;
        height: 23px;
        float: right;
        margin-top: 11px;
    }

        .sm-search:hover, .sm-opener:hover, .search-closer-btn:hover {
            opacity: 50%;
            cursor: pointer;
        }

    .sm-search {
        background: url("./../img/icons8-search-more-50.png") center no-repeat;
        background-size: cover;
        margin-right: 10px;
    }

    .sm-opener {
        display: block;
        background: url("./../img/icons8-align-center-48.png") center no-repeat;
        background-size: cover;
    }

    .sidebar {
        width: 210px !important;
        display: block !important;
        height: auto;
        margin-top: -10px;
    }

        .sidebar h3 {
            margin-right: 0 !important;
        }

    .nav-opener {
        transform: translateX(0) !important;
    }

    .nav-closer-btn {
        width: 25px;
        height: 25px;
        display: block;
        background: url("./../img/icons8-macos-close-32.png") center no-repeat;
        background-size: cover;
    }

    .sm-search-box {
        position: absolute;
        width: 100%;
        height: 60px;
        right: 0;
        background: #2e8555;
        display: flex !important;
        justify-content: space-evenly;
        transform: translateX(2000px);
        transition: transform 0.5s ease-out;
    }

        .sm-search-box div:first-child {
            width: 60%;
        }

    .sm-search-fiels {
        color: #fff;
        direction: rtl;
        width: 90%;
        background: inherit;
        border: none;
        border-bottom: 1px solid #fff;
        padding-right: 10px;
        padding-bottom: 3px;
    }

        .sm-search-fiels::placeholder {
            color: #fff;
        }

    .sm-search-box div:first-child form {
        display: flex;
        justify-content: start;
    }

    .search-open {
        transform: translateX(0) !important;
    }

    footer, .ul-footer {
        width: 100% !important;
        padding-left: 20px;
    }

    .sidebar-container {
        overflow-y: scroll !important;
    }

    .sidebar h3 {
        margin-right: -60px;
        padding-left: 60px !important;
    }

    .sm-search-submit {
        background: none;
        border: none;
        background: url("./../img/icons8-search-more-50.png");
        display: block;
        width: 25px;
        height: 25px;
        background-size: cover;
    }

    .search-closer-btn {
        display: block;
        width: 25px;
        height: 25px;
        background: url("./../img/whitecloed.png");
        background-size: cover;
    }

    .sidebar-container {
        position: fixed !important;
        background: #fff !important;
        z-index: 100000000 !important;
        height: 100vh !important;
        width: 230px;
        right: 0;
        top: 0;
        padding: 10px;
        box-shadow: 1px 3px 13px #eee;
        transform: translateX(500px);
        transition: transform 0.2s ease-in;
    }

    .sidebar-container {
        overflow-y: scroll !important;
    }
}

@media screen and (max-width : 1200px) {
    .sidebar-container {
        overflow-y: scroll !important;
    }

    header {
        padding: 10px !important;
    }

    .search form input:last-child {
        left: 12px;
    }

    .empty-sidebar {
        width: 0% !important;
    }

    .main-content {
        width: 100% !important;
    }

    .sidebar h3 {
        padding-left: 10px !important;
    }
}

@media screen and (min-width : 1000px) {
    .sidebar-container {
        overflow-y: hidden !important;
    }
}

code {
    direction: ltr;
}


.styled-table {
    border-collapse: collapse;
    margin: 25px 0;
    font-size: 0.9em;
    font-family: sans-serif;
    min-width: 400px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
    width:100%;

}
    .styled-table thead tr {
        background-color: #009879;
        color: #ffffff;
        text-align: center;
    }
    .styled-table th,
    .styled-table td {
        padding: 12px 15px;
        text-align: center;
    }
    .styled-table tbody tr {
        border-bottom: 1px solid #dddddd;
    }

        .styled-table tbody tr:nth-of-type(even) {
            background-color: #f3f3f3;
        }

        .styled-table tbody tr:last-of-type {
            border-bottom: 2px solid #009879;
        }
        .styled-table tbody tr.active-row {
            font-weight: bold;
            color: #009879;
        }