/*           */
/* ---- Hamburger Navigation through the oblomki pamiati --- */
/*                                                          */
#menuToggle {
    display: block;
    position: fixed;
    top: 0.5rem;
    /*left: 50px;*/
    right: 0.5rem;
    z-index: 1;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
    /* background-color: #c3512f;  Hamburger background color  */
    padding: 10px 10px 5px 10px;
}
#menuToggle input {
    display: block;
    width: 46px;
    height: 36px;
    position: absolute;
    top: 0px;
    left: 0px;
    cursor: pointer;
    opacity: 0; /* hide this */
    z-index: 2; /* and place it over the hamburger */
    -webkit-touch-callout: none;
}
/*
 * Just a quick hamburger
 */
#menuToggle span.hmb {
    display: block;
    width: 6px;
    height: 6px;
    margin-bottom: 5px;
    position: relative;
    background: #fefefe; /* Hamburgerlines color */
    border-radius: 3px;
    z-index: 1;
    transform-origin: 4px 0px;
    transition: transform .5s cubic-bezier(0.77, 0.2, 0.05, 1.0), background 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0), opacity 0.5s ease;
}
/*
#menuToggle span.hmb:first-child {
    transform-origin: 0% 0%;
}
*/
/*
#menuToggle span.hmb:nth-last-child(2) {
    transform-origin: 0% 100%;
}
*/
/* 
 * Transform all the slices of hamburger
 * into a crossmark.
 */
#menuToggle input:checked ~ span {
    opacity: 1;
    background: #003333; /* Hamburgerlines color */
    transform: rotate(45deg) translate(-2px, -1px);
}
/*
 * But let's hide the middle one.
 */
/*#menuToggle input:checked ~ span:nth-last-child(3) {
    opacity: 1;
    transform: rotate(0deg) scale(0.2, 0.2);
} */
/*
 * Ohyeah and the last one should go the other direction
 */
/*
#menuToggle input:checked ~ span:nth-last-child(2) {
    transform: rotate(-45deg) translate(0, -1px);
}
*/
/*
 * Make this absolute positioned
 * at the top left of the screen
 */
#menu {
    /*position: absolute;*/
    position: fixed;
    top: 0;
    right: 0;
    /*margin: -100px 0 0 -50px;*/
    margin: 0 -100px 0 0;
    padding: 1rem;
    padding-top: 2rem;
    background: #ededed;
    /*list-style-type:upper-roman;
	list-style-position:outside;
    text-align: right;*/
    -webkit-font-smoothing: antialiased;
    /* to stop flickering of text in safari */
    /*transform-origin: 0% 0%;*/
    /*transform: translate(-100%, 0);*/
    /*transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0);*/
    -webkit-transition: -webkit-transform 0.5s;
    -moz-transition: -moz-transform 0.5s;
    -ms-transition: -ms-transform 0.5s;
    -o-transition: -o-transform 0.5s;
    transition: transform 0.5s;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
}
#menuul {
    list-style-type:upper-roman;
}


@media screen  and (max-width: 959px) {
#menu {
    width: 320px;
    -webkit-transform: translateX(320px);
    -moz-transform: translateX(320px);
    -ms-transform: translateX(320px);
    -o-transform: translateX(320px);
    transform: translateX(320px);
}
}

@media screen and (min-width: 960px) {
#menu {
    width: 480px;
    -webkit-transform: translateX(480px);
    -moz-transform: translateX(480px);
    -ms-transform: translateX(480px);
    -o-transform: translateX(480px);
    transform: translateX(480px);
}
}
#menu li {
    padding: 0.1rem 0;
}
/*
 * And let's slide it in from the left
 */
#menuToggle input:checked ~ div {
    -webkit-transform: translateX(1px);
    -moz-transform: translateX(1px);
    -ms-transform: translateX(1px);
    -o-transform: translateX(1px);
    transform: translateX(1px);
}
.gmb-link span{
    font-size:1rem;
}
.gmb-link span.hmb-content{
    font-size:0.8rem;
    padding:0 0 0 0.2rem;
}
.gmb-link:link{
    text-decoration: none;
    color:rgb(0,0.2,0.2);
}
.gmb-link:active{
    text-decoration: none;
    color:rgb(0,0.2,0.2);
}
.gmb-link:visited{
    text-decoration: none;
    color:rgb(0,0.2,0.2);
}
.gmb-link:hover{
    text-decoration: none;
    color:dodgerblue;
}
/* ---- End of Hamburger Navigation through the oblomki pamiati --- */

