/*
Theme Name: Madarstina
Theme URI: http://www.purkert.cz
Author: Jan Purkert
Author URI: http://www.purkert.cz
Description: Webová stránka . 
Version: 0.1
Tags:  

*/

@font-face {
    font-family:'Gill Sans Ultra Bold';
    src: url('Gill Sans Ultra Bold.eot');
	src: url('Gill Sans Ultra Bold.eot?#iefix') format('embedded-opentype'),
		url('Gill Sans Ultra Bold.woff2') format('woff2'),
		url('Gill Sans Ultra Bold.woff') format('woff'),
		url('Gill Sans Ultra Bold.svg#Gill Sans Ultra Bold') format('svg');
    font-weight: 400;
    font-style: normal;
    font-stretch: normal;
    unicode-range: U+0020-02DD;

}

@font-face {
    font-family: 'josefin_sansregular';
    src: url('josefinsans-regular-webfont.woff2') format('woff2'),
         url('josefinsans-regular-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;

}



body {
 	display: grid;
    grid-template-columns: 600px auto auto 268px;
    grid-template-rows: 200px 160px 268px 200px auto auto;
    margin: 0px; 
    padding: 0px;
    background: #E2E4CE;
    height: 100%; 
    
}
    

}
header {
	grid-row: 1 / span 2;
    grid-column: 1 / span 2;
    color: #512215;
    position: relative;
    
}
header:before {
	content: ""; 
	position: absolute;
	top: 0px;
	left:0px;
	width: 60px;
	background: #324C59; 
	height: 100%; 
}

header h5 {
	font-family:'Gill Sans Ultra Bold';
    font-size: 32px; 
    padding-left: 120px; 
    color: #6C4D29;
}

.subtitle {
 font-size: 20px; 
}

#foto {
    grid-row: 3 / span 2;
    grid-column: 1 / span 1;
    margin-top: 20px;

}

@supports not (display: grid) {
  body {
        display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  }
}



@media (max-width: 1023px) {
    body {
    display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
   
    }

    header:before {
        width:10px;
    }
  h1 {
    font-size: 38px !important;
  }
  .parentmid {
    margin-top: 60px;
    margin-bottom: 60px;
  }

.sideornament {
    display: none;
}
.buttonholder {
    padding-left: 0px !important;
}

.button {
    margin: 12px auto !important;
}
.footext, footer, .credits {
padding-left: 40px !important; 

}

.omekontent, .kontaktkontent {
      top: 0% !important;
    left: 0% !important;
    transform: translate(0%, -0%)!important;
    width: auto !important;
    box-sizing: border-box!important;
    min-width: auto !important;
}

.kontaktkontent {
  position: relative !important;
  margin-top: -200px !important;
}


}  /* end of media query 1025 */

@media (max-width: 680px) {
    #foto {
    margin-left: -268px;

}

header h5 {
  font-size: 26px;
}



}


@media (max-width: 1025px) and (min-width: 769px) {
    #foto {
    margin-left: -268px;
}
body {
    display: grid;
    grid-template-columns: 240px auto auto 268px;
    grid-template-rows: 200px 160px 268px 200px auto auto;
    overflow-x:hidden;

}

aside {
      grid-row: 7 / span 1 !important;
    grid-column: 1 / span all !important;
        padding-top: 60px;
}

.center, .explanation p {
  margin-left: 80px;
}

footer {
    grid-row: 8 / span 1 !important;
    grid-column: 1/ span all !important;
  }
  .footext {
        padding-top: 40px;
  }

  .credits {
    grid-row: 9 / span 1 !important;
    grid-column: 1 / span 1 !important;}


}/* end of media query 769 */

@supports not (display: grid) {
    display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;


}



.center {

	grid-row: 3 / span 2;
    grid-column: 3 / span 1;
    padding-left: 40px; 
    padding-right: 20px;
}


   
h1 {
	font-family:'Gill Sans Ultra Bold';
	color: #041721;
	font-size: 68px;
	margin: 0px 40px 10px 0px;
}

h6 {
font-family: 'josefin_sansregular';
font-weight: normal;
font-size: 20px;
color: #1C3745;
margin: 20px 0px 0px 0px;
    -webkit-margin-before: 0px;
    -webkit-margin-after: 0px;

}

aside {
	grid-row: 2 / span 3;
    grid-column: 4 / span 1;
    background: #512215; 
    position: relative;
        display: flex;
    flex-direction: column;
    justify-content: center;
    -webkit-justify-content: center;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    align-items: center;


}

aside:before {
	content: ""; 
	position: absolute;
	top: 0px;
	left:0px;
	width: 100%;
	background: #324C59; 
	height: 60px; 
}

.sideornament {
	grid-row: 3 / span 1;
    grid-column: 4 / span 1;
    position: relative;
}

.sideornament:before{
	content: ""; 
	position: absolute;
	bottom: 0px;
	left:0px;
	background: #324C59;
	width: 40px;
	height: 24px;
}

.sideornament:after {
	content: "";
 	position: absolute;
	bottom: 0px;
	left:-80px;
	background: #512215; 
	width: 80px;
	height: 24px;

}

.explanation {
	grid-row: 4 / span 1;
    grid-column: 3 / span 1;
    padding-left: 40px; 
    color: #1C3745; 
    font-family:'Gill Sans Ultra Bold';
    display: flex;
    padding-right: 30%;
}

