:root{
    --main-dark:#080808;
    --surface-dark:#1A1A1A;
    --surface-hover-dark:#2B2620;
    --dark-text:#F5F2EA;
    --dark-text-hover:#77736A;
    --boarder-dark:#2B2620;

    --main-light:#F5F2EA;
    --surface-light:#FFFFFF;
    --surface-hover-light:#D8C7A8;
    --light-text:#080808;
    --light-text-hover:#1A1A1A;
    --boarder-light:#D8C7A8;
    
    --button-color:#D71920;
    --button-color-hover:#7C0000;

    --font-en-main: "Bebas Neue", sans-serif;
    --font-en: "Inter", sans-serif;
    --font-ar-main: "Changa", sans-serif;
    --font-ar: "IBM Plex Sans Arabic", sans-serif;
}

html[lang="en"]{
    --main-font: var(--font-en);
    --heading-font: var(--font-en-main);
}

html[lang="ar"]{
    --main-font: var(--font-ar);
    --heading-font: var(--font-ar-main);
}

html.mode-dark{
    --main-color:var(--main-dark);
    --surface-color:var(--surface-dark);
    --surface-hover-color:var(--surface-hover-dark);
    --text-color:var(--dark-text);
    --text-hover-color:var(--dark-text-hover);
    --boarder-color:var(--boarder-dark);
}

html.mode-light{
    --main-color:var(--main-light);
    --surface-color:var(--surface-light);
    --surface-hover-color:var(--surface-hover-light);
    --text-color:var(--light-text);
    --text-hover-color:var(--light-text-hover);
    --boarder-color:var(--boarder-light);
}

*{
    margin: 0px;
    padding: 0px;
    box-sizing:border-box;
    font-family: var(--main-font);
}


/* header */
.header{
    display: flex;
    justify-content:space-between;
    align-items: center;
    flex-direction: row;
    height: 90px;
    background-color: var(--main-color);
    gap: 2rem;
    z-index: 1000;
    position: relative;
}


/* logo */
.logo img{
    width: 100px;
    height: auto;
    margin: 10px;
    flex: 0;
    cursor: pointer;
}


/* nav */
.nav-items{
    min-width: 300px;
    flex: 1;
}

.nav-items ul{
    display: flex;
    justify-items: start;
    align-items: center;
    flex-direction: row;
    list-style: none;
}

.nav-items a{
    text-decoration: none;
    color: var(--text-color);
    font-family: var(--heading-font);
    font-size: 19px;
    padding: 10px;
    cursor: pointer;
}

.nav-items a:hover{
    color: var(--text-hover-color);
    transition: 0.3s;
}


/* icons */
.icons-items{
    display: flex;
    align-items: center;
    flex-direction: row;
    gap: 20px;
}


/* language */
.dropdown-lang{
    display: flex;
    align-items: center;
    position: relative;
    padding: 20px;
}

.dropdown-lang img{
    width: 40px;
    height: auto;
}

.dropdown-lang span{
    color: var(--text-color);
    font-family: var(--main-font);
    padding: 10px;
    padding-right: 0px;
    cursor: pointer;
}

.dropdown-lang .drop-icon{
    width: 20px;
    height: 20px;
}

.content-lang{
    position: absolute;
    top: 68px;
    display: none;
}

.content-lang button{
    display: block;
    width: 160px;
    height: 40px;
    background-color: var(--surface-color);
    border: none;
    color: var(--text-color);
    cursor: pointer;
}

.content-lang button:hover{
    background-color: var(--surface-hover-color);
    transition: 0.3s;
}

.first-butt{
    border-radius: 5px 5px 0px 0px;
}

.last-butt{
    border-radius: 0px 0px 5px 5px;
}

.dropdown-lang:hover .content-lang{
    display: block;
}


/* mode */
.mode-switch{
    display: flex;
    align-items: center;
    gap:10px;
}

.mode-switch span{
    color: var(--text-color);
    font-family: var(--main-font);
    padding: 10px;
    padding-right: 0px;
    cursor: pointer;
}


/* toggle */
.theme-toggle{
    width: 60px;
    height: 30px;
    display: inline-block;
    position: relative;
}

.theme-toggle input{
    display: none;
}

.slider{
    position: absolute;
    inset: 0;
    background: var(--main-light);
    border: 2px solid var(--main-dark);
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}


/* circle */
.slider::before{
    content: "";
    position: absolute;
    width: 24px;
    height: 24px;
    top: 1px;
    left: 2px;
    background: var(--main-dark);
    border-radius: 5px;
    transition: 0.3s;
}


/* dark mode */
input:checked + .slider{
    background: var(--main-dark);
    border-color: var(--main-light);
}

input:checked + .slider::before{
    transform: translateX(28px);
    background: var(--main-light);
}


