﻿@import "../mixins.less";

body
{
	div#site-main
	{
		width: unset;
	}

	.main-container
	{
		font-size: initial;
	}
}

.main-container
{
	.chat
	{
		width: 714px;
		height: 544px;
		background: #fff;
		margin: 0 auto 20px auto;
		padding: 80px 0 0 40px;
		.hires2('/img/bot/chat-window', @size: contain);

		@media only screen and (max-height: 900px)
		{
			.hires2('/img/bot/chat-window-small', @size: contain);
			height: 400px;
			margin: 0 auto 20px auto;
		}

		.flow
		{
			height: 425px;
			width: 660px;
			margin-bottom: 30px;
			overflow: hidden;

			@media only screen and (max-height: 900px)
			{
				height: 275px;
			}

			.content
			{
				position: relative;
				top: 400px;
			}

			.message
			{
				margin: 10px 0;

				.sender
				{
					width: 32px;
					height: 32px;
					display: inline-block;
					vertical-align: top;
					margin-right: 20px;

					&.bot
					{
						.hires2('/img/bot/logo-chat');
					}

					&.user
					{
						.hires2('/img/bot/user');
					}
				}

				.text
				{
					display: inline-block;
					width: 560px;
					padding: 10px;
					border-radius: 10px;

					&.bot
					{
						background-color: #D0EFD0;
					}

					&.user
					{
						background-color: #F0F0F0;
					}

					p
					{
						margin: 0 0 5px 0;

						a
						{
							color: #0077ca;
						}

						.button
						{
							background-color: #fff;
							padding: 2px 5px;
							border: 1px solid #ccc;
							border-radius: 5px;
							margin-right: 3px;
							white-space: nowrap;
							margin-top: 3px;
							display: inline-block;
							cursor: pointer;
						}
					}
				}
			}
		}

		.input
		{
			height: 40px;
			width: 650px;
			line-height: 40px;
			padding: 0 10px;
		}

		.typing
		{
			font-size: 0.75em;
			color: gray;
			margin-top: 3px;
			display: none;
		}
	}

	.join
	{
		text-align: center;

		&.pending
		{
			background-color: #ECF8EC;
			padding: 10px 0;
		}

		#invite-pending
		{
			text-align: center;
			font-size: 1.1em;
			width: 500px;
			margin: 20px auto;

			.done
			{
				.hires2('/img/bot/ico-check-green2');
				width: 80px;
				height: 80px;
				margin: auto;
			}

			.share
			{
				padding: 0 45px;
				border-radius: 3px;
				color: #fff;
				font-size: 1.2em;
				text-decoration: none;
				font-weight: bold;
				display: inline-block;
				margin: 10px 20px 20px 0;
				line-height: 50px;

				> span
				{
					display: inline-block;
					width: 24px;
					height: 24px;
					position: relative;
					top: 5px;
					margin-right: 10px;
				}

				&.facebook
				{
					background-color: #4267b2;

					span
					{
						.hires2('/img/bot/ico-footer-fb');
					}
				}

				&.twitter
				{
					background-color: #1b95e0;

					span
					{
						.hires2('/img/bot/ico-footer-tw');
					}
				}
			}

			a
			{
				color: #0077ca;
				font-size: 0.9em;
			}
		}
	}

	.platforms
	{
		text-align: center;
		margin: 50px 0;

		.platform
		{
			width: 180px;
			height: 120px;
			display: inline-block;
			vertical-align: top;

			@media only screen and (max-width: 1200px)
			{
				width: 150px;
				height: 100px;
			}

			span
			{
				margin-top: 100px;
				display: inline-block;
				font-size: 1.2em;

				@media only screen and (max-width: 1200px)
				{
					margin-top: 70px;
				}
			}

			&.slack
			{
				.hires2('/img/bot/slack', @size: contain);
			}

			&.facebook
			{
				.hires2('/img/bot/facebook', @size: cover, @position: top center);
				height: 90px;
			}

			&.skype
			{
				.hires2('/img/bot/skype');
			}

			&.telegram
			{
				.hires2('/img/bot/telegram');
				height: 90px;
			}

			&.email
			{
				.hires2('/img/bot/email');
				height: 90px;
			}

			&.twitter
			{
				.hires2('/img/bot/twitter');
				height: 90px;
			}

			@media only screen and (max-width: 1200px)
			{
				&.facebook
				{
					.hires2('/img/bot/facebook', @size: cover, @position: top center);
					height: 70px;
				}

				&.telegram
				{
					.hires2('/img/bot/telegram', @size: cover, @position: top center);
					height: 70px;
				}

				&.email
				{
					.hires2('/img/bot/email', @size: cover, @position: top center);
					height: 70px;
				}
			}
		}
	}

	.features
	{
		.hires2('/img/bot/bg-features', @size: contain, @repeat: repeat);
		padding: 30px 0;

		h2
		{
			text-align: center;
		}

		.feature
		{
			.column
			{
				display: inline-block;
				box-sizing: border-box;
				vertical-align: middle;
				height: 460px;
				width: 480px;

				&.text
				{
					width: 450px;

					h3
					{
						width: 300px;
						margin-top: 200px;
						margin-left: 80px;
					}
				}

				&.bot
				{
					.hires2('/img/bot/pic-01');
					height: 480px;
					width: 480px;
				}

				&.twitter
				{
					.hires2('/img/bot/pic-02');
					float: left;
				}

				&.network
				{
					.hires2('/img/bot/pic-03')
				}
			}
		}
	}

	.data-experts
	{
		text-align: center;
		padding: 30px 0 80px 0;

		h3
		{
			width: 800px;
			margin: auto;
		}
	}

	.powered-by
	{
		background-color: #F0F0F0;
		padding: 30px 0 50px 0;
		text-align: center;

		h3
		{
			margin: 20px 0 30px 0;
		}

		.item
		{
			display: inline-block;
			width: 300px;

			.title
			{
				font-weight: bold;
				font-size: 1.1em;
			}

			.icon
			{
				height: 120px;
			}

			.description
			{
				font-size: 0.9em;
				width: 250px;
				margin: auto;
			}

			&.data .icon
			{
				.hires2('/img/bot/icon-01', @size: contain, @position: center center);
			}

			&.technology .icon
			{
				.hires2('/img/bot/icon-02', @size: contain, @position: center center);
			}

			&.network .icon
			{
				.hires2('/img/bot/icon-03', @size: contain, @position: center center);
			}
		}
	}
}

