/* General
---------------------------------------- */

.et_divi_builder #et_builder_outer_content .pagination a {
  color: #fff !important;
}

/* 2017 desktop */

@media screen and (min-width: 481px) {

  /* Menu */

  .elsepage nav.primary {
    background: none;
  }

  .elsepage .elsenavi {
    width: 100%;
    background: #344556;
    height: 52px;
    height: auto;
    text-align: center;
    margin: 115px auto -10px auto;
    padding-bottom: 10px;
  }

  .elsepage .sf-menu {
    width: 100%;
    top: 11px;
    left: -12px;
    max-width: 1080px;
    margin: 13px auto 0 auto;
    float: none;
    text-align: left;
  }

  .sf-menu {
    -webkit-transition: max-height 0.5s;
    -moz-transition: max-height 0.5s;
    -o-transition: max-height 0.5s;
    -ms-transition: max-height 0.5s;
    transition: max-height 0.5s;
    -webkit-transition-timing-function: cubic-bezier(0.665, 0.165, 0.130, 0.715);
       -moz-transition-timing-function: cubic-bezier(0.665, 0.165, 0.130, 0.715);
      -ms-transition-timing-function: cubic-bezier(0.665, 0.165, 0.130, 0.715);
       -o-transition-timing-function: cubic-bezier(0.665, 0.165, 0.130, 0.715);
        transition-timing-function: cubic-bezier(0.665, 0.165, 0.130, 0.715);
  }

  .sf-nav-m .sub-menu {

  }

  .elsepage .sf-menu li {
    background: none;
    display: inline-block;
    padding-left: 24px;
    padding-right: 24px;
  }

  .elsepage .sf-menu li::after {
    display: none !important;
  }

  .elsepage .sf-menu li a {
    background: none;
    border: none;
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 22px;
    font-weight: normal;
    /* height: auto; submenu prestane fungovat */
    height: 40px;
    line-height: 1.3;
    padding: 0;
    text-align: left;
    width: auto;
  }

  .elsepage .sf-menu li a:hover,
  .elsepage .sf-menu > li.current-menu-item > a {
    background: none;
    border: none;
    color: #37bdf5;
  }


   .elsepage .sf-menu #menu-item-49325 .sub-menu  { /* Kategorie */
    width: 400px;
    list-style-type: none;
    columns: 2;
    -webkit-columns: 2;
    -moz-columns: 2;
  }


  

  .elsepage .sf-menu #menu-item-20460 a:hover,
  .elsepage .sf-menu > #menu-item-20460.current-menu-item > a {
    background: #37bdf5;
    color: #fff;
  }

  /* Submenu */

  .elsepage .sub-menu {
    background: #3d5164;
  }

  .sub-menu.sub-menu-visible {
    display: block !important;
    visibility: visible !important;
  }

  .elsepage .sf-menu li:hover ul,
  .elsepage .sf-menu li.sfHover ul,
  .elsepage .sf-menu ul,
  .elsepage .sub-menu ul {
    top: 39px !important;
    left: 0;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .elsepage .sf-menu ul li {
    margin-top: 1px !important;
    margin-bottom: 1px !important;
  }

  .elsepage .sub-menu li a {
    padding-left: 0;
    font-size: 16px;
    height: auto;
    padding-top: 7px;
    padding-bottom: 7px;
  }

  .open-menu-link {
    display: none;
    position: absolute;
    right: 16px;
    top: 10px;
    line-height: 55px;
    font-size: 30px;
    cursor: pointer;
  }

  /* Sub Submenu */

  .elsepage .sf-menu li .sub-menu li .sub-menu {
    top: -9px !important;
  }

  .elsepage .sf-menu li .sub-menu li .sub-menu a {

  }

  #header .grid_5 {
    max-width: 100%;
    padding-left: 0px;
    padding-right: 0px;
  }


}

