/*
    Krāsas: http://www.google.com/design/spec/style/color.html
    Vairāk: http://www.color-hex.com/
    Paletes: pavasaris, vasara, rudens, ziema
*/

html,
body {
	height: 100%;
}

body {
	font-family: 'Open Sans', sans-serif;
	font-size: 100%;
	font-weight: 400;
	color: #424242;
	background-color: #ffffff;
	margin: 0;
	display: flex;
	flex-direction: column;
}

table {
	border-spacing: 0;
	border-collapse: collapse;
	margin: 0;
	width: 100%;
}

td {
	padding: 0;
}

img {
	display: block;
}

sup {
	vertical-align: top;
	font-size: 0.7em;
}

input[type=text] {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
}

a:link {
	color: inherit;
	text-decoration: underline;
}
a:visited {
	color: inherit;
	text-decoration: underline;
}
a:hover {
	color: inherit;
	text-decoration: none;
}
a:active {
	color: inherit;
	text-decoration: none;
}

a.word:link {
	color: #424242;
	text-decoration: none;
}
a.word:visited {
	color: #424242;
	text-decoration: none;
}
a.word:hover {
	color: #212121;
	text-decoration: none;
}
a.word:active {
	color: #212121;
	text-decoration: none;
}

a.menu:link {
	color: #616161;
	text-decoration: none;
}
a.menu:visited {
	color: #616161;
	text-decoration: none;
}
a.menu:hover {
	color: #424242;
	text-decoration: none;
}
a.menu:active {
	color: #424242;
	text-decoration: none;
}

a.menu-highlight:link {
	color: #f48b14;
	text-decoration: none;
}
a.menu-highlight:visited {
	color: #f48b14;
	text-decoration: none;
}
a.menu-highlight:hover {
	color: #db7d12;
	text-decoration: none;
}
a.menu-highlight:active {
	color: #db7d12;
	text-decoration: none;
}

#header {
	padding: 20px;
	color: #616161;
}

#searchBar {
	width: 100%;
}

#Tezaurs_SVG {
	width: 325px;
	height: 55px;
}

.infoTitle {
	font-size: 0.9em;
	font-weight: 600;
	line-height: 1;
	white-space: nowrap;
	color: inherit;
	margin-bottom: 0.5em;
}

.infoVers {
	white-space: nowrap;
	color: #4caf50;
}

.infoMore {
	font-size: 0.8em;
	font-weight: 300;
	line-height: 1.2;
	white-space: nowrap;
	color: inherit;
}

.infoEmph {
	color: #424242;
	white-space: nowrap;
}

#searchResults,
#sideNotes {
	min-width: 150px;
	padding: 0 20px 20px 20px;
}

#main {
	flex: 1 0 auto;
}

#mainContent {
	padding: 0 0 20px 0;
}

#searchCol,
#mainCol,
#noteCol {
	vertical-align: top;
}

#mainCol {
	width: 100%;
}

#footer {
	padding: 20px;
	border-top: 1px solid #81c784;
	font-size: 0.8em;
	font-weight: 300;
	color: #616161;
	background-color: #edf7ed;
	flex-shrink: 0;
}

#footerSVGTable {
	width: auto;
	margin-bottom: 1em;
}

#LU_SVG {
	height: 49px;
}

#MII_SVG,
#AILab_SVG {
	height: 45px;
}

#footerNavMenu {
	width: 100%;
	padding: 0 20px;
}

#footerNavMenu table {
	width: auto;
	margin: 0 20px 0 20px;
}

.hideOnDesktop {
	display: none;
}

#follow {
	text-align: center;
}

#follow table {
	width: auto;
}

.wordList {
	padding: 0 4px;
	color: #212121;
	background-color: #e8f5e9;
	border: 1px solid #81c784;
	border-top-left-radius: 2px;
	border-top-right-radius: 2px;
	-webkit-border-top-left-radius: 2px;
	-webkit-border-top-right-radius: 2px;
	-moz-border-radius-topleft: 2px;
	-moz-border-radius-topright: 2px;
}

