@font-face {
  font-family: 'Quicksand';
  src: url('quicksand.ttf') format('truetype');
  font-weight: semi-bold;
  font-style: normal;
}

:root {
  --alpha: #EB5C3D;
  --letter: #f0f0f0;

  --place: #99999966;

  --selected: #6693E1;
  --correct: #248724;
  --incorrect: #cf3030;

  --border: #ccc;
  --background: #f3f3f3;
  --white: #fff;
}

body {
  font-family: "Quicksand", sans-serif;
  display: flex;
  text-align: center;
  margin-top: 40px;
}

p, div, li {
  font-size: 1.5rem;
}

p {
  margin: 0;
}

.main-container {
  width: 70%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: auto;
}

h2 {
  font-size: 2rem;
  font-weight: 600;
  margin: 0;
}

.lang-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}



/* Progress-bar for a chapter */
.progress-container-chapter {
  position: fixed;
  top: 0;
  left: 0px;
  right: 0px;
  background-color: var(--background);
  border: 1px solid var(--border);
  overflow: hidden;
  z-index: 1000;
}

.progress-bar-chapter {
  height: 30px;
  background-color: var(--place);
  width: 0%;
  transition: width 0.3s ease;
  display: flex;
  align-items: center;
}

.chapter-letter{
  position: fixed;
  left: 10px;
  font-size: 1.2rem;
  font-weight: 500;
  margin: 0;
  color: var(--letter);
}



/* Upper menu */
.bar {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.menu {
  width: 30px;
  background-color: var(--place);
  padding: 11px 50px;
  transition: background-color 0.3s;
}

.menu:hover {
  background-color: #aaa;
}

/* Language selection */
.dropdown {
  position: relative;
  display: inline-block;
  color: white;
  text-align: center;
}

.dropdown-selected {
  border: 1px solid var(--border);
  padding: 10px;
  cursor: pointer;
  position: relative;
  width: 200px;
}

/* Arrow */
.dropdown-selected::after {
  content: '';
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%) rotate(0deg);
  border: 6px solid transparent;
  border-top-color: white;
  transition: transform 0.3s ease;
}

.dropdown.open .dropdown-selected::after {
  transform: translateY(-50%) rotate(180deg);
}

.dropdown-options {
  display: none;
  position: absolute;
  border: 1px solid var(--border);
  z-index: 10;
}

.dropdown-option {
  padding: 10px;
  cursor: pointer;
  background-color: var(--white);
  color: gray;
  width: 200px;
}

.dropdown.open .dropdown-options {
  display: block;
  width: fit-content;
}

.dropdown-option:hover {
  color: white;
}

.ua:hover {
  background-color: #FFC04C;
}

.ar:hover {
  background-color: #52C2AE;
}

.dafa:hover {
  background-color: #69BAF7;
}

.so:hover {
  background-color: #B09653;
}

.de:hover {
  background-color: #F77E63;
}

.hidden-lang {
  display: none !important;
}
/* Menu end */



/* Slider */
.slider-container {
  display: flex;
  flex-direction: column;
  margin: auto;
  width: 100%;
  gap: 20px;
}

.slider {
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-self: stretch;
}

.exercise {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
  width: fit-content;
}

.kompetenz {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
  width: 100%;
}

.nav-buttons {
  display: flex;
  justify-content: space-between;
}

.nav-button {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--place);
  color: white;
  padding: 11px;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  transition: background-color 0.3s;
}

.nav-button:hover {
  background-color: #aaa;
}

.nav-button-image {
  width: 30px;
  height: auto;
}

.nav-button {
  user-select: none;
}
/* Slider end */



