
/* Reset css */

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
	box-sizing: content-box !important;
	-webkit-box-sizing: content-box !important;
	-moz-box-sizing: content-box !important;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}


/* Import fonts */
@font-face {
	font-family: 'RobotoNormal';
	src: url('assets/fonts/Roboto-Black_0.ttf') format('truetype');
	font-weight: normal;
	font-style: normal;
}

@font-face {
	font-family: 'RobotoItalic';
	src: url('assets/fonts/Roboto-BlackItalic_0.ttf') format('truetype');
	font-weight: normal;
	font-style: italic;
}

@font-face {
	font-family: 'RobotoBold';
	src: url('assets/fonts/Roboto-Bold_0.ttf') format('truetype');
	font-weight: bold;
	font-style: normal;
}

@font-face {
	font-family: 'RobotoBoldItalic';
	src: url('assets/fonts/Roboto-BoldItalic_0.ttf') format('truetype');
	font-weight: bold;
	font-style: italic;
}

@font-face {
	font-family: 'RobotoItalic';
	src: url('assets/fonts/Roboto-Italic_0.ttf') format('truetype');
	font-weight: normal;
	font-style: italic;
}

@font-face {
	font-family: 'RobotoLight';
	src: url('assets/fonts/Roboto-Light_0.ttf') format('truetype');
	font-weight: normal;
	font-style: italic;
}

@font-face {
	font-family: 'RobotoLightItalic';
	src: url('assets/fonts/Roboto-LightItalic_0.ttf') format('truetype');
	font-weight: lighter;
	font-style: italic;
}

@font-face {
	font-family: 'RobotoMedium';
	src: url('assets/fonts/Roboto-Medium_0.ttf') format('truetype');
	font-weight: normal;
	font-style: normal;
}

@font-face {
	font-family: 'RobotoMediumItalic';
	src: url('assets/fonts/Roboto-MediumItalic_0.ttf') format('truetype');
	font-weight: normal;
	font-style: italic;
}

@font-face {
	font-family: 'RobotoThin';
	src: url('assets/fonts/Roboto-Regular_0.ttf') format('truetype');
	font-weight: thin;
	font-style: normal;
}

@font-face {
	font-family: 'RobotoThinItalic';
	src: url('assets/fonts/Roboto-ThinItalic_0.ttf') format('truetype');
	font-weight: thin;
	font-style: italic;
}

/* Main css */

html,
body {
    width: 100%;
    height: 100%;
}

body {
	display: -ms-flexbox;
    display: flex;
	flex-direction: column;
	font-family: 'RobotoThin', Arial, Helvetica, sans-serif !important;
	background-image: url(assets/images/background.png);
	background-position: center bottom;
	background-repeat: no-repeat;
	background-size: contain;
}

/* Header styles */
.ts-header {
    width: 100%;
    background-color: #FFFFFF;
    border-bottom: 1px solid #eee;
    -webki-box-shadow: 0 1px 1px rgba(0,0,0,.075);
    -moz-box-shadow: 0 1px 1px rgba(0,0,0,.075);
    box-shadow: 0 1px 1px rgba(0,0,0,.075);
}

.ts-header-container {
    width: 80%;
    height: 55px;
    margin: 0 auto;
    display: -ms-flexbox;
    display: flex;
    align-items: center;
}

.ts-logo {
    height: 25px;
    margin-right: 10px;
}

.ts-beta {
	height: 25px;
}

.ts-logo-ips {
	height: 20px;
	align-self: center;
	font-family: RobotoThin, Arial, Helvetica, sans-serif;
	font-size: 18px;
	color: #6b6b6b;
	text-transform: uppercase;
	text-overflow: ellipsis;
	white-space: nowrap;
	overflow: hidden;
	user-select: none;
        -moz-user-select: none;
        -khtml-user-select: none;
        -webkit-user-select: none;
        -o-user-select: none;
}

