/*-----------------------------------------------------------------------------------*/
/*  FONTS
/*-----------------------------------------------------------------------------------*/
:root {
    --pink: #E13076;
    --violet: #645B97;
    --blue: #78CFE0;
    --grey: #6C8C9C;
    --dark: #555C78;
    --main:#5a5a5a;
}
@font-face {
    font-family: 'DIN';
    font-weight: 200;
    src: url('/fonts/DINNextLTArabic-UltraLight.ttf') format('truetype');
	font-display: swap;
}
@font-face {
    font-family: 'DIN';
    font-weight: 300;
    src: url('/fonts/DINNextLTArabic-Light.ttf') format('truetype');
	font-display: swap;
}
@font-face {
    font-family: 'DIN';
    font-weight: 400;
    src: url('/fonts/DINNextLTArabic-Regular.ttf') format('truetype');
	font-display: swap;
}
@font-face {
    font-family: 'DIN';
    font-weight: 500;
    src: url('/fonts/DINNextLTArabic-Medium.ttf') format('truetype');
	font-display: swap;
}
@font-face {
    font-family: 'DIN';
    font-weight: 600;
    src: url('/fonts/DINNextLTArabic-Bold.ttf') format('truetype');
	font-display: swap;
}
@font-face {
	font-family: 'Material Icons';
	font-style: normal;
	font-weight: 400;
	src: url('/fonts/material-icons.woff2') format('woff2');
}
/*-----------------------------------------------------------------------------------*/
/*  RESET CSS 
/*-----------------------------------------------------------------------------------*/
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, pre, a, abbr, acronym, address, big, cite, code, del, img, ins, kbd, q, s, samp, small, strike, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video, input, input[type=button], button {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font-family: 'DIN', sans-serif;
    text-rendering: optimizeLegibility !important;
    -webkit-font-smoothing: antialiased !important;
    font-weight: 400;
}
* {
    transition-property: background-color, opacity, border-color, filter, transform, width, left, right;
    transition-duration: 0.3s;
    transition-timing-function: ease;
}
html {
    height: 100%;
    width: 100%;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}
