.button_container {
  position: absolute;
  margin: 0 0 0 0;
  height: 40px;
  width: 40px;
  cursor: pointer;
  z-index: 100;
  transition: opacity .25s ease;
}
.button_container:hover {
  opacity: .7;
}
.button_container.active .top {
  margin: 0 0 0 0;
  position: absolute;
  -webkit-transform: translateY(8px) translateX(0) rotate(45deg);
          transform: translateY(8px) translateX(0) rotate(45deg);
  background: #222;
}
.button_container.active .middle {
  opacity: 0;
  background: #FFF;
}
.button_container.active .bottom {
  margin: 0 0 0 0;
  position: absolute;
  -webkit-transform: translateY(-7px) translateX(0) rotate(-45deg);
          transform: translateY(-7px) translateX(0) rotate(-45deg);
  background: #222;
}
.button_container span {
  background: #222;
  border: none;
  height: 2px;
  width: 20px;
  position: absolute;
  top: 11px;
  left: 10px;
  transition: all .35s ease;
  cursor: pointer;
}
.button_container span:nth-of-type(2) {
  top: 18px;
}
.button_container span:nth-of-type(3) {
  top: 26px;
}

.overlay {
  position: fixed;
  background: #F2F2F2;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s, visibility .35s, height .35s;
  overflow: hidden;
}
.overlay.open {
  opacity: 1.9;
  visibility: visible;
  height: 100%;
}
.overlay.open li {
  -webkit-animation: fadeInRight .5s ease forwards;
          animation: fadeInRight .5s ease forwards;
  -webkit-animation-delay: .35s;
          animation-delay: .35s;
}
.overlay.open li:nth-of-type(2) {
  -webkit-animation-delay: .4s;
          animation-delay: .4s;
}
.overlay.open li:nth-of-type(3) {
  -webkit-animation-delay: .45s;
          animation-delay: .45s;
}
.overlay.open li:nth-of-type(4) {
  -webkit-animation-delay: .50s;
          animation-delay: .50s;
}

@-webkit-keyframes fadeInRight {
  0% {
    opacity: 0;
    left: 20%;
  }
  100% {
    opacity: 1;
    left: 0;
  }
}

@keyframes fadeInRight {
  0% {
    opacity: 0;
    left: 20%;
  }
  100% {
    opacity: 1;
    left: 0;
  }
}


/* Rozhraní pro smartphone */
@media screen and (min-width: 480px) and (max-width: 767px) {
  .overlay-menu .header-topinfo-polonica { width: 180px; height: 40px; position: absolute; margin: 15px 0 0 calc(50% - 220px); padding: 0 0 0 0; font-size: 30px; font-weight: 900; text-align: left;}
  .navigace-content { width: 460px; height: auto;}
  .navigace-content .free { height: 100px;}
  .navigace-content-linea { width: 460px; height: 60px; margin: 0 0 0 0; text-align: left;}
  .navigace-content-left { width: 230px; height: 60px; position: absolute; margin: 0 0 0 0;}
  .navigace-content-right { width: 230px; height: 60px; position: absolute; margin: 0 0 0 230px;}
  .navigace-content-box { width: 230px; height: 36px; position: absolute; margin: 0 0 0 0; padding: 14px 0 10px 0; font-size: 22px; text-align: center; transition: all 0.35s ease-in-out; background-color: rgba(0,0,0,.25);}
  a.navigace-content-box { color: #222; text-decoration: none; background: url('../themes/top.navigace.fw.png') center 35px no-repeat; background-size: 47px 11px;}
  a.navigace-content-box:hover { color: #000; background: url('../themes/top.navigace.active.fw.png') center 35px no-repeat; background-size: 47px 11px;}
}

/* Rozhraní pro mobile */
@media screen and (max-width: 479px) {
  .overlay-menu .header-topinfo-polonica { width: 140px; height: 30px; position: absolute; margin: 18px 0 0 calc(50% - 140px); padding: 0 0 0 0; font-size: 20px; font-weight: 900; text-align: left;}
  .navigace-content { width: 300px; height: auto;}
  .navigace-content .free { height: 100px;}
  .navigace-content-linea { width: 300px; height: 120px; margin: 0 0 0 0; text-align: left;}
  .navigace-content-left { width: 300px; height: 60px; position: absolute; margin: 0 0 0 0;}
  .navigace-content-right { width: 300px; height: 60px; position: absolute; margin: 60px 0 0 0;}
  .navigace-content-box { width: 300px; height: 36px; position: absolute; margin: 0 0 0 0; padding: 14px 0 10px 0; font-size: 22px; text-align: center; transition: all 0.35s ease-in-out;}
  a.navigace-content-box { color: #222; text-decoration: none; background: url('../themes/top.navigace.fw.png') center 33px no-repeat; background-size: 47px 11px;}
  a.navigace-content-box:hover { color: #000; background: url('../themes/top.navigace.active.fw.png') center 33px no-repeat; background-size: 47px 11px;}
}