:root{
    --primary-color: #1C5568;
    --sec-color: #4b6670;
    --white: #fff;
    --text2-color: #127893;
    --humburger : #F49E2E;
    --main-color : #184e8e;
    --main2-color : #5d7797;
    --text-color : #777;
    --headers-font : Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    --text-font: Verdana, Geneva, Tahoma, sans-serif;
}
/*  to let navbar push content down*/
    body {          
    -webkit-transition-timing-function: ease;
        -o-transition-timing-function: ease;
            transition-timing-function: ease;
    -webkit-transition-duration: 0.5;
        -o-transition-duration: 0.5;
            transition-duration: 0.5;
    -webkit-transition-property: padding-top;
        -o-transition-property: padding-top;
            transition-property: padding-top;
    }
    /* initial style for navbar items */
    #fixed{
        background-color: transparent;
        width: 100%;
    }
    #headernavbar{
        background-color: transparent;
    }
    #inner_nav{
        width: 110%;
        padding-right: 10%;
     }
    #inner_nav a{
    margin: 0 0 0 0;
    font-family: var(--text-font);
    }


/* style when width higher than 1101px (Large Screens) */
@media only screen and (min-width:  1101px){
    #headernavbar{
        display: flex;
        top: 0px;
        direction: rtl;
    }
    #inner_nav{
        width: 110%;
        padding-right: 0%;
        transform: translateX(10%);
        padding-top: 15px;
     }
    nav #logo{
        order: 2;
        margin-right: 100px;
    }
    nav #logo img{
      width: 100px;
      margin-top: 0px;
      margin-bottom: -10px;
    }
    #inner_nav a{
        margin-right: 0px;
        margin-left: 20px;
        font-family: var(--text-font);
    }
    .menu {
        display: none;
    }
    #webapp_cover{
        display: none;
    }
    /* #sixth{
            border: 1px solid var(--primary-color);;
            border-radius: 50px;
        }
        #sixth:hover{
        background-color: var(--primary-color);;
            border-radius: 50px;
            color: white;
        } */
       #first, #second, #third, #fourth, #fifth{
            color: var(--main2-color);
        }
        #first:hover, #second:hover, #third:hover, #fourth:hover, #fifth:hover{
            color: var(--text-color);
        }
}
#inner_nav .active{
   color: var(--main-color);
}
         /* style when width lower than 1100px (Small Screens) */


@media only screen and (max-width:  1100px) {
    #fixed{
        height: 100px;
        background-color: transparent;
    }
    .headernavbar-container{
        background-color: #fff;
    }    
    #headernavbar{
        height: auto;
        top: 5px;
        background-color: transparent;
        }
         #inner_nav{
            margin-top: 20px;
            display: flex;
            flex-direction: column-reverse;
         }
        #inner_nav a{
            text-align: right;
            font-family: var(--text-font);
            width: 100%;
    }
    #inner_nav .active{
   color: #ddd;
}
    nav #logo img{
   margin-left: 250%;
   margin-top: 10px;
   width: 90px;
    }
    @media only screen and (max-width:  1100px) and (orientation: landscape){
        nav #logo{
            margin-left: 15%;
             }

    } 
   /*************************************************************  */

    /* navbar border */
    .navbar-nav{
        margin-top: 20px;
            }
            #inner_nav{
                margin-top: 30px;
            }
            #inner_nav a{
                color: var(--text-color);
                border-radius: 0 25px 25px 0 ;
                background-color: var(--primary-color);
                margin-bottom: 5px;
                padding-left: 45px;
                text-align: left;
                transform: translateX(-1000px);
                font-size: 17px;

                    }
              
            @keyframes example {
                from{
                    transform: translateX(-1000px);
                }
                to{
                    transform: translateX(-30px);
                    display: block;
                }
            }
            @keyframes mynewmove {
                from {margin-top: 0px;}
                to {margin-top: 400px;}
              }
            #first{

                animation-name: example;
                animation-duration: 0.25s;    
                animation-delay: 0s;
                animation-fill-mode: forwards;
            }
            #second{
                animation-name: example;
                animation-duration: 0.25s;    
                animation-delay: 0.25s;
                animation-fill-mode: forwards;

            }
            #third{
                animation-name: example;
                animation-duration: 0.25s;    
                animation-delay: 0.5s;
                animation-fill-mode: forwards;

            }
            #fourth{
                animation-name: example;
                animation-duration: 0.25s;    
                animation-delay: 0.75s;
                animation-fill-mode: forwards;

            }
            #fifth{
                animation-name: example;
                animation-duration: 0.25s;    
                animation-delay: 1s;
                animation-fill-mode: forwards;

            }
            #sixth{
                animation-name: example;
                animation-duration: 0.25s;    
                animation-delay: 1.25s;
                animation-fill-mode: forwards;
            }

     }
