/*
	Theme Name: Päämuuntamo
	Theme URI: http://www.paamuuntamo.com
	Description: Karstulalainen Parturi-Kampaamo Päämuuntamo
	Version: 1.0
	Author: Kaisa Vuorela
	Author URI: http://www.kaisavuorela.com
	Tags: Karstula, Parturi-Kampaamo, Päämuuntamo

	License: MIT
	License URI: http://opensource.org/licenses/mit-license.php
*/

/*! HTML5 Boilerplate v4.3.0 | MIT License | http://h5bp.com/ */

html {
    color: #222;
		background-image:url(img/bg.jpg); 
	background-repeat:repeat;
    font-size: 0.7em;
    line-height: 1.4;
}

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

audio,
canvas,
iframe,
img,
svg,
video {
    vertical-align: middle;
}

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

textarea {
    resize: vertical;
}

.browserupgrade {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}


/* ==========================================================================
   MAIN
   ========================================================================== */

body {
    font-family: 'Ubuntu', sans-serif;
	font-size: 1.42em;
}

.wrapper {
    width: 100%;
    margin: 0 ;
	background-color: #fafafa;
}

h1 {
	font-family: 'Cuprum', sans-serif;
	font-weight: 400;
	text-transform: uppercase;
	font-size: 2.0em;
}

h2 {
	font-family: 'Cuprum', sans-serif;
	text-transform: uppercase;
	font-size: 1.3em;
	font-weight: 400;
}

h3 {
	font-family: 'Cuprum', sans-serif;
	font-size: 1.3em;
	text-transform: uppercase;
	color: #04c6c8;
	font-weight: 400;
}

h4 {
	font-family: 'Cuprum', sans-serif;
	font-size: 0.9em;
	text-transform: uppercase;
	color: #04c6c8;
	font-weight: 400;
	line-height: 1;
}

br {   
	content: "A" !important;
    display: block !important;
    margin-bottom: 1.0em !important;
}

p span {
    display: block;
}


.main-container img {
	width:100%;
}


/* ==========================================================================
   HEADER
   ========================================================================== */

.social {
	height: 57px;
	background-image:url(img/dark_bg_big.jpg); 
	background-repeat:repeat;
	border-bottom: 10px solid #04c6c8;
}

#icons {
	max-width: 1024px;
	margin: 0 auto;	
}

#facebook {
	width: 28px;
	height: 28px;
	float: right;
	margin: 15px 10px 0 0;
	position:static;
}


*:before,
*:after{
	-webkit-box-sizing: border-box;
}
.clearfix {
  *zoom: 1;
}

.clearfix:before,
.clearfix:after {
  display: table;
  line-height: 0;
  content: "";
}
.clearfix:after {
  clear: both;
}
.container{
	max-width: 1024px;
	margin: 0 auto;
	height: 100px;
}
header{
	width: 100%;
	height: auto;
	background: #FFFFFF;
}
.header-left,
.header-right{
	position: relative;
	color: white;
	float: left;
}
.header-left{
	width: 30%;
	padding-top: 12px;
}
.header-right label{
	position: absolute;
	top: -3.7em;
	right: 0;
	cursor: pointer;
}
.header-right span{
	position: relative;
	width: 2em;
	height: 2em;
	background: rgba(255,255,255,.3);
	-webkit-transition: all .3s ease;
	padding-right: 10px;
}
.header-right span:hover{
	background: rgba(255,255,255,.6);
}
.header-right span:before,
.header-right span:after{
	content: '';
	position: absolute;
	width: 2em;
	height: .5em;
	top: 4px;
	left: 0;
}
.header-right span:after{
	top: 14px;
}
.header-right{
	width: 70%;
	text-align: right;
	padding-top:15px;
}
#open{
	display: none;
}

a{
	text-decoration: none;
	color: black;
	font-family: 'Cuprum', sans-serif;
	font-size: 1.08em;
	text-transform: uppercase;
}
nav {
	padding-top: 17px;
}
nav>a{
	position: relative;
	display: inline-block;
	line-height: 40px;
	padding: 0 0 0 60px;
	-webkit-transition: all .3s ease;
}
nav>a:hover, nav>a:active{
	color: #04c6c8;
}

.hidden-desktop{
	display: none;
}


/* ==========================================================================
   CONTAINER
   ========================================================================== */
   
.main-container {
	margin-bottom: 20px;
	
}
.main-second-container {
	margin-bottom: 20px;
	margin-top: 20px;
}

.main article{
	padding: 0px 0 10px 15px;
}

