/*
Theme Name:		Den veteránů, 11. listopadu
Theme URI:		https://www.denveteranu.cz/
Author:			Post Bellum
Author URI:		https://www.postbellum.cz/
Version:		2020
*/

html {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	font-smoothing: antialiased;
}
body {
	font-family: abril-text, serif;
	line-height: 1.5;
	color: #1a1a1e;
	overflow-x: hidden;
}
a {
	color: #1a1a1e;
	text-decoration: none;
}
main a {
	color: #e30514;
}
button {
	display: inline-block;
	background: none;
    border: 0;
	outline: inherit;
    color: inherit;
    cursor: pointer;
    font: inherit;
    line-height: normal;
    overflow: visible;
    padding: 0;
	margin: 0;
    -webkit-appearance: none;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
}
img,
iframe {
	max-width: 100%;
	display: block;
}

.wrap {
    max-width: 1100px;
    margin: auto;
    position: relative;
}
.grid {
	width: 100%;
	max-width: 840px;
    margin: auto;
	position: relative;
}

#header, #main {
	margin: 0 5.875em; 
}
#footer {
	padding: 1em 1.875em 7.5em;
    background: #1a1a1e;
    color: #fff;
	font-size: 0.9375em;
    line-height: 1.5;
}
/*
#root {
    position: absolute;
	z-index: 10;
    top: 0;
    right: 0;
    background: #1a1a1e;
}
#root a {
    display: block;
}
#root img {
	margin: 20px 20px 15px;
}
*/
#root {
	display: flex;
	flex-direction: row-reverse;
	align-items: center;
}
#menu {
	flex-grow: 1;
	border-top: 2px solid;
	border-bottom: 2px solid;

	font-family: tablet-gothic, sans-serif;	
	font-size: .9375em;
	text-transform: uppercase;
	letter-spacing: .1em;
	line-height: 2.5;
}
#logo {
	position: relative;
	z-index: 100;
/*	background: #1a1a1e;*/
	margin-left: 5.875em; 
}
#logo img {
	margin: 0 150px 15px;
}

#call {	
	position: fixed;
	z-index: 5;
	left: 0; right: 0;
	bottom: 0;
	
	background: #fff;
	border-top: 1px solid;
	padding: 1.25em 1.875em;
}
#call a {
	display: block;
}

.menu {
	overflow: hidden;
}
.menu #nav {
	display: flex;
	top: 0;
}

#nav {
	display: flex;
	align-items: center;
	justify-content: center;
	
	position: fixed;
	z-index: 99;
	left: 0; right: 0;
	top: 100%;
	width: 100vw;
	height: 100vh;
	background: #fff;
	
	transition: .5s;
	/*
	padding: 1em 0 1.5em;	
	align-self: flex-end;
	*/
}
#nav * {
	margin: 0;
	padding: 0;
}
#nav ul {
	margin: 1.875em;
	font-size: .9375em;
	text-transform: uppercase;
	letter-spacing: .1em;
}
#nav li {
	list-style: none;
	padding-top: 1em;
}
#nav li:first-child a {
	font-weight: 700;
	color: #e30514;
}
#nav a:hover {
	color: #E30514;
}
#exit {
	position: absolute;
	left: 0; top: 0;
	font-family: tablet-gothic, sans-serif;
	font-size: 2.5em;
	line-height: 1;
	padding: .4em .6em;
}

#site {
	display: block;
	margin-top: 1.75em;
}

