@import url(https://fonts.googleapis.com/css?family=Titillium+Web:400,600&subset=latin,latin-ext);  


/* default styles
   -------------- */
* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}







body { 
  padding: 0;
  margin: 0;
  font: 16px 'Titillium Web', sans-serif;
  font-weight: 400;
  color: #212529;
  line-height: 1.5;
}


/* základní odkazy
   --------------- */
a {
  color: #0052AF;
  text-decoration: none;
}
a:hover {
  color: #00428D;
  text-decoration: underline;
}
a img {
  border: none;
}


.red {
  color: #DA0D0D; text-transform: uppercase;
}
.redbold {
  color: #DA0D0D; font-weight: bold;
}
.active {
  color: #DA0D0D;
}
.big {
  font-size: 16px; font-weight: 700;
}
.small {
  font-size: 12px; line-height: 17px;
}


h1 {
  display: inline-block;
  position: relative;
  top: -15px;
  left: 15px;
  font-size: 32px;
  margin: 0;
  padding: 0;
  font-weight: 600;
  
}
h2 {
  margin: 0 0 8px 0;
  padding: 0;
  font-size: 32px;
  font-weight: 600;
}
  h2 a {
    text-decoration: none;
    color: #1A73B9;
  }
  h2 a:hover {
    text-decoration: underline;
    color: #3A63C9;
  }
h3 {
  margin: 16px 0 8px 0;
  padding: 0;
  font-size: 24px;
  font-weight: 600;
}


p {
  margin: 0 0 5px 0;
}

.bar ul {
  margin: 0;
  padding: 0; 
  list-style: none; 
}

ul {
   margin: 0 0 5px 25px;
   padding: 0;
   list-style-type: square;
}



form {
  margin: 0;
}
.article form {
  margin: 10px 5px;
}
article #refresh {
  position: absolute;
  top: 20px;
  right: 20px;
}
article #help {
  position: absolute;
  top: 20px;
  right: 40px;
}
  article #help a {
    outline: none;
  }
  article form[onsubmit] h3 {
    cursor: pointer;
  }
  article h3.minimized {
    color: #606060;
  }

.report {
  margin-top: 50px;
  font-weight: bold;
}

.confirm {
  margin: 12px auto;
  width: 540px;
}
  .confirm .button {
    margin-left: 166px;
  }


/* základní tabulky a buňky
   ------------------------ */
table {
  border-spacing: 0; border-collapse: collapse;
}
table.invisible {
  margin: 0 auto; visibility: visible!important;
}
  table.invisible td {
    vertical-align: middle;
  }
  table.invisible > tbody > tr > td:first-child {
    width: 160px; text-align: right;
  }
  table.invisible > tbody > tr > td:last-child {
    width: 380px;
  }
  table.invisible > tbody > tr > td[colspan] {
    width: 540px; text-align: center;
  }
table.general {
  table-layout: fixed; border-top: #BEBEBE 1px solid; border-left: #BEBEBE 1px solid; margin: 10px 0; width: 100%;
}
  table.general input {
    margin: 0 6px 0 4px; padding: 0; border: none; vertical-align: -2px;
  }
  table.general th {
    border-right: #BEBEBE 1px solid; border-bottom: #1B3F8D 1px solid; background-color: #E7E7E7; text-align: center;
    background-repeat: no-repeat; background-position: right center; padding: 2px;
  }
    table.general th.data {
      font-size: 11px; text-align: right; font-weight: normal; padding-right: 3px;
    }
  table.general tr /*, tr.odd, tr.even*/ {
    background-color: #F4F4F4;
  }
  table.general tr.highlight {
    background-color: #E7E7E7;
  }
  table.general td {
    border-right: #BEBEBE 1px solid; border-bottom: #BEBEBE 1px solid; text-align: center; padding: 1px;
  }
  table.general td.data {
    border-right: #BEBEBE 1px solid; border-bottom: #BEBEBE 1px solid; text-align: left; padding: 1px 1px 1px 3px;
  }
  th img, table.general td img {
    border: none; margin: 0 1px 1px 2px; vertical-align: -2px;
  }

