/*
 Theme Name:   Raudanpuute ry
 Description:  Raudanpuute ry:n nettisivut
 Author:       Emilia Aarnisalo
 Author URI:   http://www.emiliaaarnisalo.com
 Template:     raudanpuute
 Version:      1.0
*/

@import url('https://fonts.googleapis.com/css?family=Montserrat:300,500,700&display=swap');
      
* {
    margin:0;
    padding:0;
    transition:all .4s linear;
    -webkit-transition:all .4s linear;
    scroll-behavior:smooth;
}
      
body {
    color:#262626;
    font-family:'Montserrat', sans-serif;
    font-weight:300;
    font-size:1em;
}

a {
    color:#262626;
    text-decoration:none;
}

.entry-content p a {
    color: #CE3C28;
    border-bottom:1px solid;
    padding-bottom:2px;
    line-height:120%;
}

.entry-content p a:hover {
    border-bottom:2px solid;
    color:#E09850;
}

.page .entry-content h2, .page .entry-content p, .page .entry-content ul, .post .entry-content h2, .post .entry-content p, .post .entry-content ul, .entry-footer, .post-navigation, .comments-area, .haku {
    max-width:900px;
    margin:1.5% auto;
    padding:0 5%;
}

h1, h2 {
    margin-bottom:20px;
}

h1 {
	font-size:1.7em;
}

h2 {
	font-size:1.5em;
}

h1.entry-title, h1.page-title {
    text-align:center;
}

p, ul {
    margin-bottom:20px;
    line-height:135%;
}

ul {
    margin-left:20px;
}

.wp-block-quote {
    padding: 0 135px;
    display: block;
    font-style: italic;
    font-size: 1.1em;
}

@media screen and (max-width:1200px) {
	.wp-block-quote {
    padding: 10px 50px;
}
}

.fa {
    padding:10px;
}

.fab {
    font-size:1.5em;
}

.cta {
    background-color:#CE3C28;
    color:#fff;
    padding:12px 15px;
    margin-top:20px;
	text-transform:uppercase;
	letter-spacing:0.5px;
}

.cta:hover {
    background-color:#E06150;
}

button.menu-toggle {
    display:none;
}

.wp-block-image img {
    height:auto;
    margin:2% 0;
}

@media screen and (max-width:768px) {
    body {
        font-size:1em;
    }
    
    h1 {
        font-size:1.2em;
    }
    
    h2 {
        font-size:1.1em;
		font-weight:500 !important;
    }
	
	p.has-medium-font-size {
		font-size:1em;
	}
}

/* screen reader text */
a.skip-link.screen-reader-text, .screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/* CONTENT PAGE & POST PAGE */

.post .entry-header, .haku h1.page-title {
    text-align:center;
    margin-top:5%;
    padding:0 2%;
}

.page .entry-header {
    margin-top:5%;
}

.entry-content {
    margin-top:2%;
}

.haku {
	margin-top:5%;
}

.page .entry-content h2, .post .entry-content h2 {
    text-align:left;
    border-bottom: 3px solid #CE3C28;
    display: inline-block;
}

.line {
	text-align:left;
    border-bottom: 3px solid #CE3C28;
    display: block;
	max-width:500px;
	padding:10px 0;
	font-weight:500;
}

.page .entry-content ul, .post .entry-content ul {
    padding-left:140px;
}

.haku h2 {
    text-align:left;
}

.haku h2 a {
    color:#CE3C28;
}

.wp-block-columns {
    max-width:1100px;
    margin:auto;
}

.wp-block-columns .wp-block-column ul {
    padding:20px;
}

h2.entry-content-navigation {
    text-align: left !important;
    font-size: 1.17em;
    margin-top: 5% !important;
}

nav.navigation.post-navigation {
    margin-bottom:10%;
}


.nav-previous {
    width: 40%;
    float: left;
    text-align: left;
    color: #fff;
    margin-right: 4%;
}

.nav-next {
    width: 40%;
    float: right;
    text-align: right;
    margin-left: 4%;
}

