/****************************************************
 *
 *   CUSTOM.SCSS - App Theming & Custom CSS rules
 *
 ****************************************************/

@use 'colors' as *;
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Display:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap');

$pattern-url: "../img/PatternGraphic.png";

body {
	font-family: "Roboto Flex","Arial",sans-serif !important;
line-height:1.5;
background-color: #f7f7f7 !important;
}

#MyTitle {
	font-family: "Roboto Flex","Arial",sans-serif;
	text-transform: uppercase;
	text-align: center;
	font-size: 3em;
	cursor: default;
	user-select: none;
	line-height: 1.5em;
	margin: .4em auto;
	#Lang {
		color: $color-theme-primary;
		font-weight: 700;
		line-height: 1em;
	}
	#Dictionary {
		color: $color-theme-primary;
		font-weight: 700;
		line-height: 1em;
	}
	#Online {
		font-weight: normal;
		line-height: 1em;
		letter-spacing: 0.4em;
	}
}
.home-image {
	width: 100%;
	margin: auto;
	margin-top: -5px;
	margin-bottom: -20px;
}
.flex-wrapper {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	min-height: 30vh;
	-webkit-box-orient: vertical;
	-webkit-box-direction: normal;
	-ms-flex-direction: column;
	flex-direction: column;
	-webkit-box-pack: justify;
	-ms-flex-pack: justify;
	justify-content: space-between;
}
#SearchRow {
	padding-top: 10px;
}
.search-header {
	top: 94px;
	right: 0;
	left: 0;
	z-index: 1030;
	position: fixed;
margin-left: 15px;
	margin-right: 17px;
	max-width: 1104px;
	background: white;
	@media (min-width: 1164px) {
	margin-left: auto;
	margin-right: auto;
	}
}
.primary-container {
	min-height: -webkit-calc(100% - 149px);
  	min-height: -moz-calc(100% - 149px);
  	min-height: calc(100vh - 149px);
}
.header-container {
	height: 6vw;
	max-height: 3em;
	background-image: url($pattern-url);
	background-repeat: repeat-x;
	background-size: contain;
}
.clc-logo, .clc-logo-mob {
	max-height: 2rem;
	height: auto;
	max-width: 100%;
}
@media screen and (max-width: 424px) {
	.clc-logo{
		display:none;
	}
}
@media screen and (min-width: 425px) {
	.clc-logo-mob{
		display:none;
	}
}
.active-alpha {
	background-color: $color-theme-primary;
	color: #fff;
	border-color: $color-theme-primary;
	&:hover {
		background-color: $color-theme-primary;
		color: #fff;
		border-color: $color-theme-primary;
	}
	&:focus {
		background-color: $color-theme-primary;
		color: #fff;
		border-color: $color-theme-primary;
	}
}
#Results {
	margin-left: -25px;
	margin-right: -25px;
}
.results {
	font-family: "Roboto Flex", "Arial",serif;
	font-size: 24pt;
	#Loading {
		display: none;
		text-align: center;
		line-height: 100px;
	}
	#LoadingSpinner {
		font-size: 24px;
	}
	.pagination-buttons {
		.button {
			&:hover {
				border-color: $color-theme-primary;
				background-color: $color-theme-solid-hover;
				color: #fff;
			}
			&:active {
				border-color: $color-theme-primary;
				background-color: $color-theme-primary;
				color: #fff;
			}
			&:focus {
				border-color: $color-theme-primary;
				background-color: $color-theme-primary;
				color: #fff;
			}
		}
	}
	.num {
		color: $color-sense-number;
	}
	.ps {
		font-style: italic;
	}
	.morph {
		color: $color-morpheme;
	}
	.gloss {
		cursor: pointer;
	}
	#gloss {
		cursor: pointer;
		color: #627081;
	}
	.lx {
		cursor: pointer;
		color: $color-theme-primary;
	}
	#lx {
		cursor: pointer;
	}
	.card {
		line-height: 1.25em;;
		 margin-top: 1rem;
		 margin-bottom: 2rem;
		.card-header {
			font-size: 1.75rem;
		}
		.content {
			margin-top: 0rem;
			margin-left: 1rem;
			padding: 1rem;
			font-size: 1.5rem;
			.sense-set {
				cursor: pointer;
				.sense {
					color: #627081;
				}
				.num {
					color: $color-morpheme;
				}
			}
			.infl-id {
				color: #627081;
			}
			.infl-ic {
				color: $color-morpheme;
			}
			.ps {
				font-style: italic;
			}
			.morph {
				color: $color-morpheme;
			}
		}
	}
}
#HelpTitle {
	font-family: "Roboto Flex", "Arial",sans-serif;
	color: $color-theme-primary;
}
.is-vertical-center {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
}

.title {
	margin-top: .5em;
	margin-bottom: .5em;
}