/* rovnání admin tabulek přes jquery */
.wrapper {
  position: relative; margin-bottom: 5px;
}
  .wrapper .length {
    position: absolute; top: 0; right: 0;
  }
  .wrapper select {
    width: 60px; margin: 0 2px;
  }
  .wrapper input {
    width: 150px; margin: 0 2px; padding: 2px;
  }
  .wrapper .sorting {
    background-image: url('../images/tables/sort_both.png'); cursor: pointer;
  }
  .wrapper .sorting_asc {
    background-image: url('../images/tables/sort_asc_enabled.png'); cursor: pointer;
  }
  .wrapper .sorting_desc {
    background-image: url('../images/tables/sort_desc_enabled.png'); cursor: pointer;
  }
  .wrapper .page {
    position: absolute; bottom: 0; right: -2px;
  }
  .wrapper .page_button {
    border: #CCCCCC 1px solid; padding: 0 4px; margin: 0 2px; background-color: #F4F4F4; cursor: pointer; line-height: 20px;
  }
  .wrapper .previous, .wrapper .next, .wrapper .page_button_disabled {
    display: none;
  }
  .wrapper .page_active {
    border: #CCCCCC 1px solid; padding: 0 4px; margin: 0 2px; background-color: #E7E7E7; cursor: pointer; line-height: 20px;
  }

/* základní obrázky
   ---------------- */
img.avatar {
  float: left; border: #CCCCCC 1px solid; margin: 0 8px 0 0;
}
img.bigicon {
  border: none; margin-right: 5px; position: relative; top: 2px;
}
img.browse {
  border: none; cursor: pointer; position: relative; top: 2px;
}

/* základní ovládací prvky
   ----------------------- */
input {
  font: 14px Arial, Helvetica, sans-serif; border: #1B3F8D 1px solid; padding: 2px;
}
  input.general {
    width: 250px; margin: 1px 5px; padding-left: 3px;
  }
  input.shorten {
    width: 125px; margin: 1px 5px; padding-left: 3px;
  }
  input.normal {
    width: 60px; margin: 1px 5px; padding-left: 3px;
  }
  input.file {
    width: 280px; height: 21px; margin: 1px 5px;
  }
  input.radio {
    position: relative; top: 2px; margin: 1px 5px; padding: 0; border: none;
  }
  input.button {
    width: 100px; margin: 1px 5px;
  }
textarea {
  margin-top: 2px; border: #ABCEE9 1px solid;
}
select {
  font: 14px Arial, Helvetica, sans-serif; border: #1B3F8D 1px solid; margin: 1px 5px; padding: 1px 0;
}
  select[multiple] {
    height: auto;
  }
  select.general {
    width: 250px;
  }
  select.shorten {
    width: 125px;
  }
  select.normal {
    width: 90px; margin: 0;
  }

/* layout stránky
   -------------- */

.content {
  margin: 0 auto;
  text-align: left;
}



.top {
  box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.2);
}

#logo {
  width: 220px;
  margin-top: 10px;
}
#blazon {

  position: absolute;
  right: 20px;
}



header {
  position: relative;
  width: 100%;
  margin: 0 auto;
  padding: 10px 20px;
}




nav {
  display: flex;
  width: 100%;
  margin-bottom: 20px;
  padding-right: 50px;
  padding-bottom: 15px;
  text-align: center;
  justify-content: center;
}
  nav img {
    display: inline;
    width: 50px;
  }
  nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    font-weight: 600;
    text-transform: uppercase;
  }
    nav ul li {
      position: relative;
      float: left;
    }
    nav ul li a {
      padding: 8px 18px;
      color: #212529;
      
    }
    nav ul li a:hover {
      text-decoration: none;
    }
    nav ul li a:not(:only-child):after, nav ul li a:visited:not(:only-child):after {
      display: inline-block;
      content: url('../images/graphic/dropdown.png');
      padding-left: 8px;
    }
    nav ul.dropdown {
      display: none;
      position: absolute;
      z-index: 99;
      background: white;
      padding: 0 10px;
      font-weight: 400;
      text-transform: none;
      box-shadow: 3px 3px 3px 0px rgba(0, 0, 0, 0.2);
    }
    nav ul.dropdown li {
      padding: 2px;
    }
    
    nav ul li:hover > ul, nav ul li ul:hover {
  visibility: visible;
  opacity: 1;
  display: block;
}
    

   nav ul li a.eshop {
     background-color: #1B3883;
     color: #FFFFFF;
     border-radius: 20px;
     margin-left: 10px;
     margin-right: 10px;
   }
   nav ul li a.calculation {
     background-color: #C10008;
     color: #FFFFFF;
     border-radius: 20px;
     margin-left: 10px;
     margin-right: 10px;
   }
   nav ul li a.administration {
     background-color: #217404;
     color: #FFFFFF;
     border-radius: 20px;
     margin-left: 10px;
   }
   a.eshop:hover {
     background-color: #122658;
   }
   a.calculation:hover {
     background-color: #920005;
   }
   a.administration:hover {
     background-color: #185204;
   }