@media screen and (min-width: 481px) and (max-width: 1080px) {

  .elsepage .elsenavi {
    margin: 115px auto -10px auto;
    padding-bottom: 10px;
  }

  .elsepage .sf-menu {
    top: 11px;
    left: -2px;
    max-width: 900px;
    margin: 13px 0 0 0;
    float: none;
    text-align: left;
  }

  .elsepage .sf-menu li {
    padding-left: 20px;
    padding-right: 20px;
  }

  .elsepage .sf-menu li a {
    font-size: 22px;
  }

  .elsepage .sf-menu li li a {
    font-size: 16px;
  }

}

@media screen and (min-width: 481px) and (max-width: 900px) {

  .elsepage .elsenavi {
    margin: 115px auto -10px auto;
    padding-bottom: 10px;
  }

  .elsepage .sf-menu {
    top: 11px;
    left: -2px;
    max-width: calc(100% - 96px);
    max-width: -webkit-calc(100% - 96px);
    padding-right: 96px;
    margin: 13px 0 0 0;
    float: none;
    text-align: left;
  }

  .elsepage .sf-menu li {
    padding-left: 20px;
    padding-right: 20px;
  }

  .elsepage .sf-menu li a {
    font-size: 20px;
  }
  .elsepage .sf-menu li li a {
    font-size: 16px;
  }

}

@media screen and (min-width: 481px) and (max-width: 640px) {

  .zeptejte-se img {
    width: 200px;
    margin-top: 6px;
  }

}

@media screen and (min-width: 481px) and (max-width: 520px) {

  .zeptejte-se {
    display: none;
  }

}

.visible {
  display: none !important;
}

#main {
  overflow-x: hidden;
}

