:root {
	--ink: #0B0F0E;
	--paper: #F6F8F5;
	--panel: #111614;
	--green: #04AA6D;
	--slate: #5B6B66;
	--line: rgba(11,15,14,0.12);
	--maxw: 1180px;
}

::selection{
    background-color: #04aa6d62;
}

@font-face {
    font-family: Dana-Bold;
    src: url(../fonts/Dana-Bold.ttf);
}
@font-face {
    font-family: Dana-Regular;
    src: url(../fonts/Dana-Regular.ttf);
}
@font-face {
    font-family: Dana-Medium;
    src: url(../fonts/Dana-Medium.ttf);
}
@font-face {
    font-family: Dana-Light;
    src: url(../fonts/Dana-Light.ttf);
}
@font-face {
    font-family: Dana-Black;
    src: url(../fonts/Dana-Black.ttf);
}

@font-face {
    font-family: "Meem-Bold";
    src: url(../fonts/Meem-Bold.ttf);
}

@font-face {
    font-family: "NovinWeb";
    src: url(../fonts/NovinWeb.ttf);
}

*{
    box-sizing: border-box;
    margin: 0;
}

#page-loader {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;

    background: rgba(255, 255, 255, 0.92);

    display: flex;
    justify-content: center;
    align-items: center;

    z-index: 999999;

    opacity: 1;
    visibility: visible;

    animation: hideLoader 0.5s ease 1.5s forwards;
}
/* Spinner */
.spinner {
    width: 40px;
    height: 40px;
    position: relative;
}

.double-bounce1,
.double-bounce2 {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    position: absolute;
    top: 0;
    left: 0;

    background-color: #04aa6d1e;

    animation: sk-bounce 2s infinite ease-in-out;
}

.double-bounce2 {
    background-color: #04aa6da2;
    animation-delay: -1s;
}



@keyframes hideLoader {
    0% {
        opacity: 1;
        visibility: visible;
    }

    100% {
        opacity: 0;
        visibility: hidden;
    }
}

/* انیمیشن Spinner */
@keyframes sk-bounce {
    0%, 100% {
        transform: scale(0);
    }

    50% {
        transform: scale(1);
    }
}

.w-error{
    width: 100vw;
    height: 100vw;
    display: none;
}

.w-error-content{
    text-align: center;
    font-size: 20px;
    line-height: 24.8vw;
}
body{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}



.container-1{
    margin-right: auto;
    margin-left: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    position: sticky;
    top: 0px;
    z-index: 100;
    border-bottom: 1px solid rgba(11,15,14,0.12);
    background-color: rgb(253, 253, 253);
    
}


.header{
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 99;

}

.logo{
    display: flex;
    
}

.up-header{
    display: flex;
    padding: 20px;
    width: 100%;
    justify-content:space-between;
}

.up-links{
    text-decoration: none;
    color: #585858;
    font-weight: 700;
    transition: color 150ms ease-in 50ms;
}

/* .active{
    border-bottom: 4px solid #006943 ;
    border-radius: 4px;
    color: #1e2221;

} */

.lessons .lessons-name .up-active{
    color: #04AA6D;
    font-size: 13.5px;
    /* border-bottom: 4px solid #006943 ; */
    /* border-radius: 4px; */
    /* color: #1e2221; */

}



.home-link{
    margin-left: 20px;

}

.up-active{
    transition: border-bottom 150ms ease-in 50ms;

}

.in-active{
    transition: color 150ms ease-in 50ms;

}

.up-active:hover{
    border-bottom:4px solid #006943;
}

.in-active:hover{
    color: #353535;
}

.devschool-wordmark{
    width: 100px;
    height: 20px;
}

.Logo-Icon{
    width: 20px;
    height: 20px;
}



.lessons{
    margin-top: 10px;
    width: 100%;
    overflow-x:auto;
    border-bottom:1px rgba(11,15,14,0.12); 
    background:#0000000a; 
    min-width: 0;
    border: 1px solid rgba(0, 0, 0, 0.096);

}


.lessons-name{
    display:flex; 
    gap:2px; 
    padding:0 28px; 
    width:max-content; 
    flex-wrap: nowrap;
}

.lessons a{ 
    text-decoration: none;
    font-family:'JetBrains Mono', monospace;
    font-weight: 600;
    font-size:13px; 
    letter-spacing:.03em; 
    padding:10px 14px; 
    color:#5B6B66; 
    white-space:nowrap; 
    border-bottom:2px solid transparent; 
}

.lessons a.link00{
    color:#04AA6D; 
    border-color:#04AA6D; 
    font-weight:600; 
}

.links-up{
    transition: all 100ms ease-in 80ms;
}

.lessons a.link00:hover{
    color: #006943;
    border-bottom:3px solid #006943;
}


.links-up:hover{
    color: #1e2221;
}