.ts-flag {
	height: 20px;
	margin-right: 10px;
	border: 1px solid #666666;
	-moz-user-select: none;
        -khtml-user-select: none;
        -webkit-user-select: none;
        -o-user-select: none;
	user-select: none;
}

.ts-app-icon {
	height: 22px;
        margin-right: 10px;
        -moz-user-select: none;
        -khtml-user-select: none;
        -webkit-user-select: none;
        -o-user-select: none;
        user-select: none;
}

.ts-navbar {
	flex: 2;
	display: -ms-flexbox;
	display: flex;
}

.ts-header-container .nav-pills {
    text-transform: uppercase;
}

.ts-header-container .nav-pills > li.active > a, .ts-header-container .nav-pills > li.active > a:focus, .ts-header-container .nav-pills > li.active > a:hover {
    background: #12d39e;
}

.ts-header li img {
    max-height: 18px;
}

.ts-header .nav-pills .dropdown-menu {
    text-transform: none;
}

body a {
    color: #12d39e;
}

body a:focus, body a:hover {
    color: #0eaf83;
}

.ts-navitem {
	margin-right: 20px;	
}

.ts-navitem > a {
	font-size: 13px;
	text-decoration: none;
	color: #b5b5b5;
}

.ts-navitem.active > a {
	text-decoration: underline;
	color: #5fb75f;
}

.ts-navitem > a > i {
	margin-right: 5px;
	font-size: 22px;
}

.ts-nav-action {
	align-self: flex-end;
}

.ts-nav-action > a {
	font-size: 22px;
	color: #5fb75f;
}

/* Content styles */
.ts-content-container {
	width: 80%;
	height: 100%;
	margin: 0 auto;
	display: -ms-flexbox;
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	/*padding-top: 40px;*/
}

.ts-selector-container {
        width: 80%;
        margin: 0 auto;
        display: -ms-flexbox;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        padding-top: 40px;
}

.ts-action-block {
	flex: 1;
	min-width: 268px;
	display: -ms-flexbox;
	display: flex;
	flex-direction: column;
}

@media screen and (min-width: 660px) {
	#source-block {
		margin-right: 8px;
	}
	#target-block {
		margin-left: 8px;
	}
}

.ts-selector-block {
	flex: 1 1 44%;
        display: -ms-flexbox;
        display: flex;
        flex-direction: column;
}
.ts-selector-switch-block {
	flex: 0 0 6%;
        display: -ms-flexbox;
        display: flex;
	width: 26px;
        flex-direction: column;
	align-items: center;
}

.contact-us {
    position: absolute;
    bottom: 0;
    width: 100%;
    font-size: 9pt;
    text-align: center;
    margin-bottom: 20px;
}
.contact-us a {
    color: #27c79a;
}
.contact-us .app-install {
    margin-top: 10px;
}

@media screen and (min-width: 720px) {
	.ts-action-block {
		flex: 1;
	}
}

@media screen and (max-width: 600px) {
    .ts-header-container, .ts-selector-container, .ts-content-container {
        width: 90%;
    }
    .contact-us {
        padding: 20px 0;
        margin: 0;
    }
}
.burger-btn {
    position: absolute!important;
    right: 5%;
}
.burger:before, .burger:after {
    content: "";
}
.burger i, .burger:before, .burger:after {
    display: block;
    height: 4px;
    width: 24px;
    margin-bottom: 4px;
    border-radius: 2px;
    background: #12d39e;
}
.burger:after {
    margin-bottom: 0;
}
.burger-btn .dropdown-menu {
    left: auto;
    right: 0;
}
.burger-btn .dropdown-menu > .active > a, .burger-btn .dropdown-menu > .active > a:focus, .burger-btn .dropdown-menu > .active > a:hover {
    background: #12d39e;
}
.dropdown-menu .ts-app-icon {
    height: 40px;
    margin: 0;
}

