@import url('https://fonts.googleapis.com/css2?family=Funnel+Sans:ital,wght@0,300..800;1,300..800&family=Jost:ital,wght@0,100..900;1,100..900&family=Noto+Kufi+Arabic:wght@100..900&family=Zain:ital,wght@0,200;0,300;0,400;0,700;0,800;0,900;1,300;1,400&display=swap');

* {
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

:root {
    --header-ar-font: "Noto Kufi Arabic", sans-serif;
    --header-fr-font: "Funnel Sans", sans-serif;
    --fr-font: "Jost", sans-serif;
    --ar-font-Two: "Zain", sans-serif;
    --header-background: #f4d081;
    --navbar-color: #000;
    --button-color: #f4d081;
}

header {
    height: 65px;
    width: 100%;
    display: flex;
    background: var(--header-background);
    box-shadow: 0px 0px 2px 0px black;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.logo-box {
    height: 65px;
    width: 25%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: hidden;
}

.logo-box img {
    height: 120px;
}


.navbar {
    height: 65px;
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar-link {
    height: 65px;
    width: 15%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    color: #000;
    font-family: var(--header-fr-font);
    position: relative;
    column-gap: 10px;
    text-transform: capitalize;
    
}

#activated-navlink {
    color: #ffffff;
    text-shadow: 0px 0px 10px #0066ff,0px 0px 10px #0066ff,0px 0px 10px #0066ff,0px 0px 5px #0066ff;
}

.navbar-link:hover {
    color: #ffffff;
    text-shadow: 0px 0px 10px #000000,0px 0px 10px #000000,0px 0px 10px #000000,0px 0px 5px #000000;
}

.navbar-link>i {
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
}

.side-bar {
    display: none;
    align-items: center;
    justify-content: center;
    height: 60px;
    width: 60px;
    position: relative;
}

.side-bar>img {
    position: absolute;
    inset: 0;
    margin: auto;
    height: 40px;
    font-size: 30px;
    display: none;
}

.home-section {
    height: 95vh;
    width: 100%;
    display: grid;
    background-color: #e3e3e3;
    justify-content: center;
    align-content: center;
    border-bottom: 1px solid #00a2ff84;
}
.text {
    height: 20vh;
    width: 100%;
    display: grid;
    align-items: center;
}
.home-section h1 {
    font-size: 40px;
    color: #0095ff;
    font-family: var(--fr-font);
    height: 60px;
    width: 100%;
    text-shadow: 0px 0px 20px #00b7ff,0px 0px 20px #00b7ff,0px 0px 10px #00b7ff;
}
.home-section h1::selection {
    background-color: #0077ff;
}

.home-section h5 {
    font-size: 25px;
    color: #000000;
    font-family: var(--header-fr-font);
    height: 50px;
    width: 100%;
}

.languages {
    height: 20vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.languages img {
    height: 80px;
}

/* couses section */

.cours {
    height: 95vh;
    width: 100%;
    border-bottom: 1px solid #00a2ff84;
    display: flex;
    flex-direction: column;
}

.cours>h1 {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--header-fr-font);
    color: #0072ff;
    column-gap: 5px;
}

.cours>h1>p {
    display: flex;
    color: #007b00;
}

.cours-part {
    height: 90%;
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    column-gap: 40px;
}

.cours-cart {
    height: 85%;
    width: 20%;
    display: flex;
    flex-direction: column;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.142);
    border-radius: 10px;
    transition: 0.5s;
    box-sizing: border-box;
    padding: 10px;
    border-radius: 10px;
    row-gap: 5px;
    position: relative;
}

.cours-cart:nth-child(3)::after {
    content: "Populary";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    margin: auto;
    height: 25px;
    width: 50%;
    background-color: rgb(255, 191, 0);
    text-align: center;
    justify-content: center;
    align-items: center;
    color: #000;
    display: flex;
    font-family: var(--fr-font);
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
}

.cours-cart:hover {
    transform: translateY(-10px);
}

.cours-cart .cart-image {
    height: 200px;
}

.cours-cart>h1 {
    height: 50px;
    width: 100%;
    display: flex;
    align-items: center;
    font-size: 18px;
    font-family: var(--header-fr-font);
    color: #000;
    justify-content: left;
}

.cours-cart>span {
    height: 30px;
    width: 100%;
    display: flex;
    align-items: center;
    font-family: var(--header-fr-font);
    column-gap: 5px;
}

.cours-cart span .fa-clock {
    color: var(--button-color);
}
.cours-cart span .fa-wallet {
    color: #007b00;
}
.cours-cart .checkout {
    height: 40px;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    line-height: 40px;
    border-radius: 50%;
}

.checkout i {
    height: 40px;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    line-height: 40px;
    border-radius: 50%;
    background: var(--button-color);
    color: #fff;
    position: absolute;
    right: 10px;
    bottom: 10%;
    transition: 0.4s;
}

.checkout i:hover {
    box-shadow: 0px 0px 0px 5px #0072ff;
    background: transparent;
    color: #0072ff;
}

.cours-cart .fa-star {
    font-size: 15px;
    color: goldenrod;
}
/* contact-sect */

.contact {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background-color: #e3e3e3;
}

.contact-right {
    height: 90%;
    width: 45%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom-left-radius: 10%;
    border-top-left-radius: 10%;
    background-color: #fff;
}

.contact-left {
    height: 90%;
    width: 45%;
    display: grid;
    align-items: center;
    align-content: center;
    border-bottom-right-radius: 10%;
    border-top-right-radius: 10%;
    background-color: #fff;
    box-sizing: border-box;
    padding-inline: 50px;
    row-gap: 10px;
    position: relative;
}

.contact-right img {
    height: 40vh;
}

.contact-left h3 {
    font-size: 25px;
    font-family: var(--header-fr-font);
}

.contact-left input {
    height: 40px;
    width: 100%;
    text-indent: 20px;
    border-radius: 20px;
    text-align: left;
    border: 0;
    outline: 0;
    background-color: rgb(223, 223, 223);
    box-sizing: border-box;
    position: relative;
}

.contact-left input:focus {
    border: 2px solid #0072ff;
}

.contact-left input:focus::placeholder {
    color: #0072ff;
    transform: translateY(-15px);
}

::placeholder {
    color: gray;
    font-family: var(--header-fr-font);
    font-weight: 700;
    position: absolute;
    transition: 0.5s;
}

.contact-left textarea {
    height: 180px;
    width: 100%;
    border-radius: 25px;
    text-indent: 15px;
    background-color: rgb(223, 223, 223);
    outline: 0;
    border: 0;
}

.contact-left button {
    height: 40px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #00a2ff;
    border-radius: 20px;
    border: 0;
    color: #fff;
    cursor: pointer;
}

.return-up {
    position: fixed;
    height: 40px;
    width: 40px;
    background-color: #fcb045;
    color: #fff;
    font-size: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    bottom: 10px;
    right: 10px;
    border-radius: 50%;
    box-shadow: 0px 0px 4px black;
    text-decoration: none;
    z-index: 70000;
}
.return-up i {
    position: relative;
    height: 40px;
    width: 40px;
    align-items: center;
    justify-content: center;
    display: flex;
}

.return-up i::after {
    height: 20px;
    width: 100px;
    padding: 5px;
    content: attr(data-after);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: absolute;
    right: 120%;
    background-color: #fcb045;
    border-radius: 40px;
    font-family: var(--header-fr-font);
    transform: scale(0);
    transition: 0.1s;
    z-index: 6000;
}

.return-up i:hover::after {
    transform: scale(1);
}

footer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 90vh;
    width: 100%;
    background: #f4d081;
}

