:root{
    --color1:#007245;
    --color2:#00A252;
    --color3:#8FE600;
    --color4:#6924E8;
    --color5:#DCDDDE;
    --padding1:25px;
    --padding2:5vh;
    --padding3:10vh;
}
*{
    box-sizing: border-box;
    list-style: none;
    text-decoration: none;
    direction: rtl;
    margin: 0;
    padding: 0;
    font-family: 'Rubik', sans-serif;
}
@font-face {
    font-family: 'TsMatka'; 
    src: url(../fonts/TsMatka-Bold.ttf);
  }


/************ multiple selctors ************/  

h1,h2,h3,h4,h5{
    margin:var(--padding1) 0;
}
a{
    color:#fff;
}
h1, h2{
    font-family: 'TsMatka';
}

body {
    background-color: #fff;
    position: relative;
}
#background{
    position: absolute;
    z-index: -100;
    top:calc( var(--padding2) + var(--padding3) );
    left:0;
    height:45vh;
    width:100%;
    background: linear-gradient(90deg, rgba(0,114,69,1) 0%, rgba(0,162,82,1) 100%);
}
#logo-left,#logo-right{
    position: absolute;
    top: 0;
    width:9vw;
    height: 9vw;
    background-size: contain;
    
    background-repeat: no-repeat;
}
#logo-left{
    top:20px;
    left:20px;
    background-image: url(../images/logo.png);
    background-position: left top;
}
#logo-right{
    right:0;
    background-position: center right;
    background-image: url(../images/logo2.png);
}
#main-container{
    max-width:1200px;
    width:80%;
    margin: auto;
    display: flex;
    flex-direction: column;    
}
header{
    width:100%;
    height:var(--padding3);
    display:flex;
    align-items: center;
}


/************ CARUSEL ************/ 
/************************************/ 


#carusel-container{
    width:100%;
    height:40vh;
    margin: auto;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin-bottom: var(--padding2);
    animation: fadeIn 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
}

#carusel-right{
    width: 48%;
    
}
#carusel-pic{
    width:100%;
    height: 100%;
    background-image:url(../images/Banner01.png) ;
    background-position: top center;
    background-size: cover;
    background-repeat: no-repeat;
}
#carusel-left{
    color:#fff;
    width: 48%;
    display: flex;
    flex-direction: column;
    align-self: end;
    align-items: flex-start;
    /* border: 1px solid #222; */
}
#carusel-btn, .green-btn{
    display: inline-block;
    background-color: #8FE600;
    border-radius: 20px;
    padding: 5px 20px;
    margin-top: var(--padding1);
    cursor: pointer;
    user-select: none;
    color: #fff;
    font-weight: bold;
}
#carusel-btn:hover, .green-btn:hover{
    display: inline-block;
    background-color: var(--color2);
    transition: all 0.3s ease-in-out;
}
#carusel-blts{
    width:100%;
    display: flex;
    flex-direction: row;
    margin-top: var(--padding1);    
}
#carusel-blts>li{
    width:15px;
    height: 15px;
    border: 2px solid  #fff;
    border-radius: 50%;
    margin-left:10px;
    cursor: pointer;
    user-select: none;
}
#carusel-blts>li:hover{
    border-width: 5px;
    transition: all 0.3s ease-in-out;
}
#carusel-blts>li#crnt-blt{
    background-color: #fff;
}


/************ LESSONS ************/ 
/************************************/

#lessons-container{    
    width:100%;
    display: flex;
    flex-direction: row;
}

/************ LESSONS-menu ************/


#lessons-menu{
    width:20%;
    padding-top:var(--padding3);
    color: var(--color1);
}
#lessons-menu>ul>li{
    border-top-right-radius: 15px;
    border-bottom-right-radius: 15px;
    padding:5px;
    padding-right: 20px;
    margin-bottom:10px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    user-select: none;
}
#lessons-menu>ul>li:hover{
    box-shadow: 15px 2px 8px -5px rgba(0,0,0,0.2);
    background-color: #fff;
    padding-right: 15px;
    font-weight: bold;
}
#lessons-menu>ul>li#selected{
    background-color: var(--color1);
    color:#fff;
}

/************ LESSONS-CONTAINER ************/

#lessons h1,#lessons h4{
    color: var(--color1);
    font-weight: lighter;
}