@media only screen and (max-width:  1100px)  and ( orientation: landscape) {
    #headernavbar{
        height: auto;
        top: 5px;
        background-color: transparent;
        }
         #inner_nav{
             margin-top: 50px;
            display: flex;
            flex-direction: column-reverse;
            width: 100%;
         }
        #inner_nav a{
            text-align: left;
            font-family: var(--headers-font);
            width: 120%;
    }

}

@media only screen and (min-width:  750px) and (max-width: 780px) and ( orientation: portrait){
    nav #logo img{

   margin-left:500px;
    }
}
   @media only screen and (min-width:  751px) and (max-width: 900px) and ( orientation: landscape){
    nav #logo img{

   margin-left:520px;
    }
}
   @media only screen and (min-width:  901px) and (max-width: 1024px) and ( orientation: landscape){
    nav #logo img{

   margin-left:750px;
    }
}
@media only screen and (max-width:  750px) and ( orientation: landscape){
    nav #logo img{
   /*position: fixed;
   right: 30px;*/
   margin-left:700%;
    }
}        
  /* Humburger Button style */
 #webapp_cover{
        position: absolute;
        top: 0;
        left: 10%;
        width: 39px;
        margin: 0 auto;
        transform: translateY(100%) scale(1.5);
    }
    #menu_button
    {
        width: 35px;
        overflow: hidden;
    }

    #menu_checkbox
    {
        display: none;
    }

    #menu_label
    {
        position: relative;
        display: block;
        height: 29px;
        cursor: pointer;
        
    }

    #menu_label:before, #menu_label:after, #menu_text_bar
    {
        position: absolute;
        left: 0;
        width: 100%;
        height: 3px;
        background-color: var(--humburger);
    }

    #menu_label:before, #menu_label:after
    {
        content: '';
        transition: 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55) left;
    }

    #menu_label:before
    {
        top: 2px;
    }

    #menu_label:after
    {
        top: 10px;
    }

    #menu_text_bar
    {
        top: 18px;
    }

    #menu_text_bar:before
    {
        content: 'MENU';
        position: absolute;
        top: 3px;
        right: 0;
        left: 0;
        color: var(--humburger);
        font-size: 11px;
        font-family: var(--headers-font);
        text-align: center;
    }

    #menu_checkbox:checked + #menu_label:before
    {
        left: -39px;
    }

    #menu_checkbox:checked + #menu_label:afterfixed
    {
        left: 39px;
    }

    #menu_checkbox:checked + #menu_label #menu_text_bar:before
    {
        animation: moveUpThenDown 0.8s ease 0.2s forwards, shakeWhileMovingUp 0.8s ease 0.2s forwards, shakeWhileMovingDown 0.2s ease 0.8s forwards;
    }

    @keyframes moveUpThenDown
    {
        0%{ top:0; }
        50%{ top:-30px;}
        100%{ top:-22px; }
    }

    @keyframes shakeWhileMovingUp
    {
        0%{ transform: rotateZ(0); }
        25%{ transform:rotateZ(-10deg); }
        50%{ transform:rotateZ(0deg); }
        75%{ transform:rotateZ(10deg); }
        100%{ transform:rotateZ(0); }
    }

    @keyframes shakeWhileMovingDown
    {
        0%{ transform:rotateZ(0); }
        80%{ transform:rotateZ(3deg); }
        90%{ transform:rotateZ(-3deg); }
        100%{ transform:rotateZ(0); }
    }

  