#invite-popup
{
	#invite-content
	{
		display: none;

		.inf
		{
			margin-top: 30px;

			p
			{
				color: gray;
				text-align: center;
				width: 400px;
				margin: auto;
			}

			input
			{
				padding: 5px;
				height: 30px;
				border-radius: 3px;
				border: 1px solid #78cf78;
				display: block;
				margin-bottom: 20px;
				width: 350px;
				margin: 20px auto 20px auto;
				font-size: 1em;

				&.required
				{
					border: 1px solid #d42121;
				}
			}

			a
			{
				background-color: @yodatai-green-btn;
				text-decoration: none;
				color: #fff;
				font-size: 1.1em;
				font-weight: bold;
				display: inline-block;
				padding: 10px 25px;
				border-radius: 3px;
				width: 150px;
				margin: 20px auto;
				text-align: center;
				display: block;
			}
		}

		.login
		{
			text-align: center;
			font-size: 1.2em;
			font-weight: bold;
		}
	}

	#invite-thankyou
	{
		display: none;
		text-align: center;
		font-size: 1.1em;
		width: 500px;
		margin: 70px auto;

		.done
		{
			.hires2('/img/bot/ico-check-green2');
			width: 80px;
			height: 80px;
			margin: auto;
		}

		.share
		{
			padding: 0 45px;
			border-radius: 3px;
			color: #fff;
			font-size: 1.2em;
			text-decoration: none;
			font-weight: bold;
			display: inline-block;
			margin: 10px 20px 20px 0;
			line-height: 50px;

			> span
			{
				display: inline-block;
				width: 24px;
				height: 24px;
				position: relative;
				top: 5px;
				margin-right: 10px;
			}

			&.facebook
			{
				background-color: #4267b2;

				span
				{
					.hires2('/img/bot/ico-footer-fb');
				}
			}

			&.twitter
			{
				background-color: #1b95e0;

				span
				{
					.hires2('/img/bot/ico-footer-tw');
				}
			}
		}

		a
		{
			color: #0077ca;
			font-size: 0.9em;
		}
	}

	.title
	{
		font-size: 1.6em;
		font-weight: bold;
		text-align: center;
		margin: 20px 0;
	}

	.blue-btn
	{
		background-color: @accent-color;
		font-weight: bold;
		text-decoration: none;
		color: #fff;
		font-size: 0.9em;
		font-weight: bold;
		display: inline-block;
		padding: 10px 25px;
		border-radius: 3px;
		width: 150px;
		margin: 10px auto 20px auto;
		text-align: center;
		display: block;
	}

	&.mobile
	{
		#invite-content .inf input
		{
			width: 190px;
		}

		#invite-content .inf p
		{
			width: auto;
		}

		#invite-thankyou
		{
			width: auto;
			margin: 30px auto;

			.share
			{
				margin: 10px auto;
				width: 120px;
			}
		}
	}
}


