:root {
    color-scheme: light dark;
    --label-color: rgb(5, 5, 5);
    --background-color: #F9F9F9;
    --hover-background: #DCF186;
    --primary-color: #f56c83;
    --secondary-color: #A0E7E5;
    --link-color: #4cb2af;
    --hover-color: #983f4e;
    --label-color-inv: rgb(250, 250, 250);
    --img-border-color: #f5f5f5;
}

@media (prefers-color-scheme: dark) {    
    :root {
        --background-color: #F9F9F9;
    }
}

@media only screen and (min-width:1000px) and (max-width:1200px) {
    :root {
        --content-padding: 9%;
    }
}

@media only screen and (min-width:700px) and (max-width:1000px) {
    :root {
        --content-padding: 4.5%;
    }
}

@media only screen and (min-width:320px) and (max-width:700px) {
    :root {
        --content-padding: 5%;
    }
}

@media only screen and (min-width:50px) and (max-width:320px) {
    :root {
        --content-padding: 2.5%;
    }
}

@font-face {
    font-family: 'Poppins';
    src: url("/static/fonts/Poppins-Regular.ttf") format('truetype');
    font-weight: normal;
}

@font-face {
    font-family: 'Montserrat';
    src: url("/static/fonts/Montserrat-VariableFont_wght.ttf") format('truetype');
    font-weight: 1 900;
}

@font-face {
    font-family: 'Tajawal';
    src: url("/static/fonts/Tajawal-Bold.ttf") format('truetype');
    font-weight: bold;
}

html {
    font-size: 62.5%;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins';
    font-size: 1.8rem;
    background-color: var(--background-color);
    color: var(--label-color);
}

.container {
    margin: 0 auto;
    max-width: 1000px;
    min-width: 320px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 0px var(--content-padding) 0px var(--content-padding)
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2em;
}

a {
    color: var(--link-color);
}

a.logo {
    text-decoration: none;
    color: var(--label-color);
    font-size: 4rem;
    text-transform: uppercase;
    font-weight: 900;
    font-family: 'Montserrat';
    display: flex;
    align-items: center;
    gap: 0.3em;
}

.logo-card {
    border-radius: 1em;
    width: 50px;
}

a.menu-icon {
    justify-content: flex-end;
}
.menu-icon {
    background-color: var(--primary-color);
    -webkit-mask: url("/static/img/icons/menu.svg") no-repeat center;
    mask: url("/static/img/icons/menu.svg") no-repeat center;
    height: 1.5em;
    width: 1.5em;
    display: none;
}

nav.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    flex-wrap: wrap;
}

nav.navbar ul {
    list-style-type: none;
    display: flex;
    gap: 3em;
    align-items: center;
}

nav.navbar ul li a {
    text-decoration: none;
    color: var(--primary-color);
    font-family: 'Montserrat';
    font-weight: 700;
}

nav.navbar ul li a:hover {
    text-decoration: underline;
}

.hero {
    display: flex;
    gap: 1.8em;
    margin: 4em 0 4em 0;
    align-items: center
}

.hero-left {
    width: 60%;
}

h1.hero-title {
    font-family: 'Montserrat';
    margin: 0.35em 0;
}

.hero-buttons {
    margin: 2em 0;
}

a.hero-button {
    text-decoration: none;
    background-color: var(--secondary-color);
    padding: 1em 2em;
    color: var(--label-color);
    font-weight: 700;
    border-radius: 2em;
    font-family: 'Montserrat';
}

a.hero-button:hover {
    text-decoration: underline;
}

.hero-right {
    display: grid;
    gap: 1em;
    column-gap: 1em;
    grid-template-columns: 1fr 1fr 1fr; 
    justify-items: center;
}

.hero-card {
    border-radius: 1em;
    width: 150px;
    border: 5px solid var(--img-border-color);
    box-shadow: 0 5px 10px 0px rgba(78, 74, 74, 0.5);
}

.hero-card1 {
    grid-area: left;
}

.hero-card1 img {
    max-width: 20px;
}

.hero-card2 {
    grid-area: right;
}

.dots {
    height: 40px;
    width: 40px;
    position: relative;
    top: 0;
    left: 0;
    background-color: rgb(93, 47, 47);
}

