/*
Theme Name: Raksalle
Theme URI: 
Author: Kotisivupalvelut.fi
Author URI:
Description:
Version: 2.0
License:
License URI:
Text Domain:
Domain Path: 
Tags:
*/


/* =Reset
-------------------------------------------------------------- */

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, font, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend {
	border: 0;
	font-family: inherit;
	font-size: 100%;
	font-style: inherit;
	font-weight: inherit;
	margin: 0;
	outline: 0;
	padding: 0;
	vertical-align: baseline;
}

table, caption, tbody, tfoot, thead, tr, th {
	border: 0;
	font-family: inherit;
	font-size: 100%;
	font-style: inherit;
	font-weight: inherit;
}

html,body { height: 100%;}

td {
	border: 0;
	outline: 0;
}


html {
	font-size: 62.5%;
	overflow-y: scroll;
	-webkit-text-size-adjust: 100%; 
	-ms-text-size-adjust:     100%; 
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch; 
}
*,
*:before,
*:after { 
	-webkit-box-sizing: border-box; 
	-moz-box-sizing:    border-box; 
	box-sizing:         border-box;
}
body {
	background-color: #fff;
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
main,
nav,
section {
	display: block;
}
ol, ul {
	list-style: none;
}
table { /* tables still need 'cellspacing="0"' in the markup */
	border-collapse: separate;
/*	border-spacing: 0;*/
}

tr:nth-child(even) 
{background: #efefef;}

td {padding:5px;}

caption, th, td {
	font-weight: normal;
	text-align: left;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: "";
}
blockquote, q {
	quotes: "" "";
}
a:focus {
	outline: thin dotted;
}
a:hover,
a:active {
	outline: 0;
}
a img {
	border: 0;
}

 
/* =Global
----------------------------------------------- */

body,
button,
input,
select,
textarea {
	color: #000;
	font-family: sans-serif;
	font-size: 12pt;
	/* font-size: 1.4rem; */
	line-height: 1.4;
}

/* Headings */
h1,h2,h3,h4,h5,h6 {
    color: #000;
	margin: 0.6em 0;
	line-height: 1.2;
    font-family: "Alegreya SC";
    font-weight: 600;
}

.site-footer h1,
.site-footer h2,
.site-footer h3,
.site-footer h4,
.site-footer h5,
.site-footer h6 {
    color: #fff;
}


h1 {
	font-size: 54px;
}

h1:first-of-type {
   margin-top:0;
}

h2 {
	font-size: 36px;
    text-transform: uppercase;
}
h3 {
	font-size: 30px;

} 
h4 {
	font-size: 24px;

}
h5 {
	font-size: 20px;
}
h6 {
	font-size: 16px;
}

hr {
	background-color: #dddddd;
	border: 0;
	height: 1px;
	margin-bottom: 1.5em;
    width: 100%;
    clear:both;
    display: block;
}

/* Text elements */
p {
	margin-bottom: 1.0em;
}
ul, ol {
	margin: 0 0 1.5em 1em;
}
ul {
	list-style: disc;
}
ol {
	list-style: decimal;
}
li > ul,
li > ol {
	margin-bottom: 0;
	margin-left: 1.5em;
}
dt {
	font-weight: bold;
}
dd {
	margin: 0 1.5em 1.5em;
}
b, strong {
	font-weight: bold;
}
dfn, cite, em, i {
	font-style: italic;
}

blockquote {
    position: relative;
    padding: 20px 0 0 40px;
    font-weight: bold;
}

blockquote:before {
   position: absolute;
    top: 0;
    left: 0;
    content: "“";
    font: 700 50pt Georgia,serif;
    color: #999;
}


address {
	margin: 0 0 1.5em;
}
pre {
	background: #eee;
	font-family: "Courier 10 Pitch", Courier, monospace;
	font-size: 15px;
	font-size: 1.5rem;
	line-height: 1.6;
	margin-bottom: 1.6em;
	max-width: 100%;
	overflow: auto;
	padding: 1.6em;
}
code, kbd, tt, var {
	font: 15px Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
}
abbr, acronym {
	border-bottom: 1px dotted #666;
	cursor: help;
}
mark, ins {
	background: #fff9c0;
	text-decoration: none;
}
sup,
sub {
	font-size: 75%;
	height: 0;
	line-height: 0;
	position: relative;
	vertical-align: baseline;
}
sup {
	bottom: 1ex;
}
sub {
	top: .5ex;
}
small {
	font-size: 75%;
}
big {
	font-size: 125%;
}
figure {
	margin: 0;
}


th {
	font-weight: bold;
}
img {
	height: auto; 
	max-width: 100%; 
}


button,
input,
select,
textarea {
	font-size: 100%; 
	margin: 0; 
	vertical-align: baseline; 
	*vertical-align: middle; 
}
button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
	
	border-radius: 3px;
	background: #888 !important;
    color:#fff !important;
	cursor: pointer;
	-webkit-appearance: button;
	font-size: 14px;
	font-size: 1.4rem;
	line-height: 1;
	padding: 10px 30px 10px 30px !important;
}
button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover {
	opacity: 0.8;
	
}

.wpforms-form button[type="submit"] {
  background: #000 !important;
}

button:focus,
input[type="button"]:focus,
input[type="reset"]:focus,
input[type="submit"]:focus,
button:active,
input[type="button"]:active,
input[type="reset"]:active,
input[type="submit"]:active {
	border-color: #aaa #bbb #bbb #bbb;
	box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.5), inset 0 2px 5px rgba(0, 0, 0, 0.15);
}
input[type="checkbox"],
input[type="radio"] {
	padding: 0; /* Addresses excess padding in IE8/9 */
}
input[type="search"] {
	-webkit-appearance: textfield; /* Addresses appearance set to searchfield in S5, Chrome */
	-webkit-box-sizing: content-box; /* Addresses box sizing set to border-box in S5, Chrome (include -moz to future-proof) */
	-moz-box-sizing:    content-box;
	box-sizing:         content-box;
}
input[type="search"]::-webkit-search-decoration { /* Corrects inner padding displayed oddly in S5, Chrome on OSX */
	-webkit-appearance: none;
}
button::-moz-focus-inner,
input::-moz-focus-inner { /* Corrects inner padding and border displayed oddly in FF3/4 www.sitepen.com/blog/2008/05/14/the-devils-in-the-details-fixing-dojos-toolbar-buttons/ */
	border: 0;
	padding: 0;
}
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
textarea {
	color: #666;
	border: solid 1px #888 !important;
	border-radius: 3px;
}
input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
textarea:focus {
	color: #111;
}
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"] {
	padding: 3px;
}
textarea {
	overflow: auto; /* Removes default vertical scrollbar in IE6/7/8/9 */
	padding-left: 3px;
	vertical-align: top; /* Improves readability and alignment in all browsers */
	width: 98%;
}

