/* 
    Created on : 16.10.2015, 9:41:40
    Author     : meder
*/

body {
	font-family: "raleway","Helvetica Neue",Helvetica,Arial,sans-serif;
	background-image: url(../img/bg.jpg);
	background-position: 50% 0;
	background-repeat: no-repeat;
	background-color: #edebed;
}

@media(min-width: 1921px) {	
	body {
		 background-size: 100% auto;
	 }	
}

header {
	padding-top: 75px;
}	

.logo-container {
	margin-bottom: 60px;
}

.logo-leki {
	color: #fff;
	font-size: 48px;
	font-weight: 800;
	transition: all 0.2s;
}	

.logo-leki:hover,
.logo-leki:focus {
	color: rgba(255,255,255,0.7);
	text-decoration: none;
}	

.logo-cup {
	display: inline-block;
	transform: skew(-8deg);
	background: #ba0725;	
	padding: 0px 20px;
	margin-top: -10px;
}	

.logo-cup em {	
	transform: skew(8deg);
	font-style: normal;
	display: inline-block;
	color: #fff;
	font-weight: 700;
	font-size: 20px;
}	

.leki-logo-container {
	text-align: right;
	padding-top: 25px;
}	

.leki-logo-container a img {
	margin-left: 20px;
	transition: all 0.2s;	
}	

.leki-logo-container a:hover img {
	opacity: 0.7;
}	

nav {	
	margin-bottom: 50px;
	background-color: rgb(78, 92, 115);
	background-color: rgba(78, 92, 115,0.8);
	transition: background-color 0.3s;
}

@media(min-width: 768px) {	
	nav.fixed {	
		 margin-bottom: 0px;
		 position: fixed;
		 left: 0;
		 top: 0;
		 width: 100%;
		 background-color: rgba(78, 92, 115,1);
		 z-index: 100;
		 box-shadow: 0 5px 5px rgba(0,0,0,0.1);
	 }
	 header.fixed {	
		 padding-bottom: 95px;
	 }
}	 

.nav-main > li {	
	float: left;
}	 

.nav-main > li > a {	
	font-size: 18px;
	text-transform: uppercase;
	font-weight: 600;
	color: #fff;
	position: relative;
	transition: all 0.3s;
}

.nav-main > li > a:hover,
.nav-main > li.open > a {	
	color: #ba0725;
}

.dropdown-menu {
	 margin-top: 0;
	 background-color: rgb(78, 92, 115);
	 background-color: rgba(78, 92, 115,0.8);
	 border-radius: 0;
}

.dropdown-menu > li > a {
	 text-transform: uppercase;
	 color: #fff;
	 font-weight: 600;
}

@media (min-width: 768px) { 
	 .nav-main > li > a:after {	
			content: " ";
			display: block;
			position: absolute;
			left: 0;
			top: 0;
			width: 100%;
			height: 4px;
			background: #fff;	
			transition: all 0.3s;
			transform: translate3d(0,-20px,0);
			opacity: 0;
	 }

	 .nav-main > li > a:hover:after {	
			transform: translate3d(0,0,0);
			opacity: 1;
	 }

	 .nav-main > li.active > a:after {	
			transform: translate3d(0,0,0);
			opacity: 1;
	 }

}

#cups {		
	padding: 30px;
	margin-bottom: 50px;
	background: rgba(255,255,255,0.6);
	overflow: hidden;
}	 

article,
aside {	
	background: #fff;
	margin-bottom: 50px;
	padding: 20px;
} 

.h2, .h4 {	
	color: #4e5c73;
}  

.h3 {	
	color: #ba0725;
}  

article > .h2,
aside > .h4:first-child {	
	margin-top: 0;
} 

article .pull-left {	
	margin-right: 15px;
	margin-bottom: 10px;
} 

footer {	
	background: #4e5c73;
	padding-top: 40px;
	padding-bottom: 0px;
	color: rgba(255,255,255,0.5);
} 

footer .h4 {	
	color: #fff;
} 

.copyright {	
	margin-top: 40px;
	background: #ba0725;
	color: #fff;
	padding-top: 10px;
	padding-bottom: 10px;
} 

.copy-logo {	
	font-weight: 800;
} 

.copy-text {	
	text-align: right;
} 

.date,
.disc {	
	color: #ba0725;
}

.passed .date,
.passed .disc {	
	color: #fff;
} 

.place {	
	color: #4e5c73;
} 

.passed .place {	
	color: #ccc;
} 

.passed .back {	
	color: #fff;
}

.flip-container {
	 perspective: 1000;
	 transform-style: preserve-3d;
   position: relative;
   margin-bottom: 1rem !important;
}
/*  UPDATED! flip the pane when hovered
.flip-container:hover .back {
	 transform: rotateY(0deg);
}
.flip-container:hover .front {
	 transform: rotateY(180deg);
} */

.flip-container, .front, .back {
	 width: 155px;
	 height: 200px;
}

/* flip speed goes here */
.flipper {
	transition: 0.6s;
	transform-style: preserve-3d;	
}

/* hide back of pane during swap */
.front, .back {
	backface-visibility: hidden;
	transition: 0.6s;
	transform-style: preserve-3d;

	position: absolute;
	top: 0;
	left: 0;
}

/*  UPDATED! front pane, placed above back */
.front {
	z-index: 2;
	transform: rotateY(0deg);
	background-image: url(../img/cup_white.svg);
	background-size: contain;
	background-repeat: no-repeat;
	background-position: 50% 50%;
	text-align: center;
	padding-top: 40px;
}

/* back, initially hidden pane */
.back {
	transform: rotateY(-180deg);
	background-image: url(../img/cup_white.svg);
	background-size: contain;
	background-repeat: no-repeat;
	background-position: 50% 50%;
	text-align: center;
	color: #4e5c73;
	padding-top: 60px;
}