.title-header {
	margin: 2rem 0 2rem 0;
}
.footer {
	position: relative;
	padding: 3rem 1.5rem 6rem;
font-size:9pt;
	 background-color:#dedede;
 }
 .header-link{
	color:#fff;
	font-size: 0.85rem;
	&:hover{
		color:$color-theme-secondary-button;
	}
}
.header-pattern {
	height: 28px;
	max-height: 3em;
	background-image: url($pattern-url);
	background-repeat: repeat-x;
	background-size: contain;
}
.top-padding {
	padding-top: 120px;
}
.language-logo {
	max-height: 2.5rem;
	height: auto;
	max-width: 100%;
}
.big-image {
	max-width: 100%;
	height: auto;
}
.small-image {
	max-width: 400px;
	height: auto;
}
.nopadding {
	padding-left: 0 !important;
	padding-right: 0 !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}
.form-control, .input, .button, .btn {
	border-radius:1rem !important;
 }
 .input-icons i {
	position: absolute;
}
  
.input-icons {
	width: 100%;
	margin-bottom: 10px;
	text-align: left;
}
  
.icon {
	padding: 24px;
	min-width: 50px;
}
  
.input-field {
	width: 100%;
	padding-left: 15px;
}
.form-theme {
	margin-bottom: 2px;
	input {
		border-color: $color-theme-border-accent;
		font-size: 1.4rem;
	}
	select {
		border-color: $color-theme-border-accent;
		font-size: 1.4rem;
	}
	.btn-primary {
		background-color: $color-theme-primary-button;
		border-color: $color-theme-border-accent;
		font-size: 1.4em;
		text-align: center;
		&:hover {
			background-color: $color-theme-solid-hover;
		}
		&:active {
			background-color: $color-theme-border-accent !important;
			&:focus {
				background-color: $color-theme-border-accent !important;
				 box-shadow: $color-theme-solid-hover !important;
			}
		}
		&:focus {
			//background-color: $color-theme-border-accent !important;
			 box-shadow: $color-theme-solid-hover !important;
		}

	 }
	 .btn-primary.focus {
		background-color: $color-theme-border-accent !important;
		box-shadow: $color-theme-solid-hover !important;
	}
	.form-control {
		&:focus {
			border-color: $color-theme-border-accent;
			box-shadow: 0 0 4px $color-theme-primary-button;
			outline: 0 none;
		}
	}
	.btn-secondary {
		background-color: $color-theme-primary-button;
		border-color: $color-theme-primary-button;
		 color: #fff;
		 /*.active-alpha{

			background-color: $color-theme-red-button;
			border-color: $color-theme-red-button;
		 }
		&:hover {
			
			 
			background-color: $color-theme-primary-button;
			border-color: $color-theme-primary-button;
			color: #fff;
		}
		&:active {
			
			background-color: $color-theme-red-button;
			border-color: $color-theme-red-button;
			&:focus {
				background-color: $color-theme-border-accent !important;
			}
		}
		&:focus {
			background-color: $color-theme-border-accent !important;
		}*/
	}
}
.selectdiv {
	&:after {
		content: '\2304';
		color: $color-theme-border-accent;
		background: #fff;
		font-weight: bold;
		font-size: 1.4em;
		right: 0.9em;
		top: 0.1em;
		position: absolute;
		pointer-events: none;
		-webkit-transform: scale(2,1);
		-moz-transform: scale(2,1);
		-ms-transform: scale(2,1);
		-o-transform: scale(2,1);
		transform: scale(2,1);
	}
	&:hover {
		&:after {
			color: #495057;
		}
	}
	select {
		-webkit-appearance: none !important;
		-moz-appearance: none !important;
		appearance: none !important;
		-ms-word-break: normal;
		word-break: normal;
	}
}
select {
	&::-ms-expand {
		display: none !important;
	}
	margin: 0;
}
.alpha-btn-group {
	align-items: center;
	display: inline-table;
}
.alpha-button {
	display: inline-table;
	width:unset;
	 min-width: 37px;
	margin: 2px;
}

.alpha-button.faded {
	opacity:75% !important;
}