/* auth */
.auth{
    display: flex;
    align-items: center;
    justify-content:center;
    gap: 10px;
    margin-right: 20px;
}

.auth > a:not(.acc-icon){
    background-color: var(--button-color);
    color: var(--text-color);
    font-family: var(--main-font);
    text-decoration: none;
    width:100px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-radius: 5px;
}

.auth > a:not(.acc-icon):hover{
    background-color: var(--button-color-hover);
    color: var(--text-hover-color);
    transition: 0.3s;
}


/* account icon */
.auth .acc-icon{
    width: 42px;
    height: 42px;
    padding: 0px;
    margin: 0px;
    display: none;
    justify-content: center;
    align-items: center;
    background-color: transparent;
    border-radius: 50%;
}

.auth .acc-icon:hover{
    background-color: transparent;
}

.auth .acc-icon img{
    width: 36px;
    height: 36px;
    object-fit: contain;
}


/* drop icon */
.drop-icon{
    width: 20px;
    height: 20px;
    object-fit: contain;
}


/* dropdown */
.dropdown{
    display: none;
    position: relative;
}

.dropdown button{
    margin-right: 20px;
    font-weight: bold;
    font-size: 28px;
    font-family: var(--heading-font);
    color: var(--text-color);
    background-color: transparent;
    border: none;
    width: 40px;
    height: 40px;
    z-index: 6;
}

.dropdown > button:active,
.dropdown > button:hover{
    background-color: var(--surface-hover-color);
    border-radius: 4px;
    border: var(--text-color) 2px solid;
}


/* side menu */
.menu-drop{
    color: var(--text-color);
    font-family: var(--heading-font);
    font-size: 35px;
    font-weight: bold;
    margin-top:26px;
}

.content-drop{
    position: absolute;
    display: none;
    flex-direction: column;
    width:250px;
    background-color: var(--surface-color);
    right: 0px;
    top: -25px;
    align-items: center;
    gap: 15px;
}


