﻿@import '../default.less';
@import '../mixins.less';
//DON'T ADD IMPORTS, ABOVE ARE TO MAKE INTELLISENSE WORK

@slate-blue: #6080c0;
@desc-color: #292929;
@grass-green: #4ab55f;
@grass-green-hover: #67af40;
@royal-blue: #2050be;
@charcoal-grey: #222240;

.datafinder
{
	font-family: @title-font;


	.container
	{
		position: relative;
		width: 940px;
		margin: auto;
	}

	.big
	{
		font: bold 18px @title-font;
		margin: 14px auto;
	}

	.small
	{
		font-size: 14px;
	}

	.blue
	{
		color: @slate-blue;
	}

	.upper
	{
		text-transform: uppercase;
	}

	.row
	{
		overflow: hidden;
		padding: 110px 0;

		h1
		{
			font: bold 36px @title-font;
			color: @charcoal-grey;
			width: 100%;
			text-align: left;
			margin: 0;

			html[dir='rtl'] &
			{
				text-align: right;
			}
		}

		h2
		{
			font-size: 18px;
			line-height: 34px;
			display: inline-block;
			font-weight: bold;
			margin: 0;
			color: @charcoal-grey;
			text-transform: uppercase;
			width: 400px;
		}

		.text
		{
			font-size: 16px;
			line-height: 20px;
			margin: 0 0 20px 0;
			color: @desc-color;
		}

		.try-now
		{
			background-color: #00cc75;
			color: white;
			padding: 7px 40px;
			display: inline-block;
			text-decoration: none;
			border-radius: 3px;
			font-size: 1.4em;
			font-weight: bold;
		}

		&.grey
		{
			background: #f2f2f0;
		}

		&.getit
		{
			.description
			{
				width: 430px;
				vertical-align: top;
				display: inline-block;
			}

			.preview
			{
				display: inline-block;
				vertical-align: top;
				padding-top: 98px;
				width: 470px;
			}

			.big-picture
			{
				height: 287px;
				width: 510px;
				background-image: url("https://cdn.knoema.com/addin/datafinder-sprites.png");
				background-repeat: no-repeat;
				background-size: 2400% 100%;
			}

			.thumbs-panel
			{
				padding: 20px 0px 0px 0px;
				height: 60px;
				width: 520px;
				font-size: 0px;
			}

			.thumb
			{
				width: 120px;
				height: 60px;
				margin-right: 4px;
				cursor: pointer;
				display: inline-block;
				outline: 2px solid #f2f2f0;
				border: 2px solid #f2f2f0;
				background-image: url("https://cdn.knoema.com/addin/datafinder-sprites.png");
				background-repeat: no-repeat;
				background-size: 2400% 100%;

				html[dir='rtl'] &
				{
					.margin-left-right(4px, 0);
				}
			}

			.thumb-selected
			{
				outline: 2px solid @slate-blue;
			}

			.desc
			{
				font: 21px @title-font;
				margin: 0px;
				vertical-align: middle;
				height: 32px;
				width: 240px;
				display: inline-block;
			}

			.desc-arrow
			{
				width: 20px;
				height: 60px;
				margin: 0px;
				background-image: url("/Img/v4/datafinder/arrow.svg");
				background-repeat: no-repeat;
				vertical-align: middle;
				display: none;
				background-color: #f2f2f0;

				html[dir='rtl'] &
				{
					-moz-transform: scaleX(-1);
					-o-transform: scaleX(-1);
					-webkit-transform: scaleX(-1);
					transform: scaleX(-1);
				}
			}

			.item-panel
			{
				width: 340px;
				height: 60px;
				float: left;
				cursor: pointer;
				font-size: 0;

				html[dir='rtl'] &
				{
					float: right;
				}
			}

			.item-panel-selected
			{
				background-color: white;

				.desc-arrow
				{
					display: inline-block;
				}

				.desc
				{
					font: bold 21px @title-font;
					color: @slate-blue;
				}
			}

			.item-panel:hover .desc
			{
				font: bold 21px @title-font;
				color: @royal-blue;
			}

			.icon
			{
				background: no-repeat center;
				height: 32px;
				width: 32px;
				margin: 14px 25px 14px 23px;
				vertical-align: middle;
				display: inline-block;

				&.excel
				{
					.hires('/img/v4/datafinder/excel/excel-icon');
				}

				&.word
				{
					.hires('/img/v4/datafinder/word/word-icon');
				}

				&.powerpoint
				{
					.hires('/img/v4/datafinder/powerpoint/powerpoint-icon');
				}

				&.sheets
				{
					.hires('/img/v4/datafinder/sheets/sheets-icon');
				}

				&.docs
				{
					.hires('/img/v4/datafinder/docs/docs-icon');
				}

				&.slides
				{
					.hires('/img/v4/datafinder/slides/slides-icon');
				}
			}

			.footer-arrow
			{
				width: 941px;
				height: 19px;
				background-repeat: no-repeat;
				margin: 37px 0 0 0;
				background-image: url("/Img/v4/datafinder/arrow_to_install.svg");
			}

			.google
			{
				padding: 0 0 20px 0;
			}

			.app
			{
				display: none;
			}

			.active
			{
				display: block;
			}

			.docs-picture-1
			{
				background-position: 0 0;
			}

			.docs-picture-2
			{
				background-position: 4.35% 0;
			}

			.docs-picture-3
			{
				background-position: 8.7% 0;
			}

			.docs-picture-4
			{
				background-position: 13.05% 0;
			}

			.sheets-picture-1
			{
				background-position: 17.4% 0;
			}

			.sheets-picture-2
			{
				background-position: 21.75% 0;
			}

			.sheets-picture-3
			{
				background-position: 26.1% 0;
			}

			.sheets-picture-4
			{
				background-position: 30.45% 0;
			}

			.slides-picture-1
			{
				background-position: 34.8% 0;
			}

			.slides-picture-2
			{
				background-position: 39.15% 0;
			}

			.slides-picture-3
			{
				background-position: 43.50% 0;
			}

			.slides-picture-4
			{
				background-position: 47.83% 0;
			}

			.word-picture-1
			{
				background-position: 52.18% 0;
			}

			.word-picture-2
			{
				background-position: 56.53% 0;
			}

			.word-picture-3
			{
				background-position: 60.88% 0;
			}

			.word-picture-4
			{
				background-position: 65.22% 0;
			}

			.powerpoint-picture-1
			{
				background-position: 69.56% 0;
			}

			.powerpoint-picture-2
			{
				background-position: 73.92% 0;
			}

			.powerpoint-picture-3
			{
				background-position: 78.26% 0;
			}

			.powerpoint-picture-4
			{
				background-position: 82.61% 0;
			}

			.excel-picture-1
			{
				background-position: 86.96% 0;
			}

			.excel-picture-2
			{
				background-position: 91.31% 0;
			}

			.excel-picture-3
			{
				background-position: 95.66% 0;
			}

			.excel-picture-4
			{
				background-position: 100% 0;
			}
		}

		&.relevant
		{

			.word
			{
				color: @charcoal-grey;
				text-align: center;
				width: 435px;

				p
				{
					margin-bottom: 0;
				}
			}

			.image
			{
				.hires('/img/v4/datafinder/logos_ms_word_excel');
				background-repeat: no-repeat;
				background-size: 213px 170px;
				width: 213px;
				height: 170px;
				margin: auto;
				box-shadow: none;
			}

			.workflow
			{
				.hires('/img/v4/datafinder/workflow_tools');
				width: 100%;
				height: 298px;
				margin-top: 110px;
			}
		}

		&.works
		{

			h1
			{
				text-transform: uppercase;
			}

			.content
			{
				margin-top: 72px;
			}

			.image
			{
				background-image: Url('/img/v4/datafinder/surface_data.gif');
			}

			.column
			{
				vertical-align: middle;

				p
				{
					width: 345px;
					text-align: left;
					margin-top: 0px;

					html[dir='rtl'] &
					{
						text-align: right;
					}
				}

				&.info
				{
					margin-left: 70px;
					width: 345px;

					html[dir='rtl'] &
					{
						.margin-left-right(0, 70px);
						text-align: right;
					}
				}
			}
		}

		&.filter
		{

			.image
			{
				background-image: Url('/img/v4/datafinder/filter_data.gif');
			}

			.column
			{
				vertical-align: middle;

				p
				{
					width: 365px;
					text-align: left;
					margin-top: 0px;

					html[dir='rtl'] &
					{
						text-align: right;
					}
				}

				&.info
				{
					margin-right: 70px;
					width: 365px;

					html[dir='rtl'] &
					{
						.margin-left-right(70px, 0);
						text-align: right;
					}
				}
			}
		}

		&.insert
		{
			.image
			{
				background-image: Url('/img/v4/datafinder/insert_data.gif');
			}

			.column
			{
				vertical-align: middle;

				p
				{
					width: 345px;
					text-align: left;
					margin-top: 0px;

					html[dir='rtl'] &
					{
						text-align: right;
					}
				}

				&.info
				{
					margin-left: 70px;
					width: 345px;

					html[dir='rtl'] &
					{
						.margin-left-right(0, 70px);
						text-align: right;
					}
				}
			}
		}

		&.laptop
		{
			background-position: center top;
			width: 100%;

			.description
			{
				width: 376px;
				padding-right: 45px;
				vertical-align: bottom;
				display: inline-block;

				html[dir='rtl'] &
				{
					.padding-left-right(40px, 0);
				}
			}

			.download-container
			{
				.btn
				{
					margin-left: 0;
					margin-bottom: 23px;

					html[dir='rtl'] &
					{
						.margin-left-right(auto, 0);
					}
				}

				.footer
				{
					text-align: left;

					html[dir='rtl'] &
					{
						text-align: right;
					}
				}

				.appsourceimage
				{
					.hires('/img/v4/datafinder/appsource');
					display: inline-block;
					width: 165px;
					height: 50px;
					padding: 0 20px 0 0;
					background-repeat: no-repeat;
					outline: none;
				}

				.webstoreimage
				{
					.hires('/img/v4/datafinder/webstore');
					display: inline-block;
					width: 165px;
					height: 50px;
					background-repeat: no-repeat;
					outline: none;
				}
			}

			.video
			{
				display: inline-block;
				width: 510px;
				height: 307px;
				vertical-align: bottom;
			}

			iframe
			{
				width: 510px;
				height: 307px;
			}

			.video-watch
			{
				width: 100%;
				text-align: center;
				font: 16px;
				padding-top: 23px;
			}

			html[dir='rtl'] &
			{
				transform: scaleX(-1);
			}

			h1
			{
				font-size: 60px;
				line-height: 56px;
				color: #000;
				margin: 0;

				sup
				{
					color: @slate-blue;
					text-transform: none;
					font-size: 18px;
					font-weight: normal;
					top: -23px;
					margin-left: 3px;
				}
			}

			h3
			{
				text-align: center;
				font-style: italic;
				font-weight: normal;
				margin-top: 0;
			}

			.try-now
			{
				color: #00cc75;
				background-color: white;
			}

			html[dir='rtl'] &
			{
				.container
				{
					transform: scaleX(-1);
				}
			}

			.datafinder-img
			{
				position: absolute;
				top: 30px;
				left: 485px;

				html[dir='rtl'] &
				{
					left: 0;
				}
			}
		}

		.column
		{
			display: inline-block;
			vertical-align: top;
			width: 500px;
		}

		.image
		{
			width: 500px;
			height: 288px;
			background-size: cover;
		}

		&.search
		{
			background-color: #f2f2f0;
			margin-top: 60px;
			padding: 60px 0;

			.image
			{
				.hires('/img/v4/datafinder/pic-search', @ext: 'gif');
			}
		}



		&.refresh
		{
			background-color: #f2f2f0;
			padding: 60px 0;

			.image
			{
				.hires('/img/v4/datafinder/pic-refresh', @ext: 'gif');
			}

			span
			{
				font-weight: bold;
			}
		}
	}

	.download
	{
		padding-top: 68px;
		text-align: center;
		color: @charcoal-grey;

		.btn
		{
			max-width: 223px;
			margin: auto;
			padding: 17px 0;
			font: bold 19px @title-font;
			line-height: 24px;
			text-transform: uppercase;
			border-radius: 4px;
			background: @grass-green;
			cursor: pointer;
			text-decoration: none;
			outline: none;
			display: block;
			margin-bottom: 17px;
			box-shadow: 0 2px 2px 0 rgba(0,0,0,0.24);

			&, &:link, &:visited, &:hover, &:active
			{
				color: #fff;
			}

			&:hover
			{
				background-color: @grass-green-hover;
			}
		}

		.footer
		{
			font-size: 14px;
			line-height: 20px;
			color: #787878;

			&.bold
			{
				font: bold 16px @title-font;
			}
		}

		.column
		{
			display: inline-block;
			vertical-align: top;
			width: 170px;
			margin: 0;

			&.info
			{
				margin-left: 70px;
				width: 170px;

				html[dir='rtl'] &
				{
					.margin-left-right(0, 70px);
					text-align: right;
				}
			}
		}
	}

	.buttons
	{
		.button
		{
			display: inline-block;
			height: 51px;
			width: 48px;
			padding: 11px 21px;
			background-size: 51px 48px;
			background-repeat: no-repeat;
			background-position: center;
			box-sizing: border-box;
			outline: none;
			text-decoration: none;
			margin: 5px 16px;

			&.word
			{
				background-image: url('/Img/v7/shared/word.svg');
			}

			&.excel
			{
				background-image: url('/Img/v7/shared/excel.svg');
			}
		}
	}

	.datafinder-download-btn
	{
		display: inline-block;
		text-transform: uppercase;
		background-color: @grass-green;
		box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.24);
		font: bold 19px @title-font;
		color: @charcoal-grey;
		line-height: 24px;
		padding: 17px 40px;
		border-radius: 2px;
		cursor: pointer;
		text-decoration: none;
		outline: none;

		&:hover
		{
			background-color: @grass-green-hover;
		}
	}

	.learnmore-btn
	{
		display: inline-block;
		height: 28px;
		text-align: center;
		font-size: 16px;
		font-weight: bold;
		color: @royal-blue;
		line-height: 1;
		padding: 10px 15px 0px 0px;
		cursor: pointer;
		.hires('/img/v7/datafinder/fa-chevron', @backgroundSize: 6px);
		background-position-x: calc(~'100% - 5px');
		background-position-y: center;
		background-size: 6px;
		background-repeat: no-repeat;
		text-decoration: none;
		outline: none;

		&:hover
		{
			text-decoration: underline;
		}

		html[dir='rtl'] &
		{
			padding: 10px 0px 0px 20px;
			.hires('/img/v7/datafinder/fa-chevron-rtl', @backgroundSize: 6px);
			background-position-x: 5px;
		}
	}

	.datafinder-img
	{
		display: block;
		width: 448px;
		height: 314px;
		.hires('/img/v7/datafinder/home','png?v=1', @backgroundSize: contain);
		background-position: center;
		background-size: contain;
		background-repeat: no-repeat;
	}
}

div#home-datafinder
{
	h2
	{
		text-align: center;
		font-weight: bold;
		text-transform: uppercase;

		sup
		{
			color: @slate-blue;
			text-transform: none;
			font-size: 16px;
			font-weight: normal;
			top: -18px;
		}
	}

	#datafinder-desc
	{
		margin-top: 30px;
		font-size: 18px;
		line-height: 24px;
		color: @desc-color;

		.col-50
		{
			display: inline-block;
			width: 450px;
			overflow: hidden;
		}

		#dd-text
		{
			margin-bottom: 40px;
		}

		h4
		{
			color: @slate-blue;
			font-size: 21px;
			line-height: 30px;
		}

		.datafinder-download-btn
		{
			margin-right: 20px;

			html[dir='rtl'] &
			{
				.margin-left-right(20px, 0);
			}
		}

		.small
		{
			font-size: 14px;
		}

		.blue
		{
			color: @slate-blue;
		}
	}
}
