/* -----------------------------------------------------------------------------------
 
Theme Name: Black Hill
Theme URI:
Description:
Author:Martin Mikloš
Author URI:
License:
License URI:
Version:1
 
----------------------------------------------------------------------------------- */


body {
  font-family: source-sans-pro, sans-serif;
  padding: 0;
  margin: 0;
  background-position: top center;
  background-attachment: fixed;
 -moz-background-size: cover;
 -o-background-size: cover;
  background-size: cover;
  z-index: 1;
  font-weight: 500;
}

html::after {
  content: '';
  display: block;
  position: fixed;
  width: 100%;
  height: 100%;  
  top: 0;
  background-image: url(images/overlay.png);
  background-repeat: repeat;
  background-attachment: fixed;
  z-index: -2;
}

/*
--------------------------------------------------
ZÁKLADNÍ PRVKY
-------------------------------------------------- */

header {
  position: fixed;
  top:0;
  height: 40px;
  width: 100%;
  background-color: #111;
  padding-top: 4px;
  -webkit-box-shadow: 0px 0px 10px 2px rgba(50, 50, 50, 0.5);
  box-shadow: 0px 0px 10px 2px rgba(50, 50, 50, 0.5);
  z-index: 9999;
}

.page-wrapper {
  height: auto;
  width: 100%;
  z-index: 10;
  min-height: 500px;
}

.content {
 max-width: 860px; 
 padding: 50px;
 margin: 100px 5%;
 background-color: #fff;
 -webkit-box-shadow: 0px 0px 10px 2px rgba(50, 50, 50, 0.8);
 box-shadow: 0px 0px 10px 2px rgba(50, 50, 50, 0.8);
 z-index: 10;
}

.content.clanky {
 padding: 0px; 
}

.content.single {
 padding: 0px; 
 max-width: 960px; 
}

.content.single .odsazeni{
 padding: 20px 50px; 
}

footer {
  height:auto;
  min-height: 150px;
  width: 100%;
  background-color: #111;
  padding: 0;
  text-align: center;
}


/* --------------------------------------------------
TYPOGRAFIE
-------------------------------------------------- */

h1 {
  display: inline-block;
  vertical-align: middle;
  padding: 0;
  margin: 0;
  color: #111;
  font-size: 5em;
  font-weight: 600;
  text-transform: uppercase;
}


.content h1 {
 display: block;
 font-size: 2em;
 font-weight: 700;
 padding: 2% 5%;
 background-color: #FBD63A;
 margin-top: -3px;
 z-index: 10;
 font-weight: 600;

}

h1.page-title  {
 margin: -45px -45px 0 -45px;
}

h2 {
  background-color: #FBD63A;
  padding: 10px 30px;
  text-transform: uppercase;
  margin: 0 -20px;
  font-weight: 600;
}

h2 a, h2 a:visited {
  color: #333;
  text-decoration: none;
  -webkit-transition-duration: 0.5s; /* Safari */
  transition-duration: 0.5s;  
}

h2 a:hover, h2 a:focus {
  text-decoration: underline;
}


h3 {
  font-size: 1.8;
  color: #333;
  background-color: #E0E0E0;
  padding: 10px; 
}




a, a:visited {
  color: #FF2122;
  text-decoration: underline;
  outline: 0;
}

a:hover, a:focus {
  text-decoration: none;
}

a img {
  border: none;
}

a.top-logo {
  float: left;
  margin-top: 12px;
  margin-left: 30px; 
  font-weight: 600;
  font-size: 0.95em;
  color: #f2f2f2;
  text-decoration: none;
  text-transform: uppercase;
}

a.top-logo:hover, a.top-logo:focus {
  color: #F9CA0E;
}

a.top-logo img:hover, a.top-logo img:focus {
  opacity: 0.8;
}

.home-box.top p {
  font-size: 1.7em;
  text-transform: uppercase;
  padding: 2px 10px;
  margin: 0;
  font-weight: 900;
  color: #fff;
  text-shadow: 2px 0px 2px  #111;
}

.home-box p {
  font-size: 1.5em;
  padding: 2px 0;
  margin: 0;
  font-weight: 600;
  color: #fff;
  text-shadow: 2px 0px 2px  #111;
}

.home-box p a {
  display: inline-block;
  padding: 6px 25px;
  border: 1px solid #fff;
  background-color: #DE0B23;
  text-decoration: none;
  text-shadow: none;
  color: #fff;
  -webkit-transition-duration: 0.1s; /* Safari */
  transition-duration: 0.1s;    
}