.main article h2 {
    font-size: 1.3em;
}

.main aside {
    color: #181818;
    padding: 0px 10px 10px 10px;
}

.main aside br {   
	content: "A" !important;
    display: block !important;
    margin-bottom: 0em !important;
}


#likebox-wrapper * {
   width: 100% !important;
padding-top: 20px;
}

table { 
  width: 100%; 
  border-collapse: collapse; 
  color: #000000;
  margin-bottom: 28px;
}
tr {
	border-bottom: 1px solid #dbdbdb;
	line-height: 0.7em;
}
td { 
  padding: 8px; 
  text-align: left; 
}
th {
	text-align: right; 
	padding-right:10px;
	font-weight:normal;
}


/* ==========================================================================
   MAP
   ========================================================================== */


#map-canvas {
        height: 407px;
	max-width: 1024px;
        margin: 0 auto;
        padding: 0px
      }

/* ==========================================================================
   FOOTER
   ========================================================================== */
   
.footer-container{
	background-image:url(img/dark_bg_big.jpg);
	background-repeat:repeat;
	border-bottom: 20px solid #04c6c8;
	height: 222px;
}

.footer-container .third-wrapper{
	max-width: 1024px;
    margin: 0 auto;
	padding-left:20px;
}

.footer-container footer {
    color: white;
    padding: 20px 0;
}

#copyright {
	font-family: Ubuntu;
	color: #989898;
	font-size: 0.75em;
	font-weight: 400;
	text-align: center;
	padding: 0;
}

#copyright a:link, #copyright a:visited {
	color: #989898;
	text-decoration:none;
}


.currentLink {
   color: #04c6c8;
}


/* ===============
    ALL: IE Fixes
   =============== */

.ie7 .title {
    padding-top: 20px;
}
	


/* ==========================================================================
   Media Queries
   ========================================================================== */
@media (max-width: 330px) {
	#logo {
		width: 80%;
	}
	.header-right span{
		margin-top:15px;
	}
}

@media (max-width: 480px) {
	body{
		padding: 0;
	}
	.container{
		width: 100%;
	}
	#logo {
		float: left;
	}
	nav{
		height: 0;
		overflow: hidden;
		-webkit-transition: all .3s ease;
	}
	nav>a:hover{
	background: rgba(255,255,255,.9);
	color: black;
	}
	input[type="checkbox"]:checked + nav{
		height: 140px;
	}
	nav>a{
		padding: 0;
		color: #FFFFFF;
		display: block;
		background-color: #04c6c8;
		border-bottom: 4px solid #FFFFFF;
	}

	.header-left,
	.header-right{
		width: 100%;
		text-align: right;
		
	}

	.header-right span:before,
	.header-right span:after{
		background: #04c6c8;
	}
	.hidden-desktop{
		display: block;
	}

	td, th {
	line-height: 1em;
}

}


@media (max-width: 767px) {
	.container{
		width: 100%;
	}
	nav{
		padding: 0 1.9% 0 1.9%;
	}
	nav>a{
		padding: 0 2em;
	}
	.header-left,
	.header-right{
		width: 100%;
		text-align: center;
		
	}
	.header-right{
		padding-top: 0;
	}

	#likebox-wrapper * {
   		max-width: 328px;
	}
	#facebook {
		display: none;
	}
}



@media only screen and (min-width: 768px) {

    .main article {
        float: left;
        width: 64%;
    }

    .main aside {
        float: right;
        width: 30.5%;
    }

}

@media (max-width: 1054px){
	nav{
		padding-right: 1.9%;
	}


}


@media (min-width: 768px) and (max-width: 979px) {
	.box{
		width: 49%;
		margin-bottom: 5%;
	}

	ul li:nth-child(3) .box{
		clear: both;
	}

	ul li:nth-child(2n) .box{
		margin-right: 0;
		clear: right;
	}
}

@media only screen and (min-width: 1026px) {

/* ===============
    Maximal Width
   =============== */

    .wrapper {
        width: 1024px; 
        margin: 0 auto;
    }
}

/* ==========================================================================
   Helper classes
   ========================================================================== */

.hidden {
    display: none !important;
    visibility: hidden;
}

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

.invisible {
    visibility: hidden;
}



/* ==========================================================================
   Print styles
   ========================================================================== */

@media print {
    *,
    *:before,
    *:after {
        background: transparent !important;
        color: #000 !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    a[href^="#"]:after,
    a[href^="javascript:"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    thead {
        display: table-header-group;
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}