/* Links */
a {
	color: #000;
    text-decoration: none;
}
a:visited {
	color: #000;
}
a:hover,
a:focus,
a:active {
	color: #000;
    text-decoration: underline;
}

a img:hover {
opacity:0.8;
}

/* Alignment */
.alignleft {
	display: inline;
	float: left;
	margin-right: 1.5em;
}
.alignright {
	display: inline;
	float: right;
	margin-left: 1.5em;
}
.aligncenter {
	clear: both;
	display: block;
	margin: 0 auto;
}

/* Text meant only for screen readers */
.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	position: absolute !important;
}

.screen-reader-text:hover,
.screen-reader-text:active,
.screen-reader-text:focus {
	background-color: #f1f1f1;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	color: #21759b;
	display: block;
	font-size: 14px;
	font-weight: bold;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000; /* Above WP toolbar */
}

/* Clearing */
.clear:before,
.clear:after,
.entry-content:before,
.entry-content:after,
.comment-content:before,
.comment-content:after,
.site-header:before,
.site-header:after,
.site-content:before,
.site-content:after,
.site-footer:before,
.site-footer:after {
	content: '';
	display: table;
}

.clear:after,
.entry-content:after,
.comment-content:after,
.site-header:after,
.site-content:after,
.site-footer:after {
	clear: both;
}

#floatfix {
	clear: both;
	height: 1px;
}

#space {
	clear: both;
	height: 30px;
}

/* =Structure
----------------------------------------------- */

#page {
    width:100%; 
   overflow:hidden;
}

.site-content {
    max-width: 1200px;
	margin: 0 auto;
    padding:0px 10px 30px 10px;
}

.content-area {
	float: left;
	margin: 0 -30% 0 0;
	width: 100%;
	padding-top:40px;
}

.content-area-fullwidth {
	float: left;
	width: 100%;
}

.site-main {
	margin: 0 35% 0 1%;
}

.site-footer .widget-title {
/*	display: none;*/
    color: #fff;
    font-size: 18pt;
}

.site-footer .widget-container {
	float:left; 
    width: 32%;
}

.widget-title {
}

#secondary .widget {
    background-color: #f9f9f9;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    margin: 10px 0 10px;
    padding: 0 20px 20px 20px;
    
}