/* auth drop */
.auth-drop{
    display: flex;
    flex-direction: row;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.auth-drop > a:not(.acc-icon-drop){
    color: var(--text-color);
    text-decoration: none;
    background-color: var(--button-color);
    font-family: var(--heading-font);
    width: 95px;
    height: 30px;
    margin: 3px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    white-space: nowrap;
    border-radius: 3px;
}

.auth-drop > a:not(.acc-icon-drop):active,
.auth-drop > a:not(.acc-icon-drop):hover{
    color: var(--text-hover-color);
    background-color: var(--button-color-hover);
}


/* account icon drop */
.auth-drop .acc-icon-drop{
    width: auto;
    min-width: 110px;
    height: 34px;
    padding: 0px 10px;
    margin: 3px;
    display: none;
    justify-content: center;
    align-items: center;
    gap: 7px;
    background-color: transparent;
    text-decoration: none;
    border-radius: 4px;
}

.auth-drop .acc-icon-drop:hover,
.auth-drop .acc-icon-drop:active{
    background-color: var(--surface-hover-color);
}

.auth-drop .acc-icon-drop img{
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.auth-drop .acc-icon-drop span{
    color: var(--text-color);
    font-family: var(--main-font);
    font-size: 14px;
    white-space: nowrap;
}


/* dropdown nav */
.nav-items-drop ul{
    display: flex;
    flex-direction: column;
}

.nav-items-drop ul li{
    list-style: none;
    direction: rtl;
    width: 250px;
    height: 40px;
    padding-right: 25px;
    background-color: var(--surface-color);
    display: inline-flex;
    align-items: center;
}

.nav-items-drop ul a{
    text-decoration: none;
    color: var(--text-color);
}

.nav-items-drop ul li:hover,
.nav-items-drop ul li:active{
    background-color: var(--surface-hover-color);
    transition: 0.3s;
}


/* icons drop */
.icons-items-drop{
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: center;
    align-items: center;
}


/* language drop */
.dropdown-lang-drop{
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0px;
}

.lang-line:hover,
.lang-line:active{
    background-color:var(--surface-hover-color);
    transition:0.3s;
}

.dropdown-lang-drop span{
    color: var(--text-color);
}

.lang-line{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 250px;
    height: 40px;
}

.content-lang-drop{
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.content-lang-drop .drop-butt-drop{
    color: var(--text-color);
    font-family: var(--main-font);
    font-size: 18px;
    width: 250px;
    height: 40px;
    font-weight: 400;
    margin: 0px;
}

.drop-butt-drop:hover{
    background-color: var(--surface-hover-color);
    transition: 0.3s;
}


/* mode drop */
.mode-switch-drop{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    height: 40px;
    gap: 10px;
}

.mode-switch-drop span{
    color: var(--text-color);
}


/* footer */
.footer{
    background-color: var(--main-color);
    border-top: 1px solid var(--boarder-color);
    padding: 60px 40px 20px;
}

.footer-cont{
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
}


/* brand */
.footer-brand{
    display: flex;
    flex-direction: column;
    align-items: start;
}

.footer-brand img{
    width: 110px;
    height: auto;
    margin-bottom: 20px;
}

.footer-brand p{
    color: var(--text-hover-color);
    font-size: 14px;
    line-height: 1.7;
    max-width: 260px;
}


/* columns */
.col-footer{
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 12px;
}

.col-footer h3,
.footer-social h3{
    color: var(--text-color);
    font-family: var(--heading-font);
    font-size: 22px;
    font-weight: 400;
    margin-bottom: 8px;
}

.col-footer a{
    color: var(--text-hover-color);
    font-family: var(--main-font);
    font-size: 14px;
    text-decoration: none;
    transition: 0.3s;
}

.col-footer a:hover,
.col-footer a:active{
    color: var(--button-color);
}


/* social media */
.footer-social{
    display: flex;
    flex-direction: column;
    align-items: start;
}

.social-media-logos-footer{
    display: flex;
    flex-direction: row;
    gap: 10px;
}

.social-media-logos-footer a{
    width: 38px;
    height: 38px;
    border: 1px solid var(--boarder-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.3s;
}

.social-media-logos-footer a:hover,
.social-media-logos-footer a:active{
    background-color: var(--button-color);
    border-color: var(--button-color);
}

.social-media-logos-footer img{
    width: 18px;
    height: auto;
}


/* footer bottom */
.footer-down-cont{
    max-width: 1200px;
    margin: 50px auto 0px;
    padding-top: 20px;
    border-top: 1px solid var(--boarder-color);
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.footer-down-cont span{
    color: var(--text-hover-color);
    font-size: 13px;
}

.footer-down-links{
    display: flex;
    flex-direction: row;
    gap: 20px;
}

.footer-down-links a{
    color: var(--text-hover-color);
    font-size: 13px;
    text-decoration: none;
    transition: 0.3s;
}

.footer-down-links a:hover,
.footer-down-links a:active{
    color: var(--text-color);
}


/* tablet */
@media (max-width:1090px){

    .header{
        justify-content: space-between;
    }

    .nav-items{
        display: none;
    }

    .icons-items{
        display: none;
    }

    .auth{
        display: none;
    }

    .dropdown{
        display: flex;
    }

    .footer-cont{
        grid-template-columns: 2fr 1fr 1fr;
        gap: 40px;
    }

    .footer-social{
        grid-column: 1 / -1;
    }

    .slider{
        border-color: var(--surface-color);
    }

}


/* large mobile */
@media (max-width:767px){

    /* header */
    .header{
        height: 70px;
        gap: 0px;
    }


    /* logo */
    .logo img{
        width: 80px;
        margin: 5px 10px;
    }


    /* hamburger button */
    .dropdown > button{
        width: 35px;
        height: 35px;
        font-size: 24px;
        margin-right: 10px;
    }


    /* side menu */
    .content-drop{
        width: 220px;
        top: -18px;
    }


    /* menu title */
    .menu-drop{
        font-size: 28px;
        margin-top: 20px;
    }


    /* nav items */
    .nav-items-drop ul li{
        width: 220px;
        height: 40px;
        padding-right: 20px;
    }


    /* language */
    .lang-line{
        width: 220px;
        height: 40px;
    }

    .content-lang-drop .drop-butt-drop{
        width: 220px;
        height: 40px;
        font-size: 16px;
    }


    /* mode */
    .mode-switch-drop{
        width: 220px;
    }

    .slider{
        border-color: var(--surface-color);
    }


    /* theme switch */
    .theme-toggle{
        width: 50px;
        height: 26px;
    }

    .slider::before{
        width: 20px;
        height: 20px;
    }

    input:checked + .slider::before{
        transform: translateX(22px);
    }


    /* account icon drop */
    .auth-drop .acc-icon-drop{
        min-width: 105px;
        height: 32px;
    }

    .auth-drop .acc-icon-drop img{
        width: 26px;
        height: 26px;
    }


    /* footer */
    .footer{
        padding: 40px 20px 20px;
    }

    .footer-cont{
        grid-template-columns: 1fr 1fr;
        gap: 40px 25px;
    }

    .footer-brand{
        grid-column: 1 / -1;
    }

    .footer-brand img{
        width: 90px;
    }

    .footer-brand p{
        max-width: 300px;
        font-size: 13px;
    }

    .col-footer h3,
    .footer-social h3{
        font-size: 20px;
    }

    .col-footer a{
        font-size: 13px;
    }

    .footer-social{
        grid-column: 1 / -1;
    }

    .footer-down-cont{
        margin-top: 35px;
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .footer-down-links{
        justify-content: center;
    }

}