.nav-previous a, .nav-next a {
    color: #CE3C28;
    border-bottom:1px solid;
    padding-bottom:2px;
}

.nav-previous a:hover, .nav-next a:hover {
    color:#E06150;
}

/* KOMMENTOINTI */

textarea#comment {
    width:100%;
    border:1px solid #CE3C28;
    margin:10px 0;
    font-size:inherit;
}

label {
    font-weight:bold;
}

input#submit {
    background-color: #e3a261;
    padding: 2%;
    color: #fff;
    font-size: inherit;
}

input#submit:hover {
   background-color:#F8C083; 
}


@media screen and (max-width:768px) {
    .page .entry-header, .post .entry-header {
    text-align:left;
    padding: 0 5%;
    }
	
	h1.entry-title {
	text-align:left;
	padding-left:0;
	margin-top:10px;
	}
    
    .page .entry-content ul, .post .entry-content ul {
    padding-left:70px;
    }
}

@media screen and (min-width:1400px) {
    .page .entry-content h2, .post .entry-content h2 {
    padding: 0 0 1% 23%;
}
}

@media screen and (max-width:1400px) {
    .page .entry-content h2, .post .entry-content h2 {
    padding: 0 0 1% 16%;
}
}

@media screen and (max-width:1200px) {
    .page .entry-content h2, .post .entry-content h2 {
    padding: 0 0 1% 9%;
}
	
	.home .entry-content p {
		padding:0 5%;
	}
}

@media screen and (max-width:1024px) {
    .page .entry-content h2, .post .entry-content h2 {
    padding: 0 0 1% 5%;
}
}

@media screen and (max-width:950px) {
    .page .entry-content h2, .post .entry-content h2 {
    padding: 0 0 1% 8%;
}
}


@media screen and (max-width:890px) {
    .page .entry-content h2, .post .entry-content h2 {
    padding: 0 0 1% 5%;
}
}

/* MEDIA QUERIES */

@media only screen and (max-width: 1024px) {
    .site-header, header#masthead, .site-branding {
        display:inline-block !important;
        width:100%;
        text-align:center;
    }
}

section.no-results.not-found {
    margin-top:10%;
}

/* TEXT STYLES */

.entry-header h2, .entry-content h2 {
	font-weight:500 !important;
}


/* LUOKAT */

.valkoinen-teksti {
	color:#fff;
}

.oranssi-tausta {
	background-color:#e3a261;
}

.leveys-100 {
	max-width:100%;
	width:100%;
}

/* HOME PAGE */

.home .entry-header, .home .entry-content {
	margin-top:0;
}

.home .entry-content p {
	padding:0;
}

@media screen and (max-width:1024px) {
	.home .entry-content p {
		padding:0 5%;
	}
}

/* HEADER */

header#masthead {
    text-align:center;
}

.site-branding {
    padding:2% 0;
}

.split-55 {
    width:52%;
    text-align:left;
    float:left;
	padding-left:3%;
}

.split-45 {
    width:45%;
    text-align:right;
    float:left;
}

.site-title {
    display:none;
}

img.custom-logo {
    width:auto;
    height:auto;
}

@media screen and (max-width:768px) {
    img.custom-logo {
    max-width:250px;
    padding:20px;
    }
}

/* search & social media */
#haku-some {
    text-align:right;
    margin-top:1%;
    margin-bottom:-1%;
	padding-right:3%;
}

.fab {
    float:right;
    padding:10px;
}

.search-form {
    display:inline-block;
    margin-right:10px;
}

input.search-field {
    border:2px solid;
    margin:10px;
    padding:10px;
    font-size:0.7em;
}

.search-container{
  width: auto;
  display: inline-block;
  margin: 5px auto;
}

input#search-bar {
  margin: 0 auto;
  width: 80%;
  height: 40px;
  padding: 0 20px;
  font-size: 1rem;
  border: 1px solid #D0CFCE;
  outline: none;
 }

input#search-bar:focus{
    border: 1px solid #CE3C28;
    transition: 0.35s ease;
    color: #262626;
}