/* Audio buttons */
.speaker-title {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.speaker-task, .speaker-background,
.lang-background, .speaker-play {
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: box-shadow .3s ease;
  cursor: pointer;
}

.lang-background {
  transition: box-shadow .3s ease;
}

.speaker-task, .speaker-background, .speaker-play {
	background-color: var(--alpha);
}

.speaker {
  width: 20px;
	padding: 8px;
}

.speaker-play {
	padding: 12px;
  background-color: var(--incorrect);
}
/* Audio buttons end */



.text-img-task {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
}

.task {
  display: flex;
  display: inline-block;
  justify-content: center;
  align-items: center;
  gap: 5px;
}



.check-button {
  min-width: 150px;
  height: 50px;
	background-color: var(--incorrect);
	border: none;
	display: flex;
	justify-content: center;
	align-items: center;
	transition: box-shadow .3s ease;
	cursor: pointer;
  margin: 50% 0 0;
}

.check {
	height: 20px;
}















/* 1.-4. Seite: Scrollen / klicken */
.container-scrollen {
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
}

.container-swipen {
  display: flex;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
  width: 100%;
}

.play-animation-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.play-animation-container.dragging {
  min-height: 284px;
}












.animation-img {
  width: 70px;
  height: 70px;
}

.animation-img.down {
  animation: moveDown 2s ease-in-out infinite;
  padding-bottom: 30px;
}

.animation-img.scroll-down {
  animation: moveUp 2s ease-in-out infinite;
  padding: 350px 0;
}

.animation-img.swipe-left {
  animation: moveLeft 2s ease-in-out infinite;
  margin: 50px 100% 50px 50%;
}

.animation-img.swipe-right {
  animation: moveRight 2s ease-in-out infinite;
  margin: 50px 50% 50px 100%;
}

.animation-img.up {
  animation: moveUp 2s ease-out infinite;
  padding: 20px 0 0;
}



.right {
  display: flex;
  align-self: end;
  margin: 50px 0 0;
}

.rtl {
  direction: rtl;
}

.letter-in-word.example {
  animation: exampleCorrect 2s steps(1, end) infinite;
}

@keyframes moveDown {
  0% { transform: translateY(0); opacity: 1}
  70% { transform: translateY(30px); opacity: 1}
  100% { transform: translateY(30px); opacity: 0}
}

@keyframes moveLeft {
  0% { transform: translatex(0); opacity: 1}
  70% { transform: translatex(-40px); opacity: 1}
  100% { transform: translatex(-40px); opacity: 0}
}

@keyframes moveRight {
  0% { transform: translatex(0); opacity: 1}
  70% { transform: translatex(40px); opacity: 1}
  100% { transform: translatex(40px); opacity: 0}
}

@keyframes moveUp {
  0% { transform: translateY(0); opacity: 1}
  70% { transform: translateY(-40px); opacity: 1}
  100% { transform: translateY(-40px); opacity: 0}
}

@keyframes exampleCorrect {
  0% { background-color: white}
  70% { background-color: #248724}
  90% { background-color: white}
}



.animation-img.drag {
  animation: dragBox 3s ease-in-out infinite;
  padding: 20px 0 0;
}


@keyframes dragBox {
  0% { transform: translateY(0); opacity: 0}
  1% { transform: translateY(-50px); opacity: 0}
  10% { transform: translateY(-50px); opacity: 1}
  70% { transform: translateY(-150px); opacity: 1}
  100% { transform: translateY(-150px); opacity: 0}
}





/* Animation */
.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.visible {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease;
}














/* 7. Seite: Buchstaben markieren */
.word {
  display: flex;
  flex-direction: row;
}

.letter-in-word {
  font-size: 40px;
  user-select: none;
  cursor: pointer;
}

.letter-in-word:hover {
  background-color: var(--selected);
}



/* 8. Seite: Ins Feld ziehen */
.drag-drop-container {
  display: flex; 
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 40px;
  width: 100%;
}

.dropzone {
  display: flex;
  justify-content: center;
  align-items: center;
  width: calc(100% - 4px);
  max-width: 300px;
  height: 120px;
  position: relative;
  border: 2px solid var(--border);
}

.draggable {
  width: 150px;
  height: 50px;
  background-color: var(--incorrect);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.dropzone.dropped {
  border: 2px solid var(--correct);
}



/*9. Seite: Markieren und gedrückt halten */
.feld {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3px;
}

.felder {
  width: 100%;
  height: auto; 
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
}

.letter-in-feld {
  border: 1px solid var(--border);
  width: 50px;
  height: 50px;
}

.letter-in-feld.grey{
  background-color: var(--place);
}

.letter-in-feld:hover {
cursor: pointer;
background-color: var(--selected);
}


.letter-in-feld.selected {
  background-color: var(--selected);
}

.letter-in-feld.correct {
  background-color: var(--correct);
}

.letter-in-feld.incorrect {
  background-color: var(--incorrect);
}

.markiert-right {
  animation: markierenRight 3s ease-in-out infinite;
  margin: 0 0 0 50px;
}

@keyframes markierenRight {
  0% { transform: translateY(0); opacity: 0}
  1% { transform: translateY(-260px); opacity: 0}
  10% { transform: translateY(-260px); opacity: 1}
  70% { transform: translateY(-260px) translatex(100px); opacity: 1}
  100% { transform: translateY(-260px) translatex(100px); opacity: 0}
}



/* 10. Seite: Tippen */
.handypfeil {
  width: 25px;
  height: 25px;
}

.correct {
  background-color: var(--correct);
}

.incorrect {
  background-color: var(--incorrect);
}



/* Zoomen*/

.zoom-container {
  width: 250px;
  height: 250px;
  border: 10px solid #ffffff;
  overflow: hidden;
  position: relative;
  transition: border-color 0.4s ease;
}

.zoom-container.correct {
  border: 10px solid var(--correct);
}

.zoom-bild {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.2s ease;
  touch-action: none;
  cursor: grab;
}

.zoom-bild:active {
  cursor: grabbing;
}

.hand-zoom {
  animation: zoom 3s ease-in-out infinite;
}

@keyframes zoom {
  0% { transform: translateY(-100px); opacity: 0}
  1% { transform: translateY(-100px); opacity: 0}
  10% { transform: translateY(-100px); opacity: 1}
  70% { transform: translateY(-100px); opacity: 1}
  100% { transform: translateY(-100px); opacity: 0}
}

.zoom-left {
  animation: zoomLeft 3s ease-in-out infinite;
}

@keyframes zoomLeft {
  0% { transform: translateY(-220px); opacity: 0}
  1% { transform: translateY(-220px); opacity: 0}
  10% { transform: translateY(-220px); opacity: 1}
  50% { transform: translateY(-220px) translatex(-20px); opacity: 1}
  70% { transform: translateY(-220px) translatex(-20px); opacity: 1}
  100% { transform: translateY(-220px) translatex(-20px); opacity: 0}
}

.zoom-right {
  animation: zoomRight 3s ease-in-out infinite;
}

@keyframes zoomRight {
  0% { transform: translateY(-264px); opacity: 0}
  1% { transform: translateY(-264px); opacity: 0}
  10% { transform: translateY(-264px); opacity: 1}
  50% { transform: translateY(-264px) translatex(20px); opacity: 1}
  70% { transform: translateY(-264px) translatex(20px); opacity: 1}
  100% { transform: translateY(-264px) translatex(20px); opacity: 0}
}


/* 12. Seite: So scannen Sie einen QR-Code */
.qr-code-scannen-container {
  margin: 0 60px;
  display: flex;
  flex-direction: column;
}

.qr-code {
  height: 100px;
  margin: 10px;
}


























.kompetenz .bild-handytastatur{
margin-right: 50px;
}

.letter-orange {
color: var(--alpha);
margin: 0;
}




/* ВЫЧИСТИТЬ!!! */


/* Mobile */
@media screen and (max-width: 1060px) {
.main-container {
width: 100%;
gap: 10px;
}
}
@media screen and (max-width: 600px) {
/*.right {
width: 80px;
}*/

body {
margin-top: 30px;
}

.progress-bar-chapter {
height: 20px;
}

.chapter-letter {
font-size: 1rem;
left: 5px;
}

.menu {
padding: 11px;
}

.dropdown-option, .dropdown-selected {
font-size: 1rem;
}

.dropdown-selected, .dropdown-option {
width: 150px;
}

audio {
width: 100%;
}

h2 {
font-size: 1.5rem;
}

.random-container {
gap: 10px;
}

.options.random-container {
width: 100%;
}

.speaker.play-button {
height: 16px;
width: 16px;
padding: 8px;
}

.progress-container {
height: 15px;
}

p, div, li {
font-size: 1.2rem;
}

.lesen-sentence p,
.sentence-word p {
margin: 0 0;
}

.sentences {
gap: 0 0;
}

.sentence-word {
gap: 0 10px;
}

.reading-word1{
gap: 5px;
}

.reading-card1 {
padding: 0 10px;
}

.reading-card1, .reading-card2 {
height: 70px;
}

.reading-letter {
font-size: 2rem;
}

.matrix {
grid-template-columns: repeat(7, 40px);
grid-gap: 3px; 
}

.cell {
width: 40px;
height: 40px;
font-size: 1.2rem;
}

.word-list {
margin: 0 0;
}

li {
font-size: 1.2rem;
}

.image-container {
gap: 20px 10px;
}

.dropzones {
gap: 20px 30px;
}

.lesen-mit-container {
gap: 10px;
}

.lesen-sentence p {
font-size: 1.2rem;
}


.hotspot-container {
display: none;
}

.hotspot-container-mobile {
position: relative;
display: inline-block;
}

.target-image {
width: 300px;
padding: 10px;
border: 1px solid var(--white);
}

}










/*Kompetenz: Audio abspielen/pausieren*/
.playing {
background-color: #78B880;
border: 2px solid #78B880;
transition: background-color 0.3s ease;
}

.bild, .bild-play, .bild-pause {
width: 80px;
height:80px;
}


.bild-play.active {
width: 80px;
height:80px;
border-radius: 80px;
background-color:#78B880;

}

.Pluszeichen {
color: #909090;
}

.play-pause-container {
display: flex;
gap: 30px;
}

.play-pause, .pausieren {
cursor: pointer;
display: inline-block;
}






/*Kompetenz: Schreiben/Tippen */
  .schreiben-input {
  font-family: "Quicksand", sans-serif;
  font-weight: 400;
  text-align: center;
  height: 10px;
  font-size: 1.5rem;
  padding: 10px;
  border: 2px solid #ccc;
}

.bild-handytastatur {
  width: 500px;
  height: 250px;   
}


















.play-button {
  width: 50px; 
  height: auto; 
}
