/* @group Font scaling for components */
[data-fontscale="50"] {
	font-size: 50%;
}
[data-fontscale="60"] {
	font-size: 60%;
}
[data-fontscale="70"] {
	font-size: 70%;
}
[data-fontscale="80"] {
	font-size: 80%;
}
[data-fontscale="85"] {
	font-size: 85%;
}
[data-fontscale="90"] {
	font-size: 90%;
}
[data-fontscale="100"] {
	font-size: 100%;
}
[data-fontscale="115"] {
	font-size: 115%;
}
[data-fontscale="125"] {
	font-size: 125%;
}
[data-fontscale="150"] {
	font-size: 150%;
}
[data-fontscale="175"] {
	font-size: 175%;
}
[data-fontscale="200"] {
	font-size: 200%;
}
[data-fontscale="225"] {
	font-size: 225%;
}

[data-fontcolor="white"],
[data-fontcolor="white"] * {
	color: #fff !important;
}
[data-fontcolor="white_and_bold"],
[data-fontcolor="white_and_bold"] * {
	color: #fff !important;
	font-weight: bold !important;
}
[data-fontcolor="black"],
[data-fontcolor="black"] * {
	color: #000 !important;
}
[data-fontcolor="black_and_bold"],
[data-fontcolor="black_and_bold"] * {
	color: #000 !important;
	font-weight: bold !important;
}

em {
	font-style: normal;
}

/* @end */


/* @group Textstyle BOX1 */
[data-textstyle="box1"] {	
	clear: both;
	padding-right: 40px;
	box-sizing: border-box;
}

[data-textstyle="box1"] em {
	background: rgba(255,255,255,0.2);
	padding: 0.05em 12px 0.05em 8px;
	margin: 0.05em 0;
	width: auto;

	border-radius: 6px;
	line-height: 1.40em;
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
}
.is-ie [data-textstyle="box1"] span {
	padding-right: 10px;
}

.is-ie [data-textstyle="box1"]  {
	width: 100%;
  display: block;
  float: left;
  box-sizing: border-box;
  padding-right: 0;
}

.is-ie [data-textstyle="box1"] em {
  display: block;
  float: left;
}
/* @end */


/* @group Textstyle BOX2 */
[data-textstyle="box2"] {	
	clear: both;
	padding-right: 40px;
	box-sizing: border-box;
}

[data-textstyle="box2"] em {
	background: rgba(255,255,255,0.2);
	padding: 0.25em 24px 0.25em 16px;
	margin: 0.25em 0;
	width: auto;
	
	line-height: 1.85em;
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
}
.is-ie [data-textstyle="box2"] span {
	padding-right: 10px;
}

.is-ie [data-textstyle="box2"]  {
	width: 100%;
  display: block;
  float: left;
  box-sizing: border-box;
  padding-right: 0;
}

.is-ie [data-textstyle="box2"] em {
  display: block;
  float: left;
}
/* @end */



[data-textbg="dark"] em {
	background: rgba(0,0,0,0.2);
}
[data-textbg="darker"] em {
	background: rgba(0,0,0,0.5);
}
[data-textbg="lighter"] em {
	background: rgba(255,255,255,0.5);
}



php {
	display: block;
	width: 94%;
	padding: 20px 3% 10px 3%;
	background: #000;
	color: #bbb;
	margin: 10px 0;
	position: relative;
	min-height: 16px;
	font-size: 15px;
	font-family: 'Courier New', Courier, Arial;
	clear: both;
}
php:before {
	content: '<?php code ';
	position: absolute;
	left: 4px;
	color: #888;
	top: 4px;
	font-size: 9px;
	line-height: 9px;
}
javascript {
	display: block;
	width: 94%;
	padding: 20px 3% 10px 3%;
	background: #000;
	color: #bbb;
	margin: 10px 0;
	position: relative;
	min-height: 16px;
	font-size: 15px;
	font-family: 'Courier New', Courier, Arial;
	clear: both;
}
javascript:before {
	content: '<script javascript code ';
	position: absolute;
	left: 4px;
	color: #888;
	top: 4px;
	font-size: 9px;
	line-height: 9px;
}


/* @group Socool cards */

.socool-cards {
	box-sizing: border-box;
	float: left;
	display: block;
	width: 100%;
	margin-bottom: 20px;
	font-size: 13px;
}
.socool-cards h4 { 
	margin-top: 4px;
}
.socool-cards li {
	margin: 5px 0;
}
.socool-card {
	float: left;
	display: block;
	position: relative;
	width: 33.3%;
	padding: 20px 20px 20px 0px;
	margin-bottom: 20px;
	z-index: 1;
}
.socool-card:after {
	content: ' ';
	display: block;
	float: left;
	padding-bottom: 140%;
}
.socool-card .socool-card-picture:after {
	content: '+';
	display: block;
	float: left;
	background: #01c579;
	color: #fff;
	position: absolute;
	right: 0;
	top: 0;
	width: 20px;
	height: 20px;
	text-align: center;
	font-size: 18px;
	line-height: 20px;
}
.socool-card .socool-card-background:after {
	position: absolute;
	float: left;
	display: none;
	top: -100%;
	left: 200px;
	width: 800%;
	padding-bottom: 200%;
	z-index: 2000;
	background: rgba(0,0,0,0.3);
}
.socool-card .socool-card-picture {
	position: absolute;
	background: #ccc;
	padding-bottom: 140%;
	top: 0;
	left: 0;
	width: 90%; 
	z-index: 2002;
	background-position: center center;
	background-size: cover; 
}
.socool-card .socool-card-label {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 30px;
	background: #01c579;
	width: 100%; 
	padding: 5px 10px;
	color: #fff;
	z-index: 2003;
}
.socool-card .socool-card-content {
	position: absolute;
	float: left;
	display: block;
	left: 95%;
	width: 120%;
	top: 0;
	width: 105%; 
	z-index: 2003;
	display: none;		
}
.socool-card .socool-card-close {
	content: '-';
	display: block;
	float: left;
	background: #01c579;
	color: #fff;
	position: absolute;
	right: -10px;
	top: -10px;
	width: 20px;
	height: 20px;
	text-align: center;
	font-size: 18px;
	line-height: 20px;
}
.socool-cards .socool-card:nth-child(3n) .socool-card-content {
	left: -110%;
}
.socool-card:nth-child(3n) .socool-card-background {
	left: -110%;
}
.socool-card .socool-card-background {
	position: absolute;
	float: left;
	display: none;
	left: 0;
	width: 200%;
	padding-bottom: 140%;
	top: 0;
	z-index: 2001;
	outline: 10px solid #fff;
	box-shadow: 1px 1px 30px rgba(0,0,0,0.9), 0px 0px 0px 1200px rgba(0,0,0,0.1);				
	background: #fff;
}

