/**** Mobile Menu ****/

/*** Menu List ***/

nav.topmenu {
    position: fixed;
    right: 20px;
    top: 80px;
    height: auto; 
    max-height:0; 
    overflow: hidden; 
    transition: all 0.5s;
    z-index: 100;
}

nav.topmenu ul {
    box-shadow: -5px 5px 10px rgba(50,50,50,0.7);
    background: #3560a6;
    border-radius: 5px;
    list-style: none;
    padding: 0px;
    width: 200px;
}

.topmenu ul li {
    padding: 15px 5px 15px 20px;
    border-bottom: 1px solid #ccc;
}

.topmenu ul li a {
        color: #fff;
        text-transform: uppercase;
        font-size: 100%;
        font-weight: 600;
        letter-spacing: 0.03em;     
        }

/*** Mobile Button ***/

#btn_menu:checked + .btn_menu  + nav.topmenu { 
    max-height: 600px; 
}

label.btn_menu { 
   display: block;
   width: 60px; height: 50px; 
   position: fixed; 
    right: 20px;
    top: 15px;
   border-radius: 4px; 
    z-index: 101;
    cursor: pointer;
}

input#btn_menu {display:none}

.line { 
   position: absolute; 
   left:10px;
   height: 5px; width: 40px; 
   background: #3560a6; border-radius: 2px;
   display: block; 
   transition: 0.2s; 
   transform-origin: center; 
}

.line:nth-child(1) { top: 10px; }
.line:nth-child(2) { top: 22px; }
.line:nth-child(3) { top: 34px; }

#btn_menu:checked + .btn_menu .line:nth-child(1){
   transform: translateY(12px) rotate(-45deg);
}

#btn_menu:checked + .btn_menu .line:nth-child(2){
   opacity:0;
}

#btn_menu:checked + .btn_menu .line:nth-child(3){
   transform: translateY(-12px) rotate(45deg);
}

/*** Responsive Styles ***/

@media (min-width: 1000px) {
    
    #btn_menu, .btn_menu {
        max-height: 0px;
        visibility: hidden;
        }
    
    nav.topmenu {
        position: absolute;
        left: 10px;
        top: 0px;
        max-height: 50px;
        z-index: 100000;
        }
    
    nav.topmenu ul {
        background: none;
        width: auto;
        border: none;
        box-shadow: none;
    }
    
    .topmenu ul li {
        display: inline;
        letter-spacing: 0.03em;
        padding-right: 20px;
        }
    
    .topmenu ul li a {
        color: #000;
        text-transform: uppercase;
        font-weight: 600;
        }
    
    .topmenu ul li a:hover {
        color: #3560a6;
        }
}