.listBox {
	padding: 0 4px;
	border: 1px solid #81c784;
	border-top: 0;
	border-bottom-right-radius: 2px;
	border-bottom-left-radius: 2px;
	-webkit-border-bottom-right-radius: 2px;
	-webkit-border-bottom-left-radius: 2px;
	-moz-border-radius-bottomright: 2px;
	-moz-border-radius-bottomleft: 2px;
}

.resultSet {
	margin-top: 0.5em;
}

.resultSet:first-child {
	margin-top: 0;
}

#exactMatch {
	background-color: #ffffff;
	border-radius: 2px;
	-webkit-border-radius: 2px;
	-moz-border-radius: 2px;
}

.fuzzy {
	border-style: dashed;
}

.fail {
	color: #ef5350;
	font-size: 0.9em;
}

.subtitle {
	margin: 1em 0;
	font-weight: 600;
}

.biblio {
	padding-top: 4px;
	font-weight: 300;
	vertical-align: top;
}

.code {
	font-weight: 400;
	width: 50px;
}

.menu,
.menu-highlight {
	font-weight: 600;
}

.footnote {
	white-space: nowrap;
	line-height: 1.5;
}

#overlay {
	position: fixed;
	z-index: 100;
	background-color: #ffffff;
	width: 100%;
	height: 100%;
	padding: 20px;
}

/* Meklēšanas un feedback formas */

button::-moz-focus-inner,
button::-webkit-focus-inner,
input::-moz-focus-inner,
input::-webkit-focus-inner {
	margin: 0;
	padding: 0;
	border: none;
	outline: none;
}

.form-search {
	margin: 0 20px;
}

.form-search-wrapper {
	position: relative;
	max-width: 300px;
	margin-right: 42px;
}

.form-search-field-wrapper {
	width: 100%;
	max-width: 300px;
	min-width: 150px;
	margin-right: 2px;
}

.form-search-field-wrapper,
.form-search-field,
.form-search-submit,
.twitter-button,
.feedback-submit,
.feedback-text {
	border: 1px solid #4caf50;
	border-radius: 2px;
	-webkit-border-radius: 2px;
	-moz-border-radius: 2px;
}

.form-search-field,
.form-search-keyboard,
.form-search-submit {
	display: block;
	box-sizing: border-box;
	outline: none;
}

.form-search-field {
	height: 38px;
	width: 100%;
	margin: 0;
	padding: 0 0.5em;
	font: inherit;
	font-size: 1.1em;
	color: #424242;
	border-color: #ffffff;
}

.form-search-keyboard {
	margin-right: 0.5em;
	cursor: pointer;
}

.form-search-submit {
	height: 40px;
	width: 40px;
	margin: 0 0 0 4px;
	background-color: #4caf50;
	background-image: url('img/lupa.svg');
	background-repeat: no-repeat;
	background-position: center center;
	background-size: contain;
	cursor: pointer;
	position: absolute;
	top: 0;
	left: 100%;
}

.toolbar {
	margin-top: 1.5em;
}

.feedback-submit,
.twitter-button {
	height: 28px;
	width: 64px;
	margin: 0;
	font-size: 0.9em;
	cursor: pointer;
}

.feedback-submit {
	color: #f48b14;
	background-color: #ffe0b2;
	border: 1px solid #ffe0b2;
}

.twitter-button {
	color: white;
	background-color: #00aced;
	border: 1px solid #00aced;
}

.separator {
	display: inline-block;
	width: 0.5em;
}

.feedback-text {
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
	width: 100%;
	height: 64px;
	padding: 4px;
	font: inherit;
	font-size: 0.9em;
	margin: 4px 0 0 0;
	border: 1px solid #ffb74d;
	resize: vertical;
}

.feedback-text:focus {
	outline: none;
}

.feedback-status {
	display: inline-block;
	vertical-align: middle;
	font: inherit;
	font-size: 0.9em;
}

.status-ok {
	color: #4caf50;
}

.status-fail {
	color: #f48b14;
}