#lang-options {
	width: 100%;
}
.lang-option.btn-primary:not(:disabled):not(.disabled).active, .btn-secondary:not(:disabled):not(.disabled):active, .show > .btn-secondary.dropdown-toggle {
  color: #fff;
  background-color: $color-theme-primary-button;
  border-color: $color-theme-primary-button;
}
.lang-option.btn-primary {
  background-color: $color-theme-secondary-button;
  border-color: $color-theme-secondary-button;
  color: #fff;
}
.card {
background-color: $color-white;
	border-color: $color-theme-secondary;
	border-radius: 1rem;
	.icon {
		.fas {
			color: $color-theme-primary-button;
			float: right;
			margin-right: 10px;
		}
		.far {
			color: $color-theme-primary-button;
			float: right;
			margin-right: 10px;
		}
	}
}
.button {
	-moz-appearance: none;
	-webkit-appearance: none;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	border: 1px solid transparent;
	border-radius: 4px;
	-webkit-box-shadow: none;
	box-shadow: none;
	display: -webkit-inline-box;
	display: -ms-inline-flexbox;
	display: inline-flex;
	font-size: 1rem;
	height: 2.25em;
	-webkit-box-pack: start;
	-ms-flex-pack: start;
	justify-content: flex-start;
	line-height: 1.5;
	padding-bottom: calc(0.375em - 1px);
	padding-left: calc(0.625em - 1px);
	padding-right: calc(0.625em - 1px);
	padding-top: calc(0.375em - 1px);
	position: relative;
	vertical-align: top;
	background-color: #fff;
	border-color: $color-theme-primary;
	border-width: 1px;
	color: $color-theme-primary;
	cursor: pointer;
	-webkit-box-pack: center;
	-ms-flex-pack: center;
	justify-content: center;
	padding-bottom: calc(0.375em - 1px);
	padding-left: .75em;
	padding-right: .75em;
	padding-top: calc(0.375em - 1px);
	text-align: center;
	white-space: nowrap;
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	-moz-appearance: none;
	-webkit-appearance: none;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	border: 1px solid transparent;
	border-radius: 4px;
	-webkit-box-shadow: none;
	box-shadow: none;
	display: -webkit-inline-box;
	display: -ms-inline-flexbox;
	display: inline-flex;
	font-size: 1rem;
	height: 2.25em;
	-webkit-box-pack: start;
	-ms-flex-pack: start;
	justify-content: flex-start;
	line-height: 1.5;
	padding-bottom: calc(0.375em - 1px);
	padding-left: calc(0.625em - 1px);
	padding-right: calc(0.625em - 1px);
	padding-top: calc(0.375em - 1px);
	position: relative;
	vertical-align: top;
	&:focus {
		outline: none;
		border-color: #3273dc;
		color: #363636;
		outline: none;
	}
	&:active {
		outline: none;
		border-color: #4a4a4a;
		color: $color-theme-primary;
		outline: none;
	}
	&:hover {
		border-color: #b5b5b5;
		color: #363636;
	}
}
.input {
	-moz-appearance: none;
	-webkit-appearance: none;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	border: 1px solid transparent;
	border-radius: 4px;
	-webkit-box-shadow: none;
	box-shadow: none;
	display: -webkit-inline-box;
	display: -ms-inline-flexbox;
	display: inline-flex;
	font-size: 1rem;
	height: 2.25em;
	-webkit-box-pack: start;
	-ms-flex-pack: start;
	justify-content: flex-start;
	line-height: 1.5;
	padding-bottom: calc(0.375em - 1px);
	padding-left: calc(0.625em - 1px);
	padding-right: calc(0.625em - 1px);
	padding-top: calc(0.375em - 1px);
	position: relative;
	vertical-align: top;
	-moz-appearance: none;
	-webkit-appearance: none;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	border: 1px solid transparent;
	border-radius: 4px;
	-webkit-box-shadow: none;
	box-shadow: none;
	display: -webkit-inline-box;
	display: -ms-inline-flexbox;
	display: inline-flex;
	font-size: 1rem;
	height: 2.25em;
	-webkit-box-pack: start;
	-ms-flex-pack: start;
	justify-content: flex-start;
	line-height: 1.5;
	padding-bottom: calc(0.375em - 1px);
	padding-left: calc(0.625em - 1px);
	padding-right: calc(0.625em - 1px);
	padding-top: calc(0.375em - 1px);
	position: relative;
	vertical-align: top;
	background-color: #fff;
	border-color: #dbdbdb;
	color: #363636;
	-webkit-box-shadow: inset 0 1px 2px rgba(10,10,10,0.1);
	box-shadow: inset 0 1px 2px rgba(10,10,10,0.1);
	max-width: 100%;
	width: 100%;
	&:focus {
		outline: none;
		outline: none;
		border-color: $color-theme-primary;
		-webkit-box-shadow: 0 0 0 0.125em rgba(242,107,33,0.25);
		box-shadow: 0 0 0 0.125em rgba(242,107,33,0.25);
	}
	&:active {
		outline: none;
		outline: none;
		border-color: $color-theme-primary;
		-webkit-box-shadow: 0 0 0 0.125em rgba(242,107,33,0.25);
		box-shadow: 0 0 0 0.125em rgba(242,107,33,0.25);
	}
	&::-moz-placeholder {
		color: rgba(54,54,54,0.3);
	}
	&::-webkit-input-placeholder {
		color: rgba(54,54,54,0.3);
	}
	&:-moz-placeholder {
		color: rgba(54,54,54,0.3);
	}
	&:-ms-input-placeholder {
		color: rgba(54,54,54,0.3);
	}
	&:hover {
		border-color: #b5b5b5;
	}
}
.textarea {
	-moz-appearance: none;
	-webkit-appearance: none;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	border: 1px solid transparent;
	border-radius: 4px;
	-webkit-box-shadow: none;
	box-shadow: none;
	display: -webkit-inline-box;
	display: -ms-inline-flexbox;
	display: inline-flex;
	font-size: 1rem;
	height: 2.25em;
	-webkit-box-pack: start;
	-ms-flex-pack: start;
	justify-content: flex-start;
	line-height: 1.5;
	padding-bottom: calc(0.375em - 1px);
	padding-left: calc(0.625em - 1px);
	padding-right: calc(0.625em - 1px);
	padding-top: calc(0.375em - 1px);
	position: relative;
	vertical-align: top;
	-moz-appearance: none;
	-webkit-appearance: none;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	border: 1px solid transparent;
	border-radius: 4px;
	-webkit-box-shadow: none;
	box-shadow: none;
	display: -webkit-inline-box;
	display: -ms-inline-flexbox;
	display: inline-flex;
	font-size: 1rem;
	height: 2.25em;
	-webkit-box-pack: start;
	-ms-flex-pack: start;
	justify-content: flex-start;
	line-height: 1.5;
	padding-bottom: calc(0.375em - 1px);
	padding-left: calc(0.625em - 1px);
	padding-right: calc(0.625em - 1px);
	padding-top: calc(0.375em - 1px);
	position: relative;
	vertical-align: top;
	background-color: #fff;
	border-color: #dbdbdb;
	color: #363636;
	-webkit-box-shadow: inset 0 1px 2px rgba(10,10,10,0.1);
	box-shadow: inset 0 1px 2px rgba(10,10,10,0.1);
	max-width: 100%;
	width: 100%;
	display: block;
	max-width: 100%;
	min-width: 100%;
	padding: 0.625em;
	resize: vertical;
	&:focus {
		outline: none;
		outline: none;
		border-color: $color-theme-primary;
		-webkit-box-shadow: 0 0 0 0.125em rgba(242,107,33,0.25);
		box-shadow: 0 0 0 0.125em rgba(242,107,33,0.25);
	}
	&:active {
		outline: none;
		outline: none;
		border-color: $color-theme-primary;
		-webkit-box-shadow: 0 0 0 0.125em rgba(242,107,33,0.25);
		box-shadow: 0 0 0 0.125em rgba(242,107,33,0.25);
	}
	&::-moz-placeholder {
		color: rgba(54,54,54,0.3);
	}
	&::-webkit-input-placeholder {
		color: rgba(54,54,54,0.3);
	}
	&:-moz-placeholder {
		color: rgba(54,54,54,0.3);
	}
	&:-ms-input-placeholder {
		color: rgba(54,54,54,0.3);
	}
	&:hover {
		border-color: #b5b5b5;
	}
	&:not([rows]) {
		max-height: 600px;
		min-height: 120px;
	}
}
.select {
	select {
		-moz-appearance: none;
		-webkit-appearance: none;
		-webkit-box-align: center;
		-ms-flex-align: center;
		align-items: center;
		border: 1px solid transparent;
		border-radius: 4px;
		-webkit-box-shadow: none;
		box-shadow: none;
		display: -webkit-inline-box;
		display: -ms-inline-flexbox;
		display: inline-flex;
		font-size: 1rem;
		height: 2.25em;
		-webkit-box-pack: start;
		-ms-flex-pack: start;
		justify-content: flex-start;
		line-height: 1.5;
		padding-bottom: calc(0.375em - 1px);
		padding-left: calc(0.625em - 1px);
		padding-right: calc(0.625em - 1px);
		padding-top: calc(0.375em - 1px);
		position: relative;
		vertical-align: top;
		&:focus {
			outline: none;
		}
		&:active {
			outline: none;
		}
	}
}
.button[disabled] {
	display: none;
	cursor: not-allowed;
	background-color: #fff;
	border-color: #dbdbdb;
	-webkit-box-shadow: none;
	box-shadow: none;
	opacity: .5;
}
button {
	margin: 0;
	margin: 0;
	font-family: "Roboto Flex", "Arial",sans-serif;
}
input {
	margin: 0;
	margin: 0;
	font-family: "Roboto Flex", "Arial",sans-serif;
}
textarea {
	margin: 0;
	margin: 0;
	padding: 0;
	margin: 0;
	font-family: "Roboto Flex", "Arial",sans-serif;
}
.button.is-light {
	background-color: #f5f5f5;
	border-color: transparent;
	color: #363636;
	&:hover {
		background-color: #eee;
		border-color: transparent;
		color: #363636;
	}
	&:focus {
		border-color: transparent;
		color: #363636;
	}
	&:active {
		background-color: #e8e8e8;
		border-color: transparent;
		color: #363636;
	}
}
.button.is-primary {
	background-color: $color-theme-primary;
	border-color: transparent;
	color: #fff;
	&:hover {
		background-color: $color-theme-primary-button;
		border-color: transparent;
		color: #fff;
	}
	&:focus {
		border-color: transparent;
		color: #fff;
	}
	&:active {
		background-color: $color-theme-border-accent;
		border-color: transparent;
		color: #fff;
	}
}
.button.is-danger {
	background-color: $color-theme-primary;
	border-color: transparent;
	color: #fff;
	&:hover {
		background-color: $color-theme-primary-button;
		border-color: transparent;
		color: #fff;
	}
	&:focus {
		border-color: transparent;
		color: #fff;
	}
	&:active {
		background-color: $color-theme-border-accent;
		border-color: transparent;
		color: #fff;
	}
}
.button.is-danger[disabled] {
	background-color: $color-theme-primary;
	border-color: transparent;
	-webkit-box-shadow: none;
	box-shadow: none;
}
.button.is-danger.is-outlined {
	background-color: transparent;
	border-color: $color-theme-primary;
	color: $color-theme-primary;
	&:hover {
		background-color: $color-theme-primary;
		border-color: $color-theme-primary;
		color: #fff;
	}
	&:focus {
		background-color: $color-theme-primary;
		border-color: $color-theme-primary;
		color: #fff;
	}
}
.button.is-danger.is-outlined[disabled] {
	background-color: transparent;
	border-color: $color-theme-primary;
	-webkit-box-shadow: none;
	box-shadow: none;
	color: $color-theme-primary;
}
.button.is-medium {
	font-size: 1.25rem;
}
.button.is-fullwidth {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	width: 100%;
}
.buttons {
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-ms-flex-wrap: wrap;
	flex-wrap: wrap;
	-webkit-box-pack: start;
	-ms-flex-pack: start;
	justify-content: flex-start;
	.button {
		margin-bottom: 0.5rem;
		&:not(:last-child) {
			&:not(.is-fullwidth) {
				margin-right: 0.5rem;
			}
		}
	}
	&:last-child {
		margin-bottom: -0.5rem;
	}
	&:not(:last-child) {
		margin-bottom: 1rem;
	}
}
.buttons.has-addons {
	.button {
		&:not(:first-child) {
			border-bottom-left-radius: 0;
			border-top-left-radius: 0;
		}
		&:not(:last-child) {
			border-bottom-right-radius: 0;
			border-top-right-radius: 0;
			margin-right: -1px;
		}
		&:last-child {
			margin-right: 0;
		}
		&:hover {
			z-index: 2;
		}
		&:focus {
			z-index: 3;
			&:hover {
				z-index: 4;
			}
		}
		&:active {
			z-index: 3;
			&:hover {
				z-index: 4;
			}
		}
	}
}
.modal {
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	display: none;
	-webkit-box-orient: vertical;
	-webkit-box-direction: normal;
	-ms-flex-direction: column;
	flex-direction: column;
	-webkit-box-pack: center;
	-ms-flex-pack: center;
	justify-content: center;
	overflow: hidden;
	position: fixed;
	z-index: 40;
	bottom: 0;
	left: 0;
	position: absolute;
	right: 0;
	top: 0;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	display: none;
	-webkit-box-orient: vertical;
	-webkit-box-direction: normal;
	-ms-flex-direction: column;
	flex-direction: column;
	-webkit-box-pack: center;
	-ms-flex-pack: center;
	justify-content: center;
	overflow: hidden;
	position: fixed;
	z-index: 40;
}
.modal.is-active {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	z-index: 9999;
}
.modal-background {
	bottom: 0;
	left: 0;
	position: absolute;
	right: 0;
	top: 0;
	background-color: rgba(10,10,10,0.86);
}
.modal-card {
	margin: 0 20px;
	max-height: calc(100vh - 160px);
	overflow: auto;
	position: relative;
	width: 100%;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-orient: vertical;
	-webkit-box-direction: normal;
	-ms-flex-direction: column;
	flex-direction: column;
	max-height: calc(100vh - 40px);
	overflow: hidden;
	-ms-overflow-y: visible;
	margin: 0 20px;
	max-height: calc(100vh - 160px);
	overflow: auto;
	position: relative;
	width: 100%;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-orient: vertical;
	-webkit-box-direction: normal;
	-ms-flex-direction: column;
	flex-direction: column;
	max-height: calc(100vh - 40px);
	overflow: hidden;
	-ms-overflow-y: visible;
}
.modal-card-head {
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	background-color: #f5f5f5;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-ms-flex-negative: 0;
	flex-shrink: 0;
	-webkit-box-pack: start;
	-ms-flex-pack: start;
	justify-content: flex-start;
	padding: 20px;
	position: relative;
	border-bottom: 1px solid #dbdbdb;
	border-top-left-radius: 6px;
	border-top-right-radius: 6px;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	background-color: #f5f5f5;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-ms-flex-negative: 0;
	flex-shrink: 0;
	-webkit-box-pack: start;
	-ms-flex-pack: start;
	justify-content: flex-start;
	padding: 20px;
	position: relative;
	border-bottom: 1px solid #dbdbdb;
	border-top-left-radius: 6px;
	border-top-right-radius: 6px;
}
.modal-card-foot {
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	background-color: #f5f5f5;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-ms-flex-negative: 0;
	flex-shrink: 0;
	-webkit-box-pack: start;
	-ms-flex-pack: start;
	justify-content: flex-start;
	padding: 20px;
	position: relative;
	border-bottom-left-radius: 6px;
	border-bottom-right-radius: 6px;
	border-top: 1px solid #dbdbdb;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	background-color: #f5f5f5;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-ms-flex-negative: 0;
	flex-shrink: 0;
	-webkit-box-pack: start;
	-ms-flex-pack: start;
	justify-content: flex-start;
	padding: 20px;
	position: relative;
	border-bottom-left-radius: 6px;
	border-bottom-right-radius: 6px;
	border-top: 1px solid #dbdbdb;
	.button {
		&:not(:last-child) {
			margin-right: 10px;
			margin-right: 10px;
		}
	}
}
.modal-card-title {
	color: #363636;
	-webkit-box-flex: 1;
	-ms-flex-positive: 1;
	flex-grow: 1;
	-ms-flex-negative: 0;
	flex-shrink: 0;
	font-size: 1.5rem;
	line-height: 1;
	color: #363636;
	-webkit-box-flex: 1;
	-ms-flex-positive: 1;
	flex-grow: 1;
	-ms-flex-negative: 0;
	flex-shrink: 0;
	font-size: 1.5rem;
	line-height: 1;
}
.modal-card-body {
	-webkit-overflow-scrolling: touch;
	background-color: #fff;
	-webkit-box-flex: 1;
	-ms-flex-positive: 1;
	flex-grow: 1;
	-ms-flex-negative: 1;
	flex-shrink: 1;
	overflow: auto;
	padding: 20px;
	-webkit-overflow-scrolling: touch;
	background-color: #fff;
	-webkit-box-flex: 1;
	-ms-flex-positive: 1;
	flex-grow: 1;
	-ms-flex-negative: 1;
	flex-shrink: 1;
	overflow: auto;
	padding: 20px;
}
.fas {
	-moz-osx-font-smoothing: grayscale;
	-webkit-font-smoothing: antialiased;
	display: inline-block;
	font-style: normal;
	font-variant: normal;
	text-rendering: auto;
	line-height: 1;
	font-family: "Font Awesome 5 Free";
	font-weight: 900;
}
.fa-envelope {
	&:before {
		content: "\f0e0";
	}
}
.fa-user {
	&:before {
		content: "\f007";
	}
}
.delete {
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	-moz-appearance: none;
	-webkit-appearance: none;
	background-color: rgba(10,10,10,0.2);
	border: none;
	border-radius: 290486px;
	cursor: pointer;
	pointer-events: auto;
	display: inline-block;
	-webkit-box-flex: 0;
	-ms-flex-positive: 0;
	flex-grow: 0;
	-ms-flex-negative: 0;
	flex-shrink: 0;
	font-size: 0;
	height: 20px;
	max-height: 20px;
	max-width: 20px;
	min-height: 20px;
	min-width: 20px;
	outline: none;
	position: relative;
	vertical-align: top;
	width: 20px;
	&::before {
		background-color: #fff;
		content: "";
		display: block;
		left: 50%;
		position: absolute;
		top: 50%;
		-webkit-transform: translateX(-50%) translateY(-50%) rotate(45deg);
		transform: translateX(-50%) translateY(-50%) rotate(45deg);
		-webkit-transform-origin: center center;
		transform-origin: center center;
		height: 2px;
		width: 50%;
	}
	&::after {
		background-color: #fff;
		content: "";
		display: block;
		left: 50%;
		position: absolute;
		top: 50%;
		-webkit-transform: translateX(-50%) translateY(-50%) rotate(45deg);
		transform: translateX(-50%) translateY(-50%) rotate(45deg);
		-webkit-transform-origin: center center;
		transform-origin: center center;
		height: 50%;
		width: 2px;
	}
	&:hover {
		background-color: rgba(10,10,10,0.3);
	}
	&:focus {
		background-color: rgba(10,10,10,0.3);
	}
	&:active {
		background-color: rgba(10,10,10,0.4);
	}
}
p {
	margin: 0;
	padding: 0;
}
footer {
	display: block;
}
header {
	display: block;
}
section {
	display: block;
}
span {
	font-style: inherit;
	font-weight: inherit;
}

