/* =========variable delcaration =========== */

:root {
	--red :  #c13347;
	--orange :  #f58937;
	--green : #71b5a8;
	--blue : 	#1a68a8;
	--borderL : 4px dotted;
	--borderT : 4px dotted;
}
.lang-collapse {
	margin-top: 60px;
	margin-bottom: 20px;
}
.lang-collapse .language-switcher-locale-url {
	padding-left: 40px;
}
.lang-collapse .language-switcher-locale-url > li {
	display:inline-block;
	margin: 5px;
}
.lang-collapse .language-switcher-locale-url > li a {
	
	font-size: 1.8em;
	line-height:2em;
	padding: 3px;
	color: #000;
	border:1px solid #ddd;
	border-radius:4px;
	min-width:60px;
	display:inline-block;
	text-align:center;
}

.buttons-collapse{
	clear: both;
}

.search-collapse{
	opacity: 1;
	margin: 10px 0 0 0;
	overflow: hidden;
	transition: all 0.4s ease-in-out;
	-moz-transition: all 0.4s ease-in-out;
	-webkit-transition: all 0.4s ease-in-out;
	-o-transition: all 0.4s ease-in-out;
	width: 50%;
	float: right;
}

.search-collapse .btn-primary {
	-webkit-border-radius: 0px;
	-moz-border-radius: 0px;
	border-radius: 0px;
	background-color: transparent;
	border-color: #9c9b9a;
}
.search-collapse .btn-primary:hover, .search-collapse .btn-primary:focus {
	background-color: #dedede;
}
.search-collapse .glyphicon-search {
	color: #9c9b9a;
}
.search-collapse .btn-primary:hover .glyphicon-search, .search-collapse .btn-primary:focus .glyphicon-search {
	color: #fff;
}
.search-collapse .form-actions {
	margin: 0;
}
/*==========  General override  ==========*/

/* social icon menu */