.home-box p a:hover, .home-box p a:focus  {
  background-color: #fff;
  color: #333;
  text-shadow: none;  
}

.icon {
  color: #333;
  font-size: 0.85em; 
  text-decoration: none;
  text-transform: uppercase;

}

.icon a {
  -webkit-transition-duration: 0.2s; /* Safari */
  transition-duration: 0.2s;
  background-color: #e0e0e0;
  color: #333;
  padding: 10px; 
  text-decoration: none;
}

.post-preview .icon a {
  background: none;
  text-decoration: underline;
}

.post-preview .icon a:hover, .post-preview  .icon a:focus {
  background-color: #a5a5a5;
}

.icon a:hover, .icon a:focus {
  background-color: #C5C5C5;
  text-decoration: none;
}

.date {
 margin-right: 10px;  
 padding: 5px 0 2px 25px;
 background-image: url(images/icon_date.png);
 background-repeat: no-repeat;  
 background-position: center left;
}


div.post p, div.page p  {
  font-family: sans-serif;
  font-size: 1em;
  color: #333;
  line-height: 1.75em;
}

div.post li, div.page li {
  font-family: sans-serif;
  font-size: 1em;
  color: #333;
  line-height: 1.75em;
}


footer .social_buttons p a {
  color: #A7AAAD;
}

.authors p {
  display: inline-block;
  margin: 40px 0 0 0; 
  color: #A7AAAD;
  font-size: 0.9em;
  vertical-align: middle;
}

/* --------------------------------------------------
HOME PAGE
-------------------------------------------------- */


#logo {
  display: inline-block;
  width: 30%;
  float: left;
  padding: 6% 4% 
}


#home-right {
  padding: 10% 4% 0 4%;
  position: fixed;
  bottom: 150px;
  right: 0px;
}

.home-box.top  {
 background-color: rgba(255,255,255,0.3);
 padding: 3%;
}

.home-box  {
  width: auto;
  padding: 5% 0;
  text-align: right;
}

.rfwbs_slider .rfwbsoverlay { }
.rfwbs_pagination { bottom: 100px !important; }
.rfwbs_navi { display: none; visibility: hidden; }

/* --------------------------------------------------
NAVIGACE
-------------------------------------------------- */

ul.menu-full {
  float: right;
  margin: 0;
  padding: 8px 20px 0 0; 

}
.menu-full, .sub-menu {
  list-style-type: none;
  z-index: 9999;
  background-color: #111;
  padding: 20px;
  margin: 7px 0px;
}
.menu-full li {
  background-color: #111;
  cursor: pointer;
  position: relative;
}

.menu-full a {
  display: block;
  font-weight: 500;
  font-size: 0.95em;
  color: #f2f2f2;
  padding: 0px 14px;
  overflow: hidden;
  position: relative;
  text-align: center;
  text-decoration: none;
  word-wrap: break-word;
  margin-top:3px;
}
.menu-full a:hover {
  color: #F9CA0E;
  text-decoration: none;
}
.menu-full > li {
  float: left;
}
.menu-full > li > a > span {
  left: 0;
  top: 50%;
}
.sub-menu {
  max-height: 0;
  min-width: 100%;
  overflow: hidden;
  position: absolute;
  top: 100%;
  left: -20px;
  margin: 0px;
  padding: 0px 20px;
}
.menu-full li:hover > .sub-menu {
  max-height: 600px;
}
.sub-menu li {
  height: 20px;
  padding: 15px 0;
  border-bottom: 1px solid #333;
}
.sub-menu li:first-child {
  margin-top: 10px;
}
.sub-menu li:last-child {
  padding-bottom: 15px;
  border-bottom: none;
}

/* --------------------------------------------------
SINGLE
----------------------------------------------------*/
img.attachment-post-large {
  max-width: 950px;
  width: 99%;
  height:auto;
  margin: 0.5%;
}

.icon {
  padding: 20px 50px;
}

.post-categories li {
 list-style: none;
}

#dalsi-clanky table {
margin-top: 20px;
}

#dalsi-clanky td {
  color: #333;
  padding: 5px 0;
}

.odsazeni img {
  width: 100%;
  max-width: 850px;
  height: auto;
}

/* --------------------------------------------------
VÝPIS ČLÁNKŮ 
----------------------------------------------------*/