::placeholder {
    opacity: 0.5;
}
body {
    position: relative;
    font-weight: 400;
    width: 100%;
    min-height: 100%;
    color: var(--main);
    background: #fff;
    font-size: 16px;
    direction: rtl;
    overflow-x: hidden;
}
body.dark {
    color: #e9e9e9;
    background: #28292c;
}
a {
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    color: var(--main);
	font-family: inherit;
}
.dark a {
    color: #ebebeb; 
}
select, button,input {
    outline: none; 
}
img {
    max-width: 100%;
}
h1 {
    font-size: 24px; 
}
b{
    font-weight: 500;
}
ul, li {
    list-style-type: none;
    list-style-position: inside;
}
::selection {
    background-color:var(--blue);
    color: #fff;
}
header {
    display: grid;
    grid-template-columns: 1fr 200px 300px 1fr 400px 1fr;
    grid-template-rows: 100px;
    gap: 20px;
    border-bottom: 1px solid #D8D8D8;
    margin-bottom: 20px;
    background-color: rgba(0,0,0,0.05);
    background-image: url(/images/header_bg1.png), url(/images/header_bg2.png);
    background-position: right top, left bottom;
    background-repeat: no-repeat;
}
.dark header {
    border-color: #505050;
}
header .logo {
    grid-column: 2/3;
    background-image: url('/images/Mable-docs.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 165px;
    transform: translateY(80px);
    opacity: 0;
}
header h1 {
    grid-column: 3/4;
    line-height: 30px;
    margin: 20px 10px;
    padding-right: 30px;
    border-right: 1px solid #ccc;
    font-family: 'DIN';
}
.dark header h1 {
    border-color: #505050;
}
header h1 sup {
    display: block;
    font-size: 15px;
    line-height: 24px;
    color: #8f8f8f;
    opacity: 0;
    transform: translateX(30px);
}
header h1 a {
    opacity: 0;
    transform: translateX(30px);
}
header form {
    grid-column: 5/6;
    position: relative;
}
header form input[type=search] {
    width: 100%;
    margin-top: 28px;
    height: 44px;
    border: 1px solid #DEDEDE;
    padding: 0 10px 0 40px;
    border-radius: 8px;
    box-shadow: 0 3px 3px #cccccc70;
}
.dark header form input[type=search] {
    border-color: #545454;
    box-shadow: 0 3px 3px #0a0a0a70;
    background-color: #545454;
}
header form input[type=search]:focus {
    border-color: var(--blue);
}
header form input[type=submit] {
    content: 'search';
    position: absolute;
    left: 12px;
    top: 38px;
    font-size: 26px;
    font-family: 'Material Icons';
    color: #999;
    background-color: transparent;
}
.dark header form input[type=submit] {
    color: #d9d9d9;
}
header .ham {
    display: none;
}
main {
    display: grid;
    grid-template-columns: 1fr 260px 800px 200px 1fr;
    min-height: calc(100vh - 292px);
}
main .fixed {
    grid-column: 2/3;
}
main .nav {
    width: 260px;
}
main .nav.sticky {
    position: fixed;
    top: 0;
}
main .nav > li a {
    font-size: 19px;
    background-color: #fff;
    border: 1px solid #ECECEC;
    border-radius: 8px;
    height: 44px;
    line-height: 20px;
    padding: 8px 16px;
    box-sizing: border-box;
    margin: 5px 0;
    width: 100%;
    position: relative;
}
.dark main .nav > li a {
    background-color: #545454;
    border-color: #545454;
    color: #e7e7e7;
}
main .nav > li > a:after {
    position: absolute;
    top: 18px;
    left: 15px;
    display: inline-block;
    content: '';
    border-right: 6px solid transparent;
    border-top: 7px solid var(--blue);
    border-bottom: 0 solid var(--blue);
    border-left: 6px solid transparent;
}
main .nav > li > a:hover,
main .nav > li > a.current {
    background-color: var(--violet);
    border-color: var(--violet);
    color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
main .nav > li > a.current:after {
    border-top: 0 solid #fff;
    border-bottom: 7px solid #fff;
}
main .nav li ul {
    display: none;
}
main .nav li ul li a {
    font-size: 14px;
    color: #828282;
    border: none;
    background-color: #F2F2F2;
    border-radius: 5px;
    height: 30px;
    padding: 4px 16px;
    box-sizing: border-box;
    margin: 2px 10px;
    width: calc(100% - 20px);
}
.dark main .nav li ul li a {
    color: #d5d5d5;
    background-color: #444444;
}
main .nav li ul li a.current,
main .nav li ul li a:hover {
    color: #ffffff;
    background-color: var(--blue);
    padding-right: 25px;
}
main article {
    grid-column: 3/4;
    margin: 0 40px;
    line-height: 26px;
    opacity: 0;
    transform: translateX(-20px);
}
header .show,
#back-top.show,
main article.show {
    opacity: 1;
    transform: translateX(0) translateY(0);
}
main article h2 {
    font-size: 36px;
    font-family: 'DIN';
    line-height: normal;
    margin-bottom: 10px;
}
main article h3 {
    font-size: 20px;
    margin-top: 20px;
    padding-bottom: 10px;
}
main article img {
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: 0 3px 6px rgb(0 0 0 / 20%);
}
main article iframe {
    border-radius: 8px;
    box-shadow: 0 3px 6px rgb(0 0 0 / 20%);
}
main article code {
    display: block;
    padding: 20px;
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #333;
    word-break: break-all;
    word-wrap: break-word;
    background-color: #f5f5f5;
    border-radius: 8px;
    direction: ltr;
    text-align: left;
    line-height: 20px;
    position: relative;
    border: 2px dashed #ccc;
}
.dark main article code {
    color: #e9e9e9;
    background-color: #545454;
}
main article code:hover i.copy {
    opacity: 1;
}
main article code i.copy {
    font-family: 'Material icons';
    font-style: normal;
    line-height: 11px;
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 9px 7px 8px 7px;
    cursor: pointer;
    background-color: var(--blue);
    color: #fff;
    opacity: 0;
    border-radius: 4px;
    z-index: 10;
}
main article pre i.copy:hover {
    background-color: var(--violet);
}
main article p {
    padding: 10px 0;
}
main article a.btn-link {
    display: block;
    width: fit-content;
    background-color: var(--blue);
    margin-top: 20px;
    padding: 6px 10px 8px 20px;
    color: #fff;
    border-radius: 8px;
}
main article a.btn-link {
    display: block;
    width: fit-content;
    background-color: var(--blue);
    margin-top: 20px;
    padding: 6px 20px 8px 20px;
    color: #fff;
    border-radius: 8px;
}
main article a.btn-link:has(s) {
    padding: 8px 10px 8px 20px;
}
main article a.btn-link s {
    margin-left: 10px;
}
main article a.btn-link:hover {
    background-color: var(--violet);
}
main article i.mable {
    color: transparent;
    background-image: url(/images/Mable-logo.svg);
    background-repeat: no-repeat;
    width: 60px;
    height: 25px;
    display: inline-block;
    vertical-align: bottom;
    margin: 0 5px;
    text-align: center;
    font-style: normal;
}
main article blockquote {
    margin: 20px 0;
    padding: 10px 40px 10px 10px;
    font-style: normal;
    background-color: #F6F6F6;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    display: block;
}
.dark main article blockquote {
    background-color: #545454;
}
main article blockquote:before {
    content: '';
    width: 20px;
    height: -webkit-fill-available;
    top: 0;
    right: 0;
    background-color: var(--blue);
    position: absolute;
}
main article blockquote i.info {
    font-family: 'Material icons';
    font-size: 26px;
    font-style: normal;
    position: absolute;
    top: 14px;
    right: 7px;
    color: var(--blue);
    border-radius: 4px;
    background-color: #f6f6f6;
    border-radius: 50%;
}
.dark main article blockquote i.info {
    background-color: #545454;
}
main article .gallery {
    display: flex;
    flex-wrap: wrap;
    margin: 20px 0;
    gap: 20px 30px;
    justify-content: flex-start;
    counter-reset: img;
}
main article .gallery a {
    height: 160px;
    width: 220px;
    background-size: cover;
    background-position: center;
    border-radius: 5px;
    box-shadow: 0 3px 6px rgb(0 0 0 / 20%);
    transform: rotate(0deg);
}
main article .gallery a:after {
    counter-increment: img;
    content: counter(img);
    position: absolute;
    top: 10px;
    right: -8px;
    background-color: var(--violet);
    color: #fff;
    text-align: center;
    display: block;
    width: 28px;
    height: 28px;
    border-radius: 50%;
}
main article .gallery a:hover {
    transform: rotate(-2deg);
}
main article hr {
    border: none;
    border-top: 1px solid #ccc;
    margin: 40px 0 20px 0;
}
main article s,
main article strike {
    font-family: 'Material icons';
    text-decoration: none;
    font-size: 26px;
    vertical-align: bottom;
    /* color: var(--violet); */
}
.dark main article s,
.dark main article strike {
    color: var(--blue);
}
main article ol {
    border-right: 3px solid var(--blue);
    padding-right: 10px;
}
main article ol li {
    list-style: decimal-leading-zero;
    list-style-position: inside;
}
main article ul {
   /* border-right: 3px solid var(--blue);*/
    padding-right: 30px;
}
main article ul li {
    list-style: disc;
    list-style-position: inside;
}
main article ul li ul {
    border-right: 2px solid #e5e5e5;
    margin-right: 2px;
}
main article ul li ul li {
    list-style: circle;
    list-style-position: inside;
}
main article .empty {
    height: 400px;
    background-image: url(/images/empty.jpg);
    background-repeat: no-repeat;
    background-position: center;
}
.dark main article .empty {
    background-image: url(/images/empty-dark.jpg);
}
article .links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}
article .links a {
    background: #00000012;
    border-radius: 8px;
    padding: 10px;
    width: 28%;
    text-align: center;
    transition: all 0.3s ease;
}
article .links a:hover {
    color: #fff;
    background: var(--blue);
}
article .links a h3 {
    margin-top: 5px;
}
main .pagination {
    grid-column: 3/4;
    display: flex;
    gap: 20px;
    margin: 40px;
}
main .pagination a {
    height: 78px;
    flex-basis: 40%;
    flex-grow: 1;
    box-sizing: border-box;
    padding: 10px 20px;
    border-radius: 10px;
    border: 2px solid transparent;
    box-shadow: 0 3px 6px rgba(0,0,0,0.2);
    position: relative;
}
.dark main .pagination a {
    background-color: #464646;
}
main .pagination a.prev {
    text-align: left;
}
main .pagination a:hover {
    border-color: var(--blue);
}
main .pagination a sup {
    display: block;
    font-size: 13px;
    transition: color 0.3s ease;
    color: #999;
}
main .pagination a span {
    font-size: 19px;
}
main .pagination a sub {
    width: 32px;
    height: 32px;
    padding: 4px;
    box-sizing: border-box;
    font-size: 24px;
    font-family: 'Material icons';
    position: absolute;
    left: 20px;
    top: 21px;
    color: #999;
    border-radius: 50%;
    transition: all 0.3s ease;
}
main .pagination a.prev sub {
    right: 20px;
    left: auto;
}
main .pagination a:hover sup,
main .pagination a:hover sub {
    color: var(--blue);
}
main .pagination a:active sub {
    color: #fff;
    background-color: var(--blue);
}
main .pagination a.next:hover sub {
    left: 15px;
}
main .pagination a.prev:hover sub {
    right: 15px;
}
.theme-switch {
    display: flex;
    align-items: center;
    height: 30px;
    border-bottom: 1px solid #ddd;
    width: 80px;
    padding-bottom: 10px;
    margin-bottom: 10px;
}
.dark .theme-switch {
    border-color: #646464;
}
.theme-switch .switch {
    width: 50px;
    height: 22px;
    background: #78cfe0;
    border-radius: 30px;
    display: flex;
    align-items: center;
    cursor: pointer;
}
.theme-switch #mode:checked ~ .switch {
    background: #626262;
}
.theme-switch #mode {
    display: none;
}
.theme-switch #sun {
    font-size: 16px;
    color:#ffffff;
    margin:0px 3px 0px 5px;
}
.theme-switch #moon {
    font-size: 16px;
    color:#78CFE0;
    margin:0px 7px 0px 20px;
}
.theme-switch .switch::before {
    position: absolute;
    content: "";
    padding: 10px;
    background: #645b97;
    border-radius: 50%;
    transition: 0.3s;
    transform: translateX(-25px);
    border: 3px solid #ffffff;
}
.theme-switch #mode:checked ~ .switch::before {
    transform: translateX(2px);
    border: 3px solid #28292C;
}