/* Max width of 480 pixels. */
@media screen and (max-width: 480px) { /* zmenit i v custom.js */

    #main {
      overflow-x: hidden;
    }

    ul li {
      padding-left: 0 !important;
      background: none !important;
    }

    ul ul {
      margin-bottom: 0.5em !important;
      margin-left: 0.35em !important;
    }

    .elsepage #header .container_16 .grid_5 {
      max-height: 100px;
    }

    .elselogo .logo {
      max-width: 220px;
      z-index: 99;
      margin-top: 4px;
    }

    .elselogo .logo img {
      width: 100%
    }

    .mobile-menu-icon {
      position: relative;
      width: auto;
      float: right;
      z-index: 99999999999;
    }

    #mobile-menu-a {
      position: absolute;
      top: 34px;
      right: 16px;
      background-image: url('../images/mobile-menu-icon_b37391356d.jpg');
      background-size: 100%;
      background-repeat: no-repeat;
      display: block;
      width: 34px;
      height: 36px;
      z-index: 99999999999;
    }

    /* Menu */

    .elsepage nav.primary {
      background: none;
    }

    nav.primary::before {
      z-index: 2;
      background: #fff;
      display: block;
      position: absolute;
      top: -120px;
      left: 0;
      width: calc(100% + 24px);
      width: -webkit-calc(100% + 24px);
      margin-left: -10px;
      height: 115px;
      content: ' ';
    }

    .elsepage .sf-menu {
      background: #3d5164;
      display: block;
      width: 100%;
      width: calc(100% + 24px);
      width: -webkit-calc(100% + 24px);
      margin-left: -10px;
      position: absolute;
      left: 0;
      top: -5px;
    }

    .zeptejte-se {
      display: none;
    }

    .sf-menu {
      -webkit-transition: max-height 0.5s;
      -moz-transition: max-height 0.5s;
      -o-transition: max-height 0.5s;
      -ms-transition: max-height 0.5s;
      transition: max-height 0.5s;
      -webkit-transition-timing-function: cubic-bezier(0.665, 0.165, 0.130, 0.715);
         -moz-transition-timing-function: cubic-bezier(0.665, 0.165, 0.130, 0.715);
        -ms-transition-timing-function: cubic-bezier(0.665, 0.165, 0.130, 0.715);
         -o-transition-timing-function: cubic-bezier(0.665, 0.165, 0.130, 0.715);
          transition-timing-function: cubic-bezier(0.665, 0.165, 0.130, 0.715);
        z-index: 1;

        max-height: 0;
        overflow: hidden;
    }

    .sf-nav-m .sub-menu {
      display: none !important;
    }

    .sf-nav-m .sub-menu.visible {
      display: block !important;
      visibility: visible !important;
    }

    .sf-menu.moved {
      max-height: 2099px;
      display: block !important;
    }

    .elsepage .sf-menu li {
      background: none;
      display: block;
      width: 100%;
    }

    .elsepage .sf-menu li::after {
      display: none !important;
    }

    .elsepage .sf-menu li a {
      background: none;
      border: none;
      color: #333;
      font-family: Arial, sans-serif;
      font-size: 28px;
      font-weight: normal;
      height: auto;
      line-height: 1.3;
      padding: 0;
      text-align: left;
      width: auto;

      font-weight: bold;
      font-size: 16px;
      text-transform: uppercase;
      color: #fff;
      padding: 18px 0 14px 26px;
    }

    .elsepage .sf-menu li a:hover,
    .elsepage .sf-menu > li.current-menu-item > a {
      background: none;
      border: none;
      color: #37bdf5;
    }

    .elsepage .sf-menu li .sub-menu li .sub-menu a #menu-item-20042 { /* E-shop */
      display: block;
      background: yellow;
      color:red;
    }

    /* Submenu */

    .elsepage .sub-menu {
      position: relative;
      top: 0;
      left: 0;
      display: block;
      width: 100%;
      display: none;
      margin-left: 0 !important;
    }

    .elsepage .sf-menu li:hover ul,
    .elsepage .sf-menu li.sfHover ul,
    .elsepage .sf-menu ul,
    .elsepage .sub-menu ul {
      top: 0 !important;
    }

    .elsepage .sub-menu li a {
      padding-left: 40px;
    }

    .open-menu-link {
    	display: none;
    	position: absolute;
    	right: 16px;
    	top: 10px;
    	line-height: 55px;
    	font-size: 30px;
    	cursor: pointer;
    }

    .open-menu-link.open {
      background-image: url('../images/icon-close_40446e819e.jpg');
      background-size: 75%;
      background-repeat: no-repeat;
      display: block;
      width: 40px;
      height: 36px;
    }

    .open-menu-link.visible {
      background-image: url('../images/icon-plus-wt_4f22535652.jpg');
      background-size: 75%;
      background-repeat: no-repeat;
      display: block;
      width: 40px;
      height: 36px;
    }

    .visible {
     display: block !important;
    }


    /* Sub Submenu */

    .elsepage .sf-menu li .sub-menu li .sub-menu {
      position: relative;
      left: 0;

    }

    .elsepage .sf-menu li .sub-menu li .sub-menu a {
      padding-left: 60px;
      font-weight: normal;
      text-transform: none;
    }

}

@media screen and (max-width: 300px) {

    .elselogo .logo {
      max-width: 180px;
      margin: 0 auto;
    }

    .elselogo .logo img {
      margin-top: 6px;
    }
}

.widget ul li {
  background-image: none !important;
}