.row-part {
    height: 100%;
    width: 100%;
    box-sizing: border-box;
    padding-inline: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pages-part {
    height: 85%;
    width: 30%;
    display: flex;
    flex-direction: column;
    font-family: var(--header-fr-font);
    box-sizing: border-box;
    padding: 30px;
}

.pages-part label {
    height: 40px;
    color: #005eff;
    font-weight: 700;
    font-size: 19px;
}

.pages-part a {
    height: 45px;
    color: #00000081;
    border-bottom: 1px solid black;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.pages-part a:hover {
    color: #000;
}

/* second-part */

.faqs-part {
    height: 85%;
    width: 30%;
    display: flex;
    flex-direction: column;
    font-family: var(--header-fr-font);
    box-sizing: border-box;
    padding: 30px;
}

.faqs-part label {
    height: 40px;
    color: #005eff;
    font-weight: 700;
    font-size: 19px;
}

.faqs-part>a {
    height: 45px;
    color: #00000081;
    border-bottom: 1px solid black;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.faqs-part>a:hover {
    color: #000;
}

.social-part {
    height: 80px;
    width: 100%;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    padding: 10px;
    column-gap: 10px;
}

.social-part>a {
    box-sizing: border-box;
    height: 39px;
    width: 39px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    border-radius: 50%;
    transition: 0.4s;
}

.social-part a:hover {
    transform: scale(1.19);
}

.social-part a:nth-child(1) {
  background: linear-gradient(0deg,#00c6ff,#0072ff);
}

.social-part a:nth-child(2) {
  background: linear-gradient(45deg,#833ab4,#fd1d1d,#fcb045);
}

.social-part a:nth-child(3) {
    background-color: #00a2ff;
}

.social-part a:nth-child(4) {
    background-color: #ff0000;
}

.social-part a:nth-child(5) {
    background-color: #000;
}

.social-part>a i {
    color: #fff;
    font-size: 18px;
}

.contactes-parts {
    height: 85%;
    width: 30%;
    display: flex;
    flex-direction: column;
    font-family: var(--header-fr-font);
    box-sizing: border-box;
    padding: 30px;
}

.contactes-parts label {
    height: 40px;
    color: #005eff;
    font-weight: 700;
    font-size: 19px;
}

.contactes-parts span {
    cursor: pointer;
    height: 45px;
    color: #00000081;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.copyright {
    height: 50px ;
    width: 100%;
    background-color: var(--header-background);
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    text-align: center;
    font-family: var(--header-fr-font);
    font-weight: 500;
    font-size: 18px;
}

.loader {
    height: 100%;
    width: 100%;
    position: fixed;
    display: flex;
    top: 0;
    left: 0;
    background: url(../Loader/Loader.gif);
    background-position: center;
    background-repeat: no-repeat;
    background-size: 10%;
    background-color: #fff;
    animation: loader 1.4s;
    z-index: 9999999;
}

@keyframes loader {
    to{
        display: flex;
    }
}

.loader.finl {
    display: none;
}

.addmsg {
    height: 300px;
    width: 300px;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0%;
    left: 0;
    right: 0;
    margin: auto;
    align-items: center;
    align-content: center;
    justify-content: flex-start;
    border-radius: 10px;
    box-shadow: 0 0 2px black;
    box-sizing: border-box;
    padding: 20px;
    row-gap: 20px;
    z-index: 199000;
    transform: scale(0);
    opacity: 0;
    transition: scale 0.4s, opacity  0.5s ease-in-out;
}

.addmsg.alertwork {
    transform: scale(1);
    opacity: 1;
    top: 30%;
}

.addmsg>img {
    height: 160px;
}

.addmsg h1{
    font-size: 16px;
    height: 40px;
    width: 100%;
    text-align: center;
    font-family: var(--header-fr-font);
}

.addmsg .xclose{
    height: 40px;
    letter-spacing: 1px;
    width: 60%;
    color: #fff;
    background-color: rgb(0, 167, 0);
    border-radius: 5px;
    border: 0;
}

.xclose:active {
    background-color: greenyellow;
    color: #000;
}

.video-welcome {
    position: fixed;
    height: 100vh;
    width: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    inset: 0;
    margin: auto;
    background-color: #ffffffb1;
}

.video-welcome video {
    height: 70%;
}
.video-welcome>i {
    font-size: 40px;
    color: #000;
    position: absolute;
    top: 5%;
    right: 5%;
    cursor: pointer;
}

.video-welcome>i:active {
    color: var(--button-color);
}

.video-welcome.activate {
    display: flex;
}

@media (max-width:950px) {
    header {
        box-sizing: border-box;
        padding-inline: 20px;
    }
    .logo-box img {
        height: 110px;
        overflow: auto;
    }
    .side-bar {
        display: flex;
    }
    .logo-box {
        width: 40%;
        overflow: hidden;
    }
    .side-bar {
        display: flex;
    }
    .side-bar img.active {
        display: flex;
    }
    .navbar {
        position: absolute;
        display: none;
        flex-direction: column;
        top: 65px;
        right: 0;
        height: 50vh;
        width: 100%;
        background: #008cff;
        justify-content: start;
        z-index: 2100;
    }
    .navbar.active {
        display: flex;
    }
    .navbar-link {
        height: 60px;
        width: 90%;
        align-items: center;
        justify-content: left;
        box-sizing: border-box;
        color: #fff;
        border-bottom: 1px solid #ffffff56;
    }
    .navbar-link:nth-child(5) {
        border-bottom: none;
    }
    .navbar-link:hover {
        color: #000000;
    }
    .navbar-link:hover {
        color: #ffffff;
        background-color: #00000073;
    }
    .navbar-link i {
        height: 100%;
        width: 15%;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .home-section {
        height: 60vh;
        width: 100%;
        display: grid;
        background-color: #e3e3e3;
        justify-content: center;
        align-content: center;
    }

    .cours {
        height: 200vh;
        width: 100%;
        background-color: #e3e3e3;
        border-bottom: 1px solid #00a2ff84;
        display: flex;
        flex-direction: column;
    }

    .cours h1 {
        font-size: 20px;
        height: 10vh;
    }
    .cours-part {
        height: 90%;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        column-gap: 40px;
        row-gap: 20px;
        z-index: 10;
    }
    
    .cours-cart {
        height: 40vh;
        width: 90%;
        background-color: #fff;
    }

    .cours-cart .cart-image {
        height: 100px;
    }

    .cours-cart h1 {
        font-size: 13px;
    }

    .cours-cart:hover {
        transform: translateY(-10px);
    }

    .cours-cart span {
        height: 20px;
        width: 100%;
        display: flex;
        align-items: center;
        font-family: var(--header-fr-font);
        column-gap: 5px;
        font-size: 10px;
    }

    .cours-cart span .fa-clock {
        color: var(--button-color);
    }
    .cours-cart span .fa-wallet {
        color: #007b00;
    }
    .cours-cart .checkout {
        height: 30px;
        width: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        text-decoration: none;
        line-height: 30px;
        border-radius: 50%;
    }
    
    .checkout i {
        height: 30px;
        width: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        text-decoration: none;
        line-height: 30px;
        border-radius: 50%;
        background: var(--button-color);
        color: #fff;
        position: absolute;
        right: 10px;
        bottom: 10%;
        font-size: 10px;
        transition: 0.4s;
    }
    
    .checkout i:hover {
        box-shadow: 0px 0px 0px 5px #0072ff;
        background: transparent;
        color: #0072ff;
    }

    .cours-cart .fa-star {
        font-size: 10px;
        color: gold;
    }

    .cours-cart:nth-child(3)::after {
        content: "Populaire";
        position: absolute;
        top: 0;
        right: 100%;
        height: 20px;
        width: 30%;
        font-size: 12px;
        border-top-left-radius: 10px;
        background-color: rgb(255, 191, 0);
        justify-self: left;
    }

    .text {
        height: 15vh;
        width: 100%;
    }
    .home-section h1 {
        font-size: 30px;
        color: #00a2ff;
        font-family: var(--fr-font);
        height: 20px;
        width: 100%;
    }
    
    .home-section h5 {
        font-size: 20px;
        height: 30px;
        width: 100%;
    }
    
    .languages {
        height: 7vh;
        width: 100%;
        justify-content: left;
    }
    .languages img {
        height: 40px;
    }
    .contact-right {
        display: none;
    }
    .contact-left {
        border-radius: 1px;
        width: 100%;
        height: 100%;
    }
    .contact {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 70vh;
        background-color: #dcdcdc;
    }
    footer {
        height: 150vh;
    }
    .row-part {
        display: flex;
        flex-direction: column;
        height: 85%;
        width: 100%;
        padding: 5px;
    }
    .pages-part {
        height: 40%;
        width: 100%;
    }
    .faqs-part {
        height: 24%;
        width: 100%;
    }
    .contactes-parts {
        height: 24%;
        width: 100%;
    }
    .copyright {
        height: 6%;
        width: 100%;
        font-size: 11px;
    }
    .loader {
        background-size: 20%;
    }
    .return-up {
        bottom: 65px;
        right: 10px;
    }
    .return-up i:focus::after {
        transform: scale(1);
    }
    .video-welcome {
        position: fixed;
        height: 100vh;
        width: 100%;
        display: none;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        inset: 0;
        margin: auto;
        background-color: #ffffffb1;
        z-index: 100000;
    }
    
    .video-welcome video {
        height: 25%;
    }
    .video-welcome>i {
        font-size: 25px;
        color: #000;
        position: absolute;
        top: 15%;
        right: 5%;
        cursor: pointer;
    }
}