﻿
/**** hamburger ****/
.hamburger {
    float: right;
}

.c-hamburger {
    display: block;
    position: relative;
    overflow: hidden;
    margin: 0;
    padding: 0;
    width: 64px;
    height: 100%;
    font-size: 0;
    text-indent: -9999px;
    appearance: none;
    box-shadow: none;
    border-radius: 0;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
    position: relative;
    margin: 0;
    padding: 0;
    float: right;
    right: 0;
    left: auto;
    margin-left: 5px
}

    .c-hamburger:focus {
        outline: none;
    }

    .c-hamburger span {
        display: block;
        position: absolute;
        top: 24px;
        left: 18px;
        right: 18px;
        height: 2px;
        background: white;
    }

        .c-hamburger span::before,
        .c-hamburger span::after {
            position: absolute;
            display: block;
            left: 0;
            width: 100%;
            height: 2px;
            background-color: #fff;
            content: "";
        }

        .c-hamburger span::before {
            top: -10px;
        }

        .c-hamburger span::after {
            bottom: -10px;
        }

    .c-hamburger, .c-hamburger:hover {
        background-color: #3b9fd7;
    }

        .c-hamburger span {
            transition: background 0s 0.3s;
        }

            .c-hamburger span::before,
            .c-hamburger span::after {
                transition-duration: 0.3s, 0.3s;
                transition-delay: 0.3s, 0s;
            }

            .c-hamburger span::before {
                transition-property: top, transform;
            }

            .c-hamburger span::after {
                transition-property: bottom, transform;
            }

        /* active state, i.e. menu open */
        .c-hamburger.is-active {
            background-color: #3b9fd7;
            position: absolute;
            right: 0;
            left: auto;
            width: 64px;
            height: 48px;
        }

            .c-hamburger.is-active span {
                background: none;
            }

                .c-hamburger.is-active span::before {
                    top: 0;
                    transform: rotate(45deg);
                }

                .c-hamburger.is-active span::after {
                    bottom: 0;
                    transform: rotate(-45deg);
                }

                .c-hamburger.is-active span::before,
                .c-hamburger.is-active span::after {
                    transition-delay: 0s, 0.3s;
                }


/**** /header ****/
#menu-div > ul > li > a {
    font-family: "SouthUltraLight";
}

#menu-div {
    display: none;
    background: #3b9fd7;
    width: 420%;
    max-width: 484px;
    z-index: 300;
    color: #fff !important;
}

    #menu-div > ul {
        padding-bottom: 100%;
        padding-top: 80px;
    }

        #menu-div > ul > li {
            color: #fff !important;
            border-bottom: 1px #89c5e7 solid;
            padding: 0 44px;
            height: 69px;
            line-height: 69px;
            text-align:right;
        }

            #menu-div > ul > li > a {
                color: #fff !important;
                display: block;
                width: 100%;
                height: 100%;
                text-decoration: none;
            }

            #menu-div > ul > li:first-child {
                border-top: 1px #89c5e7 solid;
            }

            #menu-div > ul > li:hover {
                background: var(--main-color);
                cursor: pointer;
            }


#overlay-bg {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 9999;
}






@media (max-width: 768px) {
    #menu-div {
        width: 151%;
        z-index: 99999;
    }

        #menu-div > ul {
            padding-bottom: 20px;
        }

    .menu-logos {
        background: #3b9fd7;
        margin: 0;
        padding: 0;
        height: 190px;
        margin-top: -10px;
        margin-right: 20px;
    }

    #yad .main-bar .master-manu .menu-logos img {
        position: relative;
        right: 0;
    }

    .menu-logos .logo-FJMS {
        margin-right: 20px;
    }

        .menu-logos .logo-FJMS img {
            max-width: 120px;
        }

    .menu-logos .logo-MJH {
        clear: both;
        margin: 20px 0;
    }

    .menu-logos .logo-ZD {
        margin: 20px;
    }


    /*.logo-MJH{background: url(/National_Library/oe_/https://www.nli.org.il/src/assets/css/images/logo_MJH.png) no-repeat; background-position:  center; background-size:90px auto; width:90px; height:59px;  float:left; }
.logo-MJH:before{font-family: "KitveyYad"; content:'p'; color:#fff; font-size:44px; float:right; text-align:right; position:relative; right:-45px; top:4px }

.logo-ZD{ background: url(/National_Library/oe_/https://www.nli.org.il/src/assets/css/images/logo_ZD.png) no-repeat; background-position:  center; background-size:contain; width:34px; padding-right:30px; height:30px;   float:right; }
.logo-ZD:before{font-family: "KitveyYad"; content:'n'; color:#fff; font-size:44px; float:right; text-align:right; position:relative;}*/

}

@media (max-width: 410px) {
    #menu-div > ul {
        padding-top: 50px;
    }

        #menu-div > ul > li {
            height: 58px;
            line-height: 58px;
        }
}