#welcome {
  max-width: 1140px;
  margin: 0 auto;
  /*padding: 10px 20px;*/
  box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.2);
  flex: 100%;
}





main {

  margin: 0 auto;





  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  
  width: 100%;
  padding: 10px 20px;
  
  justify-content: center;
  
}



.subheader {
	clear: both;
	margin: 0 0 10px 0;
	padding: 3px 7px 3px 7px;
  height: 18px;
	/*background: #D2E6F5;*/
	color: #808080;
}

.subheader P {
  padding: 0;
  margin: 0;
}

.subleft {
  float: left;
  text-align: left;
  width: 50%;
  overflow: hidden
}

.subright {
  float: right;
  text-align: right;
  width: 50%;
  overflow: hidden
}

/* left side
   --------- */

.left {
  /*max-width: 890px;*/
  flex: 75%;
  align-self: flex-start;
  padding-right: 10px;
  min-height: 350px; 
}

article {
  position: relative;
  padding: 0;
  margin: 0 0 10px 0;


}


article img {
    max-width: 100%;
    height: auto;
 }



/* galerie, uživatelé a jiné moduly pro zarovnání do bloku, obrázky */
.frame {
  float: left; width: 100%; clear: both
}
  .frame .label {
    margin: 3px 0; padding: 0; font-size: 11px; line-height: 15px; height: 15px; overflow: hidden;
  }
.two {
  float: left; width: 49.9%; overflow: hidden
}
.three {
  float: left; width: 33.3%; text-align: center; overflow: hidden; margin: 1px 0 5px 0; height: auto !important; height: 152px; min-height: 152px;
}
  .three img, .roll img {
    padding: 3px; border: #CCCCCC 1px solid;
  }
  .three p {
    margin: 2px 0;
  }
.roll {
  float: left; text-align: center; margin: 4px 0 8px 0; min-height: 125px;
  /* proti problikávání při načítání obrázkové galerie do carouselu */
  position: relative; visibility: hidden; left: -5000px;
}
  .roll li a {
    display: block; background: none; margin: 0 5px; padding: 0; min-width: 168px;
  }
  .rollprev, .rollnext {
    display: none; float: left; width: 30px; border: #CCCCCC 1px solid; margin: 55px 3px 0 3px; height: 21px; font-size: 11px; padding-top: 0;
  }
.reference {
  float: left; padding: 3px; border: #CCCCCC 1px solid; margin: 3px 12px 12px 5px;
}




/* oddíl pod články s autorem, datem, exportem... */
.more {
  clear: both;
  font-size: 0.9em;
  margin: 0;
  padding: 1px;
  color: #808080;
  text-align: right;
  background: url(../images/graphic/dot.gif) left 21px repeat-x;
}
.more img {
  position: relative;
  top: 2px;
  border: none;
  margin: 0 2px;
}
.fblike {
  border: none;
  overflow: hidden;
  width: 100%;
  height:28px
}






.avatar {
  float: left; border: #ABCEE9 1px solid; margin: 0 8px 0 0;
}
.post {
  float: left; width: 465px; padding: 2px 4px; color: #808080; border-top: #ABCEE9 1px solid; border-bottom: #ABCEE9 1px solid; background-color: #f4f4f4;
}
  .post p {
    margin: 0; padding: 0;
  }
  .post p.author {
    float: left;
  }
  .post p.time {
    float: right; 
  }
  .post img {
    border: none; margin: 0 2px; position: relative; top: 1px;
  }