input#search-bar::-webkit-input-placeholder{
      transition: opacity 0.45s ease; 
  	  opacity: 0;
     }

input#search-bar::-moz-placeholder {
      transition: opacity 0.45s ease; 
  	  opacity: 0;
     }

input#search-bar:-ms-placeholder {
     transition: opacity 0.45s ease; 
  	 opacity: 0;
     }    

.search-icon{
  position: relative;
  float: right;
  width: 75px;
  height: 75px;
  top: -62px;
  right: -45px;
}

i.fa.fa-search, .fa-facebook, .fa-instagram {
	color:#e3a261;
}


i.fa.fa-search:hover, .fa-facebook:hover, .fa-instagram:hover {
	color:#CE3C28;
}

.search-form .search-submit, button.search-submit {
	background-color: inherit;
	border: none;
    font-size:1em;
}

.hakutulos .entry-meta, .hakutulos .entry-footer {
	display:none;
}

@media screen and (max-width:1024px) {
    .split-55 {
        width:100%;
        clear:both;
        margin:2% 0;
        text-align:center;
    }
	
	.split-45 {
		display:none;
	}
}

/* NAVIGATION */
#site-navigation, #primary-menu {
	margin-bottom:0;
}

nav#site-navigation {
    background-color:#e3a261;
	z-index:999 !important;
}

.menu-main-menu-container {
    clear:both;
    margin-top:3%;
}

@media screen and (min-width:800px) {
	.menu-main-menu-container {
	margin-top:6%;
	}
}

@media screen and (min-width:1000px) {
	.menu-main-menu-container {
	margin-top:5%;
	}
}

@media screen and (min-width:1200px) {
	.menu-main-menu-container {
	margin-top:4%;
	}
}

@media screen and (min-width:1400px) {
		.menu-main-menu-container {
	margin-top:3%;
	}
}

ul#primary-menu {
    list-style-type:none;
    letter-spacing:0.2px;
}

#primary-menu li.menu-item {
    display:inline-block;
    padding:20px;
    text-transform:uppercase;
}

ul#primary-menu li a {
    color:#fff;
    text-decoration:none;
	letter-spacing:0.5px;
	font-weight:400;
}

.fa-caret-down:before {
    content:"";
}

.fa-caret-down:after {
    content:"\f0d7";
    margin-left:3px;
    color:#000;
}

#primary-menu .sub-menu {
  display: none;
  position: absolute;
  background-color: #e3a261;
  width:20%;
    max-width:400px;
    min-height:50px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
margin:20px 0 0 -20px;
}

#primary-menu li.menu-item:hover .sub-menu {
    display:block;
}

#primary-menu .sub-menu li.menu-item {
    width:90%;
    text-align:left;
    padding:5%;
}

#primary-menu li.menu-item:hover, .sub-menu li.menu-item:hover {
    background-color:#F8C083;
}

.sub-menu li.menu-item a {
    width:100%;
    padding: 0;
    text-align: left;
    text-transform: initial;
    margin: 0;
}

.mob-menu-header-holder.mobmenu {
    height:40px;
}

i.mob-icon-menu.mob-menu-icon {
    margin-top:4px;
}

.mobmenu-content li > .sub-menu li {
    padding-bottom:15px;
}

@media screen and (max-width:768px) {
    .mobmenu-left-panel .mobmenu-left-bt, .mobmenu-right-panel .mobmenu-right-bt {
        right:0;
    }

}

/* HERO */
#hero {
    background-image:url(images/kukat.png);
    min-height:500px;
	box-shadow:inset 0 0 0 2000px rgba(255, 255, 255, 0.2);
}

#hero a {
    color:#fff;
    text-decoration:none;
    border-bottom:1px solid;
}

#hero a:hover {
    color:#eae9e9;
    border-bottom:3px solid;
}

.desc {
    width:40%;
    padding:6% 5%;
    float:left;
    color:#fff;
}

.desc p, #ry .desc h2 {
    font-weight:700;
    text-shadow:3px 3px 10px #666;
}

.desc a {
    color:#fff;
    border-bottom:1px solid;
    padding-bottom:2px;
}