aside {
    /*background-color: #ECECEC;
    border-radius: 10px;*/
    grid-column: 4/5;
    grid-row: 1/2;
    position: relative;
}
aside h2 {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #999;
}
aside h2 i {
    font-family: 'Material icons';
    font-style: normal;
    font-size: 15px;
    margin-left: 5px;
}
aside .sub-links ul {
    position: fixed;
    width: 200px;
}
aside .sub-links ul li {
    display: block;
    border-right: 2px solid #ccc;
    border-radius: 5px 0 0 5px;
}
.dark aside .sub-links ul li {
    border-color: #545454;
}
aside .sub-links ul li.current,
aside .sub-links ul li:hover {
    border-color: var(--blue);
    background-color: rgba(0,0,0,0.05);
}
.dark aside .sub-links ul li.current,
.dark aside .sub-links ul li:hover {
    background-color: #444444;
}
aside .sub-links ul li a {
    display: block;
    padding: 2px 20px 6px 0;
    font-size: 14px;
}
footer {
    display: grid;
    grid-template-columns: 1fr 100px 740px 260px 100px 1fr;
    grid-template-rows: 75px 55px;
    margin-top: 40px;
    position: relative;
}
footer:before {
    content: '';
    display: block;
    height: 55px;
    width: 100%;
    position: absolute;
    bottom: 0;
    background-color: #E9E9E9;
    z-index: -1;
}
.dark footer:before {
    background-color: #121212;
}
footer .years {
    grid-column: 2/3;
    background-image: url(/images/15years.png);
    background-size: contain;
    filter: grayscale(1);
    width: 100px;
    height: 100px;
    opacity: 0.7;
}
footer .years:hover {
    filter: grayscale(0);
    opacity: 1;
}
footer p {
    grid-column: 4/5;
    text-align: left;
    direction: ltr;
    padding-left: 18px;
    border-left: 4px solid #CFCFCF;
    margin-left: 15px;
    margin-top: 6px;
    font-size: 10px;
    height: 60px;
    color: #818181;
}
.dark footer p {
    border-color: #505050;
}
footer .mongiddesigns {
    grid-column: 5/6;
    margin-top: -6px;
    width: 104px;
    height: 125px;
    background-image: url(https://mongid.com/images/mongid_new.png);
    background-repeat: no-repeat;
    background-size: contain;
}
#back-top {
    font-family: 'Material Icons';
    color: #fff;
    height: 44px;
    width: 88px;
    background-color: var(--blue);
    position: fixed;
    bottom: 30px;
    right: 30px;
    border-radius: 10px;
    font-size: 22px;
    text-align: center;
    line-height: 44px;
    transform: translateY(50px);
    opacity: 0;
}
#back-top:hover {
    line-height: 38px;
    background-color: var(--pink);
}