.wordclickL, .entryclickL {
	cursor: pointer;
}
.wordclickE, .entryclickE {
	cursor: pointer;
}
.topicclickL {
	cursor: pointer;
	padding: 4px;
	background: lightgray;
	border-radius: 7px;
	font-size: 14px;
	margin: 0px 0px 0px 4px;
}
.fas.fa-volume-up {
	cursor: pointer;
}
.label {
	color: #363636;
	display: block;
	font-size: 1rem;
	font-weight: 700;
	&:not(:last-child) {
		margin-bottom: 0.5em;
	}
}
.field {
	&:not(:last-child) {
		margin-bottom: 0.75rem;
	}
}
.control {
	-webkit-box-sizing: border-box;
	box-sizing: border-box;
	clear: both;
	font-size: 1rem;
	position: relative;
	text-align: left;
}
.control.has-icons-left {
	.input {
		&:focus {
			~ {
				.icon {
					color: #7a7a7a;
				}
			}
		}
		padding-left: 2.25em;
	}

	.icon {
		color: #dbdbdb;
		height: 2.25em;
		pointer-events: none;
		position: absolute;
		top: 0;
		width: 2.25em;
		z-index: 4;
	}
	.icon.is-left {
		left: 0;
	}
}
.icon {
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	display: -webkit-inline-box;
	display: -ms-inline-flexbox;
	display: inline-flex;
	-webkit-box-pack: center;
	-ms-flex-pack: center;
	justify-content: center;
	height: 1.5rem;
	width: 1.5rem;
}

