@media screen and (max-width: 1040px) {
  #footer .loga{
    text-align: center;
    margin-right: 0px;
  }

  #footer .loga img:last-of-type{
    margin-right: 0px;
  }

  #footer .loga:nth-of-type(1), #footer .loga:nth-of-type(2){
    display: inline-block;
    vertical-align: top;
    width: 50%;
    max-width: 300px;
  }
}

@media screen and (min-width: 1150px) {
  #main_menu{
    display: block !important;
  }
}

@media screen and (max-width: 1149px) {
  .show_menu{
    display: inline-block;
  }

  #main_menu{
    display: none;
  }

  .main_menu{
    animation: item_show;
    animation-duration: 0.4s;
    animation-delay: 0s;
    animation-timing-function: ease-in-out;
    animation-fill-mode: both;
    position: absolute;
    background-color: white;
    z-index: 4000000;
    box-shadow: 0px 0px 4px rgba(80%, 80%, 80%, 0.7);
    top: 62px;
    right: 40px;
    padding: 10px 0px;
    margin-top: 0px;
    margin-bottom: 0px;
    margin-right: 0px;
  }

  .main_menu li, .main_menu li:first-of-type{
    display: block;
    padding: 10px;
    margin: 0px;
    border-left: none;
  }

  .main_menu a{
    display: block;
  }

  .frame_header, .frame_content {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
}

@media screen and (max-width: 800px) {
  .test-versions{
    flex-direction: column;
    align-items: center;
  }

  .box_content {
    width: 92%;
    padding: 0px 4vw;
  }

  #header .linear-grad{
    width: 92%;
  }

  .main_menu, .show_menu{
    right: 4vw
  }

  h1{
    font-size: 20px;
  }

  .o-projektu table td{
    display: block;
    width: 100% !important;
    height: auto !important;
    padding-left: 0px;
  }

  .o-projektu table{
    margin-bottom: 30px;
  }
}

@media screen and (max-width: 700px) {
  .box, .box_container{
    display: block;
  }

  .box{
    margin-right: 0;
    min-height: 60px;
  }
}

@media screen and (max-width: 700px) {
  .clen {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .clen div {
    width: 100% !important;
  }

  .clen .img {
    max-width: 200px;
    padding-right: 0;
    margin-bottom: 20px;
  }
}

@media screen and (max-width: 665px) {
  .organization {
    flex-direction: column;
    align-items: flex-start;
  }

  .organization .img {
    justify-content: flex-start;
  }

  .organization .description {
    margin-top: 30px;
  }
}

@media screen and (max-width: 600px) {
  .semafor_container {
    width: 44px;
    padding: 2px 4px;
    font-size: 12px;
  }

  .semafor_graf div {
    width: 10px;
    height: 10px;
    border-width: 1px;
  }

  .semafor_graf div:before {
    width: 8px;
    height: 8px;
  }
}

@media screen and (max-width: 560px) {
  .square{
    width: calc(50% - 5px);
  }

  .square:nth-of-type(4n){
    margin: 10px 10px 0px 0px;
  }

  .square:nth-of-type(2n){
    margin-right: 0px;
  }

  p, li, #content h2, #content h3{
    text-align: left !important;
  }

  #content h2{
    font-size: 20px;
  }

  .blok_komentare tr:first-of-type{
    display: none;
  }

  .blok_komentare tr td:first-of-type, .blok_komentare tr td:nth-of-type(2){
    display: inline-block;
    vertical-align: middle;
    border-bottom: none !important;
  }

  .blok_komentare tr td:first-of-type{
    padding-right: 0px;
  }

  .blok_komentare tr td:nth-of-type(3){
    display: block;
    padding-top: 0;
  }

  .otazka_table tr td, .otazka_table tr th{
    display: block;
  }

  table.otazka_table{
    min-width: 400px;
  }

  .odpovedi_table tr td, .odpovedi_table tr th{
    display: table-cell;
  }

  .odpovedi_table tr th{
    border-bottom: 1px solid rgb(70%, 70%, 70%);
  }

  .otazka_table tr th{
    border-bottom: none !important;
    padding-bottom: 0;
    padding-top: 7px;
  }
}

@media screen and (max-width: 420px) {
  #footer .loga{
    display: block;
    width: 100% !important;
    max-width: 1000px;
  }
}

@media screen and (max-width: 330px) {
  #logo_in_header{
    width: calc(100% - 60px);
  }
}