.ts-action-header {
	display: flex;
	border-bottom: 1px solid #e5e5e5;
	margin-bottom: 7px;
	padding-bottom: 2px;
}

.ts-action-header.reverse {
	flex-direction: row-reverse;
}

.ts-action-control {
	flex: 1;
	display: flex;
}

.ts-action-control-item {
	display: inline-block;
	margin-right: 10px;
	font-size: 14px;
	color: #c5c5c5;
}

.ts-action-header.reverse .ts-action-control > li:last-child > a {
	margin-right: 0;
}

.ts-action-control-item.active {
	color: #7e7e7e;
}

.ts-action-header.reverse .ts-action-control {
	flex: 0;
}

.ts-action-dropdown {
	text-transform: uppercase;
	font-size: 14px;
	color: #6b6b6b;
}

#divSourceLanguage {
	text-align: right;
	padding-right:16px;
}
#divTargetLanguage {
	text-align: left;
	padding-left: 16px;
}

.ts-action-header.reverse  .ts-action-dropdown {
	flex: 1;
	padding-left: 16px;
	/*font-family: 'RobotoMedium', Arial, Helvetica, sans-serif;*/
}

.ts-action-splitter {
	display: flex;
	justify-content: center;
}

.ts-action-splitter > a {
	text-decoration: none;
	margin: 1px;
}

.ts-action-content {
	position: relative;
	min-height: 130px;
}

.ts-action-textarea {
	width: calc(100% - 22px);
	min-height: 144px;
	font-size: 16px;
	resize: none;
	padding: 8px 10px;
	border: 1px solid #b3b3b3;
	overflow-y:hidden;
	padding-bottom: 10px;
}

.ts-action-textarea::-webkit-input-placeholder, /* Chrome/Opera/Safari */
.ts-action-textarea::-moz-placeholder, /* Firefox 19+ */
.ts-action-textarea:-ms-input-placeholder, /* IE 10+ */
.ts-action-textarea:-moz-placeholder /* Firefox 18- */ { 
  color: #c5c5c5;
}

.ts-action-textarea:focus {
	outline: none !important;
    border: 1px solid #27c79a;
	box-shadow: 2px 2px 4px #d5d8da;
}

.ts-action-text-vocab {
	font-weight: bold;
	font-size: 14px;
	color: black;
	margin-top:30px;
}

.ts-action-text-pos {
	font-weight: normal;
	font-size: 14px;
	margin-bottom: 5px;
	color: #5b5b5b;
}

.ts-action-text-example {
	font-weight: normal;
        font-size: 14px;
	font-style: italic;
	margin-top: 5px;
	color: #5b5b5b;
}

.ts-action-text-translation {
        font-weight: normal;
	color: #5b5b5b;
}

.ts-action-text-verified {
	color: #5b5b5b;
        font-size: 16px;
}

.ts-action-text {
	height: 100%;
	min-height: 130px;
	background-color: #f7f8f9;
	padding: 8px 10px;
	color: #5b5b5b;
	font-size: 16px;
	white-space:pre-wrap;
}

.ts-action-text-info {
	position: absolute;
	bottom: 8px;
	left: 10px;
	color: #4b4b4b;
	opacity: 0.5;
	font-size: 14px;
}

.ts-action-button, .ts-action-button:visited, .ts-action-button:hover, .ts-action-button:focus, .ts-action-button:active  {
	display: inline-block;
	position: absolute;
	bottom: 8px;
	right: 10px;
	text-transform: uppercase;
	color: #27c79a;
	#font-size: 10px;
	font-size: 14px;
	text-decoration: none;
}
.ts-action-button:hover {
	text-decoration: underline;
}

.ts-action-button.text-decorated {
	text-transform: none;
	text-decoration: underline;
}