.icon-comment {
	-webkit-box-align: right;
	-ms-flex-align: right;
	align-items: center;
	display: -webkit-inline-box;
	display: -ms-inline-flexbox;
	display: inline-flex;
	-webkit-box-pack: right;
	-ms-flex-pack: right;
	justify-content: right;
	height: 28px;
	width: 145px;
	font-size: 20px;
	opacity: 65%;
	line-height: 16px;
}
@media screen and (max-width: 400px) {
    .icon-comment small {
		display: none;
	}
	.icon-comment {
		width:10%;
	}
}

.disclaimer {
	display: inline-flex;
	color: #7A7A7A;
	width: 78%;
}
.icon.is-small {
	height: 1rem;
	width: 1rem;
}
a {
	color: $color-theme-primary;
	cursor: pointer;
	&:hover {
		color: #363636;
		text-decoration: none;
	}
}
.clear-menu {
	top: 8rem;
}
.menu-label {
	color: #7a7a7a;
	font-size: 1em;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	text-align:center;
}
aside {
	ul {
		list-style: disc outside;
		margin-top: 1em;
	}
	li {
		margin-top: 0.5em;
	}
}
.menu-list {
	line-height: 1.25;
}
.acknowledgements {
	p {
		padding-bottom: 1em;
	}
}
.dictionary_user_guide {
	p {
		padding-bottom: 1em;
	}
}
.help-page {
	h4 {
		padding-top: 1em;
	}
	h3 {
		padding-top: 1em;
	}
.row{
	 	margin-right: 0px;
		margin-left: 0px;
	 }
	 .card{
		 margin-bottom:10px;
	 }
}
.pagination {
	justify-content:center;
}
.pagination .current,
#AllAlphas .active-alpha {
	background: $color-theme-red-button;
	 border-color: $color-theme-red-button;
	color: $color-offwhite-background;
}