.site-content .widget-area h3 {
     color:#7e0080;
    margin-bottom:20px;

}

.widget-area h3:after {
    content:" ";
     display: block;
    float:left;
    height: 1px;
    width: 100%;
    background: #7e0080;
    margin-top:4px;

}
    
.site-content .widget-area {
	float: right;
	overflow: hidden;
	width: 30%;
    margin-bottom:30px;
    
}

/*
.widget-area > aside:first-of-type {
    font-size: 10pt;
	line-height: 1.3em;
    padding:10px 10px 20px 20px;
    border-radius: 5px; 
    -moz-border-radius: 5px; 
    -webkit-border-radius: 5px;
        background: #87cf73;
      color:#fff;
}
*/

.site-content .widget img {
     border-radius: 5px; 
    -moz-border-radius: 5px; 
    -webkit-border-radius: 5px;
}

.site-footer {
	clear: both;
	width: 100%;
	margin: 0 auto;
    float:left;
    padding: 2em 3em 3em 3em;
     background: #000;
}

.site-footer a {
	color: #fff;
}


.site-info {
	color: #fff;
	margin:0 auto;
	font-size: 10pt;
    max-width: 1200px;
}

#kotisivujen-toteutus {
    width:100%; 
    display:inline-block;
    margin-top: 20px; 
}

#kotisivujen-toteutus a {
    text-decoration:none;
    color: #20bdbe !important; 
    font-size: 10pt;
}

/* =Site Header
----------------------------------------------- */

#banner {
	width:100%;
}

.site-header {
    width:100%;
    margin:0 auto;
    z-index: 9999;
    background: rgba(255,255,255,0.9);
     padding:10px;
    border-top: 4px solid #c6191b;
    border-bottom: 4px solid #c6191b;
    box-shadow: 1px 0 10px rgba(0,0,0,0.4);
	-moz-box-shadow:1px 0 10px rgba(0,0,0,0.4);
	-webkit-box-shadow: 1px 0 10px rgba(0,0,0,0.4);
}

.site-branding {
    max-width: 1200px;
	margin: 0 auto;
	position: relative;
}

.logo {
    float:left;
    max-width: 300px;
}
.logo p {
   margin-bottom:0 !important;
}


#headercontent {
    float:right;
}

#headercontent .widget-container {float:left; margin-left:5px;}


/* =Menu
----------------------------------------------- */

#menubar {
    z-index: 999;  
    margin-top:30px;
    margin-bottom:10px;
    float:right;
   }


.main-navigation {
/*clear: both;*/
/* max-width: 1024px;*/
    display: block;
    margin: 0 auto;
    float:right;
    margin-right:20px;
    margin-top:7px;
}

.main-navigation:after {
	clear: both;
	content: "";
	display: block;
}

.main-navigation ul {
	list-style: none;
	margin: 0;
	padding-left: 0;
	margin-top: 0px;
}
.main-navigation li {
	float: left;
	position: relative;
}
.main-navigation a {
	color: #000;
    display: block;
    font-size: 1.6rem;
    margin-left: 25px;
    text-decoration: none;
    white-space: nowrap;
    text-transform: uppercase;
    font-weight: bold;
    padding-bottom:10px;
}

.main-navigation .delimiter {
	position: absolute;
	color: #000;
	right: 15px;
	top: 0px;
}

.main-navigation li:last-child .delimiter{
	display: none;
}

.main-navigation ul ul {
	display: none;
	position: absolute;
	top: 100%;
    padding-top:0px;
	text-indent: 15px;
    margin-left:-10px;
	z-index: 999;
    background: #fff;
}

.main-navigation ul ul a {
    margin:0;
    text-indent:0;
    padding:10px;
    display:block;
    white-space: nowrap;
}


.main-navigation ul ul ul {
	left: 100%;
	top: 0;
    border: 1px solid #eee;
}

.main-navigation ul ul ul a {
}

.main-navigation ul ul li {
    clear: both;
    width: 100%;
}

.main-navigation li > a:after { content: ' ▾'; }

.main-navigation > li > a:after {content: ' ▾'; }

.main-navigation li > a:only-child:after {content: ''; }

.main-navigation li:hover > a,
.main-navigation ul ul a:hover {
	color: #c6191b;
}

.main-navigation li.current_page_item a,
.main-navigation li.current-menu-item a {
    color: #c6191b;
}

/*.main-navigation ul li:hover > ul { display: block;}*/ /* Activate to open submenu on hover */