h1, .cover-head {
	font-family: tablet-gothic, sans-serif;
	font-weight: 600;
	text-transform: uppercase;
	color: #e30514;
	font-size: 2.5em;
	font-size: 12vw;
	line-height: 1;
	letter-spacing: .1em;
	margin: 1.5em 0;
	max-width: 90%;
}
h3 {
	font-weight: 400;
	font-style: italic;
	font-size: 1.3125em;
	line-height: 2;
	margin: 0;
	
	background-image: linear-gradient(to bottom, transparent 40px, #1a1a1e 40px, #1a1a1e 42px);
    background-repeat: repeat-y;
    background-size: 100% 42px;
	background-position: 0 -40px;
	
	padding-bottom: 2px;
}
h4 {
	margin: 0;
	font-family: tablet-gothic;
	font-style: normal;
	font-weight: 400;
	font-size: .75em;
	text-transform: uppercase;
	letter-spacing: .1em;
	position: relative;
}
h4::before {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	top: 50%;
	height: 1px;
	background: #1a1a1e;
}
h4 span {
	position: relative;
	display: inline-block;
	background: #fff;
	padding: 0 30px;
}

.lead {
	font-style: italic;
	font-size: 1.3125em;
	line-height: 2;
	padding: 0 0 2px;
	margin: 0 0 40px;
	
	background-image: linear-gradient(to bottom, transparent 40px, #1a1a1e 40px, #1a1a1e 42px);
    background-repeat: repeat-y;
    background-size: 100% 42px;
	background-position: 0 -40px;	
}

.btn {
	font-family: tablet-gothic, sans-serif;
	display: inline-block;
	padding: 15px 40px;
	border: 1px solid;
	box-shadow: 5px 5px 0 0;
	border-radius: 2px;
	font-size: .9375em;
	text-transform: uppercase;
	letter-spacing: .1em;
	text-align: center;
	background: #fff;
	color: #1a1a1e;
	transition: box-shadow .1s ease-in-out;
}
.btn:hover {
	box-shadow: 7px 7px 0 0;
}

.claim .flex {
	flex-flow: column wrap;
}
.claim .flex .btn {
	display: block;
	margin-top: 1.875em;
}

.boxes {
	position: relative;
	margin: 5em 0;
	font-family: tablet-gothic, sans-serif;
	font-size: 15px;
}
.boxes .box {
	margin-bottom: 40px;
}
.boxes a {
	position: relative;
	display: block;
	margin-top: 2em;
}
.boxes a:first-child {
	margin-top: 0;
}

.logos {
	text-align: center;
	border-top: 5px solid;
	font-style: italic;
}
.logos > * {
	padding: 0;
}
.logos p {
	margin: 1.5em 0;
	line-height: 2;
}
.logos ul {
	margin: 1.5em -1.875em 7.5em;	
}
.logos li, #social li {	
	vertical-align: middle;
	display: inline-block;
	margin: 1em 1.25em;
	list-style: none;
}
#social {
	margin: 0;
	padding: 0;
	text-align: center;
	margin-bottom: 5em;
}
#social li {
	width: 1.5em;
	height: 1.5em;
	margin: 1em 1em;
}
#social a svg path {
	transition: .2s fill;
}
#social a:hover svg path {
    fill: #e30514;
}
#social svg {
	max-width: 100%;
	max-height: 100%;
	display: inline-block;
	vertical-align: middle;
}

body {
	background-image: url(img/bg.jpg);
	background-repeat: no-repeat;
	background-position: 80% 20px;
	background-size: 130%;
}

#map {
    height: 65vh;
	box-shadow: 1em 1em #1a1a1e;
}

.rows {
	border-top: 5px solid;
	margin-bottom: 5em;
}
.row {
	position: relative;
	margin-top: 40px;
}
.row a {
	color: #1a1a1e;
}
.row a:hover {
	color: #e30514;
}
.row a::after {
	position: absolute;
	content: '';
	left: 0;
	top: 0;
	right: 0;
	bottom: 0;
}
.row img {
	transition: box-shadow .5s;
}
.row:hover img {
	box-shadow: -10px 10px;
}
.row:hover h3 {
	background-image: linear-gradient(to bottom, transparent 40px, #e30514 40px, #e30514 42px);
}

.hilight, .cover-lead {
	font-family: tablet-gothic, sans-serif;
	color: #e30514;
	font-size: 1.3125em;
	font-weight: 600;
	text-transform: uppercase;
	line-height: 1;
	letter-spacing: .1em;
}
.banner {
	border-top: 5px solid;
	padding: 1.5em 0;
	margin-top: 5em;
}

.wp-block-embed,
.wp-block-image {
    margin: auto;
}

#footer a {
	color: #fff;
}
#footer a:hover {
	border-bottom: 1px solid #555561;
}

#cover {
	z-index: 1000;
	position: fixed;
	left: 0;
	right: 0;
	top: 0;
	bottom: 0;
	overflow-y: scroll;
	background: #fff url(img/pattern.svg);
	text-align: center;
	display: none;
	animation: poppies 30s linear infinite;
}
@keyframes poppies {
	from {
		background-position: 0 0;
	}
	to {
		background-position: 0 -600px;
	}
}

.over {
 /*overflow: hidden;*/
}
.over #cover {
	display: block;
}
#cover .wrap {
	max-width: 90%;
	padding-bottom: .5em;
}
.cover-head {
	margin: 1.5em auto .25em;
}
.cover-lead {
	margin: 1.5em auto;
	line-height: 1.5;
}
.cover-more {
	margin: 1.5em auto;
	font-style: italic;
	line-height: 2;
}
.cover-give {
	margin: 1.5em 0;
	font-family: tablet-gothic, sans-serif;
	font-weight: 600;
}
#cover .btn {
	display: block;
	margin: 1em 0;
}
#cover .btn + .btn {
	color: #e30514;
}
	