.no-svg .form-search-submit {
	/* fallback */
	height: 40px;
	width: 40px;
	margin: 0 0 0 4px;
	background-color: #4caf50;
	background-image: url('img/lupa.png');
	background-repeat: no-repeat;
	background-position: center center;
	cursor: pointer;
	position: absolute;
	top: 0;
	left: 100%;
}

.form-search-submit:focus,
.form-search-submit:hover {
	border-color: #66bb6a;
	background-color: #66bb6a;
}

#keyboard {
	position: fixed;
	margin-top: 2px;
	margin-left: 20px;
}

.key {
	float: left;
	min-width: 18px;
	min-height: 18px;
	max-width: 18px;
	max-height: 18px;
	font-size: 0.8em;
	color: #424242;
	background-color: #ffffff;
	text-align: center;
	margin-right: 2px;
	cursor: pointer;
	border: 1px solid #9e9e9e;
	border-radius: 2px;
	-webkit-border-radius: 2px;
	-moz-border-radius: 2px;
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	-khtml-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

/* Šķirkļi */

.doc {
	margin-bottom: 1.5em;
}

.sv_Entry {
	margin-top: 1.5em;
}

.sv_Entry:first-child {
	margin-top: 0;
}

.sv_Head {
	margin-bottom: 1em;
}

.sv_Sense {
	margin-top: 1em;
	color: #212121;
}

.sv_Subsense,
.sv_MWEs {
	margin-top: 1em;
	margin-left: 2em;
	font-weight: 300;
	font-size: 0.95em;
}

.sv_Idioms,
.sv_Derivatives {
	margin-top: 1.5em;
	font-weight: 300;
}

.sv_Section {
	font-family: sans-serif;
	font-variant: small-caps;
	font-weight: 300;
	margin-bottom: 0.15em;
}

.sv_VR {
	font-size: 1.3em;
	font-weight: 600;
	color: #212121;
}

.sv_IN {
	vertical-align: top;
	font-size: 0.7em;
}

.sv_RU {
	color: #9e9e9e;
}

.sv_GR,
.sv_NG,
.sv_AG,
.sv_PG,
.sv_FG,
.sv_DG {
	font-size: 0.85em;
	color: #616161;
}

.sv_NS,
.sv_AS {
	font-weight: 600;
}

.sv_NO,
.sv_AN,
.sv_PN,
.sv_FN {
}

.sv_PI,
.sv_FR {
	font-style: italic;
	font-weight: 400;
}

.sv_DE {
	font-weight: 600;
}

.sv_LI {
	margin-top: 1.5em;
}

.sv_SK {
}

.sv_Link {
}

.sv_Source {
	cursor: pointer;
	text-decoration: underline;
}

.sv_Source:hover {
	color: #616161;
}

.sv_Section span,
.morphology .sv_Section,
.morphology .summary {
	vertical-align: middle;
}

#toggle_Idioms,
.toggle_Subsenses,
#toggle_Morphology,
#toggle_Examples,
#toggle_FrameNet,
#toggle_Credits {
	vertical-align: middle;
	display: inline;
	cursor: pointer;
}

/* Add-on */

.disclaimer {
	font-size: 0.8em;
	margin-top: 1em;
	color: #f48b14;
}

#pronunciation,
.morphology,
#examples,
#framenet,
#credits {
	margin-top: 1.5em;
	font-size: 0.9em;
}

.credits-item {
	margin-top: 0.5em;
	margin-right: 0.5em;
	font-style: italic;
	font-weight: 600;
}

.credits-list {
	margin-top: 0.5em;
}

.example {
	margin-top: 1em;
}

#tts {
	margin-top: 0.25em;
	font-size: 0.9em;
}

.sub-morphology {
	margin: 1em 1em 0 0;
}

.sub-text {
	font-weight: 300;
}

.tab-title {
	margin-right: 1em;
}

.sub-title {
	border-bottom: 1px solid #ebebeb;
}

.inflections {
	margin-top: 1em;
	width: auto;
}

.inflections td {
	padding: 0.25em 1em 0 0;
	text-align: left;
	font-weight: 300;
	font-style: italic;
}