#lessons{
    width:80%;
    padding:var(--padding1);
    background-color: #fff;
    box-shadow: 5px -5px 25px -5px rgba(0,0,0,0.5);
}
.lessons-tabs-wrapper{
    overflow: hidden;
    display: flex;
    flex-direction: row;
    align-items: center;
    position: relative;
    width:100%;
}
#lessons-tabs-arrow-left,#lessons-tabs-arrow-right{
    position: absolute;
    background-color: #ffffff;
    background-image: url(../images/arrow.svg);
    background-position:  20% center;
    background-repeat: no-repeat;
    background-size: 50%;
    border-radius: 50%;
    height: 40px;
    width:40px;
    box-shadow: 5px 0px 15px -5px rgba(0,0,0,0.5);    
    cursor: pointer;
    transition: all 0.3s ease-out;
}
#lessons-tabs-arrow-left{
    left: -20px;
    transform: rotate(180deg);
}
#lessons-tabs-arrow-right{
    right: -20px;
}
#lessons-tabs-arrow-left:hover,#lessons-tabs-arrow-right:hover{
    background-color: var(--color2);
    background-image: url(../images/arrow2.svg);
}
.lessons-tabs{
    width:max-content;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content:right;
    position: relative;
    transition: all 0.3s ease-in-out;
    right: 0px;
}
.lessons-tabs>li{
    width:200px;
    height:200px ;
    margin:10px;
    background-color: #fff;
    background-image: url('../images/1.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    transition: all 0.2s ease-in;
    cursor: pointer;
}
.lessons-tabs>li:hover{
    box-shadow: 10px 0 12px -5px rgba(0,0,0,0.2);
    transform: scale(1.01) rotate(-2deg);
}
.lessons-tabs>li>#title{
    position: absolute;
    top: 0;
    left: 0;
    background-color: var(--color2);
    color:#fff;
    padding:5px;
    padding-right: 15px;
    margin-right: 20px;
    border-bottom-right-radius: 20px;
}
.lessons-tabs>li>#bottom-title{
   position: absolute;
   bottom: 0;
   right:0;
   display: flex;
   flex-direction: column;
   align-items: flex-start;
}
.lessons-tabs>li>#bottom-title>#type,.lessons-tabs>li>#bottom-title>#time{
    background-color: var(--color1);
    color:#fff;
    border-top-left-radius: 20px;
    margin-top:5px;
    padding:5px;
    padding-left: 15px;
    font-size: 0.7em;
    display: inline-flex;
    flex-direction: row;
    align-items: center;
}
.lessons-tabs>li>#bottom-title>#type>#type-pic,.lessons-tabs>li>#bottom-title>#time>#time-pic{
    width:15px;
    height: 15px;
    background-image: url('../images/1x/icon2.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    margin-left: 5px;

}

.e-learning{
    background-image:url(../images/icon4.png) !important;
}
.podcast{
    background-image:url(../images/icon3.png) !important;
}
.clip{
    background-image:url(../images/icon5.png) !important;
}
.lecture{
    background-image:url(../images/icon2.png) !important;
}



/************ INNER PAGE  ************/ 
/************************************/

#inner-page-lesson{
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    width: 100%;
}
#inner-page-lesson h1{
    margin-top:0;
}
#inner-lesson-image{
    width:32%;
    background-image: url('../images/1.png');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

#inner-lesson-content{
    width:42%;
}
#inner-lesson-content ul>li{
    display: flex;
    align-items: center;
    flex-direction: row;
    margin-bottom:10px ;
}
#inner-lesson-content ul>li>span{
    top: 0;
    margin-left: 10px;
    font-weight: bold;
    color: var(--color1);
}
#inner-lesson-doodle{
    width:14%;
    display: flex;
    flex-direction: column;
    align-items: center;
    align-self: stretch;
    justify-content: space-between;
}

#doodle{
    width:100%;    
    height: 50%;
    background-image: url('../images/1.png');
    background-position: top center;
    background-size: contain;
    background-repeat: no-repeat;
    user-select: none;
}

#back-btn,#module-back-btn{
    background-color: var(--color1);
    font-weight: 100;
}
#module-back-btn{
    margin-top: 0;
    margin-bottom: var(--padding1);
}
#back-btn:hover, #module-back-btn:hover{
    background-color: var(--color2);
}

.e-learning-doodle{
    background-image:url(../images/doodle2.png) !important;
}
.podcast-doodle{
    background-image:url(../images/doodle3.png) !important;
}
.clip-doodle{
    background-image:url(../images/doodle5.png) !important;
}
.lecture-doodle{
    background-image:url(../images/doodle4.png) !important;
}
.course-doodle{
    background-image:none !important;
}


/******************** Bottom buttons *******************/
#more-buttons-container{
    height: 10vh;
    width:80%;
    margin: 5vh 20% ;
    display: flex;
    flex-direction: row;
    justify-content:stretch;
    align-items: stretch;
    justify-items: stretch;
}
#more-buttons-container>a{
    flex-grow: 1;
    margin: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    border: 2px solid var(--color2);
    border-radius: 10px;
    color:var(--color2);
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    box-shadow: 5px 15px 15px -15px rgba(0,0,0,0.5);
}
#more-buttons-container>a:hover{
    background-color: var(--color2);
    transform: scale(1.05);
    font-size: 1.2em;
    color: #fff;
    box-shadow: 0 15px 15px -10px rgba(0,0,0,0.5);
}



/* SCROLLBAR */ 
/************************************/


::-webkit-scrollbar {
    height: 7px;
    width: 7px;
}

::-webkit-scrollbar-thumb {
    background: var(--color2);
}

::-webkit-scrollbar-thumb:hover {
    background: #cbcbcb;
}

::-webkit-scrollbar-track {
    background: #b3bbae;
}


/************ ANIMATIONS ************/ 
/************************************/


@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes flyInLeft {
    0% {
        transform: translateX(100%);
    }
    80% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(0);
    }
}

@keyframes flyInTop {
    from {
        opacity: 0;
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}