@media (max-height: 600px) {
  header {
    overflow: auto;
  }
  header .menu_bottom {
    position: static;
  }
  header ul li .label {
    display: none;
  }
}

@media (max-width: 1100px) {
  table.vypis th {
    font-size: 12px;
  }

  .page {
    width: calc(100% - 110px);
    padding: 20px;
  }

  .edit-head, table.edit  {
    width: 100%;
    min-width: auto;
  }
}

@media (max-width: 900px) {
  table.vypis tr:first-child {
    display: none;
  }
  table.vypis.sublevel tr:first-child {
    display: table-row;
  }
  table.vypis tr {
    display: flex;
    flex-wrap: wrap;
    border: solid 1px #00000014;
    margin: 5px;
  }
  table.vypis tr td {
    width: 100%;
    display: block;
    text-align: center;
    padding: 7px 5px;
  }

  table.vypis td.right {
    text-align: center;
  }

  table.edit th {
    width: 150px;
  }
}

@media (max-width: 700px) {
  table.vypis td.produkt_img {
    height: 50px;
    padding: 15px 0px;
  }

  .edit-head {
    flex-wrap: wrap;
  }
  .edit-head h1 {
    width: 100%;
    text-align: center;
    margin: 20px 0px;
  }

  .login_back {
    background-image: none;
  }
  .container.login {
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;
    opacity: 1;
  }

  .mce-panel {
    border: none !important;
  }
  .mce-flow-layout {
    text-align: center !important;
  }

  .page h2, .page h3 {
    text-align: center;
  }
  .edit-head .edit-setting {
    width: 100%;
    text-align: center;
  }

  table.edit h2 {
    border-left: none;
    padding: 0px;
    margin: 10px;
  }

  table.edit th, table.edit td {
    width: 100%;
    text-align: center;
    display: block;
    padding: 10px 0px;
  }
  table.edit tr {
    margin: 10px 0px;
    display: block;
    border: solid 2px #80808030;
  }
  table.edit select, table.edit input {
    height: auto;
    font-size: 18px;
  }

  header {
    position: static;
    width: 100%;
    height: auto;
    display: flex;
    flex-wrap: wrap;
  }
  header ul {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }
  header .menu_bottom {
    position: static;
    display: contents;
  }
  header ul a {
    width: 25%;
    display: block;
  }
  header a {
    height: auto;
  }
  header ul li .label {
    position: static;
    background: transparent;
    display: block;
    transform: none;
    width: auto;
    margin: 0px;
    padding: 0px;
  }
  header ul li .label::before {
    content: none;
  }
  header ul a:hover .label {
    transform: none;
  }
  header ul li.active .label, header ul li:hover .label {
    color: #1f6fb0;
  }

  header ul li, header ul li.active{
    border-left: 0px;
  }

  table.vypis td.resp_half {
    width: calc(50% - 10px);
  }
  table.vypis td.resp_three {
    width: calc(33.3% - 10px);
  }

  form.hledat {
    width: 100%;
  }
  form.hledat input {
    width: calc(100% - 85px);
  }
  form.hledat button {
    width: auto;
  }

  .container.login {
    min-width: auto;
    position: static;
    transform: none;
    width: 100%;
    padding: 80px 0px;
  }

  .menu_resp2 {
    display: none;
    width: 100%;
  }

  .menu_resp {
    display: block;
    width: 50%;
    background-color: #1f6fb0;
    text-align: center;
  }
  .menu_resp .navbar-toggle {
    background-color: transparent;
    border: solid 1px white;
    padding: 9px 14px;
    margin: 15px auto;
    cursor: pointer;
    border-radius: 4px;
    outline: none;
  }
  .navbar-toggle .icon-bar {
    display: block;
    width: 25px;
    height: 2px;
    border-radius: 1px;
    background-color: white;
    margin-top: 6px;
  }
  .navbar-toggle .icon-bar:first-child {
    margin-top: 0px;
  }

  .logo {
    width: 50%;
  }
  .logo img {
    margin: auto;
    max-width: 120px;
  }

  .page {
    width: calc(100% - 30px);
    padding: 15px;
  }

  h1 {
    text-align: center;
    margin: 20px 0px;
  }

  .button {
    width: calc(100% - 10px);
    margin: 5px;
  }

  .galerie_obsah {
    text-align: center;
  }

  footer {
    position: static;
    padding: 15px;
    width: calc(100% - 30px);
    text-align: center;
  }
}

@media (max-width: 500px) {
  header ul a {
    width: 50%;
  }

  .container.login .logo {
    width: 100%;
    max-width: 180px;
  }
  .container.login table {
    width: 80%;
  }
}