.explanation p {
	align-self: flex-end; 
	line-height: 120%;
	font-size: 20px;
}
.parentmid {
	display: flex;
    flex-direction: column;
    justify-content: center;
    -webkit-justify-content: center;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    align-items: center;
    font-family: 'josefin_sansregular';
    font-weight: normal;
    font-size: 20px;
    color: white;
	}    

.buttonholder {
	grid-row: 5 / span 1;
    grid-column: 1 / span 1;
    padding-left: 120px;
}

.button {
	background: #324C59;
  
    margin: -12px 0px;
  width : 200px;
  height: 64px;
  overflow: hidden;
  text-align : center;
  transition : .2s;
  cursor : pointer;
  border-radius: 3px;
  box-shadow: 0px 1px 2px rgba(0,0,0,.2);
      font-family: 'josefin_sansregular';
    font-weight: normal;

}

.btnTwo {
  position : relative;
  width : 200px;
  height : 100px;
  padding-top: 2px;
  background : #0E3A21;
  left : -250px;
  transition : .3s;
  margin-top: -98px;
}
.btnText {
  color : white;
  transition : .3s;
  margin: 18px 0px !important;
}
.btnText2 {
	margin-top: 56px;
  margin-right : -130px;
  color : #FFF;
}
.button:hover .btnTwo{ /*When hovering over .button change .btnTwo*/
  left: -130px;
}
.button:hover .btnText{ /*When hovering over .button change .btnText*/
  margin-left : 65px;
}
.button:active { /*Clicked and held*/
  box-shadow: 0px 5px 6px rgba(0,0,0,0.3);
}

footer {
	grid-row: 5 / span 1;
    grid-column: 4 / span 1;
    display: flex;
        font-family: 'josefin_sansregular';
    font-weight: normal;
}

p {
	font-family: 'josefin_sansregular';
    font-weight: normal;
    font-size: 20px;
    margin: 0px 0px 32px 0px;
    color: black;
}

.imgshad {
    -webkit-box-shadow: 3px 3px 5px 0px rgba(0,0,0,0.75);
    -moz-box-shadow: 3px 3px 5px 0px rgba(0,0,0,0.75);
    box-shadow: 3px 3px 5px 0px rgba(0,0,0,0.75);
}

.img-circle {
    border-radius: 50%;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
        max-width: 100%;
    height: auto;
}

.headimg {
	position: absolute;
    left: 10px;
    top: 38px;
 
}

.parentmid > p {
    margin: 10px 0 30px 0px;
    color: white;
}

.blackie  {
  color: black !important;
}



.omekontent, .kontaktkontent {
  width: 50%;
  background-color: white; 
    min-height: 500px; 
  opacity: 1; 
  padding: 32px;
   margin: auto;
    min-width: 400px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
    flex-direction: column;
	justify-content: center;
  align-items: center;
  margin-top: 140px;
}


form {position: relative;
	padding-top: 80px;
}

.fullwidth {
    width: 100%;
}

.inline {
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    flex-direction: column;
}



h6 {
	margin: 10px 0px 10px 0px;
	font-family: 'Gill Sans Ultra Bold';
    font-size: 20px;
    color: #6C4D29;
    width: 100%;
}

.back-button {
    position: absolute;
    box-sizing: border-box;
    line-height: 50px;
    display: inline-block;
    right: 12px;
    top: 12px;
    cursor: pointer;
    z-index: 10000000;
    height: 70px;
    width: 70px;
    border-radius: 50%;
    background-color: white;
    filter: drop-shadow(0px 0px 10px rgba(0,0,0,.5));
}

.back-button:after {
    transform: rotate(-45deg);
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -5px;
    margin-left: -25px;
    display: block;
    height: 10px;
    width: 50px;
    background-color: black;
    transition: all 0.25s ease-out;
    cursor: pointer;
}

.back-button:before {
    transform: rotate(45deg);
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -5px;
    margin-left: -25px;
    display: block;
    height: 10px;
    width: 50px;
    background-color: black;
    transition: all 0.25s ease-out;
    cursor: pointer;
}

.displaying {
	display: flex !important; 
}
input, textarea {
    width: 100%;
    height: auto;
    background: #B6BFC9 !important;
    margin: 10px 10px 10px 0px!important;
    padding: 15px;
    -ms-flex-item-align: center;
    -ms-grid-row-align: center;
    align-self: center;
    background: #43464D;
    border: 1px solid white;
    border-radius: 5px;
    font-size: .90rem;
    letter-spacing: 2px;
    text-shadow: 1px 1px #d1d1d1, -1px -1px #43464D;
    text-align: center;
    box-sizing: border-box;
    font-family: 'josefin_sansregular';
    font-weight: normal;
    font-size: 20px;
}

.sendbutt {
	float: right;
	margin-top: 20px !important;
	font-size: 20px;
    color: white;
}

.footext {
	grid-row: 6 / span 1;
    grid-column: 1 / span 3;
    padding-left: 60px; 
}

.textcent {
	text-align: center;
}
.credits {
	grid-row: 6 / span 1;
    grid-column: 4 / span 1;
	bottom: 10px;
	right:20px;
	font-size: 14px;
}

.credits a {
	text-decoration: none;
	
	color: #324C59;
}

input:focus, textarea:focus, select:focus {
    outline-offset: -2px;
    outline: #324C59 auto 5px;
}

#form-messages {
  display: none;
}