:root {
    --background-nacrisferi: #506580;
    --gia-nacrisferi: #9ca0ab;
    --gia-teqsti: #e0dfe6;
    --muqi-lurji: #111827;
    --gia-lurji: #2563eb;
}       

body {
    overflow-x: hidden;
}

/* nav */

nav {
    width: 100%;
    height: 70px;
    background-color: #293b49;
    padding: 0 10em 0 10em;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 999;
    position: relative;
}

.navbar {
    width: 30px;
    height: 30px;
    display: none;
}

nav ul {
    list-style-type: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

nav ul li {
    display: inline-block;
    padding-right: 1em;
}

nav ul li a {
    color: var(--gia-teqsti);
    text-decoration: none;
    font-size: 16px;
    transition: 0.4s color;
    font-weight: 500;
    box-shadow: 0 9px 10px 5px rgba(0, 0, 0, 0.187);
    text-wrap: nowrap;
    font-weight: 500;
}

nav ul li a:hover {
    color: var(--gia-nacrisferi);
}

nav ul li #soon:hover {
    cursor: not-allowed;
}

nav .padnon {
    padding: 0;
}

nav .button {
    background-color: var(--gia-teqsti);
    padding: 0.5em 1.5em 0.5em 1.5em;
    border-radius: 5em;
    color: var(--muqi-lurji);
    font-weight: bold;
    box-shadow: none;
}

nav .button:hover {
    color: var(--muqi-lurji);
}

/* language change */

.course {
    gap: 1em;
}

#relative {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.material-symbols-outlined {
    color: var(--gia-teqsti);
    cursor: pointer;
}

#click-active {
    font-size: 28px;
}

#switch-language {
    position: absolute;
    width: 100px;
    height: 70px;
    background-color: #293b49;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    right: -36px;
    top: 40px;
    gap: 5px;
    padding: 0.3em;
    z-index: 9999;
    border-radius: 0 0 8px 8px;
}

.remove {
    padding: 0;
}

#switch-language.active {
    display: flex;
}



/* responsive navbar */

@media(max-width: 1270px) {
    .head-main, nav {
        padding: 0 3em 0 3em;
    }
}

@media(max-width: 1110px) {
    .head-main .logo p, .head-main .logo span {
        font-size: 27px;
    }
}

@media(max-width: 1000px) {
    .contact_location {
        display: none;
    }
    .img {
        width: 300px;
    }
}

@media(max-width: 900px) {
    .head-main, nav {
        padding: 0 2em 0 2em;
    }
    .navbar {
        display: block;
        position: relative;
        cursor: pointer;
    }
    .rela {
        position: absolute;
        width: 100%;
        height: 310px;
        flex-direction: column;
        background-color: #293b49;
        top: 68px;
        left: -150%;
        transition: .8s left, 2.5s opacity, 2s box-shadow;
        gap: 25px;
        border-radius: 0 0 10px 0;
        opacity: 0;
    }
    .rela.active {
        left: 0%;
        opacity: 1;
    }
    nav .button {
        font-size: 18px;
        padding: 0.3em 1.1em 0.3em 1.1em;
        box-shadow: none;
    }
    .head-main, nav {
        padding: 0 2em 0 2em;
    }
    #cardImage {
        padding: 1.5em 0;
    }
}

@media(max-width: 500px) {
    #popular, .card {
        width: 98%;
    }
}

@media(max-width: 550px) {
    .head-main .logo p, .head-main .logo span {
        font-size: 20px;
    }
    .head-main, nav {
        padding: 0 1em 0 1em;
    }
}