footer {
    color: var(--primary-color);
    font-size: 1.6rem;
    margin-top: auto;
    margin-bottom: 1em;
    display: flex;
    align-items: center;
    font-family: 'Montserrat';
    justify-content: space-between;
    border-top: 1px dotted pink;
    font-weight: 600;
}

.social-menu ul {
    list-style-type: none;
    display: flex;
    gap: 2em;
}

.ig-icon {
    background-color: var(--primary-color);
    -webkit-mask: url("/static/img/icons/s_ig.svg") no-repeat center;
    mask: url("/static/img/icons/s_ig.svg") no-repeat center;
    height: 1.5em;
    width: 1.5em;
    }

.yt-icon {
    background-color: var(--primary-color);
    -webkit-mask: url("/static/img/icons/yt.svg") no-repeat center;
    mask: url("/static/img/icons/yt.svg") no-repeat center;
    height: 1.5em;
    width: 1.5em;
}

.tk-icon {
    background-color: var(--primary-color);
    -webkit-mask: url("/static/img/icons/tk.svg") no-repeat center;
    mask: url("/static/img/icons/tk.svg") no-repeat center;
    height: 1.5em;
    width: 1.5em;
}

.globe-icon {
    background-color: var(--primary-color);
    -webkit-mask: url("/static/img/icons/globe3.svg") no-repeat center;
    mask: url("/static/img/icons/globe3.svg") no-repeat center;
    height: 1.5em;
    width: 1.5em;
}

.th-icon {
    background-color: var(--primary-color);
    -webkit-mask: url("/static/img/icons/threads.svg") no-repeat center;
    mask: url("/static/img/icons/threads.svg") no-repeat center;
    height: 1.5em;
    width: 1.5em;
}

.mail-icon {
    background-color: var(--primary-color);
    -webkit-mask: url("/static/img/icons/email.svg") no-repeat center;
    mask: url("/static/img/icons/email.svg") no-repeat center;
    height: 1.5em;
    width: 1.5em;
}

.ig-icon:hover, .yt-icon:hover, .tk-icon:hover, .th-icon:hover {
    background-color: var(--hover-color)
}

a.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5em;
    margin-bottom: 0.5em;
}

a.contact-item p {
    margin: 0;
}

.contact-list li:hover {
    text-decoration: underline;
    background-color: rgb(27, 68, 27);
}

.content {
    margin: 1em 0 1em 0;
}

.content-title {
    font-family: 'Montserrat';
}

.language {
    display: flex;
    text-decoration: none;
    color: var(--primary-color);
    align-items: end;
    justify-content: baseline;
    font-weight: 600;
    gap: 0.5em;
}

a.language:hover {
    text-decoration: underline;
}

a.language .arabic {
    font-family: 'Tajawal';
    padding-top: 6px;
    font-weight: bold;
}

a.language .english {
    font-weight: 650;
}

@media only screen and (min-width:701px) and (max-width:1100px) {
    .hero-right {
        grid-template-columns: 1fr 1fr;
    }
}

@media only screen and (min-width:50px) and (max-width:700px) {
    header {
        flex-direction: row;
    }

    .menu-icon {
        display: block;
    }

    nav.navbar ul {
        width: 100%;
        display: none;
    }

    nav.navbar ul {
        margin: 1em 0 0 0;
        padding: 0;
        gap: 0em;
        border: 2px solid var(--primary-color);
        border-radius: 20px;
    }

    nav.navbar li {
        width: 100%;
        display: flex;
        overflow: hidden;
    }

    nav.navbar li:not(:last-child) {
        border-bottom: 1px dotted var(--primary-color);
    }

    nav.navbar li a {
        padding: 15px 15px;
        width: 100%;
    }

    nav.navbar li a:hover {
        background-color: var(--hover-color);        
        text-decoration: none;
        background-color: pink;
    }

    nav.navbar li:first-child a:hover {
        border-top-left-radius: 20px;
        border-top-right-radius: 20px;
    }

    nav.navbar li:last-child a:hover {
        border-bottom-left-radius: 20px;
        border-bottom-right-radius: 20px;
    }
        
    .hero {
        margin-top: 2em;
        margin-bottom: 2em;
    }
    nav ul {
        flex-direction: column;
        display: none;
    }

    .hero {
        flex-direction: column;
    }

    .hero-left {
        width: 100%;
    }

    .hero-right {
        grid-template-columns: 1fr 1fr;
        /* width: 100%; */
    }

    footer {
        align-items: center;
    }
}
