/*
*  CSS Tabs and Accordions
*/

@import "variables.less";

.accordion {
	position: relative;
	width: 100%;
	margin: 3rem 0;
	box-shadow: @tabs-shadow;
}
.accordion.bordered {
	border-radius: @border-radius;
}
.tabs {
	position: relative;
	margin: 3rem 0;
	height: @tabs-height;
}
.accordion *, .tabs * { box-sizing: border-box; }
.accordion::before, .tabs::before,
.accordion::after, .tabs::after {
	content: "";
	display: table;
}

.accordion::after, .tabs::after { clear: both; }

.tab { float: left; }
.accordion .tab, .tabs.left-side .tab { float: none; }
.accordion.horizontal .tab,
.accordion.horizontal .tab-label,
.accordion.horizontal .tab-content-outer {
	float: left;
	height: inherit;
}
.tab-switch { display: none; }

.tab-label {
	position: relative;
	display: block;
	line-height: 2.75em;
	height: 3em;
	padding: 0 1em;
	border-top: 1px solid @tabs-border-color;
	border-right: 0.125rem solid @tabs-border-color;
	background-origin: border-box;
	background-image: -webkit-linear-gradient(top,@tabs-bgr1-color,@tabs-bgr2-color);
	background-image: linear-gradient(to bottom,@tabs-bgr1-color,@tabs-bgr2-color);
	color: @tabs-label-color;
	cursor: pointer;
	top: 0;
	
}
.tabs.left-side .tab-label {
	display: inline-block;
	width: @tabs-width;
	text-align: right;
}

.tab-label:hover {
	top: -0.25rem;
	height: 3.15em;
	
}
.tab-content-outer {
	overflow: hidden;
	padding: 1.618rem;
	background: transparent;
    height: 18rem;
	position: absolute;
	z-index: 1;
	top: 3em;
	left: 0;
	box-shadow: @tabs-shadow;
}
.accordion .tab-content-outer {
	position: relative;
	padding: 0;
	top: 0;
	height: 0;
	box-shadow: none;
}
.accordion.horizontal .tab-content-outer {
	width: 0px;
}
.tabs.left-side .tab-content-outer {
	top: 0;
	left: @tabs-width;
}
.tab-content {
	color: @tabs-cont-color;
	-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
	filter: alpha(opacity=0);
	opacity: 0;
}
.accordion .tab-content {
	height: 0;
}

.animated * {
	-webkit-transition: all 0.35s;
	-moz-transition: all 0.35s;
	-o-transition: all 0.35s;
	-ms-transition: all 0.35s;
	transition: all 0.35s;
}
.animated.from-top .tab-content-outer,
.animated.from-top .tab-content-outer .tab-content {
    -webkit-transform: translateY(-450px);
	-moz-transform: translateY(-450px);
	-o-transform: translateY(-450px);
	-ms-transform: translateY(-450px);
	transform: translateY(-450px);
}
.animated.from-side > div:nth-child(odd) > .tab-content-outer .tab-content {
    -moz-transform: translateX(-250px);
    -o-transform: translateX(-250px);
    -ms-transform: translateX(-250px);
    transform: translateX(-250px);
}

.animated.from-side > div:nth-child(even) > .tab-content-outer .tab-content {
    -webkit-transform: translateX(250px);
    -moz-transform: translateX(250px);
    -o-transform: translateX(250px);
    -ms-transform: translateX(250px);
    transform: translateX(250px);
}
.tab-switch:checked + .tab-label {
	background: @tabs-active-bgr;
	color: @tabs-active-label-color;
	border-bottom: 0;
	border: 1px solid @tabs-border-color;
	background-image: -webkit-linear-gradient(top,@tabs-active-bgr1-color,@tabs-active-bgr2-color);
	background-image: linear-gradient(to bottom,@tabs-active-bgr1-color,@tabs-active-bgr2-color);
	z-index: 2;
	top: -0.0625rem;
}

.tabs .tab-switch:checked + .tab-label:hover { top: -0.0625rem; }