/* ---------------------------------------------------------------- */
/* ---------------------------------------------------------------- */
/* ---------------------------------------------------------------- */
/* ---------------------------------------------------------------- */
/* ---------------------------------------------------------------- */
/* ---------------------------------------------------------------- */
/* ---------------------------------------------------------------- */
/* ---------------------------------------------------------------- */
/* ---------------------------------------------------------------- */
/* ---------------------------------------------------------------- */




.layout{ 
    display:flex;
    gap:40px;
    align-items:flex-start; 
    position:sticky; 
    top:122px;

}

aside.side{ 
    height: 700px;
    width:230px; 
    flex-shrink:0; 
    max-height:calc(100vh - 120px); 
    overflow-y:auto; 
    padding-bottom:10px; 
    border-right:1px solid #04AA6D;
    border-radius: 10px;
    padding-right: 20px;
    padding-top: 10px;
}

aside.side h4{ 
    font-size:11px; 
    color:var(--slate); 
    text-transform:uppercase; 
    letter-spacing:.05em; 
    margin-bottom:10px; 
}

aside.side ul{ 
    list-style:none; 
    margin:0 0 22px; 
    padding:0; 
}

aside.side li a{ 
    font-family: "Dana-Medium";
    display:block; 
    font-size:13.5px; 
    padding:6px 10px; 
    border-radius:6px; 
    color:#2b332f; 
    text-decoration: none;
}

aside.side li a.active{ 
    font-family: "Dana-Bold";
    background:rgba(4,170,109,.1); 
    color:#04AA6D; 
    font-weight:700; 
}

aside.side li a:hover{ 
    background:rgba(11,15,14,.05);
}



/* ---------------------------------------------------------------- */
/* ---------------------------------------------------------------- */
/* ---------------------------------------------------------------- */
/* ---------------------------------------------------------------- */
/* ---------------------------------------------------------------- */
.container-1-2{
    display: flex;
    width: 90%;
    /* justify-content: space-between; */
    gap: 250px;
}


/* ---------------------------------------------------------------- */
/* ---------------------------------------------------------------- */
/* ---------------------------------------------------------------- */
/* ---------------------------------------------------------------- */
/* ---------------------------------------------------------------- */




main.content {
	min-width: 0;
	padding: 48px 0 60px;
	flex: 1;
}
main.content .content-title , .main.content .tag{
	font-family: 'JetBrains Mono', monospace;
	font-size: 11px;
	color: var(--green);
	background: rgba(4,170,109,.08);
	border: 1px solid rgba(4,170,109,.25);
	display: inline-block;
	padding: 3px 9px;
	border-radius: 16px;
	margin-bottom: 14px;
}
main.content h1 {
	font-size: 32px;
	margin-bottom: 14px;
}
main.content h2 {
	font-size: 21px;
	margin: 34px 0 12px;
}
main.content p {
	font-size: 15px;
	line-height: 1.85;
	color: #1c2320;
	margin: 0 0 18px;
	max-width: 680px;
}
main.content ul.plain,
main.content ol.plain {
	margin: 0 0 20px;
	padding-inline-start: 22px;
	max-width: 680px;
}
main.content ul.plain li,
main.content ol.plain li {
	font-size: 15px;
	line-height: 1.85;
	color: #1c2320;
	margin-bottom: 6px;
}

.callout {
	border-inline-start: 3px solid var(--green);
	background: rgba(4,170,109,.06);
	border-radius: 8px;
	padding: 14px 18px;
	font-size: 13.5px;
	line-height: 1.7;
	color: #233029;
	margin-bottom: 24px;
	max-width: 680px;
}
.callout b {
	color: var(--green);
}

.code-card {
	background: var(--panel);
	border-radius: 12px;
	padding: 20px;
	margin-bottom: 26px;
	max-width: 680px;
}
.code-card .file {
	font-family: 'JetBrains Mono', monospace;
	font-size: 11px;
	color: #8b9791;
	margin-bottom: 12px;
}
.code-card pre {
    direction: ltr;
    margin: 0;
	font-size: 13px;
	line-height: 1.75;
	color: #d7dedb;
	white-space: pre;
	tab-size: 4;
	-moz-tab-size: 4;
	overflow-x: auto;
}
.tok-tag {
	color: #3DDC97;
}
.tok-attr {
	color: #FFB454;
}
.tok-str {
	color: #9ecbff;
}
.tok-com {
	color: #7d8b85;
	font-style: italic;
}



.lesson-nav {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	margin-top: 36px;
	max-width: 680px;
}
.nav-btn {
	flex: 1;
	border: 1px solid var(--line);
	border-radius: 10px;
	padding: 14px 18px;
	background: #fff;
    transition: all 200ms ease 50ms;

}

.nav-btn:hover{
    transform: translateY(-4px);
    box-shadow: 0px 6px 5px #04aa6d62;
}