.ts-action-tatar-buttons {
	position: absolute;
        bottom: -24px;
	left: 0px;
	display: inline-block;
	margin: auto;
 	width: calc(100% - 2px);
	text-align: center;
	border: 1px solid #b3b3b3;
}
.ts-action-tatar-button {
	color: #4b4b4b;
        opacity: 0.5;
        font-size: 18px;
        background: linear-gradient(to bottom, #ffffff 0%,#e5e5e5 100%);
        border: 1px solid #b3b3b3;
        text-align: center;
	display: inline-block;
	width: 25px;
	margin: 1px 5px;
}
@media screen and (min-width: 800px) {
	.ts-action-tatar-buttons {
        }
}
.ts-action-tatar-buttons-wrapper {
	text-align: center;
}
/* Icons styles */

.ts-icon {
	display: block;
	width: 20px;
	height: 20px;
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center center;
}

.ts-mic {
	background-image: url(assets/images/mic-outline.jpg);
}

.active > .ts-mic {
	background-image: url(assets/images/mic.jpg);
}

.ts-clear {
	background-image: url(assets/images/clear-outline.jpg);
}

.active > .ts-clear {
	background-image: url(assets/images/clear.jpg);
}

.ts-sound {
	background-image: url(assets/images/sound-outline.jpg);
}

.active > .ts-sound {
	background-image: url(assets/images/sound.jpg);
}

.ready > .ts-sound {
	background-image: url(assets/images/sound-ready.jpg);
}

.ts-copy {
	background-image: url(assets/images/copy-outline.png);
	width: 22px;
}

.active > .ts-copy {
	background-image: url(assets/images/copy.png);
}

.ts-like {
	background-image: url(assets/images/like-outline.jpg);
}

.active > .ts-like {
	background-image: url(assets/images/like.jpg);
}

.ts-dislike {
	background-image: url(assets/images/dislike-outline.jpg);
}

.active > .ts-dislike {
	background-image: url(assets/images/dislike.jpg);
}
.ts-verified {
	background-image: url(assets/images/verified.jpg);
	display: inline-block;
	display: -webkit-inline-box;
	margin-left: 30px;
	vertical-align: text-top;
}

.ts-swap {
	display: block;
	margin-top: 4px;
	width: 21px;
	height: 15px;
	background-image: url(assets/images/swap.jpg);
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center center;
}

.ts-sandwich {
	display: block;
	width: 28px;
	height: 16px;
	background-image: url(assets/images/sandwich.jpg);
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center bottom;
}

.ts-dictate-overlay {
	position:absolute;
	left:0; top:0;
	width:100%; height:100%;
	background-color: #eaf9f5;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	opacity: 0.8;
	visibility: hidden;
}

.ts-dictate-overlay-icon {
	background-image: url(assets/images/dictate_overlay.png);
	background-repeat: no-repeat;
	background-size: 100% 100%;
	width:18px; height:30px;
	margin-bottom:5px;
}

.ts-dictate-overlay-text {
	text-transform: uppercase;
	color: #3ccca4;
	white-space: pre-wrap;
	text-align: center;
}

.ts-translate-overlay {
	position:absolute;
	left:0;top:0;
	width:100%; height:100%;
	justify-content: center;
	display: flex;
	align-items: center;
	visibility: hidden;
}

.voicedatabot {
    background-color: rgba(223, 223, 223, 0.5);
    padding: 20px;
    margin-top: 20px;
}
.voicedatabot.img {
    padding: 0;
}
.voicedatabot.img img {
    max-width: 100%;
}

.voicedatabot h3 {
    margin-top: 0;
    font-size: 20px;
}

.voicedatabot a.btn {
    background-color: #12d39e;
    color: #fff;
    border: 0;
    margin-bottom: 3px;
}

.loader {
	animation: spin 2s linear infinite;
	background-image:url(assets/images/translate_overlay.png);
	width:45px; height:45px;
}

@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

#buttonVoice.recording {
    color: #fff;
    background-color: #27c79a;
    position: relative;
}
#buttonVoice.recording i {
    position: relative;
    z-index: 1;
}
#buttonVoice.recording::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    border-radius: 4px;
    z-index: 0;
    transform: scale(calc(125% + var(--volume) * 2));
    opacity: calc(10% + var(--volume));
    background-color: rgba(39, 199, 154, 0.8);
    transition: all 100ms linear;
}
#buttonSynthesize audio, #audioElement {
    display: none;
    visibility: hidden;
}