.match-row {
	border: 1px solid $color-theme-primary-button;
	line-height: 1.5;
	color: #495057;
	background-color: #fff;
	background-clip: padding-box;
	border-radius: .25rem;
	cursor: pointer;
}
.match-text {
	cursor: pointer;
	overflow:hidden;
}
#qsdata {
	position: absolute;
	width: 92%;
		top: 47px;
	background-color: white;
	font-size: 1.4rem;
	z-index: 500 !important;
	max-height: 300px;
	overflow-y: scroll;
	scrollbar-width: none;
	border-bottom: 1px lightgray solid;
@media (min-width: 575px) {
		width: 95%;
	  }
}

.qheadword {
	float: left;
	margin-left: 10px;
	font-weight: bold;
	color: #10105A;
	overflow: clip;
}

.qshortgloss {
	float: right;
	margin-top: -7px;
	margin-right: 10px;
	font-size: .8em;
	font-style: italic;
}

.qsSelected{
	border: 2px solid $color-theme-primary !important;
	-webkit-box-shadow: 0 0 0 0.125em rgba(242,107,33,0.25);
	box-shadow: 0 0 0 0.125em rgba(242,107,33,0.25);
	transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
	z-index: 50;
}

@media only screen and (max-width: 360px) {
	#MyTitle {
		font-size: 2em;
	}
}
@media screen and (min-width: 769px) {
	.modal-card {
		margin: 0 auto;
		max-height: calc(100vh - 40px);
		width: 640px;
		margin: 0 auto;
		max-height: calc(100vh - 40px);
		width: 640px;
	}
}
@media print {
	.modal-card {
		margin: 0 auto;
		max-height: calc(100vh - 40px);
		width: 640px;
		margin: 0 auto;
		max-height: calc(100vh - 40px);
		width: 640px;
	}
}