.post-preview {
  height: auto;
  background-color: #fff;
  padding: 4px;  
  margin: 5% 0 0 0;
 -webkit-box-shadow: 0px 0px 10px 2px rgba(50, 50, 50, 0.8);
  box-shadow: 0px 0px 10px 2px rgba(50, 50, 50, 0.8); 
}

.text-preview {
  display: inline-block;
  vertical-align: top;
  padding: 0 20px;
  margin-left: 4px;
}

.post-preview div.inner {
  padding: 10px 0 0 0;
  height: 125px;
}

div.post div.inner p {
  margin-top: 20px; 
  line-height: 1.5;
  font-size: 0.85em; 
}

.category-box {
  display: inline-block;
  width: auto;
  padding: 10px 30px;
  text-align: center;
  background-color: #fff;
  text-transform: uppercase;
  font-size: 2em;
  font-weight: 500;
  border-left: 5px solid #FBD63A;
}

/*--------------------------------------------------
KATEGORIE - základní výpis článků
--------------------------------------------------*/

#category.content {
  width: 90%;
  max-width: none;
  background: none;
  box-shadow: none;
 -webkit-box-shadow: none;
}

#category.content.single .icon {
  padding: 0;
  margin: 10px 0;
}

#category .post {
  display: inline-block;
}

#category .post-preview {
  display: inline-block;
  vertical-align: top;
  width: 300px;
  padding: 4px;
  margin: 10px; 
}

#category .text-preview {
  width: 280px;
  margin: 0;
  padding: 10px; 
}

#category div.inner {
  height: auto; 
}

#category h2 {
padding: 10px;
margin: 0 ;
}

#category img.attachment-mobile-size {
  width:100%;
  height: auto;
  margin: 0;
}

#category .icon .author {
float: right;
}

#category .icon a {
display: none;
}

#category .btn-cely-clanek {
margin: 0 -10px -10px 0;
}

#category .category-box {
  margin: 10px;
}

/* --------------------------------------------------
GALERIE - výpis článků
----------------------------------------------------*/

#galerie.content.single {
  background: none;
  box-shadow: none;
-webkit-box-shadow: none;
}

#galerie.content.single .icon {
  padding: 0;
  margin: 10px 0;
}

#galerie .post-preview {
  position: relative;
  width: 100%;
  max-width: 952px;
  max-height: 714px;
  padding: 0;  
  margin: 5% 0;
}

#galerie .post-preview a.thumbnail {
  display: inline-block;
  width: 100%;
  height: 100%;
  max-width: 300px;
}

#galerie .text-preview {
  vertical-align: top;
  position: absolute;
  width: 70%;
  bottom: 7%;
  left: 0;
  margin: 0.5%;  
  padding: 0 20px;
  background-color: #fff;
}

#galerie .post-preview div.inner {
  padding: 10px;
  height: auto !important;
}

#galerie div.post div.inner p {
  margin-top: 20px; 
  line-height: 1.5;
  font-size: 0.85em; 
}

#galerie .btn-cely-clanek {
  margin: 0 -15px 5px 0;
}

#galerie img.attachment-post-large {
  margin: 0.5% 0.5% 0 0.5%;
}

/* --------------------------------------------------
GALERIE - SINGLE
----------------------------------------------------*/
img.envira-gallery-image {
  border: 3px solid #E0E0E0;
}

img.envira-gallery-image:hover, img.envira-gallery-image:focus {
 border-color: #FBD63A ;
}


/* --------------------------------------------------
VÝPIS ČLÁNKŮ - Video
----------------------------------------------------*/

#video.content.single {
  background: none;
  box-shadow: none;
 -webkit-box-shadow: none;
}

#video.content.single .icon {
  padding: 0;
  margin: 10px 0;
}

#video .post-preview {
  max-width: 900px;
  width: 100%;
  padding: 0.5% 0 0 0;
}

#video .text-preview {
  position: relative;
  width: 90%;
  max-width: 860px;
  height: auto !important;
  padding: 0 5%;
  margin: 0;
}


#video h2 {
  margin: 0 -5%;
}

.post iframe {
  width: 100% !important;
}

#video .post-preview div.inner {
  padding: 10px 0;
  height: auto;
}

#video div.post div.inner p {
  height: auto !important;
}

#video .btn-cely-clanek {
  margin: 0 -5% 5px 0;
}

