/*! HTML5 Boilerplate v4.3.0 | MIT License | http://h5bp.com/ */

html,
button,
input,
select,
textarea {
    color: #222;
}

html {
    font-size: 1em;
    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,
img,
video {
    vertical-align: middle;
}

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

textarea {
    resize: vertical;
}

.browsehappy {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}


/* ===== Initializr Styles ==================================================
   Author: Jonathan Verrecchia - verekia.com/initializr/responsive-template
   ========================================================================== */

body {
	font-family: 'Roboto', 'sans-serif';
	color: #000;
	font-weight: lighter;
	font-size: 14px;
}

/* ===============
    ALL: IE Fixes
   =============== */

.ie7 .title {
    padding-top: 20px;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

.wrapper {
	margin: 0px auto;

}

.header-container {
	padding: 25px 0px 12px 0px;
}
.header-container h1 {
	font-family: Georgia;
	font-size: 27px;
	font-style: italic;
	color: #cc3366;
	text-align: center;
	font-weight: lighter;
	margin: 0px;
	padding: 0px;
	line-height: 1em;
	margin-bottom: 5px;
}

.header-image {
	border-top: 11px solid #c4236b;
	border-bottom: 11px solid #c4236b;

}
.header-image img {
	width: 100%;
}

.header-container h2 {
	color: #333333;
	font-size: 14px;
	text-align: center;
	margin: 0px;
	padding: 0px;
	letter-spacing: 4px;
	line-height: 1em;
	padding-left: 2px;
}

.main-container {
	padding-bottom: 60px;	
	padding-top: 50px;	
	
}
.main-container h1 {
	font-weight: lighter;
	color: #c4236b;
	font-size: 24px;
	margin: 0px;
	padding: 0px;
	margin-bottom: 40px;

}

#white-box {
	background: url('../img/white-box.png') no-repeat;
	padding-top: 20px;
	height: 190px;
	width: 373px;
	position: absolute;
	top: -335px;
	z-index: 2;
	font-family: Georgia;
	font-size: 32px;
	font-style: italic;
	color: #c4236b;
	text-align: center;
}

#orange-box {
	background: url('../img/orange-box.png') no-repeat;
	padding-top: 80px;
	height: 181px;
	width: 373px;
	position: absolute;
	top: -202px;
	z-index: 1;
	font-size: 17px;
	text-align: center;
	color: #fff;
}

#grey-box {
	
	padding-top: 70px;
	height: 162px;
	padding: 70px 50px 0px 50px;
	position: absolute;
	top: 0px;
	z-index: 0;
	color: #666666;
	font-size: 17px;
	text-align: center;
}

.box-container {
	position: relative;
	height: 232px;
}


.main-container2 {
	padding-top: 60px;	
	padding-bottom: 15px;	
	background: #c4236b;
	color: #fff;
} 


.main-container2 h2 {
	font-family: Georgia;
	font-size: 27px;
	font-style: italic;
	color: #fff;
	display: inline-block;
	font-weight: lighter;
}

.main-container2 h3 {
	color: #333333;
	font-size: 14px;
	display: inline-block;
	margin-left: 20px;
	position: relative;
	top: -3px;
	letter-spacing: 4px;
}


.x-div {
	background: url('../img/x-div.png') no-repeat;
	height: 10px;
	margin: 25px 0px;


}

.erityis h3 {
	font-weight: lighter;
	padding: 0px;
	margin: 0px;
	color: #fff;
	letter-spacing: 0px;
	display: block;
}


.erityis {
	font-size: 14px;
	font-weight: 500;

}


footer {
	text-align: center;
	
}

.footer-container {
	padding: 35px 0px;
}

.columns {
	margin: 0px 0px;
}
.column {
	
	margin: 20px 0px;
}

.wrapper {
	padding: 0px 20px;
}
/* ==========================================================================
   Media Queries
   ========================================================================== */

@media only screen and (min-width: 280px) {
	.main-container2 .column {
		width: 270px;
	}
	.erityis {
		width: 100%;
	}
	
	#white-box {
		top: -50px;
	}	
	#orange-box {
		top: 130px;
	}
	#grey-box {
		top: 350px;
		background:  #efefef;

		width: 70%;
		height: auto;
		-webkit-border-radius: 20px;
		-moz-border-radius: 20px;
		border-radius: 20px;
		padding: 50px 40px 30px 40px;

	}
	
	.box-container {
		height: 650px;
	}
		
		
	.main-container2 {
		background: #c4236b;
	}
	.main-container2 .column {
		width: 100%;
		
	}
}
@media only screen and (min-width: 520px) {
	.main-container2 {
		background: #c4236b url('../img/kristiina2.jpg') no-repeat right top;
	}
	.main-container2 .column {
		width: 300px;
		
	}
}

@media only screen and (min-width: 660px) {
	
	
	.main-container2 .column {
		width: 400px;
		
	}
	.x-div {
			width: 400px;
	}
	
	.erityis {
		width: 400px;
	}
	
	.header-image {
		display: block;
	}
	
	.box-container {
		height: 300px;
	}
	
	#white-box {
		top: -235px;
	}
	
	#orange-box { 
		top: -102px;
	}
	#grey-box {
		top: 125px;
	
	}
	
	
}

@media only screen and (min-width: 900px) {
	.wrapper {
		width: 805px;	
		padding: 0px;	
	}
	
	.columns {
		margin: 0px -25px;
	}
	.column {
		width: 375px;
		float: left;
		margin: 0px 25px;
	}
	
	.main-container .wrapper .clearfix{
		width: 900px;
	
	}
	
	
	.erityis {
		width: 570px;
	}
	
	#grey-box {
			width: 720px;
	}
	
	.columns {
		margin: 0px -25px;
	}
	
	.column {
	
		margin: 20px 25px;
	}
	
	.main-container2 .column {
		width: 270px;
	}
	
	.x-div {
			width: auto;
	}


	
	.box-container {
		height:232px;
	}
	
	#white-box {
		top: -335px;
	}
	
	#orange-box { 
		top: -202px;
	}
	#grey-box {
		background:  url('../img/gray-box.png') no-repeat bottom right;
		padding-top: 70px;
		height: 162px;
		padding: 70px 50px 0px 50px;
		position: absolute;
		top: 0px;
		z-index: 0;
		color: #666666;
		font-size: 17px;
		text-align: center;
	}
	


}

@media only screen and (min-width: 1124px) {
	.main-container2 {				
		background: #c4236b url('../img/kristiina.jpg') no-repeat right top;
	} 
	.x-div {
			width: auto;
	}
	
	
}

/* ==========================================================================
   Helper classes
   ========================================================================== */

.ir {
    background-color: transparent;
    border: 0;
    overflow: hidden;
    *text-indent: -9999px;
}

.ir:before {
    content: "";
    display: block;
    width: 0;
    height: 150%;
}

.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;
}

.clearfix:before,
.clearfix:after {
    content: " ";
    display: table;
}

.clearfix:after {
    clear: both;
}

.clearfix {
    *zoom: 1;
}

/* ==========================================================================
   Print styles
   ========================================================================== */

@media print {
    * {
        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) ")";
    }

    .ir a:after,
    a[href^="javascript:"]:after,
    a[href^="#"]: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;
    }

    @page {
        margin: 0.5cm;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}