html {
	font-size: 16px;
}

body { 
	margin: 0; font-family: Arial, sans-serif; height: 100vh; 
}

.container { 
	display: flex; flex-direction: column; gap: 10px; padding: 10px; height: 100%; 
}

.controls { 
	display: flex; flex-direction: column; gap: 10px; background-color: #7e901b; padding: 10px; border-radius: 5px; 
}

.category-buttons, .region-buttons { 
	display: flex; gap: 5px; 
}

.category-buttons button, .region-buttons button {
	padding: 8px; background-color: #7e901b; border: none; margin: 0; cursor: pointer; color: white; border-radius: 3px;
}

.region-buttons button { 
	background-color: #5d6d09; margin-bottom: 5px; 
}

.region-buttons button:hover, 
.region-buttons button:focus {
	background-color: #67780c;
	box-shadow: 1px 1px 6px 0px rgba(0,0,0,0.15);
	-webkit-box-shadow: 1px 1px 6px 0px rgba(0,0,0,0.15);
	-moz-box-shadow: 1px 1px 6px 0px rgba(0,0,0,0.15);
}

.region-buttons button.active { 
	background-color: #98a935;
	box-shadow: none;
	-webkit-box-shadow: none;
	-moz-box-shadow: none; 
	pointer-events: none;
}

.category-buttons button.active { 
	background-color: #98a935; 
}

.region-buttons { 
	flex-direction: column; 
}

.text-center {
	text-align: center;
}

.mode-switch { 
	display: flex; justify-content: space-between;
	margin-bottom: 30px;
}

.mode-switch button {
	flex: 1; padding: 8px; background-color: #7e901b; border: none; cursor: pointer; color: white; border-radius: 3px;
}

.mode-switch button.active { 
	background-color: #98a935; 
}

.control-group { 
	margin-bottom: 10px;
}

.control-group label { 
	display: block; margin-bottom: 5px; font-weight: bold; color: white; 
}

.control-group select {
	width: 100%; padding: 8px; background-color: #98a935; border: 1px solid #ccc; border-radius: 3px;
}

.word-item { 
	padding: 5px; background-color: #98a935; margin-bottom: 5px; border-radius: 3px; 
}


#map { 
	height: 80vh; width: 100%;
	height: calc(100vh - 20px);
	border-radius: 5px;
}

#help-text { 
	margin-top: 10px; padding: 10px; background-color: #98a935; border-radius: 5px; color: white; 
}
@media (min-width: 768px) {
	.container { flex-direction: row; }
	.controls { width: 250px; }
	#map { flex: 1; }
}

body {
	height: 100%;
	font-family: 'source_sans_proregular',sans-serif;
}

strong {
	font-family: 'source_sans_prosemibold';
	font-weight: normal;
}

.control-group label { 
	display: block; margin-bottom: 5px; font-weight: bold; color: white; 
	font-family: 'source_sans_prosemibold';
	font-weight: normal;
}

.container {
	height: 100vh;
	height: calc(100vh - 20px);
}

.controls {
	height: calc(100vh - 40px);
	justify-content: space-between;
	overflow-y: auto;
}

.controls-inner {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.btn,
.mode-switch button.btn {
	padding: 8px; background-color: #5d6d09; border: none; margin: 0; cursor: pointer; color: white; border-radius: 3px;
	text-decoration: none;
}

.mode-switch button.btn:hover, 
.mode-switch button.btn:focus {
	background-color: #67780c;
	box-shadow: 1px 1px 6px 0px rgba(0,0,0,0.15);
	-webkit-box-shadow: 1px 1px 6px 0px rgba(0,0,0,0.15);
	-moz-box-shadow: 1px 1px 6px 0px rgba(0,0,0,0.15);
}

.leaflet-popup-content .btn {
	background-color: #7a8d12;
	color: #fff;
}

.leaflet-popup-content .btn:hover, 
.leaflet-popup-content .btn:active {
	background-color: #889c18;
	box-shadow: 1px 1px 6px 0px rgba(0,0,0,0.15);
	-webkit-box-shadow: 1px 1px 6px 0px rgba(0,0,0,0.15);
	-moz-box-shadow: 1px 1px 6px 0px rgba(0,0,0,0.15);
}

.mode-switch button.btn.active {
	background-color: #98a935;
	pointer-events: none;
}

.mode-switch button.btn:first-child {
	margin-right: 3px;
}

.mode-switch button.btn:last-child {
	margin-left: 3px;
}

.control-group select {
	height: 320px;
	border: 1px solid #98a935;
	border-top-left-radius: 0;
	border-top-right-radius: 0;
}

.word-list {
	height: 320px;
	overflow-y: auto;
}

.word-list-not-selected,
.word-list-example-not-available {
	height: 300px;
	padding: 10px;
	background-color: #98a935;
	border-bottom-left-radius: 5px;
	border-bottom-right-radius: 5px;
}

@media (min-height: 966px) {
	.control-group select {
		height: 33.126vh;
	}
	.word-list {
		height: 33.126vh;
	}
	.word-list-not-selected,
	.word-list-example-not-available {
		height: 31.25vh;
	}
}

.word-item .word-item-inner-btn {
	display: flex;
	justify-content: space-between;
	margin-top: 3px;
}

.word-item .word-item-inner-btn a.btn {
	background-color: #6e8012;
	font-size: .90rem;
	width: 100%;
	text-align: center;
	padding: 4px;
}

.word-item .word-item-inner-btn a.btn-trad {
	margin-right: 3px;
}

.word-item .word-item-inner-btn a.btn.mod {
	margin-left: 3px;
}

#wordListNotSelected,
#wordListExampleNotAvailable {
	display: flex;
	justify-content: center;
	align-items: center;
	color: #fff;
	font-family: 'source_sans_prosemibold';
	font-weight: normal;
	flex-direction: column;
}