.passed .front,
.passed .back {
	 background-image: url(../img/cup.svg);
}

.front:hover,
.back:hover {
	 text-decoration: none;
}

.front > span,
.back > span {	
	display: block;
	font-weight: 700;
	font-size: 16px;
}

.logo-skjested {	
	width: 80%;
	margin: 0 auto;
}

@media (min-width: 400px) {	
	 .logo-skjested {	
		 max-width: 320px;
	 }
}

.cup-bottom {	
	text-align: center;
	padding-top: 5px;
  position: absolute;
  bottom: 0.5rem;
  left: 1rem;
  right: 1rem;  
}

.cup-bottom a {	
	display: block;
	font-size: 14px;
	background: #4e5c73;
	color: #fff;
	padding: 4px 6px;
  margin-bottom: 0.25rem;  
}

.cup-bottom a:hover,
.cup-bottom a:focus {		
	color: #ba0725;
	background: #fff;
	text-decoration: none;
}

.cup-bottom a .fa {	
	 font-size: 14px;
	 display: none;
}

.cup-bottom a.disabled {
	 opacity: 0.5;
	 background: #4e5c73;
	 color: #fff;
}

.table > thead > tr > th {
    border-bottom-color: #B4B8C0;
}

.table > tbody > tr > td, 
.table > tbody > tr > th, 
.table > tfoot > tr > td, 
.table > tfoot > tr > th, 
.table > thead > tr > td, 
.table > thead > tr > th {
    border-top-color: #B4B8C0;
}

.highlight {
    font-weight: 700;
		color: #ba0725;
}

.fa-red {
		color: #ba0725;
}

.btn-pokracovat {
		background-color: #4e5c73;
		color: #fff;
		border-color: #37455C;
}

.btn-pokracovat:hover,
.btn-pokracovat:focus{
		color: #ba0725;
}

@media (min-width: 992px) and (max-width: 1199px) { 
	 .flip-container, .front, .back {
			width: 122px;
			height: 180px;			
	 }
	 
	 .front > span,
	 .back > span {	
		 display: block;
		 font-weight: 700;
		 font-size: 14px;
	 }
	 
	 .front > .place {	
		 font-size: 13px;
	 }
	 
	 .cup-bottom a {	
		 margin-bottom: 2px;
	 }

	 .logo-cup em {
			 font-size: 16px;
	 }
}

@media (min-width: 768px) and (max-width: 991px) { 
	 .flip-container, .front, .back {
			width: 200px;
			height: 200px;			
	 }	 	 
	 	 
	 .nav-main > li a {
			 font-size: 14px;
	 }
	 
	 .leki-logo-container a img {
			height: 40px;
			width: auto;
	 }
	 
	 .logo-cup em {
			 font-size: 15px;
	 }

}

@media (max-width: 767px) { 

	 header{
			padding-top: 30px;
	 }
	 
	 .logo-container {
			 margin-bottom: 20px;
			 text-align: center;
	 }
	 
	 .leki-logo-container a img {
			height: 40px;
			width: auto;
			margin-left: 3px;
			margin-right: 3px;			
	 }
	 
	 .leki-logo-container a:first-child img {			
			margin-left: 0px;
	 }
	 
	 .leki-logo-container a:last-child img {			
			margin-right: 0px;
	 }
	 
	 .leki-logo-container {
			text-align: center;
			padding-top: 0px;
			margin-bottom: 20px;
	 }
	 
	 .logo-leki {
			 font-size: 40px;
	 }
	 
	 .logo-cup em {
			 font-size: 14px;
	 }	
	 
	 nav{
			 margin-bottom: 20px;
	 }	
	 
	 
	 .nav-main {
			 text-align: center;			 
	 }	
	 
	 .nav-main > li {	
		 float: none;
		 display: inline;
	 }	 

	 .nav-main > li > a {
			 display: inline-block;
			 font-size: 14px;
			 font-weight: 400;
			 padding: 8px 5px;
	 }
	 
	 .dropdown-menu {
			background-color: rgb(78, 92, 115);
	 }
	 
	 .dropdown-menu > li > a {
			font-weight: 400;
	 }
	 
	 .nav-main > li.active > a {
			 background: #fff;
			 color: #ba0725;
	 }
	 
	 .flip-container {
			 margin: 0 auto;
	 }
	 	 
}

@media (max-width: 440px) {
	 .novinka-img {
			 width: 100%;
	 }	 	 
}

@media (min-width: 441px) {
	 .novinka-img {
			 width: 240px;
	 }	 	 
}

.fa-file-pdf-o {
	 color: #ba0725;
}

.fa-file-excel-o {
	 color: #170;
}

.datum-novinka {
	 font-weight: bold;
}

.front > .zruseno {
	 text-transform: uppercase;
	 font-size: 13px;
	 color: #c00;
}

.cups {
  display: flex;
}

@media(max-width: 999px) {
  .cups {
    flex-wrap: wrap;
  }  
}

.calendar-container {
  display: flex;
  margin-bottom: 2rem;
}

.calendar-item {
  padding: 1rem;
  background: #fff;
  text-align: center;
  border-right: 1px solid rgba(0,0,0,0.3);
	flex-grow: 1;
}

.calendar-item:last-child {
  border-right: 0;
}

.calendar-date {
  color: #ba0725;
  font-weight: bold;
	display: block;
}

@media (max-width: 650px) {
  .calendar-container {
    flex-direction: column;
  }
  .calendar-item {
    border-right: 0;
    border-bottom: 1px solid rgba(0,0,0,0.3);
  }
}