/* --------------------------------------------------
FOOTER
----------------------------------------------------*/

.social_buttons {
  width: 200px;
  display: inline-block;
  height: 100%;
  padding-left: 30px;
  float: left;
  vertical-align: middle;
} 

.social_buttons a img {
  display: inline-block;
  vertical-align: middle;
  color: #A5A8AB;
  padding: 5px;
  margin-top: 30px;
}

.social_buttons a img:hover {
  opacity: 0.5;
}

.partners {
  width: auto;
  height: 100px;
  display: inline-block;
  margin: 0; 
  padding: 0;
}

/* .partners a img {
  display: inline-block;
  margin: 0 10px;
  -webkit-transition-duration: 0.5s;
  transition-duration: 0.5s;
} 
*/

.partners a img:hover, .partners a img:focus {
 opacity: 0.3;
}

.authors {
  width:200px;
  display: inline-block;
  height: auto;
  padding-right: 30px;
  vertical-align: middle;
  float: right;
  margin: 0;
} 

a.martinmiklos {
  color: #A7AAAD;
}


/* --------------------------------------------------
KOMENTÁŘE
----------------------------------------------------*/
#comments-block {
  font-family: sans-serif;
  color: #333;
  line-height: 1.75;
}
#comments-block a {
 color: #DE0B23; 
}

.comment-author cite {
    font-style: normal; 
    font-size: 14px;
    font-weight: bold;
}

.comment-body {
  padding: 10px;
  background-color: #fff;
  margin-right: 30px;
  border-left: 2px solid #ddd;
}

.children .comment-body {
 border-left: none;
} 

#comments-block ul {
  list-style: none;
  margin-top: 8px
}

.commentlist {  
  padding-left: 0px;
}

.commentlist li {
    margin-bottom: 5px;
}

.commentmetadata {
  font-size: 12px;
}

textarea#comment {
  width: 100%;
  max-width: 100%;
}

#comments-block .commentmetadata a {
  color: #777;
}

#comments-block p {
  font-size: 0.9em;
}

#comments-block .says {
  display: none;
}

#comments-block input, #comment-block textarea {
padding: 5px;
}

#comments-block label {
margin-left: 10px;
}

.reply a {
  font-size: 12px;
  font-style: italic;
}


/* HELPER CLASSES */
.float-right { float: right; }
.float-left { float: left; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.text-left { text-align: center; }

.btn, #respond #submit, .btn:visited  {
  display: inline-block;
  font-size: 12px;
  color: #333;
  padding: 12px 15px 10px 15px;
  border: none;
  cursor: pointer;
  background-color: #E0E0E0;
  text-transform: uppercase;
  text-decoration: none;
  -webkit-transition-duration: 0.5s; /* Safari */
  transition-duration: 0.5s;  
}

.btn:hover, .btn:focus, #respond #submit:hover, #respond #submit:focus {
  background-color: #A5A5A5;
}

.btn.btn-cely-clanek {
  float: right;
  margin: 0 -20px 0 0;
  -webkit-transition-duration: 0.4s; /* Safari */
  transition-duration: 0.4s;  
}


.btn-cely-clanek:hover, .btn-cely-clanek:focus {
  background-color: #A5A5A5;
  text-decoration: none;
}

.author {
  margin-right: 10px; 
}

iframe#twitter-widget-0 {
  margin-bottom: -5px !important;
  width: 120px !important;
}

#pagination a {
  text-align: center;
  display: inline-block;
  width: 85px;
  padding: 10px 5px;
  margin: 10px;
  background-color: #F9CA0E;
  color: #333;
  text-decoration: none;
  -webkit-transition-duration: 0.4s; /* Safari */
  transition-duration: 0.4s;    
}

#pagination a:hover {
  background-color: #fff;

}

.history-back {
  cursor: pointer;
}



/*-------------------------------------------
RESPONSIVE
--------------------------------------------*/



/* RESPONSIVNÍ PATIČKA A ÚVODNÍ STRÁNKA*/

@media (max-width: 1260px) {

footer {
  height: auto;
}

.social_buttons, .partners, .authors {
  width: 100%;
  display: block;
  text-align: center;
 }

.social_buttons { padding: 0 }
.partners { height: auto; }
.authors { margin-top: -20px; padding: 0; background-color: #111; }

.rfwbs_pagination {
  display: none;
 } 

.authors p {
 margin: 15px 0 20px 0;
 }

#home-right {
bottom: 220px;
 } 


}