.fas.fa-volume-up{
	font-size: 24pt;
 }


.PronAudio .fas.fa-volume-up {
	margin-left: .5em;
	font-size: 29px;
	color: #3d4dff
}
 .PronAudio .female.fas.fa-volume-up {
	margin-left: .5em;
	font-size: 29px;
}
.PronExample{
	font-family:"Arial";
	font-size:22pt;
	display: block;
	text-align: left;
}
.PronLang{
	font-weight:bold;
	color:$color-theme-primary;
}
.PronTranslation{
	color:#000000;
}
.PronGroup {
	width: 80%;
	margin: 25px auto auto 20%;
}
.PronPron{
	display:block;
}
.PronIntro{
	float: left;
	text-align: left;
	font-size: 1.2em;
	width: 80%;
	margin: 2em 10% auto 10%;
}
.PronDescription {
	font-style: italic;
line-height:1;
}
.PronLetter {
    display: block;
    font-size: 20pt;
    font-weight: bold;
    color: white;
    border-radius: 2rem;
    margin-bottom: 20px;
    background: $color-theme-primary;
    height: 3rem;
    padding-top: 5px;
    margin: 20px auto 20px;
    cursor: pointer;
}
.AcknowledgementText {
	float: left;
	text-align: left;
	font-size: 1.2em;
	width: 80%;
	margin: 2em 10% auto 10%;
}
.DictionaryUserGuideText {
	float: left;
	text-align: left;
	font-size: 1.2em;
	width: 80%;
	margin: 2em 10% auto 10%;
}
#pre-release {
	font-size: 2rem;
	text-align: center;
}
.bottom-overlay {
	position: fixed;
	left: 0;
	bottom: 0;
	width: 100%;
	background-color: #ff0000ad;
	color: white;
	text-align: center;
	z-index: 1000;
}
#td {
	position: fixed;
	bottom: 0;
	margin-left: auto;
	margin-right: auto;
	z-index: 1001;
	width: 100%;
}

.abbreviation-list {
	margin: auto;
}

.abbreviation {
	float: left;
	padding-right: 50px;
}

.fullform {
	float: right;
}
.morph-lemma {
	font-weight: bold;
}
 .clc-logo {
	max-height: 2.5rem;
	height: auto;
	max-width: 100%;
}

.navbar-bg {
	background-color: white;
}