/* main menu  */
#headerContent .nav > li > a {
	width: auto;
	height: auto;
	display: inline;
}
#headerContent .main-menu .nav {
	padding-bottom: 15px;
	margin-top: 34px;
}
#headerContent .main-menu li {
	float: none;
	display: inline-block;
	vertical-align: middle;
	line-height: 30px;
}
#headerContent .main-menu li:first-child a {
	font-size: 0;
	padding: 15px 12px;
}
/* secpondary menu  */
.navbar-nav.secondary .secure-area .top-main img {
	width: 23px;
	height: 23px;
	margin-left: 0 auto;
}
/*#headerContent .secondary-menu {
	width: 180px;
	}*/
	#headerContent .secondary-menu.scrolled {
		padding: 5px 5px;
	}

	/*==========  Mobile First Method  ==========*/
	
	/* Large Devices, Wide Screens */
	@media only screen and (min-width : 1200px) {

		.social-list-wrapper {
			position: fixed;
			bottom: 0;
			right: 15px;
			z-index: 9999;
		}
		
		/* base logo */
		#headerContent .navbar-brand {
			width: 110px;
			height: 110px;
		}
		/*********** OUR SERVICES ***************/
		.services-header {
			font-size: 200% !important;
			text-align: center;
		}
		.services-intro {
			margin: 30px 60px 60px 60px;
			text-align: center;
			font-size: 120%;
			font-weight: 100;
		}
		.box-service {
			-webkit-transition: all 200ms ease-in;
			-webkit-transform: scale(1);
			-ms-transition: all 200ms ease-in;
			-ms-transform: scale(1);
			-moz-transition: all 200ms ease-in;
			-moz-transform: scale(1);
			transition: all 200ms ease-in;
			transform: scale(1);
			cursor: pointer;
		}
		.box-service:hover {
			box-shadow: 0px 0px 20px #000000;
			z-index: 2;
			-webkit-transition: all 200ms ease-in;
			-webkit-transform: scale(2);
			-ms-transition: all 200ms ease-in;
			-ms-transform: scale(2);
			-moz-transition: all 200ms ease-in;
			-moz-transform: scale(2);
			transition: all 200ms ease-in;
			transform: scale(2);
		}
		.box-service:before {
			content: "";
			display: block;
			padding-top: 100%; /* initial ratio of 1:1*/
		}
		.box-service .box-service-content {
			position: absolute;
			top: 0;
			left: 0;
			bottom: 0;
			right: 0;
		}
		.service-text {
			/* hide text if it more than N lines  */
			overflow: hidden;
			/* for set '...' in absolute position */
			position: relative; 
			/* use this value to count block height */
			line-height: 1.4em;
			/* place for '...' */
			margin: 0 -1em 0 0;
			padding: 0 1em;
			/*scaling*/
			width: calc(100% - 1em);
			display: -webkit-box;
			transform-origin: top left;
			-webkit-transform-origin-x: top left;
			/* max-height = font size * line-height (1.4) * lines max number (7) */
			max-height: calc(16px * 7 * 1.4);
			-webkit-line-clamp: 7;
			overflow: hidden;
			-webkit-transition: all 100ms ease-in;
		}
		.box-service .service-more a{
			transform-origin: top left;
			-webkit-transform-origin-x: top left;
		}
		/*hack chrome only*/
		.service-text:not(*:root) {
			-webkit-box-orient: vertical;
			text-overflow: ellipsis;
		}
		.service-text p {
			line-height: 1.4;
			padding:0;
		}
		/*EL*/
		.i18n-el .service-wrap h3,
		.i18n-el .service-wrap p{
			font-size:14px;
		}
		.i18n-el .service-text p {
			line-height: 1.2;
			padding:0;
			margin:0;
		}
		/*EL*/
		.i18n-bg .service-wrap h3,
		.i18n-bg .service-wrap p{
			font-size:14px;
		}
		.i18n-bg .service-text p {
			line-height: 1.2;
			padding:0;
			margin:0;
		}
		/*ET*/
		.i18n-et .service-wrap h3,
		.i18n-et.service-wrap p{
			font-size:14px;
		}
		.i18n-et .service-text p {
			line-height: 1.2;
			padding:0;
			margin:0;
		}
		/*IT*/
		.i18n-it .service-wrap h3,
		.i18n-it .service-wrap p{
			font-size:14px;
		}
		.i18n-it .service-text p {
			line-height: 1.2;
			padding:0;
			margin:0;
		}
		/*LT*/
		.i18n-lt .service-wrap h3,
		.i18n-lt .service-wrap p{
			font-size:14px;
		}
		.i18n-lt .service-text p {
			line-height: 1.2;
			padding:0;
			margin:0;
		}
		/*HU*/
		.i18n-hu .service-wrap h3,
		.i18n-hu .service-wrap p{
			font-size:14px;
		}
		.i18n-hu .service-text p {
			line-height: 1.2;
			padding:0;
			margin:0;
		}
		/*NL*/
		.i18n-nl .service-wrap h3,
		.i18n-nl .service-wrap p{
			font-size:14px;
		}
		.i18n-nl .service-text p {
			line-height: 1.2;
			padding:0;
			margin:0;
		}
		/*PL*/
		.i18n-pl .service-wrap h3,
		.i18n-pl .service-wrap p{
			font-size:14px;
		}
		.i18n-pl .service-text p {
			line-height: 1.2;
			padding:0;
			margin:0;
		}
		/*FI*/
		.i18n-fi .service-wrap h3,
		.i18n-fi .service-wrap p{
			font-size:14px;
		}
		.i18n-fi .service-text p {
			line-height: 1.2;
			padding:0;
			margin:0;
		}
		/*SK*/
		.i18n-sk .service-wrap h3,
		.i18n-sk .service-wrap p{
			font-size:14px;
		}
		.i18n-sk .service-text p {
			line-height: 1.2;
			padding:0;
			margin:0;
		}
		/*SL*/
		.i18n-sl .service-wrap h3,
		.i18n-sl .service-wrap p{
			font-size:14px;
		}
		.i18n-sl .service-text p {
			line-height: 1.2;
			padding:0;
			margin:0;
		}
		/*SV*/
		.i18n-sv .service-wrap h3,
		.i18n-sv .service-wrap p{
			font-size:14px;
		}
		.i18n-sv .service-text p {
			line-height: 1.2;
			padding:0;
			margin:0;
		}
		
		/**/
		.box-service:hover .service-text {
			margin:0;
			padding:1em;
			width: calc(200%);
			transform: scale(0.5);
			max-height: calc(16px * 100 * 1.4);
			-webkit-line-clamp: 100;
		}


		.service-text:before:not(*:root),
		.service-text:after:not(*:root){
			background-color:red;
		}
		
		.service-text:before {
			/* points in the end */
			content: '...';
			/* absolute position */
			position: absolute;
			/* set position to right bottom corner of block */
			right: 0;
			bottom: 0;
			width:1em;
		}

		/* hide ... if we have text, which is less than or equal to max lines */
		.service-text:after {
			/* points in the end */
			content: '';
			/* absolute position */
			position: absolute;
			/* set position to right bottom corner of text */
			right: 0;
			/* set width and height */
			width: 1em;
			height: 1em;
			margin-top: -0.5em;
			/* bg color = bg color under block */
			background: white;
		}

		.box-service:hover .service-text:before,
		.box-service:hover .service-text:after{
			opacity:0;
		}

		.service-wrap {
			min-height: 100%;
			/* equal to footer height */
			margin-bottom: -30px;
		}
		.box-service:hover .service-wrap{
			/* equal to footer height when scale = 2 */
			margin-bottom: -64px;
		}


	}

	/*==========  Non-Mobile First Method  ==========*/

	
	/* Large Devices, Wide Screens */
	@media only screen and (max-width : 1200px) {


		#headerContent .navbar-brand {
			width: 100px;
			height: 100px;
			margin-top: -20px;
		}
		

		.workflow-chart {
			background-size: 100%;
			background-position: 0;
			background-repeat: no-repeat;
		}

		.wf-label.request{
			top: 550px;
			left: 60px;
		}
		.wf-label.delivery{
			top: 510px;
			left: 215px;
		}
		.wf-label.QsAs{
			top: 60px;
			left: -45px;
		}
		.wf-label.QsAs2{
			top:50px;
			left:110px;
		}
		.wf-label.feedback{
			top: 550px;
			left: 70px;
		}
		.wf-label.feedback2{
			top:1150px;
			left:70px;
		}

		.wf-block-wms{
			background-color:#FFD03D !important;
			width: 260px;
			/**/
			top: 60px;
			left: 105px;
		}
		.wf-block-client {
			background : #AAAAAA !important;
			background : rgba(170, 170, 170, 1);
			color:#fff !important;
			/**/
			top: 180px;
			left: 195px;
			width: 220px;
		}
		.wf-block-wms-step.step2{
			top: 50px;
			left: -30px;
		}

		.wf-block-wms-step.step3{
			background-color:#00397E !important;
			color:#fff !important;
			top: 50px;
			left: -40px;
		}


		.wf-block-wms-step.step4{
			background-color:#e26e20 !important;
			color:#fff !important;
			top: 155px;
			left: -40px;
		}

		.wf-block-wms-step.step5{
			top: 50px;
			left: -40px;
		}

		.wf-block-wms-step.step6{
			top: 60px;
			left: 10px;
		}

		.wf-block-wms-step.step7{
			top: 50px;
			left: 10px;
		}

		.wf-block-ercs-step.step9{

			top: 634px;
			left: 0px;
		}

		.wf-block-ercs{
			background-color:#e26e20 !important;

			width: 260px;
			/**/
			top: 634px;
			left: 0px;
		}

		.back-to-top {
			display: none;
			position: fixed;
			bottom: 48px;
			right: 15px;
		}
	}

	@media only screen and (min-width : 1201px) {
		.workflow-chart {
			background-size: 88%;
			background-position: 40px 0;
			background-repeat: no-repeat;
		}

		.wf-label.request{
			top:500px;
			left:105px;
		}
		.wf-label.delivery{
			top:460px;
			left:265px;
		}
		.wf-label.QsAs{
			top:0;
			left:-5px;
		}
		.wf-label.QsAs2{
			top:50px;
			left:110px;
		}
		.wf-label.feedback{
			top:500px;
			left:70px;
		}
		.wf-label.feedback2{
			top:1150px;
			left:70px;
		}
		.wf-block-wms{
			background-color:#FFD03D !important;
			width: 260px;
			/**/
			top:0px;
			left:135px;
		}
		.wf-block-client {
			background : #AAAAAA !important;
			background : rgba(170, 170, 170, 1);
			color:#fff !important;
			/**/
			top:110px;
			left:245px;
			width:220px;
		}
		.wf-block-wms-step.step2{
			top:0;
			left:0;
		}

		.wf-block-wms-step.step3{
			background-color:#00397E !important;
			color:#fff !important;
			top:0;
			left:0;
		}

		.wf-block-wms-step.step3 a{
			color:#fff;
		}

		.wf-block-wms-step.step4{
			background-color:#e26e20 !important;
			color:#fff !important;
			top:115px;
			left:0;
		}

		.wf-block-wms-step.step5{
			top:0;
			left:0;
		}

		.wf-block-wms-step.step6{
			top:0;
			left:10px;
		}

		.wf-block-wms-step.step7{
			top:0;
			left:10px;
		}

		.wf-block-ercs-step.step9{

			top:0;
			left:0;
		}

		.wf-block-ercs{
			background-color:#e26e20 !important;

			width: 260px;
			/**/
			top:580px;
			left:30px;
		}

		.back-to-top {
			display: none;
			position: fixed;
			bottom: 25px;
			right: 15px;
		}

	}

	/* Medium Devices, Desktops */
	@media only screen and (max-width : 992px) {

		/* carousel  font size */
		
		#mainContent .slider-content p {
			font-size: 2vw;
			line-height: 1.2em;
			margin:0;
			padding:0;
		}
		#mainContent .slider-content h2 {
			font-size: 4vw;
			line-height: 1em;
			margin:0;
			padding:0;
		}
		#mainContent .slider-content h3 {
			font-size: 3vw;
			line-height: 1em;
			margin:0;
			padding:0;
		}

		.slider.btn {
			font-size: 3vw;
		}
		.copyright-section{
			/*padding: 5px 0;*/
			margin-bottom: 50px;
		}


		#block-views-services-block .box-hp-service-content a {
			padding: 10px;
			font-size: 18px;
		}
		/*  our story */
		#mainContent .tl-box .year {
			padding: 6px 60px;
		}
		#mainContent .box, #mainContent p.mb-intro, #mainContent h3.mb-title {
			width: auto;
		}
		.social-list-wrapper {
			position: fixed;
			bottom: 0px;
			left: 0;
			z-index: 9999;
			width: 100vw;
			text-align: center;
			padding:8px 0;
			background-color: rgba(25,37,51,1);
		}

		.social-list-wrapper ul.social-icons{
			padding:0;
			margin: 0;
		}

		.social-list-wrapper ul.social-icons li {
			display:inline-block;
			text-align: center;
			margin: 0;
			width: 13vw;
		}
		.social-icons li a {
			color: #e5e5e5;
			width: 11vw;
			height: 11vw;
			display: inline-block;
			text-align: center;
		}
		

		.workflow-chart{
			display: none;
		}
	}

	/* Small Devices, Tablets */
	@media only screen and (min-width : 768px) {

		.node-contact-page {
			margin: -90px -30px;
		}

		.contact-data {
			background-color: rgba(255,255,255,0.9);
			width: calc(100% - 60px);
			position: absolute;
			margin: 0 30px;
			padding: 60px 60px 100px 60px;
			top: 250px;
			-webkit-box-shadow: 2px 1px 10px 5px #808080;
			-moz-box-shadow: 2px 1px 10px 5px #808080;
			box-shadow: 2px 1px 10px 5px #808080;
		}

		.tl-box:nth-child(even) .box .box-content .image {
			float: right;
			width: 30%;
			margin-left: 15px;
			margin-bottom: 15px;
		}

		.leaflet-container{
			display: block;
		}

	}
	@media only screen and (max-width : 767px) {
		body>header{
			position: relative;
		}
		.main-container {
			padding:0 !important;
		}
		section#block-locale-language{
			display: none;
		}
		.search-collapse{
			float: none;
			margin: 15px;
			width: 100%;
			padding: 15px;
			margin-top: 60px;		
		}
		
		.search-collapse .input-group .form-control,
		.search-collapse .input-group .btn.btn-primary{
			height: 60px;
		}
		
		.search-collapse .input-group .btn.btn-primary{
			width:60px;
		}
		
		.lang-collapse .language-switcher-locale-url{
			display: block;
		}
		
		/* menu */
		#headerContent .main-menu{
			float:none;
			margin:20px 40px;
			
		}	
		
		#headerContent .main-menu .nav{
			float:none;
		}
		#headerContent .main-menu li {
			float: none;
			display: block;
			vertical-align: middle;
			line-height: 50px;
		}
		
		#headerContent .main-menu li a {
			font-size:140%;
		}
		
		#headerContent .main-menu li:first-child a{
			padding:10px 12px;
		}
		
		#headerContent .secondary-menu{
			position:relative;
			float:none;
		}
		
		#headerContent .nav > li > a{
			display: block;
			border:1px solid #d2d2d2;
			margin-bottom: 5px;
			border-radius:6px;
		}
		
		#headerContent .nav > li > a.top-main{
			display: block;
			margin:0;
			border:0;
		}
		
		.secondary-menu{
			position: relative;
			top:0 !important;
		}
		
		#headerContent ul.secondary.navbar-nav{
			padding:0 !important;
			margin:0 !important;
		}
		
		#headerContent ul.secondary.navbar-nav li a{
			padding:15px;
		}
		
		#headerContent ul.secondary .secure-area {
			padding:0 !important;
			margin:0 !important;
		}
		
		#headerContent ul.secondary .secure-area ul.dropdown{
			margin:0;
			width:100%;
		}
		
		#headerContent ul.secondary .secure-area ul.dropdown a{
			font-size: 140%;
		}
		
		/**/
		
		.row-header .page-header,
		.slogan-bar .slogan{
			margin:0px;
			padding:0;
		}
		
		.row-header,
		.slogan-bar .slogan{
			padding:15px;
		}

	
		
		/*services*/
		
		.services .hp-services .box-hp-service{
			width: 25%;
			margin:15px;
		}
		

		/* map our partners */
		.leaflet-container{
			display : none;
		}
		/*  SERVICES  */		
		#block-views-services-block .box-hp-service-content a {
			padding: 5px;
		}

		.node-contact-page {
			margin: 0;
		}

		.contact-data {
			background-color: rgba(255,255,255,0.9);
			width: 100%;
			position: static;
			padding: 60px 20px 100px 20px;
			top: 0;
			
		}

		.contact-btn-directions{
			margin-bottom: 30px;
		}


		.contact-btn-social{
			margin-bottom: 30px;
		}

		.tl-box:nth-child(even) .box .box-content .image {
			width: 30%;
			margin-bottom: 15px;
		}

	}

	@media only screen and (min-width : 481px) {

		.service-focus {
			padding: 20%;
		}
	}

	/* Extra Small Devices, Phones */ 

	@media only screen and (max-width : 480px) {

	
		
		/*  intro title  */
		#mainContent .row-header .page-header {
			border: none;
			margin-top: 20px;
			margin-bottom: 40px;
			margin-left: 0px;
		}
		#mainContent h1 {
			font-size: 30px;
		}
		#headerContent .social-icons {
			border: none;
		}
		#block-system-main .services-intro {
			margin: 0;
			text-align: left;
		}
		#block-views-services-block .box-hp-service {
			width: 40%;
			margin: 4%;
		}
		/* service-text */
		#headerContent .main-menu {
			float: left;
			margin-left : 10px;
		}
		#headerContent .nav > li {
			clear: both;
			position: relative;
			display: block;
		}
		#headerContent .main-menu .nav> li {
			margin-top: 10px;
		}
		#headerContent .navbar-brand {
			width: 80px;
			height: 80px;
			margin-left: 25px;
		}
		#headerContent .navbar-nav {
			margin: 0;
		}
		/* management board */	
		#mainContent .subdirector.R {
			/*border-left:4px dotted #c13347;*/
			color: #FFD03D;
		}
		/* .subdirector.R::before */
		#mainContent .subdirector.R > li:first-child {
			float: left;
			margin-top: -15px;
			padding-left: 33px;/*background-color:#F1F1F1;*/
		}
		#mainContent .page-content .org-chart .department {
			width: auto;
			margin-bottom: 20px;
			background-image: none !important;
			padding-bottom: 15px;
			padding-left: 15px;
			margin-bottom: 0;
		}
		#mainContent .page-content .org-chart .department:nth-child(1) {
	/*border-top :4px dotted #c13347;
			border-left:4px dotted #c13347;
			color: #c13347;*/
			background-color: #f5f5f5;
		}
		#mainContent .page-content .org-chart .department:nth-child(2) {
			/*border-left:4px dotted #f58937;*/
			color: #f58937;
		}
		#mainContent .page-content .org-chart .department:nth-child(3) {
			/*border-left:4px dotted;*/
			color: #71b5a8;
			background-color: #f5f5f5;
		}
		#mainContent .page-content .org-chart .department:nth-child(4) {
			/*border-left:4px dotted #1a68a8;*/
			color: #1a68a8;
		}
		#mainContent .department > div.OrganoBox .dpt-name span {
			font-weight: 500;
			font-size: 18px;
		}
		#mainContent li.department:nth-child(1) span {
			color: #c13347;
		}
		#mainContent li.department:nth-child(2) span {
			color: #f58937;
		}
		#mainContent li.department:nth-child(3) span {
			color: #71b5a8;
		}
		#mainContent li.department:nth-child(4) span {
			color: #1a68a8;
		}
		#mainContent .section::before {
			margin-left: -35px;
		}
		#mainContent .main-container .page-content .org-chart .department {
			padding: 30px;
		}
		#mainContent li.department:nth-child(n) span.dpt-head, #mainContent li.department:nth-child(n) span.dpt-title {
			color: #666;
			font-size: 1.4em;
		}
		#mainContent .subdirector.R::before {
			background-image: none !important;
		}

		/* services */
		.service-focus {
			padding: 5%;
		}




	}

	/* Custom, iPhone Retina */ 
	@media only screen and (max-width : 320px) {
	}