/* Small menu */
.menu-toggle {
	cursor: pointer;
	display: none;
	margin: 0 auto;
	height: 45px;
    padding-left:10px;
}

.menu-toggle:before { 
    border-bottom: 12px double black;
    border-top: 4px solid black; 
    padding-top:5px;
    content:"MENU";
    text-indent: 40px;
    height: 5px; 
    position: absolute;  
    width:30px; 
    line-height: 0.2;
    font-size:14pt;
    margin-top:8px;
    margin-left: -10px;
}

.posi{
    position:fixed;
    margin-top: 0;
    top:0;
}

.stickyfix {
    padding-top:100px; 
}


/* =Menu
----------------------------------------------- */


@media screen and (max-width: 768px) {  /* Same as mediaquery pad width */
    
     .menu-mainmenu-container { /* Class depends on menu name */
        position: fixed;
        top: 0;
        right: 0;
        background: #fff;
        width: 100%;
        z-index:999;
    }
    
    .posi #headercontent {display: none;}
    
	.menu-toggle,
	.main-navigation.toggled .nav-menu {
		display: block;
	}
	
    #menubar {
		position: relative;
	}
    
    .posi #menubar {
		display: inline-block;
	}
    
   .menu {
        position: relative;
        width: 100%;
        height: 100vh;
        overflow-y: scroll;
        -webkit-overflow-scrolling:touch;
	}
     
    
    .main-navigation {
        float:none;
    }
    
    .menu:before {
        content: "MENU";
        background: #eee;
        width:100%;
        padding:20px;
        display:block;
    }

	.main-navigation ul {
		display: none;
		padding-bottom: 20px;
	}
    
    .main-navigation a {
        margin: 0em;
        border-top: none;
        text-indent: 0px;
        float:left;
        line-height: 1.5;
        padding-top:10px;
        width:100%;
    }

	.main-navigation li {
        clear: left;
        display: inline;
        float: left;
        width: 100%;
	}
    
	.main-navigation ul ul {
        position: static;
        display: block;
        text-indent: 0px;
        border:none;
        margin:0;
        background:none !important;
	}
    
    .main-navigation ul ul li {     
        text-indent:0;
        list-style: none !important;
    }
    
    .menu-item-has-children a {     
         padding-bottom:0;
    }

    .main-navigation ul ul a {     
        text-transform: none !important;
        margin-left:0px;
        color: #999;
        line-height: 1 !important;
    }

    
    .main-navigation ul ul li:before {     
        float:left;
        padding: 5px;
        color:#fff;
    }
    
    .main-navigation li:hover > a,
    .main-navigation li.current_page_item a,
    .main-navigation li.current-menu-item a,
    .main-navigation ul ul a:hover {
        color: #c6191b;
        border:none;
        background:none !important;
    }

    .main-navigation ul ul li:hover > a,
    .main-navigation ul ul li.current_page_item a,
    .main-navigation ul ul li.current-menu-item a {
        color: #c6191b; 
    }
      
}


/* =Content
----------------------------------------------- */

.sticky {
}

.byline,
.updated {
	display: none;
}
.single .byline,
.group-blog .byline {
	display: inline;
}

.page-links {
	clear: both;
	margin: 0 0 1.5em;
}


/* =Asides
----------------------------------------------- */

.blog .format-aside .entry-title,
.archive .format-aside .entry-title {
	display: none;
}


/* =Viimeisimmät artikkelit - WordPress widget
----------------------------------------------- */

.widget_recent_entries ul {
    list-style: none;
    margin:0;
}

.widget_recent_entries ul li {
    padding:5px;
    border-bottom: 1px solid #eee;
}

.widget_recent_entries .post-date {
    font-size: 11pt;
    display: block;
}

/* =Media
----------------------------------------------- */

.page-content img.wp-smiley,
.entry-content img.wp-smiley,
.comment-content img.wp-smiley {
	border: none;
	margin-bottom: 0;
	margin-top: 0;
	padding: 0;
}
.wp-caption {
	border: 1px solid #ccc;
	margin-bottom: 1.5em;
	max-width: 100%;
}
.wp-caption img[class*="wp-image-"] {
	display: block;
	margin: 1.2% auto 0;
	max-width: 98%;
}
.wp-caption-text {
	text-align: center;
}
.wp-caption .wp-caption-text {
	margin: 0.8075em 0;
}

/* Make sure embeds and iframes fit their containers */
embed,
iframe,
object {
	max-width: 100%;
}


/*--------------------------------------------------------------
 Galleries
--------------------------------------------------------------*/
.gallery {
	margin-bottom: 1.5em;
}

