@font-face {
    font-family: "Parastoo";
    src: url("fonts/Parastoo-Print.ttf");
}

@font-face {
    font-family: "Parastoo-bold";
    src: url("fonts/Parastoo-Print-Bold.ttf");
}

::-webkit-scrollbar {
    width: 10px;
    background-color: transparent;
}

::-webkit-scrollbar-corner {
    color: transparent;
}

::-webkit-scrollbar-track {
    box-shadow: inset 0 0 5px rgb(110, 110, 110);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: rgb(140, 140, 140);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgb(120, 120, 120);
}

::-webkit-scrollbar-thumb:active {
    background: rgb(100, 100, 100);
}

* {
    font-family: "Parastoo", Helvetica, sans-serif;
    direction: rtl;
}

body {
    margin: 0 auto;
    background-color: rgb(180, 180, 180);
    overflow-x: hidden;
}

#header {
    position: sticky;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    white-space: nowrap;
    background-color: rgb(150, 150, 150);
    box-shadow: rgba(0, 0, 0, 0.2) 0 10px 10px;
    height: 120px;
    top: 0;
    z-index: 999;
}

#menubutton{
    display: none;
}

.logo {
    height: 100px;
    width: 100px;
}

#identity a {
    text-decoration: none;
}

#identity h1 {
    font-size: 50px;
    line-height: 0;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
    color: black;
}

#identity h2 {
    font-size: 25px;
    line-height: 30px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
    color: black;
}

#navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 120px;
    width: 400px;
}

#navbar li {
    position: relative;
    padding: 0 20px;
    list-style: none;
    font-size: 25px;
    text-shadow: rgba(0, 0, 0, 0.5) 1px 1px 5px;
    font-weight: bold;
}

#navbar li a {
    text-decoration: none;
    color: black;
    transition: 0.25s;
}

#navbar li a:hover {
    color: rgb(65, 150, 195);
    text-shadow: rgba(0, 0, 0, 0.2) 1px 1px 5px;
}

#navbar li a.active {
    color: rgb(65, 150, 195);
    width: 100%;
    height: 100%;
    text-shadow: rgba(255, 255, 255, 0.4) 1px 1px 5px;
}

#navbar li a.active::after {
    content: "";
    position: absolute;
    height: 5px;
    width: inherit;
    right: 0;
    bottom: -41px;
    background-color: rgb(65, 150, 195);
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}

#navbar li form input {
    background-color: transparent;
    border: none;
    text-decoration: none;
    color: black;
    position: relative;
    padding: 0 20px;
    list-style: none;
    font-size: 25px;
    text-shadow: rgba(0, 0, 0, 0.5) 1px 1px 5px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.25s;
}

#navbar li form input:hover {
    color: rgb(65, 150, 195);
    text-shadow: rgba(0, 0, 0, 0.2) 1px 1px 5px;
}

#navbar li form input.active {
    color: rgb(65, 150, 195);
    width: 100%;
    height: 100%;
    text-shadow: rgba(255, 255, 255, 0.4) 1px 1px 5px;
}

#navbar li form input.active::after {
    content: "";
    position: absolute;
    height: 500px;
    width: 100px;
    right: 0;
    bottom: -41px;
    background-color: rgb(65, 150, 195);
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}

#navbar #contact{
    display: none;
}

#contact li {
    list-style: none;
    position: relative;
    right: -35px;
}

#contact li:first-of-type {
    margin-bottom: 20px;
}

#contact li a {
    position: relative;
    text-decoration: none;
    color: black;
    font-weight: bold;
    font-size: 20px;
    padding-right: 5px;
    padding-left: 10px;
    background-color: rgb(45, 135, 175);
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
    transition: 0.25s;
}

#contact li a i {
    display: block;
    position: absolute;
    background-image: url("icons/phone.png");
    background-size: 25px;
    background-repeat: no-repeat;
    background-position: center;
    background-color: inherit;
    height: 40px;
    width: 40px;
    left: -30px;
    top: -5px;
    border-radius: 50%;
}

#contact li a:hover {
    background-color: rgb(75, 165, 205);
}

#contact li a:active {
    background-color: rgb(50, 125, 155);
}

#footer {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 20px 50px;
    background-color: rgb(160, 160, 160);
    height: 200px;
}

#footer div{
    height: 160px;
    width: 200px;
}

.footer-logo {
    height: 160px;
}

.footer-info {
    display: flex;
    flex-direction: column;
}

.footer-info .story {
    text-align: justify;
}

.footer-contact {
    display: flex;
    flex-direction: column;
}

.footer-contact a {
    text-decoration: none;
    color: rgb(0, 17, 255);
    transition: 0.25s ease;
}

.footer-contact a:hover {
    font-size: large;
}

.footer-contact-apps {
    display: inline-flex;
    position: relative;
}

.footer-contact-apps i {
    display: flex;
    position: relative;
    background-size: cover;
    height: 40px;
    width: 40px;
    margin-top: 5px;
    margin-left: 10px;
    transition: 0.3s ease-in;
}

.footer-contact-apps i:hover{
    height: 50px;
    width: 50px;
    transform: rotate(360deg);
}


.footer-contact-apps i.instagram {
    background-image: url("icons/instagram.png");
}

.footer-contact-apps i.telegram {
    background-image: url("icons/telegram.png");
}

.footer-contact-apps i.eita {
    background-image: url("icons/eita.png");
}

.footer-enamad img{
    height: 160px;
}


#copyright {
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgb(150, 150, 150);
    color: black;
    line-height: 0;
}

#copyright a {
    text-decoration: none;
    color: rgb(45, 135, 175);
}

#copyright a:hover {
    color: rgb(90, 179, 218);
}



@media screen and (max-device-width: 1024px) {

    #menubutton{
        display: block;
        background-image: url("icons/menu.png");
        background-color: rgb(180, 180, 180);
        background-size: cover;
        border: 1px white solid;
        border-radius: 50%;
        height: 50px;
        width: 50px;
    }

    #menubutton:active{
        background-color: rgb(150, 150, 150);
    }

    #navbar {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        position: fixed;
        top: 0;
        right: -250px;
        height: 100%;
        width: 200px;
        background-color: rgb(180, 180, 180);
        box-shadow: 0 40px 60px rgba(0, 0, 0, 0.5);
        padding: 120px 10px 0 0;
        transition: 0.25s;
    }

    #navbar.active{
        right: 0px;
    }

    #navbar li{
        margin-bottom: 25px;
    }

    #navbar li a.active::after {
        content: "";
        position: absolute;
        height: inherit;
        width: 5px;
        right: 195px;
        bottom: 0;
        background-color: rgb(65, 150, 195);
        border-top-left-radius: 0;
        border-top-right-radius: 5px;
        border-bottom-right-radius: 5px;
    }

    form input{
        margin-right: -20px;
    }

}