.tab-switch:checked + .tab-label + .tab-content-outer .tab-content {
	-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=1)";
	filter: alpha(opacity=1);
	opacity: 1;
	z-index: 3;
}
.animated.from-side .tab-switch:checked + .tab-label + .tab-content-outer .tab-content {
	-webkit-transition: all 0.35s;
	-moz-transition: all 0.35s;
	-o-transition: all 0.35s;
	-ms-transition: all 0.35s;
}
.animated.from-side .tab-switch:checked + .tab-label + .tab-content-outer .tab-content {
	-webkit-transform: translateX(0px);
	-moz-transform: translateX(0px);
	-o-transform: translateX(0px);
	-ms-transform: translateX(0px);
	transform: translateX(0px);
}
.animated.from-top .tab-switch:checked + .tab-label + .tab-content-outer,
.animated.from-top .tab-switch:checked + .tab-label + .tab-content-outer .tab-content {
    
	-webkit-transform: translateY(0px);
	-moz-transform: translateY(0px);
	-o-transform: translateY(0px);
	-ms-transform: translateY(0px);
	transform: translateY(0px);
}
.accordion .tab-switch:checked + .tab-label + .tab-content-outer {
	padding: 1.618rem;
	height: auto;
}
.accordion.horizontal .tab-switch:checked + .tab-label + .tab-content-outer {
	width: @accordion-width;
	height: inherit;
	padding: 10px;
	overflow: auto;
}
.accordion.horizontal .tab-switch:checked + .tab-label + .tab-content-outer .tab-content {
	margin-bottom: 10px;
}
.accordion .tab-switch:checked + .tab-label + .tab-content-outer .tab-content {
	height: auto;
	-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=1)";
	filter: alpha(opacity=1);
	opacity: 1;
	z-index: 3;
}

p.accnav {
	font-size: 1.1em;
	text-transform: uppercase;
	text-align: right;
}
p.accnav a {
	text-decoration: none;
	color: @active-font-color;
}
article.accordion {
	display: block;
	width: 100%;
	margin: 0 auto;
	background-color: @font-color;
	border-top: 1px solid @tabs-border-color;
	box-shadow: @tabs-shadow;
}
article.accordion section {
	position: relative;
	display: block;
	float: left;
	width: 5%;
	height: inherit;
	color: transparent;
	background-color: @tabs-label-color;
	background-image: -webkit-linear-gradient(top,@tabs-bgr1-color,@tabs-bgr2-color);
	background-image: linear-gradient(to bottom,@tabs-bgr1-color,@tabs-bgr2-color);
	overflow: hidden;
	z-index: 5;
}
article.accordion section img {
    display: none;
}
.sect-outer {
	height: inherit;
	padding: 10px;
	border-right: 1px solid @tabs-border-color;
}
article.accordion section h2 {
	position: absolute;
	font-size: 1em;
	font-weight: bold;
	width: 12em;
	height: 2em;
	top: 12em;
	left: 0;
	text-indent: 1em;
	padding: 0;
	margin: 0;
	color: @font-color;
	-webkit-transform-origin: 0 0;
	-moz-transform-origin: 0 0;
	-ms-transform-origin: 0 0;
	-o-transform-origin: 0 0;
	transform-origin: 0 0;
	-webkit-transform: rotate(-90deg);
	-moz-transform: rotate(-90deg);
	-ms-transform: rotate(-90deg);
	-o-transform: rotate(-90deg);
	transform: rotate(-90deg);
}
article.accordion section h2 a {
	display: block;
	width: 100%;
	line-height: 2em;
	text-decoration: none;
	color: inherit;
	outline: 0 none;
}
article.accordion section,
article.accordion section h2 {
	-webkit-transition: all 1s ease;
	-moz-transition: all 1s ease;
	-ms-transition: all 1s ease;
	-o-transition: all 1s ease;
	transition: all 1s ease;
}
article.accordion .accord-descr {
	color: white;
	position: absolute;
	right: 10px;
	top: 50%;
}
article.accordion section:target {
	width: 80%;
	color: @font-color;
	background-color: @tabs-active-bgr;
	background-image: none;
	overflow: auto;
}
article.accordion section:target img {
    display: block;
}
article.accordion.items-2 section:target {
	width: 95%;
}
article.accordion.items-3 section:target {
	width: 90%;
}
article.accordion.items-4 section:target {
	width: 85%;
}
article.accordion.items-5 section:target {
	width: 80%;
}
article.accordion.items-6 section:target {
	width: 75%;
}
article.accordion.items-7 section:target {
	width: 70%;
}
article.accordion.items-8 section:target {
	width: 65%;
}
article.accordion.items-9 section:target {
	width: 60%;
}
article.accordion.items-10 section:target {
	width: 55%;
}
article.accordion section:target h2 {
	position: static;
	font-size: 1.3em;
	text-indent: 0;
	color: @font-color;
	-webkit-transform: rotate(0deg);
	-moz-transform: rotate(0deg);
	-ms-transform: rotate(0deg);
	-o-transform: rotate(0deg);
	transform: rotate(0deg);
}