@media screen and (max-width: 980px) {

  /* Facelift typografie */

  /* ul li {
    background-image: none !important;
  } */

  .widget ul li {
    background-image: none !important;
  }

  #et_builder_outer_content h1,
  #et_builder_outer_content h2,
  #et_builder_outer_content h3,
  #et_builder_outer_content h4,
  #et_builder_outer_content h5,
  #et_builder_outer_content h6 {
    line-height: 1.35 !important;
  }

  h1 {
    font-size: 30px !important;
  }

  h5 {
    margin: 1em 0;
    padding-left: 0;
  }

  .cclexicon-filter {
    padding: 5px !important;
    margin: 2px 5px !important;
    display: inline-block;
  }

  .cclexicon-anchor-heading h4 {
    font-size: 3em;
    line-height: 17px;
    margin: 1em 0;
    font-weight: normal;
  }

  .cclexicon-title h5 {
    font-size: 14px !important;
  }

  div.site-content.cma-content {
    padding: 0 3%;
    width: 94%
  }

  .cma-content ul.cma-thread-orderby li {
    padding: 2px 4px;
    margin: 0 12px 0 0;
  }

  .cma-content ul.cma-thread-orderby li a {
    font-size: 13px !important;
  }

  .cma-content ul.cma-thread-orderby li.cma-current-sort a {
    color: #bababa;
    font-size: 13px !important;
  }

  .cma-form-notes {
    float: none;
    width: 90%;
    padding: 5px 10px;
    font-family: monospace;
  }

  .cma-form-notes li {
    font-size: 12px;
    line-height: 1.5;
  }

  .cma-form-container input[type=text],
  .cma-form-container textarea {
    margin-top: 1em;
    width: 90%;
  }

  div.cma-wrapper,
  div.cma-sidebar {
    display: block !important;
    float: none !important;
    clear: both !important;
    padding-right: 0 !important;
  }

  .container_16 .grid_11 {
    max-width: 92% !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .container_16 .prefix_1 {
    padding-left: 16px !important;
  }

  .container_16 .grid_4 {
    width: 92% !important;
    list-style: none !important;
  }

  .elsepage #page-content iframe { /* zmenÅ¡i mapu */
    zoom: 0.65;
    -moz-transform:scale(0.65);
    -moz-transform-origin: 0 0;
    -o-transform: scale(0.65);
    -o-transform-origin: 0 0;
    -webkit-transform: scale(0.65);
    -webkit-transform-origin: 0 0;
    width: 800px;
    height: 480px;
  }

  .widget-footer {
    padding: 0 6px;
  }

  .et_divi_builder #et_builder_outer_content .et_pb_slider .et_pb_slide_0 .et_pb_slide_description .et_pb_slide_title {
    font-size: 36px !important; /* Take k zhlednuti ve footer.php */
    margin: 0 0 1em 0;
    font-weight: bold !important;
  }

  .et_divi_builder #et_builder_outer_content .et_pb_section_parallax,
  .et_divi_builder #et_builder_outer_content .et_pb_slider_parallax {
    margin-bottom: -2em !important;
  }

  .et_divi_builder #et_builder_outer_content .et_pb_slider .et_pb_container {
    width: 100% !important;
  }

  .et_divi_builder #et_builder_outer_content .et_pb_slide_description,
  .et_divi_builder #et_builder_outer_content .et_pb_slider_fullwidth_off .et_pb_slide_description {
    padding: 20% 0% !important;
  }

  .et_divi_builder #et_builder_outer_content .et_pb_fullwidth_slider_0.et_pb_slider p {
    font-size: 21px !important;
    line-height: 36px !important;
    margin-top: -16px !important;
  }

  .et_divi_builder #et_builder_outer_content .et_pb_blog_0 .et_pb_post .post-meta {
    margin: 1em 0 !important;
    font-size: 12px !important;
  }

  .et_divi_builder #et_builder_outer_content .et_pb_with_background .et_pb_row {
    width: 100% !important;
  }

  .et_divi_builder #et_builder_outer_content .et_pb_text_align_left {
    /* padding: 0 1em !important; */
  }

  .et_divi_builder #et_builder_outer_content .et_pb_column {
    padding: 0 1em !important;
  }

}

/* Postranni panely */

.levy-panel,
.pravy-panel {
  display: none;
  position: absolute;
  top: 0;
  z-index: 99;
  width: 20%;
  width: calc(50% - 560px);
  width: -webkit-calc(50% - 560px);
  height: 100%;
  top: 180px;
  height: calc(100% - 160px);
  height: -webkit-calc(100% - 280px);
}

.levy-panel {
  left: 0;
}

.pravy-panel {
  right: 0;
  width: 20%;
  width: calc(50% - 560px);
  width: -webkit-calc(50% - 560px);
}

.levy-panel.fixed,
.pravy-panel.fixed {
  position: fixed;
  top: 15px;
  height: calc(100% - 160px);
  height: -webkit-calc(100% - 33px);
}

.levy-panel img,
.pravy-panel img {
  width: 100%;
}


@media screen and (min-width: 1440px) {

  .levy-panel {

  }

}

@media screen and (min-width: 1366px) {

  .levy-panel {
    display: block;
  }

  .pravy-panel {
    display: block;
  }

}