.gallery-item {
	display: inline-block;
	text-align: center;
	vertical-align: top;
	width: 100%;
}

.gallery-columns-2 .gallery-item {
	max-width: 50%;
}

.gallery-columns-3 .gallery-item {
	max-width: 33.33%;
}

.gallery-columns-4 .gallery-item {
	max-width: 25%;
}
.site-main .gallery {
	margin-bottom: 1.5em;
}
.gallery-caption {
    font-size: 10pt;
}
.site-main .gallery a img {
	border: none;
	height: auto;
	max-width: 90%;
}
.site-main .gallery dd {
	margin: 0; 
}

/* =Navigation
----------------------------------------------- */

.site-main [class*="navigation"] {
	margin: 0 0 1.5em;
	overflow: hidden;
}
[class*="navigation"] .nav-previous {
	float: left;
	width: 50%;
}
[class*="navigation"] .nav-next {
	float: right;
	text-align: right;
	width: 50%;
}


/* =Widgets
----------------------------------------------- */

.widget {
	margin: 0 0 1.5em;
}

/* Make sure select elements fit in widgets */
.widget select {
	max-width: 100%;
}

/* Search widget */
.widget_search .search-submit {
	display: none;
}



/*--------------------------------------------------------------
 Search page
--------------------------------------------------------------*/

.search h3 {clear:none;}



/*--------------------------------------------------------------
 Custom
--------------------------------------------------------------*/

.whitetext,
.whitetext p,
.whitetext h1,
.whitetext h2,
.whitetext h3,
.whitetext h4,
.whitetext h5,
.whitetext h6
{
    color: #fff;
}

.whitetext a
{
    color: #fff;
}

.blacktext,
.blacktext p,
.blacktext h1,
.blacktext h2,
.blacktext h3,
.blacktext h4,
.blacktext h5,
.blacktext h6
{
    color: #000;
}

.blacktext a
{
    color: #000;
}




/* =Visual Composer
----------------------------------------------- */

/*
.vc_btn3-color-grey {
background: #c6191b !important;
color:#fff !important;
font-size: 16pt !important;
padding: 15px 40px 15px 40px !important;
border: none !important;
min-width: 250px;
}

.vc_btn3-color-grey:hover {
background: #851314 !important;
}


.wpb_wrapper h2:first-of-type {
    margin-top:0;
}

.five-columns.vc_row .vc_col-sm-2 {
float: left;
width: 18.8%;
padding: 0;
margin-right: 1.5%;
min-height: 0;
}

.five-columns.vc_row .vc_col-sm-2:nth-last-child(2) {
margin-right: 0;
}

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

.five-columns.vc_row .vc_col-sm-2 {width:48%; float:left; }

}
 */

/* =Metaslider
----------------------------------------------- 

.flexslider {margin-bottom:0 !important;}


.flexslider .layer {height:auto !important;}

.flexslider .content{
    text-shadow: 0 3px 3px rgba(0, 0, 0, 0.5);
    line-height: 1.2 !important;
}

.flexslider .content a{
    color:#fff;
}*/

/* =Media queries
----------------------------------------------- */

/* Same as menu toggle */
@media (max-width: 768px) {
   #menubar {width:100%; text-align:center; margin:0 auto;}
    .logo {width:100%; margin:0 auto; text-align: center;}
    #headercontent {display: inline-block; float:none;}
    .site-content .widget-area {width: 100%;}
    .site-footer .widget-container {width: 100%; text-align: center;}
    .site-footer .alignright {float:none !important;}
}


/* Landscape phones and down */
@media (max-width: 480px) {
    .alignright {float:none; clear: both; display: block; margin: 0 auto;} /*layoutfix*/
    .site-info {text-align:center;}
    .mobilehide {display:none;}
    h1 {font-size: 30px;} 
    h2 {font-size: 30px;} 
    .site-footer .widget-container,
    .site-content .widget-area  {width: 100%;}
    table{width:100% !important;}
}
 
/* Landscape phone to portrait tablet */
@media (max-width: 768px) {
}


 
 
/* Large desktop */
@media (min-width: 1200px) {}


/* =Infinite Scroll
----------------------------------------------- */

/* Globally hidden elements when Infinite Scroll is supported and in use. */
.infinite-scroll .paging-navigation, /* Older / Newer Posts Navigation (always hidden) */
.infinite-scroll.neverending .site-footer { /* Theme Footer (when set to scrolling) */
	display: none;
}

/* When Infinite Scroll has reached its end we need to re-display elements that were hidden (via .neverending) before */
.infinity-end.neverending .site-footer {
	display: block;
}