@media only screen and (min-width: 48em) {
	body {
		background-position: 75% -200px;
		background-size: 130%;
	}
	
	.flex {
		display: flex;
	}
	
	#menu, #exit, #call {
		display: none;
	}
	
	#logo {
		/*position: absolute;*/
		z-index: 10;
    	top: 0;
    /*	right: 1.875em;*/
	}
	
	#header {
		/*padding-top: 80px;*/
	}
	#header .flex {
		width: 100%;
		max-width: 840px;
		margin: auto;
		
		flex-flow: column wrap;
		align-content: center;
		border-bottom: 1px solid #1A1A1E;
	}
	
	#nav {
		position: static;
		width: auto;
		height: auto;
		background: none;
		transition: none;
		padding: 0.5em 0 1.5em;	
	}
	#nav ul {
    	-moz-column-count: 2;
    	-moz-column-gap: 30px;
    	-webkit-column-count: 2;
    	-webkit-column-gap: 30px;
    	column-count: 2;
    	column-gap: 30px;
	}
	#nav li {
		padding-top: 4px;
			}
	
	h1 {
		margin: .75em 0;
		font-size: 5.25em;
	}
	
	.cover-head {
		font-size: 5.25em;		
	}
	.cover-give {
		margin-top: 7em;
	}
	#cover .btn {
		margin: 0 .75em;
	}
	
	.claim .lead {
		margin: auto;
		max-width: 72.5%;
	}	
	.claim .flex {
		flex-flow: row nowrap;
		justify-content: space-around;
	}
	
	.row::after {
		content: '';
		display: table;
		clear: both;
	}
	.row img {
		float: right;
		max-width: 300px;
		margin: 21px 0 40px 95px;
	}
	.row:nth-child(even) img {
		float: left;
		margin: 21px 95px 95px 0;
	}
	.row:nth-child(even):hover img {
		box-shadow: 10px -10px;
	}
	
	.boxes {
		justify-content: space-around;
	}
	.boxes .box {
		width: 300px;
	}
	.boxes .btn, #cover .btn {
		display: inline-block;
	}
	
	.logos p {
		max-width: 34em;
		margin: 1.5em auto;
		font-size: 1.25em;
	}
	.cover-more {
		font-size: 1.25em;
	}
	
	#footer {
		padding-bottom: 5em;
	}
}

@media only screen and (min-width: 64em) {
	/*
	body {
		background-position: center 150px;
		background-size: 110%;
	}
	*/
	#header {
		/*padding-top: 132px;*/
	}
	#header .flex {
		flex-flow: row nowrap;
		justify-content: space-between;
	}
	
	#site, #nav ul {
		margin: 2em;
	}
	
	.boxes {
		justify-content: space-between;
	}
	.boxes .box {
		width: 380px;
	}

	.claim {
		margin-left: 30%;
	}
	.claim .lead {
		max-width: none;
	}
	.claim .flex {
		justify-content: space-between;
	}
	
	#cover .wrap {
		max-width: 840px;
		padding-bottom: 10em;
	}
}
@media screen and (max-width: 764px) {
 body {
  background-image: url(img/kafkabg.jpg);
  background-repeat: no-repeat;
  background-position: top;
  background-size: 100%;
   }
   
 #header, #main {
    margin: 0 0.875em;
}  
   
#logo img {
    margin: 0 25px 15px;
    float: right;
    width: 60%;
} 
   #site {
    display: block;
    margin-top: 25em;
  }
  
  h1, .cover-head {
   
    font-size: 8vw;
   
    }
    
  .lead {
    font-style: italic;
    font-size: 1em;
    line-height: 2.6;
    font-weight: bold;
  }  
    
    
 }
@media screen and (max-width: 600px)  {
#site {
    display: block;
    margin-top: 19em; 
}

.lead {
    font-style: italic;
    font-size: 1em;
    line-height: 2.6;
    font-weight: bold;
  }
} 

@media screen and (max-width: 480px) {

     #site {
    display: block;
    margin-top: 12em;
  }
  
  
   h1, .cover-head {
   
    font-size: 8vw;
   
    }
    
   .lead {
    font-style: italic;
    font-size: 1em;
    line-height: 2.6;
    font-weight: bold;
  }
}