.news {
    padding:5% !important;
    color:#fff;
}

.news ul {
	padding:0 !important;
}

.news a {
	color:#fff;
}

.wp-block-latest-posts {
	padding:0 !important;
}

.wp-block-latest-posts__post-date {
	color:#fff;
	margin-bottom:10px;
}

div#tapahtumat .entry-header {
    text-align:left;
    padding:0;
}

@media screen and (max-width:768px) {
    #hero {
        height:auto;
    }
    
    .desc {
        width:90%;
        padding:15% 5% 5% 5%;
        float:none;
    }
    
    .news {
        width:95%;
    }
}

/* YKSITTÄINEN TARINA */

.tarina .entry-header, .tarina .post-thumbnail, .tarina .entry-content {
    max-width:800px;
    margin:auto;
}

.tarina .post-thumbnail {
    display:none;
}

.tarina .entry-header {
    text-align:center;
    margin-top:5%;
    padding:0 2%;
}

/* FOOTER */

.toplink {
    display:block;
    float:right;
    position:fixed;
    z-index:9999999;
    right:20px;
    bottom:20px;
    padding:15px 20px;
    background-color:#CE3C28;
	border-radius:100px;
}

.toplink:hover {
    background-color:#E06150;
}

.toplink a {
    color:#fff;
    text-decoration:none;
}

.toplink a:hover {
    margin-top:-5px;
}

.site-footer {
	background:#e3a261;
	color:#fff;
	padding:3% 0 7% 0;
	height:auto;
	min-height:100px;
}

.footer {
	width:100%;
	float:left;
	margin-right:3%;
	font-size:0.8em;
}

.footer .fab {
	float:none;
}

.footer a {
	color:#fff;
}

.footer a:hover {
	color:#CE3C28 !important;
}

.footer-keski {
	text-align:center;
}

.footer-oikea {
	text-align:right;
}

.footer-keski i.fa.fa-search, .footer-keski .fa-facebook, .footer-keski .fa-instagram {
	color:#fff;
	text-align:center;
}

@media screen and (max-width:768px) {
	
	.footer {
		width:100%;
		margin:0;
		float:none;
	}
	
	.footer-vasen {
		order:3;
	}
	
	.footer.footer-vasen ul li {
		text-decoration:none;
		list-style-type:none;
		text-align:center;
	}
	
	.footer-keski {
		width:100%;
	}
	
	.footer-oikea {
		text-align:center;
		width:50%;
	}
}

.wp-block-latest-posts a {
color:#fff;
font-size:1.2em;
font-weight:500;
}

.wp-block-latest-posts.columns-2 li {
width:calc((100% / 2) - 100px);
}

.wp-block-latest-posts.is-grid li {
background-color:#e3a261;
padding:40px;
}

@media screen and (max-width:900px) {
	.wp-block-latest-posts.columns-2 li {
		width:90%;
	}
	
	.wp-block-latest-posts {
		padding-left:5% !important;
	}
}

/* SOMEFEED */
.juicer-feed h1.referral a, .juicer-feed .j-paginate {
	display:none !important;
}

.juicer-feed {
	max-width:100% !important;
	width:100% !important;
}

.valkoinen-teksti a {
	color:#fff !important;
}

.wp-block-cover.has-background-dim:not(.has-background-gradient)::before {
	z-index:0;
}

.liity {
	max-width:100%;
	margin:4% 0;
}

.liity img {
	margin: 0 !important;
	padding:0 !important;
}

.liity p, .ankkurit p {
	padding: 0 !important;
}

.ankkurit .wp-block-group__inner-container {
	min-height:250px;
	padding:5%;
}

.ankkurit .wp-block-buttons {
	margin:3% 0;
}

@media screen and (max-width:600px) {
	.ankkurit .wp-block-group__inner-container {
		min-height:auto;
	}
}

@media screen and (max-width:768px) {
	.wp-block-cover p {
		padding:0 !important;
	}
	
	.wp-block-cover p:last-of-type {
		margin-bottom:20px;
	}
}