/* MableBox */
#mablebox-wrap {
	display: none;
	position: fixed;
	right: 0;
	top: 0;
	left: 0;
	bottom: 0;
	padding: 40px;
	opacity: 0;
	height: 100%;
	width: 100%;
	background-image: url(/images/loader.svg);
	background-position: center;
	background-repeat: no-repeat;
	box-sizing: border-box;
	background-color: rgba(0,0,0,0.2);
    backdrop-filter: blur(5px);
	transition: backdrop-filter 0.3s ease;
	z-index: 600;
}
#mablebox-wrap h2 {
	background-color: var(--violet);
	font-size: 16px;
    margin: auto;
    padding: 5px 20px 10px 20px;
    width: fit-content;
    color: #fff;
    border-radius: 0 0 6px 6px;
}
#mablebox-wrap h2:empty{
	display: none;
}
#mablebox {
	display: block;
	overflow: auto;
	text-align: center;
	margin: auto;
	width: fit-content;
	max-width: 100%;
	/*max-height: -webkit-fill-available;*/
	color: #fff;
    direction: ltr;
    box-sizing: border-box;
    background-color: #202427;
	background-position: center;
	background-repeat: no-repeat;
	background-size: contain;
	backdrop-filter: blur(5px);
	border-radius: 10px;
	box-shadow: 0px 10px 20px 0px rgba(0,0,0,0.5);
	transform: perspective(2000px) rotateX(45deg) scale(0.5) translateY(40%);
	opacity: 0;
	transition: all 0.5s ease;
}
#mablebox.show {
	transform: scale(1) translateY(0);
	opacity: 1;
}
#mablebox > img {
	max-width:100%;
	max-height: 100%;
}
#mablebox-frame {
	height: 100%;
	width:100%;
	/*max-height: calc(100vh - 80px);*/
	transition: all 0.3s ease;
	margin-bottom: -4px;
}
.material-icons {
	font-family: 'Material Icons';
	font-weight: normal;
	font-style: normal;
	font-size: 24px;
	letter-spacing: normal;
	text-transform: none;
	display: inline-block;
	white-space: nowrap;
	word-wrap: normal;
	direction: ltr;
	-webkit-font-smoothing: antialiased;
}
@media screen and (max-width: 1200px) {
    header {
        grid-template-columns: 1fr 200px 300px 1fr auto 1fr;
    }
    main {
        grid-template-columns: 1fr 260px auto 200px 1fr;
    }
    footer {
        grid-template-columns: 1fr 100px auto 260px 100px 1fr;
    }
}
@media screen and (max-width: 720px) {
    header {
        grid-template-columns: 40% 60%;
        grid-template-rows: 20px 60px 50px;
        gap: 10px;
    }
    header .logo {
        grid-column: 1/2;
        grid-row: 2/3;
        margin-right: 20px;
        background-size: 120px;
    }
    header h1 {
        grid-column: 2/3;
        grid-row: 2/3;
        width: 78%;
        margin: 0;
        padding-right: 20px;
    }
    header form {
        grid-column: 1/3;
        grid-row: 3/4;
        width: calc(80% - 30px);
        margin: 0 70px 10px auto;
    }
    header form input[type=search] {
        margin-top: 0;
    }
    header form input[type=submit] {
        top: 10px;
    }
    header .ham {
        display: block;
        grid-column: 1/2;
        grid-row: 3/4;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        transition: transform 400ms;
        -moz-user-select: none;
        -webkit-user-select: none;
        -ms-user-select: none;
        user-select: none;
        margin-top: -3px;
        height: 50px;
        width: 70px;
    }
    .hamRotate.active {
        transform: rotate(45deg);
    }
    .hamRotate180.active {
        transform: rotate(180deg);
    }
    .ham .line {
        fill:none;
        transition: stroke-dasharray 400ms, stroke-dashoffset 400ms;
        stroke:#646464;
        stroke-width:5.5;
        stroke-linecap:round;
    }
    .ham .top {
        stroke-dasharray: 40 160;
    }
    .ham .middle {
        stroke-dasharray: 40 142;
        transform-origin: 50%;
        transition: transform 400ms;
    }
    .ham .bottom {
        stroke-dasharray: 40 85;
        transform-origin: 50%;
        transition: transform 400ms, stroke-dashoffset 400ms;
    }
    .ham.active .top {
        stroke-dashoffset: -64px;
    }
    .ham.active .middle {
        /*stroke-dashoffset: -20px;*/
        transform: rotate(90deg);
    }
    .ham.active .bottom {
        stroke-dashoffset: -64px;
    }
    main {
        grid-template-columns: 100%;
    }
    main .fixed {
        display: none;
        grid-column: 1/2;
        position: absolute;
        z-index: 10;
        height: 100vh;
        background-color: rgb(255 255 255 / 70%);
        backdrop-filter: blur(15px);
        width: 100%;
        top: 150px;
    }
    main .nav {
        width: 80%;
        margin: auto;
    }
    aside {
        display: none;
    }
    main article {
        grid-column: 1/2; 
    }
    main .pagination {
        grid-column: 1/2;
        flex-wrap: wrap;
    }
    main .pagination a {
        flex-basis: 100%;
    }
    main article .gallery a {
        height: 260px;
        width: 100%;
    }
    footer {
        grid-template-columns: 25% 50% 25%;
    }
    footer .years {
        grid-column: 1/2;
        margin-right: 10px;
    }
    footer p {
        grid-column: 2/3;
    }
    footer .mongiddesigns {
        grid-column: 3/4;
    }
    #back-top {
        bottom: 10px;
        right: calc(50% - 50px);
        height: 36px;
        line-height: 36px;
        width: 100px;
    }
}