#wordListNotSelected p,
#wordListExampleNotAvailable p {
	margin-top: 0;
	margin-bottom: 10px;
}

.brand-logo {
	width: 120px;
	margin-bottom: -15px;
}

#help-text p {
	margin-top: 0;
	margin-bottom: 10px;
}

#help-text ol {
	margin-bottom: 0;
	margin-top: 0;
	padding-left: 20px;
}


.quiz-btn {
    background-color: #5d6d09;
    color: white;
    padding: 10px;
    margin-top: 5px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
	width: 100%;
	font-size: .9rem;
	padding: 12px 8px;
	font-family: "source_sans_prosemibold",sans-serif;
	font-weight: normal;
}
.quiz-btn:hover,
.quiz-btn:focus {
    background-color: #67780c;
	box-shadow: 1px 1px 6px 0px rgba(0,0,0,0.15);
	-webkit-box-shadow: 1px 1px 6px 0px rgba(0,0,0,0.15);
	-moz-box-shadow: 1px 1px 6px 0px rgba(0,0,0,0.15);
}


#quizContainer {
  max-width: 600px;
  margin: 20px auto;
  padding: 20px;
  background-color: #f7fbe8;
  background-color: rgba(247,251,232,.9);
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  font-family: sans-serif;
  color: #333;
}

#quizContainer h2 {
  font-size: 1.5em;
  margin-bottom: 10px;
  color: #4c661f;
}

#quizContainer p {
  font-size: 1.1em;
  margin: 10px 0;
}

#quizContainer audio {
  margin: 10px 0;
  width: 100%;
}

.quiz-options {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 15px;
}

.quiz-options button {
	padding: 10px;
	background-color: #dfeebe;
	border: 1px solid #c7dc9a;
	border-radius: 8px;
	font-size: 1em;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.quiz-options button:hover {
  background-color: #c7dc9a;
}

.quiz-feedback {
  margin-top: 15px;
  font-weight: bold;
}

.quiz-next-btn {
	margin-top: 20px;
	padding: 10px 20px;
	background-color: #98a935;
	color: white;
	border: none;
	border-radius: 8px;
	cursor: pointer;
}

.quiz-next-btn:hover,
.quiz-next-btn:focus {
  background-color: #829a2f;
}

.mode-toggle-btn {
	width: 100%;
	background-color: #C84C09;
	background-color: #435058;
	font-size: .9rem;
	padding: 12px 8px;
	font-family: "source_sans_prosemibold",sans-serif;
	font-weight: normal;
	transition: transform 0.3s;
}

.mode-toggle-btn:hover, 
.mode-toggle-btn:focus {
	background: linear-gradient(45deg, #435058, #647077, #7f8385, #647077);
	  background-size: 300% 300%;
	  animation: trip 4s ease infinite;
}

.logo-link {
	display: block;
	margin-top: 1.5rem;	
}

.icon-margin {
	margin-right: .35rem;
}

.icon-margin-left {
	margin-left: .5rem;
}

.quiz-answer-btn {
	padding:10px 12px;
	width:100%;
	text-align:left;
	border: none;
	background-color: #676e73;
	color: #fff;
	border-radius: 3px;
	cursor: pointer;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.quiz-answer-btn:after {
	font-family: "Font Awesome 7 Pro";
	  -webkit-font-smoothing: antialiased;
	  -moz-osx-font-smoothing: grayscale;
	  font-feature-settings: normal;
	  font-style: normal;
	  font-synthesis: none;
	  font-variant: normal;
	  font-weight: 900;
	  line-height: 1;
	  text-align: center;
	  text-rendering: auto;
	  content: "";
}

.quiz-answer-btn.btn-correct:after {
	content:"\f00c";
}

.quiz-answer-btn.btn-false:after {
	content:"\f00d";
}

.quiz-audio-play {
	background-color: transparent;
	border-color: transparent;
	color: #c53a37;
	cursor: pointer;
}

.quiz-audio-play:hover {
	color: #798c12;
}

.quiz-next-btn {
	width: 100%;
	background-color: #798c12;
}

.quiz-next-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.badge {
	display: inline-block;
	padding: .35em .65em;
	font-size: .75em;
	font-weight: 700;
	line-height: 1;
	color: #fff;
	text-align: center;
	white-space: nowrap;
	vertical-align: baseline;
	border-radius: .25rem;
	background-color: #889c07;
	margin-right: .5rem;
}

.badge.wrong {
	background-color: #E85F5C;
}

.mb-2 {
	margin-bottom: .7rem;
}

.result-line {
	display: flex;
	align-items: center;
}

.pagination-quiz {
	font-size: .85rem;
}

.alert-audio {
	position: absolute;
	background-color: #fff;
	padding: 15px;
	top: 20px;
	right: 20px;
	z-index: 9999999;
	border-radius: 20px;
	color:  #c53a37;
	-webkit-box-shadow: 0px 0px 15px 5px rgba(0,0,0,0.33); 
	box-shadow: 0px 0px 15px 5px rgba(0,0,0,0.33);
	opacity: 0;
	transition: opacity 1.5s ease;
	display: none;
}

.alert-audio.visible {
  display: block;
  opacity: 1;
}