.inflections th {
	padding: 0 1em 0 0;
	text-align: left;
	font-weight: 400;
}

span.inflection {
	font-weight: 300;
	font-style: italic;
}

/* Mobile */

@media all and (max-width: 768px) {
	body {
		font-size: calc(18px + (24 - 18)*(100vw - 320px)/(768 - 320));
	}
	/* Header */
	#header {
		padding: 0;
		box-sizing: border-box;
	}

	.header-col {
		padding: 5px 15px;
		width: 100%;
		display: inline-block;
		box-sizing: border-box;
	}

	/* Header logo */
	#Tezaurs_SVG {
		padding: .2em 0;
		display: block;
		width: 100%;
		height: auto;
	}

	/* Header search */
	.form-search-wrapper {
		position: relative;
		max-width: 100%;
		margin-right: 42px;
	}

	.form-search-field-wrapper {
		width: 100%;
		max-width: 100%;
		min-width: 100%;
		margin-right: 2px;
	}

	.form-search {
		margin: 0 0 5px;
	}

	/* Header version */
	#version {
		display: none;
	}

	/* Main body content */
	#mainContent {
		padding: 0;
	}

	#mainTable tr {
		display: flex;
		flex-direction: column;
	}

	/* Atstarpes starp avotiem */
	#mainContent > #doc > table > tbody > tr {
		padding: 0.5em 0;
	}

	#main td {
		width: 100%;
		padding: 0 15px;
		box-sizing: border-box;
	}

	.expand_SVG,
	.collapse_SVG,
	#toggle_Morphology {
		height: 1em;
		width: auto;
	}

	.toggle_Subsenses {
		margin-bottom: 0.2em;
	}

	#twitterButton,
	#feedbackButton {
		height: 2em;
		width: auto;
	}

	/* Homonyms */
	#searchCol {
		order: 2;
		width: auto;
	}

	#searchResults {
		min-height: 0px;
		padding: 0;
		margin: 1.5em 0 1.5em;
		max-width: 235px;
	}

	#exactMatch {
		display: none;
	}

	/* Entry */
	#mainCol {
		order: 1;
	}

	#mainCol .inflections tr {
		display: table-row;
		flex-direction: unset;
	}

	#mainCol .inflections td {
		width: auto;
		padding: 0.25em 1em 0 0;
		text-align: left;
	}

	/* hide link to more examples on mobile */
	#examples .example a {
		display: none;
	}

	#pronunciation,
	.morphology,
	#examples,
	#framenet,
	#credits {
		margin-top: 1.5em;
		font-size: 1em;
	}

	/* Side notes */
	#noteCol {
		order: 3;
	}

	#sideNotes:empty {
		display: none;
	}

	/* Footer */
	#footer {
		padding: 20px 0;
	}

	.footer-col,
	.hideOnDesktop,
	#footerSVGTable,
	#footerNavMenu td div,
	#footerNavMenu table,
	#follow table {
		margin-left: auto;
		margin-right: auto;
	}

	.footer-col {
		width: 100%;
		display: inline-block;
	}

	.footnote {
		text-align: center;
	}

	#footerNavMenu {
		width: 100%;
		padding: 10px 0;
		font-size: 1.6em;
	}

	#footerNavMenu td {
		width: 100%;
		display: inline-block;
		box-sizing: border-box;
	}

	#footerNavMenu td div {
		text-align: center;
	}

	#footerNavMenu tr {
		display: table-row;
	}

	#footerNavMenu .hideOnMobile {
		display: none;
	}

	.hideOnDesktop {
		display: table;
	}
}

@media all and (max-width: 768px) and (min-width: 500px) {
	.header-col {
		width: unset;
		display: table-cell;
	}

	.logo {
		width: 50%;
		padding-right: 5px;
	}

	#searchBar {
		width: 50%;
		margin-top: .17em;
		vertical-align: middle;
		padding-left: 0;
	}

	#searchResults {
		max-width: 50%;
	}

	/*
	#version {
		display: unset;
		font-size: 0.8em;
		float: right;
		position: absolute;
		margin-top: -4em;
	}
*/
}
