.lines-button {
    display: inline-block;
    padding: 15px 7.5px;
    -webkit-transition:0.3s;
    transition: .3s;
    cursor: pointer;
    user-select: none;
    border-radius: 4.28571429px;
}
.lines-button:hover {
    opacity: 1;
}
.lines-button:active {
    -webkit-transition:0;
    transition: 0;
    background: rgba(0, 0, 0, 0.1);
}
.lines {
    display: inline-block;
    width: 30px;
    height: 4.28571429px;
    background: #E30613;
    border-radius: 2.14285714px;
    -webkit-transition:0.3s;
    transition: 0.3s;
    position: relative;
    /*create the upper and lower lines as pseudo-elements of the middle line*/
}
.lines:before,
.lines:after {
    display: inline-block;
    width: 30px;
    height: 4.28571429px;
    background: #E30613;
    border-radius: 2.14285714px;
    -webkit-transition:0.3s;
    transition: 0.3s;
    position: absolute;
    left: 0;
    content: '';
    /*-webkit-transform-origin:2.14285714px center;*/
    -webkit-transform:translateZ(2.14285714px);
    -webkit-transform-origin:center;
    transform-origin:2.14285714px center;





}
.lines::before {
    top:7.5px;
}
.lines::after {
    top:-7.5px;
}
.lines-button.x.close-button .lines {
    /*hide the middle line*/
    background: transparent;
    /*overlay the lines by setting both their top values to 0*/
}
.lines-button.x.close-button .lines:before, .lines-button.x.close-button .lines:after {
    -webkit-transform-origin:50% 50% !important;
    transform-origin:50% 50% !important;
    top: 0;
    width: 30px;
}
.lines-button.x.close-button .lines:before {
    -webkit-transform:rotate(45deg);
    transform: rotate3d(0, 0, 1, 45deg);
    /*-webkit-transform: rotate3d(0, 0, 1, 45deg);*/



}
.lines-button.x.close-button .lines:after {
    -webkit-transform:rotate(-45deg);
    transform: rotate3d(0, 0, 1, -45deg);

}

/* wyrównanie linii hamburgera */
.lines {
    white-space: pre;
    vertical-align: top;
}


@media screen and (max-width: 480px) {



    button.navbar-toggle.lines-button.x {
        left: 1em;
        margin-top: 23px;
    }
    /*.region-navigation .container .navbar-collapse.collapse.in {*/
        /*max-height: 1600px !important;*/
    /*}*/
    .lines:before, .lines:after, .lines  {
        width: 19px !important;
        height: 3px !important;
        border-radius: 2.2px !important;
    }
    .lines::before {
        top: 0.45em !important;
    }
    .navbar-toggle .lines::after {
        top: -0.45em !important;
    }
    .lines-button.x.close-button .lines:before, .lines-button.x.close-button .lines:after {
        width: 19px !important;
        -webkit-transform-origin:95% 50% !important;
        transform-origin: 95% 50% !important;

    }




}
/*dodanie strzałki mateusz w mobilnym menu do powrotu z języków  */

button.navbar-toggle.lines-button.x.back-button{
    position:fixed;
}
.navbar-toggle.lines-button.x.back-button .lines {
    /*transform: scale3d(0.8, 0.8, 0.8);*/
}

/*.navbar-toggle.lines-button.x.back-button .lines:before {*/
    /*transform: rotate3d(0,0,1,-35deg);*/
/*}*/
/*.navbar-toggle.lines-button.x.back-button .lines:after {*/
    /*transform: rotate3d(0,0,1,35deg);*/
/*}*/
.navbar-toggle.lines-button.x.back-button .lines {
    width: 25px !important;
    height: 4.28571429px !important;
    border-radius: 2.14285714px !important;
}


.navbar-toggle.lines-button.x.back-button .lines:before,
.navbar-toggle.lines-button.x.back-button .lines:after {
    position: absolute;
    /*top:0 !important;*/
    top: 0px !important;
    width: 14px !important;
    height: 4.28571429px !important;
    border-radius: 2.14285714px !important;
}


.navbar-toggle.lines-button.x.back-button .lines:before
{
    position: absolute;
    display: inline-block;
    -moz-transform: rotate(-35deg);
    -webkit-transform:rotate(-35deg) !important;
    -o-transform: rotate(-35deg);
    -ms-transform: rotate(-35deg);
   transform: rotate(-35deg);
}

.navbar-toggle.lines-button.x.back-button .lines:after{
    position: absolute;
    display: inline-block;
    -moz-transform: rotate(35deg);
    -webkit-transform:rotate(35deg) !important;
    -o-transform: rotate(35deg);
    -ms-transform: rotate(35deg);
    transform:rotate(35deg);
}

@media screen and (max-width: 480px) {
    .navbar-toggle.lines-button.x.back-button .lines {
        width: 18px !important;
        height: 3px !important;
    }
    .navbar-toggle.lines-button.x.back-button .lines:before, .navbar-toggle.lines-button.x.back-button .lines:after {
        width: 11px !important;
        height: 3px !important;
        -webkit-transform-orientation:1px center !important;
        transform-origin: 1px center !important;
        position: absolute;

    }


}