.socool-card:hover {
	cursor: pointer;
}
.socool-card.open {
	z-index: 100;
} 
.socool-card.open .socool-card-background:after {
	display: block;
}
.socool-card.open .socool-card-picture:after {
	display: none;
}
.socool-card.open .socool-card-background {
	display: block;
}
.socool-card.open .socool-card-label {
	display: none;
}
.socool-card.open .socool-card-content {		
	display: block;		
}


@media only screen and (max-width: 900px) {
	.socool-cards {
		font-size: 11px;
	}
	.socool-card {
		width: 50%;
	}
	.socool-cards .socool-card:nth-child(even) .socool-card-content {
		left: -105%;
	}
	.socool-card:nth-child(even) .socool-card-background {
		left: -110%;
	}
	.socool-cards .socool-card:nth-child(odd) .socool-card-content {
		left: 95%;
	}
	.socool-card:nth-child(odd) .socool-card-background {
		left: 0;
	}
	.socool-card .socool-card-label {
		height: 25px;
	}

}

/* @end */

/* @group Audio */

.cms .socool-audio:after {
	background: transparent;
	height: 50px;
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100% !important;
	z-index: 100;
}

.cms .contentarea .socool-audio {
	position: relative;
}

.contentarea .socool-audio {
	width: 100%;
}
.contentarea audio {
	width: 100%;
}

/* @end */



/* @group Blockquotes labels */

.socool-calloutbox {
	text-align: left;
	color: #fff;
	margin: 20px 0 20px 0;
/* TODO, tänne sivuston parametreista väri */
	color: #213164;
}
.socool-calloutbox-inner {
	margin: 0;
	padding: 0;
}


.socool-calloutbox.float-left {
	float: left;
	margin-right: 5%;
	width: 45%;
}
.socool-calloutbox.float-right {
	float: right;
	margin-left: 5%;
	width: 45%;
}

.socool-calloutbox.float-left-hanging {
	float: left;
	margin-right: 5%;
	margin-left: -9em;
	width: 55%;
}
.socool-calloutbox.float-right-hanging {
	float: right;
	margin-left: 5%;
	margin-right: -9em;
	width: 55%;
}



.socool-calloutbox.outside {
	position: relative;
	height: 0;
	width: 0;
	display: block;
	float: left;
}



.socool-calloutbox.outside .socool-calloutbox-inner {
	position: absolute;
	display: block;
	padding: 20px;
	float: left;
	top: 0;
	right: 22px;
	background: #ecebe8;
	min-width: 300px;
}

/* @group Line art -style */
.socool-calloutbox-inner.socool-calloutbox-style-line-art {
	position: relative;
	padding-right: 20px;
	padding-top: 10px;
	background: none !important;
}
.socool-calloutbox-inner.socool-calloutbox-style-line-art:before {	
    background-color: #000;
    content: "";
    height: 2px;
    position: absolute;
    right: 19px;
    top: 1px;
    transform: rotate(-120deg);
    transform-origin: top right;
    width: 35px;
    z-index: 1;
}
.socool-calloutbox-inner.socool-calloutbox-style-line-art:after {
	background: #000;
    content: "";
    height: 2px;
    position: absolute;
    right: 18px;
    top: 0;
    left: 0;
    z-index: 1;
}
/* @end */

/* @group Box -style */
.socool-calloutbox-inner.socool-calloutbox-style-box {
	position: relative;
	padding: 30px 30px 10px 40px;	
	background: #00c677;
	/* TODO use sites color here */
}
/* @end */

/* @group Box -style */
.socool-calloutbox-inner.socool-calloutbox-style-top-line {
    border-bottom: 1px solid #ccc;
    border-top: 10px solid #000;    
	padding-top: 20px;
	padding-bottom: 10px;	
}

/* @end */

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


.socool-calloutbox.float-left-hanging,
.socool-calloutbox.float-left {
	float: left;
	margin-right: 5%;
	max-width: 40% !important;
	width: 45%;
	margin-left: 0 !important;
}
.socool-calloutbox.float-right-hanging,
.socool-calloutbox.float-right {
	float: right;
	margin-left: 5%;
	max-width: 40% !important;
	width: 45%;
	margin-left: 0 !important;
}
}
@media only screen and (max-width: 480px) {
.socool-calloutbox.float-left-hanging,
.socool-calloutbox.float-left {
	float: left;
	max-width: 100% !important;
	width: 100% !important;
	margin-right: 0 !important;
	margin-left: 0 !important;
}
.socool-calloutbox.float-right-hanging,
.socool-calloutbox.float-right {
	float: left;
	max-width: 100% !important;
	width: 100% !important;
	margin-right: 0 !important;
	margin-left: 0 !important;
}

}