.commands {
  float: left; width: 465px; color: #808080; padding: 1px 4px; font-size: 95%; background: url(../images/graphic/dot.gif) repeat-x bottom; position: relative;
}
  .commands p.re {
    float: left;
  }
  .commands p.up {
    float: right;
  }
  .commands input {
    position: absolute; right: 2px; top: 0px;
  }
.forum {
  width: 465px; float: left; padding: 0; margin: 0; padding: 1px 4px;
}
.sign {
  color: #808080; font-size: 0.9em; line-height: 1.3em;
}
blockquote {
  border: #ABCEE9 1px solid; padding: 3px 3px 0 23px; margin: 2px 0px 2px 0px; text-align: left; background: #F4F4F4 url(../images/icons/quote.gif) no-repeat 4px 4px;
}


	
.thumb {
	float: left;
	width: 150px;
	border: 1px solid #d4d4d4;
	color: #fff;
	background: #6e6e6e;
	margin: 0 8px 15px 0;
	padding: 5px;
}

.thumb p { margin: 0; padding: 3px; color: #FFF; background: #6e6e6e; }

/* right side
   ---------- */

.right {
  /*width: 250px;*/
  flex: 25%;
  overflow: hidden;
  padding-left: 10px;
}

.box {
  margin-bottom: 5px;
}
  .box h3 {
    margin: 16px 0;
    font-size: 16px;
  }
  .box h4 {
    display: none;
  }
  .box p {
    clear: both;
    margin: 0;
  }
  .box ul {
    margin: 0;
    padding: 0;
    list-style-type: none;
  }
  .box li, .box li a {
    color: #0A3F64;
  }
  .box li.sub1 {
    margin-left: 0px;
  }
  .box li.sub1 a {
    margin: 1px 0 1px 10px;
  }
  .box li.sub1 a:hover, .box li.sub1 .active {
    margin: 1px 0 1px 10px;
    color: #DA0D0D;
  }
  
  
  .box li.sub2 {
    margin: 1px 0 1px 30px;
  }
  .box li.sub3 {
    margin: 1px 0 1px 50px;
  }
  .box li.sub4 {
    margin: 1px 0 1px 70px;
  }
  .box li.sub5 {
    margin: 1px 0 1px 90px;
  }


.image {
  float: left;
  margin: 0 5px 0 0;
}


hr {
  max-width: 100%;
  height: 1px;
  border: none;
  border-bottom: #BEBEBE 1px solid;
  margin: 10px 0;
  clear: left;
}






/* footer
   ------ */

.bottom {
  background-color: #707070;
  color: #FFFFFF;
}

footer {
  width: 100%;
  margin: 0 auto;
  padding: 30px 20px 50px 20px;
  text-align: center;
}
  footer a, footer a:hover {
    color: #FFFFFF;
  }
  footer .social {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
  }
    footer .social img {
      display: block;
    }
    
    footer .social a {
      vertical-align: bottom;
      background-color: #FFFFFF;
      border-radius: 50%;
      padding: 12px;
      margin: 8px;
    }



footer .contact {
  text-align: center;
  padding-top: 40px;
}
  footer .contact img {
    max-width: 170px;
  }



.footer-logo p {
	font-size: 16px;
	color: #fff;
	font-weight: 300;
	margin: 0px;
	padding-top: 20px;
}





@media screen and (min-width: 1140px) {
  header, main, footer {
    max-width: 1140px;
  }
}
@media screen and (min-width: 800px) {
  #welcome {
    display: block;
  }
  #slider {
    display: none;
  }
}
@media screen and (max-width: 1007px) {
  nav ul li {
    margin-bottom: 15px;
  }
}

@media screen and (max-width: 800px) {
  header {
    padding: 5px 10px;
  }
  nav {
    margin-bottom: 2px;
    padding-right: 110px;
    justify-content: left;
  }

  #logo {
    width: 110px;
  }
  h1 {
    top: -5px;
    left: 5px;
    font-size: 24px;
  }
  h2 {
   font-size: 24px;
   margin-top: 0!important;
  }
  main {
    flex-direction: column;
    padding: 10px;
  }
  .left, .right {
    padding: 0;
  }
  #welcome {
    display: none;
  }
  #slider {
    display: block;
  }
}

@media screen and (max-width: 480px) {

}