.container.dictionary_user_guide {
	background-color: #fff;
	border-radius: 1em;
}
.ReversalSense__Lemma{
	border-bottom:  $color-theme-primary-button dotted;
}
.hideable {
	display: none;
	border: dotted;
	padding: 10px;
	margin-right: 60px;
}
.hideshow {
	margin-left: 40px;
}
.hideshowbtn {
	margin: 20px;
	background: #0166B3;
	color: white;
	padding: 6px;
	border-radius: 6px;
	font-size: 15pt;
}
.hideshowbtn:hover{
	background:#79bbee
}
.frontmatterbold {
	color: $color-theme-primary-button;
	font-weight: bold;
}
table.frontmatter{
	width: 100%;
	margin-bottom: 20px;
}

.fmtablebordered table, .fmtablebordered th, .fmtablebordered td {
	border: 1px solid black;
	padding: 5px 5px 5px 10px;

}
td {
	vertical-align: top;
}


.HoverTailContainer {
	display: none;
	width: 100%;
	height: 100%;
	position: fixed;
	top: 0;
	left: 0;
}
.HoverTail {
	position: fixed;
	background-color: white;
	border: dotted  $color-theme-primary-button;
	max-width: 600px;
	padding: 10px;
	top: 136px;
	align-content: center;
	left: 50%;
	transform: translate(-50%, 0);
	max-height: 80vh;
	overflow: scroll;
	scrollbar-width: thin;
	@media screen and (max-width: 800px) {
		min-width:80vw;
	}
  }
  
  .frontmatterhighlighted{
	background-color: yellow;
  }

  .HoverTailTarget {
	border-bottom: dotted  $color-theme-primary-button;
	cursor: pointer;
	display:inline;
}

// Favorites heart and dropdown styling
.favorites-group {
  display: inline-flex;
  align-items: center;
  margin-right: 8px;
  vertical-align: middle;
  position: relative;
}
.favorite-heart {
  cursor: pointer;
  font-size: 18px;
  color: #627081;
  display: inline-flex;
  align-items: center;
  transition: color 0.2s;
  margin-right: 2px;
}
.favorite-heart i {
  vertical-align: middle;
  font-size: 18px;
  line-height: 1;
}
.favorites-dropdown {
  margin-left: 4px;
  font-size: 12px;
  border-radius: 6px;
  border: 1px solid #dbdbdb;
  padding: 2px 6px;
  background: #fff;
  color: #627081;
  height: 24px;
  vertical-align: middle;
}

// Ensure alignment with comment icon/label
.card-header-icon {
  display: flex;
  align-items: center;
  gap: 8px;
}
.icon-comment {
  display: inline-flex;
  align-items: center;
  color: #627081;
  font-size: 16px;
  cursor: pointer;
  margin-left: 4px;
}
.icon-comment i {
  margin-right: 2px;
}
.icon-comment small {
  font-size: 13px;
  color: #627081;
  vertical-align: middle;
}

// Responsive: stack on small screens
@media (max-width: 500px) {
  .card-header-icon {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }
  .favorites-group, .icon-comment {
    margin-bottom: 2px;
  }
}

@media (max-width: 767.98px) {
  /* Mobile: VK full width, fixed bottom */
  #onscreenKeyboard {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    z-index: 1100 !important;
    background: #f8f9fa !important;
    border-radius: 0 !important;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .typing-practice-block {
    padding-bottom: 220px !important; /* leave space for VK */
  }
}
@media (min-width: 768px) and (max-width: 1024px) {
  /* Tablet: VK fixed bottom, centered, max 700px */
  #onscreenKeyboard {
    position: static !important;
    width: auto !important;
    max-width: none !important;
    box-shadow: none !important;
    border-radius: 12px !important;
    background: #f8f9fa !important;
    padding-bottom: 0 !important;
  }
  .typing-practice-block {
    padding-bottom: 0 !important;
  }
}
@media (min-width: 1025px) {
  /* Desktop: VK stays as is */
  #onscreenKeyboard {
    position: static !important;
    width: auto !important;
    max-width: none !important;
    box-shadow: none !important;
    border-radius: 12px !important;
    background: #f8f9fa !important;
    padding-bottom: 0 !important;
  }
  .typing-practice-block {
    padding-bottom: 0 !important;
  }

  //phrase builder styles
  .pb-table {
	font-size: 1rem;
  }

  .entryToggle {
	font-weight:bold;
	font-size:1.1rem;
  }

  #trToggle, #intrToggle {
	font-weight:normal;
  }

  span.root, span.stem_gloss {
	color: blue;
	font-weight:bold;
	  }
  span.aspect{
	color: blue;
	font-style:italic;
}

  span.transitivity, span.intr, span.tr {
	color: red;
	font-weight:bold;
  }
  span.subject, span.sbj1sgs, span.sbj2sgs, span.sbj3sgs, span.sbj1pls, span.sbj2pls, span.sbj3pls {
	color: #936326;
	font-weight:bold;
  }
   span.object, span.refl, span.obj1sgo, span.obj2sgo, span.obj3sgo, span.obj1plo, span.obj2plo, span.obj3plo {
	color: purple;
	font-weight:bold;
   }
   span.pbAnalysis {
	font-size:1.2rem;
   }
   span.pbWform {
    font-size: 2.5rem;
    line-height: 4rem;
    font-weight: bold;
  }
}