.voice .ts-selector-block:first-child {
    padding-right: 10px;
}
.voice .ts-selector-block:last-child {
    padding-left: 10px;
}
.voice .ts-selector-block:first-child .ts-action-dropdown {
    text-align: right;
    color: #12d39e;
}
.voice .ts-selector-block:first-child .fa {
    margin-right: .3em;
}
.voice .ts-swap {
    margin-top: 0;
}
.voice .ts-content-container {
    padding-top: 40px;
}
.voice .ts-action-content {
    min-height: 180px;
}
.voice .ts-action-text, .voice .ts-action-textarea {
    min-height: 180px;
    width: 100%;
    box-sizing: border-box!important;
}
.voice #source-block-voice .ts-action-button {
    display: block;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}
.voice #source-block-voice .ts-action-button a {
    display: block;
    width: 174px;
    height: 174px;
    text-align: center;
    font-size: 120px;
    line-height: 174px;
    border-radius: 50%;
    margin: 0 auto;
    padding: 3px;
    background: #f7f8f9;
}
.voice #source-block-voice .ts-action-button a:hover {
    background: #27c79a;
}
.voice #buttonVoice.recording::before {
    border-radius: 50%;
}
.voice #source-block-voice .ts-action-button a#buttonPlay {
    font-size: 90px;
}
.voice #buttonPlay + label {
    margin: 10px auto;
    display: block;
    width: 300px;
    text-align: center;
    font-weight: 400;
    text-transform: none;
    color: #6b6b6b;
}
.voice #source-block-voice .ts-action-button a.disabled {
    opacity: .5;
    cursor: not-allowed;
}
.voice #source-block-voice .ts-action-button a.disabled:hover {
    color: #27c79a;
    background: #f7f8f9;
}
.voice .ts-action-button:hover {
    text-decoration: none;
}
.voice #target-block {
    margin-left: 0;
}
@media screen and (min-width: 660px) {
    .voice .ts-action-block:last-child {
        margin-left: 8px;
    }
}
@media screen and (max-width: 480px) {
    .voice .ts-selector-container {
        display: table;
        width: 100%;
    }
    .voice .ts-selector-block {
        display: table-cell;
    }
    .voice .ts-selector-block:first-child {
        width: 50%;
    }
    .voice .label-group {
        margin-bottom: 20px;
    }
    .ts-action-header .ts-action-control.params {
        margin-top: 10px;
    }
    .voice .ts-action-block:last-child {
        margin-top: 20px;
    }
    .voice #source-block-voice .ts-action-button, .contact-us {
        position: relative;
    }
    html, body {
        min-height: 100%;
        height: auto;
    }
}
@media screen and (max-height: 630px) {
    body {
        position: relative;
        padding-bottom: 60px;
    }
}

.ts-logo-anrt, .ts-logo-anrt img {
    height: 50px;
}

.params input {
    display: none;
}
.label-group {
    display: inline-block;
    vertical-align: middle;
}
.params {
    text-align: center;
    margin-top: 20px;
}
.params label {
    font-weight: 400;
}
.params label span {
    padding: 6px 10px;
    background: #f7f8f9;
    cursor: pointer;
}
.params .label-group label {
    display: table-cell;
}
.params label input:checked + span {
    background: #27c79a;
    color: #fff;
}
.params label span:hover {
    color: #0eaf83;
    background: #eee;
}
.ts-action-header .params {
    margin-top: 0;
}