.overlay li{
    display: inline-block;
  }
  .overlay li ul{
    display: none;
  }
  .overlay a{
    text-decoration: none;
    color: #000;
    padding: 0 15px;
    font-size: 110%;
  }
  .overlay li a:hover{
    color: var(--barva-textu);
    text-decoration: underline;
  }


  @media only screen and (max-width:1100px) {
  
  .button_container {
    position: absolute;
    right: 20px;
    top: 30px;
    height: 27px;
    width: 35px;
    cursor: pointer;
    z-index: 9999;
    transition: opacity 0.25s ease;
  }
  .button_container:hover {
    opacity: 0.7;
  }
  .button_container.active .topn {
    transform: translateY(11px) translateX(0) rotate(45deg);
    background: var(--barva-textu);
  }
  .button_container.active .middlen {
    opacity: 0;
    background: var(--barva-textu);
  }
  .button_container.active .bottomn {
    transform: translateY(-11px) translateX(0) rotate(-45deg);
    background: var(--barva-textu);
  }
  .button_container span {
    background: var(--barva-textu);
    border: none;
    height: 3px;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    transition: all 0.35s ease;
    cursor: pointer;
  }
  .button_container span:nth-of-type(2) {
    top: 11px;
  }
  .button_container span:nth-of-type(3) {
    top: 22px;
  }
  .overlay {
    position: fixed;
    background: #000;
    top: 0;
    left: 0;
    width: 100%;
    height: 0%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s, visibility 0.35s, height 0.35s;
    overflow: hidden;
    z-index: 9990;
  }
  .overlay.open {
    opacity: 1;
    visibility: visible;
    height: 100%;
  }
  .overlay.open li {
    animation: fadeInRight 0.5s ease forwards;
    animation-delay: 0.35s;
  }
  .overlay nav {
    position: relative;
    height: 70%;
    top: 50%;
    transform: translateY(-50%);
    font-size: 130%;
    text-align: center;
  }
  .overlay ul {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    display: inline-block;
    position: relative;
    height: 100%;
  }
  .overlay ul li {
    display: block;
    min-height: 50px;
    position: relative;
    opacity: 0;
  }
  .overlay ul li a {
    display: block;
    position: relative;
    color: var(--barva-textu);
    text-decoration: none;
    /*overflow: hidden;*/
  }
  .overlay ul li a:hover, .overlay ul li a:focus, .overlay ul li a:active {
    width: 100%;
    color: #fff;
  }
  @keyframes fadeInRight {
    0% {
      opacity: 0;
      left: 20%;
    }
    100% {
      opacity: 1;
      left: 0;
    }
  }
  
  }