/* změna u výpisu videa a článků (protože jsou širší než ostatní) */
@media (max-width: 1080px) {

.content {
  margin: 100px auto 0 auto;
}

}


/* změna u výpisu videa a článků (protože jsou širší než ostatní) */
@media (max-width: 1020px) {

.content.single .odsazeni {
 padding:20px;
}

}

/* přepnutí menu na mobilní */
@media (max-width: 899px) {
  

header {display: none;}

#logo, #home-right {
    display: block; 
    position: inherit; 
    float: none; 
    text-align: center; 
    margin: 0 auto;
    padding: 0;
}

#logo {
 margin: 50px auto 0 auto;
 width: 50%;
}

.home-box {
  text-align: center;
}

.content {
  margin: 3%;
}

}



/* drobná úprava u kategorií - dva sloupce*/
@media (min-width: 660px) and (max-width: 750px) {

#category.content {
  width: 99%;  
  margin: 0.5%;
}

#category .post-preview, #category .category-box  { margin: 4px; }
}


/* hlavní změny designu */
@media (max-width: 660px) {

html::after {
  content: none;
}  

body {
  background-image: none !important;
}

.page-wrapper {
  min-height: 300px;
  height: auto;
}

#logo img {
  display: block;
  margin: 15px auto;
}

.partners,
#home-page-welcome {
  display: block;
  height: auto;
  text-align: center;
}

.partners {
  padding-top: 4px;
}

.rfwbs_pagination {
  display: none;
}

#responsive-menu {
  position: absolute;
  top: 0;
}

.content, #galerie.content, #video.content, #category.content{
  width: 96%;
  box-shadow: none;
  padding: 2%;
  margin-right: auto;
  margin-left: auto; 
}

#single .content {
  margin: 20px auto 0 auto;
}

.content h1,h2,h3 {
  margin: 0;
}

h2 {
 padding: 10px;
}

.icon {
  margin-left: 0;
  height: auto;
  padding: 20px;
}

.icon a {
  display: inline-block;
  margin-top: 4px;
}

img.attachment-post-large {
  width: 100%;
  height: auto;
  margin: 0;
}

footer {
  height: auto;
  box-shadow: none;
  -webkit-box-shadow: none;
}

header {
  box-shadow: none;
  -webkit-box-shadow: none;
}

.post-preview, #galerie .post-preview {
  max-height: none;
  padding: 0;
  background-color: #eee;
    box-shadow: none;
  webkit-box-shadow: none;
  margin: 0 0 30px 0;
}

#category .post-preview, #video .post-preview {
  width: 100%;
  margin: 0 0 5% 0;
  padding: 0;
}

#category .category-box {
  margin: 0;
}
.text-preview,  #galerie .text-preview {
  width: 100%;
  position: inherit;
  margin: -5px 0 0 0;
  padding: 0;
  background-color: #eee;
}

#category .text-preview {
  width: 96%;
}

#category h2 {
  margin: -6px 0 0 0;
}

.btn.btn-cely-clanek {
  margin-right: 20px;
}

#galerie .btn.btn-cely-clanek {
  margin-right: 5px;
}

#category .btn-cely-clanek {
  margin: 0 -5px -5px 0; 
}

#pagination {
 text-align: center;
}

#galerie img.attachment-post-large {
  margin: 0;
}

td span.date {
  background: none;
  padding-left: 0px;
}

}




@media (max-height: 670px) {

footer {
  position: inherit;
  height: auto;
}

.rfwbs_pagination {
  display: none;
} 

}





/* 
Přidano pro stránku patrnerů (partners.php) 
*/

.partners-list {
  list-style: none;
  margin-left: 0;
}

.partners-list li {
  display: flex;
  align-items: center;
  padding: 30px 0; 
  border-bottom: 1px #f1f1f1 solid;
}

.partners-list .logo {
  width: 200px;
  display: flex;
  align-items: center;
  padding: 0 30px 0 0;
}

.partners-list .logo img {
  width: 100%;
  box-shadow: none;
  border-radius: 0;  
}

.partners-list p {
  flex: 1;
  padding: 0;
}

@media (max-width: 880px) {

  .partners-list {
    flex-direction: column;
  }
  
  .partners-list .logo {
    margin-bottom: 15px;
    width: 150px;
  }

  .partners-list p {
    font-size: 13px;
  }

}