.nav-btn .lbl {
	font-family: 'JetBrains Mono', monospace;
	font-size: 10.5px;
	color: var(--slate);
	display: block;
	margin-bottom: 4px;
}
.nav-btn .title {
	font-size: 14px;
	font-weight: 700;
}
.nav-btn.next {
    color: #04AA6D;
    text-decoration: none;
	text-align: left;
    transition: all 250ms ease 200ms;
}

.nav-btn.prev {
	text-align: right;
    cursor: not-allowed;
}


code{
    font-family: 'JetBrains Mono', monospace;
    color: #04AA6D;
    border-radius: 5px;
    background-color: #2c2c2c0e;
    padding: 4px;
    border: #2c2c2c30;
}


/* ---------------------------------------------------------------- */
/* ---------------------------------------------------------------- */
/* ---------------------------------------------------------------- */
/* ---------------------------------------------------------------- */
/* ---------------------------------------------------------------- */
/* ---------------------------------------------------------------- */
/* ---------------------------------------------------------------- */
/* ---------------------------------------------------------------- */
/* ---------------------------------------------------------------- */
/* ---------------------------------------------------------------- */


footer{
    background-color: rgb(253, 253, 253);
    border-top: 1px solid rgba(11,15,14,0.12);
    padding: 48px 0 30px;
}





.footer-bottom-content{
    display: flex;
    justify-content: space-between;
    gap: 15px;

}

.RS-Logo{
    position: absolute;
    width: 60px;
    height: 60px;
    top: 10px;
    left: 10px;
}

/* ================================================================== */
/* RESPONSIVE — added for widths below the 1680px base design         */
/* ================================================================== */



@media screen and (max-width:1624px) {

    .container-1-2{
        gap: 100px;
    }
    
}


@media screen and (max-width:1385px) {

    .container-1-2{
        gap: 50px;
        width: 99%;
    }
    
    
}



@media (max-width:980px){ 


    

    

    .container-1-2{
        margin-left: auto;
        margin-right: auto;
        flex-direction: column-reverse;
        gap: 10px;
        width: 80%;

    }

    aside.side{
        border: 1px solid #04AA6D;
        width: 100%;
        height: 200px;
        overflow-x: auto;
        padding: 15px;
    }

    

}
@media screen and (max-width:935px) {

    .container-1-2{
        gap: 10px;
    }
    
}

@media screen and (max-width:750px) {

    .container-1-2{
        gap: 15px;
        width: 90%;
    }
    
}

@media screen and (max-width:500px) {


    .container-1-2{
        width: 95%;
    }
    

    main.content h1 {
        font-size: 25px;
        margin-bottom: 14px;
    }

    main.content p{
        font-size: 13.5px;
    }

    main.content h2{
        font-size: 18px;
    }

    main.content ul.plain li, main.content ol.plain li{

        font-size: 13px;

    }

    .up-links{
        font-size: 14px;
    }
            
    .lessons{
        margin-top: 0px;
        
    }

    .lessons a , .lessons .lessons-name .up-active{
        font-size: 10px;
        padding: 6px 10px;
    }

    .devschool-wordmark {
        width: 80px;
        height: 16px;
    }

    .Logo-Icon {
        width: 16px;
        height: 16px;
    }

    .up-header{
        padding: 12px;
    }
}


@media screen and (max-width:428px) {

    .container-1-2{
        gap: 20px;
    }

    main.content h1{
        font-size: 21px;
    }
    
}


@media screen and (max-width:435px) {

    .container-1-2{
        gap: 1px;
    }
    
    main.content p{
        min-width: 0px;
        max-width: clamp(100px, 90vw , 680px);
    }

    .nav-btn .title{
        font-size: 12px;
    }

    .lesson-nav{
        max-width: clamp(100px, 90vw , 680px);

    }

    .code-card{
        max-width: clamp(100px, 90vw , 680px);
  
    }

    .footer-texts{
        font-size: clamp(9px , 3vw , 16px);
    }
}


@media screen and (max-width:358px) {

    .footer-bottom-content{
            font-size: 10px;
        }

    .container-4 .right p{
        font-size: 10px;
    }
    
    .nav-btn .title {
        font-size: clamp(9px , 3vw , 16px);
    }

    .container-4 .right p , .container-4 .right .footer-bottom-content p{
        font-size: clamp(9px , 3vw , 16px);
    }
}



@media screen and (max-width:265px) {

    .w-error{
        display: block;

    }

    .container-1 , .container-1-2 , .container-4{
        display: none;
    }

    
}


@media screen and (max-width:168px) {

    .w-error-content{
        line-height: 32vw;
        font-size: 16px;
    }
    
}

@media screen and (max-width:70px) {

    .w-error-content{
        line-height: 40vw;
        font-size: 12px;
    }
    
}