
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    padding: .1% .5% .1% .5%;
    overflow: hidden;
}

.fixed_container {
    position: fixed;
    display: flex;
    box-shadow: rgba(4, 0, 3, 0.12) 0 .25rem .3rem 0;
    z-index: 5;
    width: 99vw;
    flex-flow: row nowrap;
    border: #b3b4b3 1px solid;
}

#background {
    position: absolute;
    top: 135px;
    background-size: 20rem 12rem;
    width: 100%;
    height: 100vh;
    opacity: .05;
    z-index: -10;
}

/*region  *****  Menu ****   */

nav {
    display: flex;
    position: fixed;
    box-shadow: rgba(4, 0, 3, 0.12) 0 .25rem .3rem 0;
    z-index: 5;
    width: 99vw;
    flex-flow: row nowrap;
    border: #b3b4b3 1px solid;
    margin-top: 100px;
    height: 35px;
    background-color: rgba(255, 239, 216, 1);
    margin-bottom: 1vh;
    font-family: mf_vazir;

}

#cm_menu {
    width: 50%;
}

#logo_mini {
    display: flex;
    width: 50%;
    flex-direction: row;
    justify-content: end;
}

/*endregion*/

/*region  ****  Header ****   */
header {
    border-radius: 1rem 1rem 0 0;
    height: 100px;
    background: white no-repeat;
}

/*header img{*/

#header_box {
    width: 100%;
    padding-right: 10px;
    height: 100%;
    z-index: 1;
}

#header_title_top {
    height: 70%;
    font-family: mf_nastaliqh, serif;
    text-decoration: none;
    /*font-size: 8vh;*/
    color: blue;
    text-shadow: rgba(100, 100, 255, .5) 1px 1px;
}

#header_title_bottom {
    height: 30%;
    font-family: mf_nastaliqh, serif;
    /*font-size: 1em;*/
    color: blue;
    white-space: nowrap;
    text-shadow: rgba(100, 100, 255, .5) 1px 1px;

}

/*endregion*/

/*region  ****  Middle Body ****   */
#middle_body {
    height: 81.5vh;
    min-height: 81.5vh;
    position: relative;
    flex: 1;
    display: flex;
    box-sizing: border-box;
    padding: 0;
    z-index: 3;
    background-color: rgba(255, 255, 255, .2);

    align-items: center;
    flex-flow: column;
    overflow-y: scroll;
    overflow-x: hidden;
    bottom: 10px;
    /*right: 240px;*/
    top: 157px;
    /*max-width: 87.5%;*/
    /*تنظیم عرض با استفاده از اسکریپت*/
    white-space: nowrap;
}

g-slider {
    width: 90%;
    /*height: 40%;*/
    /*min-height: 40%;*/
    border: gray 1px solid;
    border-radius: 10px;
    box-shadow: rgba(213, 214, 213, 0.67) 5px 5px;
    margin-top: 10px;
    font-family: mf_sahel;
    font-size: 16px;
}

pre {
    padding: 15px;
    font-family: mf_vazir;
    text-align: center;
    font-weight: 600;
    font-size: 1.1rem;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

#slide_menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: absolute;
    color: #ffd868;
    right: 0;
    width: 55%;
    height: 100%;
    background: rgba(0, 0, 0, .8);
    z-index: 999;
    transform: translateX(110%);
    font-family: mf_vazir;
    transform: translateX(110%);
    transition: transform .35s ease-in .2s;

}

/*endregion*/

/*region  ****  Sidebar *****   */
#sidebar {
    height: 81.5vh;
    position: fixed;
    display: flex;
    box-sizing: border-box;
    min-width: 220px;
    padding: 0;
    z-index: 3;
    width: 12%;
    background-color: rgba(0, 0, 0, 0.57);
    border: gray 2px solid;
    border-radius: 10px;
    align-items: center;
    flex-flow: column nowrap;
    overflow: hidden;
    bottom: 10px;
    top: 140px;
    justify-content: flex-start;
    margin-top: 2vh;

}

#sidebar * {
    font-family: mf_vazir, serif;
    font-size: .8rem;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color: #ffd868;
    display: flex;
    align-items: center;
    flex-flow: column;
    width: 100%;
}

#sidebar_top, #sidebar_top2 {
    padding-top: 1rem;
    font-family: mf_vazir, serif;
    font-size: .9rem;
    width: 100%;
    flex-flow: column;
    align-items: center;
    color: #ffd868;
}

.dotted_line {
    border-bottom: 1px dotted;
    margin: .5rem !important;

}

#sidebar_logo {
    width: 80%;
    position: absolute;
    bottom: 6.5rem;
}

#address_box {
    /*border:white solid 1px;*/
    width: 95%;
    position: absolute;
    bottom: 1.5rem;
}

#sidebar_top, #sidebar_top2 p {
    font-size: 1rem;
    font-weight: 800;
    text-align: center;
}

.display-date {
    font-weight: 600;
}

.display-time {
    display: flex;
    width: 60% !important;
    font-size: 1.4rem !important;
    font-weight: bold;
    border: 2px solid #ffd868;
    padding: .5rem;
    border-radius: 5px;
}

#info_box_1 {
    width: 100%;
    color: #ffd868;
    display: flex;
    bottom: 0;
    flex-flow: column;
    font-family: mf_vazir, serif;
    font-size: .8rem;
    align-items: center;
    cursor: pointer;
    text-decoration: none;
}

.copyright {
    align-items: center;
    font-size: .8rem !important;
    width: 95% !important;
    /*color: cyan !important;*/
    position: absolute;
    bottom: .1rem;
    z-index: 20;
}

/*endregion*/

@media screen and (max-width: 800px) {

    #header_title_top {
        height: 100%;
        color: black;
    }

    #header_title_bottom {
        height: 0%;
        display: none;
    }

    #sidebar {
        display: none;
    }

    #side_of_public {
        writing-mode: vertical-lr;
        font-size: .7rem;
    }

    #middle_body > img {
        width: 60% !important;
        opacity: .6 !important;
    }

    /*
    g-slider {
        min-height: 20%;
    }
    */
    #cm_menu {
        flex-direction: column;
        width: 100%;
        background: #ffd868;
        margin-top: 30px;
        width: 95%;

    }

    .slide-on {
        transform: translateX(0%) !important;
        transition: transform .35s ease-out .2s;
    }

    #logo_mini {
        width: 90%;
    }

    #slide_menu {
        align-items: center;
    }

    #clock_date_box {
        align-items: center;
        display: flex;
        flex-direction: column;
    }

    .display-date, .display-time {
        width: 90% !important;
        text-align: center;
        justify-content: center;
    }

    #address_box {
        font-size: .6rem;
        text-align: center;
        transform: translateX(10%);
    }

    pre {
        font-size: .85rem !important;
    }

}