.mobile
{
	.container
	{
		width: auto;
	}

	h1
	{
		text-align: center;
		margin: 20px 0;
	}

	main
	{
		.join.pending
		{
			#invite-pending
			{
				width: auto;
				margin: 30px 10px;

				.share
				{
					margin: 10px auto;
					width: 120px;
				}
			}
		}

		.chat
		{
			width: auto;
			height: 470px;
			background: #fff;
			padding: 80px 0 0 0;
			margin: 0;
			.hires2('/img/bot/mobile/chat', @size: contain, @position: top center);
			background-size: cover !important;

			.flow
			{
				width: 290px;
				height: 345px;
				margin: 0 auto 30px auto;

				.message
				{
					.sender
					{
						margin-right: 5px;
					}

					.text
					{
						width: 70%;

						img
						{
							width: 200px;
							height: 150px;
						}

						a
						{
							word-wrap: break-word;
						}
					}
				}
			}

			.typing
			{
				margin-left: 40px;
			}

			.input
			{
				margin-left: 40px;
				width: auto;
			}
		}
	}

	.platforms
	{
		h2
		{
			margin: 30px 10px;
		}

		.platform span
		{
			font-size: 0.9em;
		}
	}

	.features .feature
	{
		margin-bottom: 30px;

		.column
		{
			width: auto;
			height: auto;
			display: block;

			&.text
			{
				width: auto;

				h3
				{
					width: 300px;
					text-align: center;
					margin-top: 0;
					margin-left: auto;
					margin-right: auto;
				}
			}

			&.bot
			{
				width: 306px;
				height: 306px;
				margin: auto;
				.hires2('/img/bot/mobile/01', @position: center center)
			}

			&.twitter
			{
				height: 500px;
				float: initial;
				.hires2('/img/bot/mobile/02', @position: center center);
			}

			&.network
			{
				height: 460px;
				.hires2('/img/bot/mobile/03', @position: center center)
			}
		}
	}

	.data-experts h3
	{
		width: auto;
		margin: 0 20px;
	}

	.powered-by
	{
		h3
		{
			margin: 0 20px;
		}

		.item
		{
			margin: 20px 0;

			.title
			{
				font-size: 1.2em;
			}
		}
	}
}
