@font-face {
  font-family: 'Quicksand';
  src: url('quicksand.ttf') format('truetype');
  font-style: normal;
  font-display: swap;
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

header {
  width: 100%;
}

body {
  display: flex;
  font-family: "Quicksand", sans-serif;
  margin-top: 20px;
  justify-content: center;
  align-items: center;
}

:root {
  --alpha: #EB5C3D;
  --letter: #f0f0f0;

  --speaker: #949494;
  --speaker-task: #EB5C3D;
  --check-button: #6693E1;

  --reading-card: #FFFEAD;
  --place: #99999966;

  --selected: #6693E1;
  --correct: #248724;
  --incorrect: #cf3030;

  --correct-answers: #2487249c;

  --border: #ccc;
  --background: #f3f3f3;
  --white: #fff;

  --ua: #FFA500;
  --ar: #09A88C;
  --dafa: #1D92ED;
  --so: #8E6A0A;
  --de: #EB5C3D;
}

h1, h2, h3 {
  font-weight: 500;
}

h2 {
  font-size: 34px;
}

p, div, li {
  font-size: 24px;
}

/* вынести из глобал */
.bfh h1 {
  margin: 40px 0;
}

.bfh h2 {
  margin: 30px 0;
}

.bfh p {
  margin: 10px 0;
}
/* */

a, a:visited {
  color: #a8000a;
  text-decoration: none;
}

a:active, a:hover, a:focus {
  color: #e02227;
}

li {
  list-style-position: inside;
}

audio {
  width: 100%;
}

/* Languages */
.ua {
  background-color: var(--ua);
}

.ar {
  background-color: var(--ar) ;
}

.dafa {
  background-color: var(--dafa);
}

.so {
  background-color: var(--so);
}

.de {
  background-color: var(--de);
}



/* Language selection */
.dropdown {
  position: relative;
  display: inline-block;
  color: white;
  text-align: center;
}

.dropdown-selected {
  border: 1px solid var(--border);
  cursor: pointer;
  position: relative;
  height: 50px;
  width: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 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 {
  height: 50px;
  width: 200px;
  cursor: pointer;
  background-color: var(--white);
  color: gray;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dropdown.open .dropdown-options {
  display: block;
  /* width: fit-content; */
}

.dropdown-option:hover {
  color: white;
}

.ua:hover {
  background-color: #FFA500;
}

.ar:hover {
  background-color: #09A88C;
}

.dafa:hover {
  background-color: #1D92ED;
}

.so:hover {
  background-color: #8E6A0A;
}

.de:hover {
  background-color: #EB5C3D;
}

.hidden-lang {
  display: none !important;
}
/* Upper menu ends here */



/* Containers */
.slider-container {
  display: flex;
  flex-direction: column;
  margin: auto;
  width: 100%;
}

.slider {
  display: flex;
  flex-direction: column;
}

.exercise {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-shrink: 0;
  padding: 40px 20px;
  margin: 20px 0px;
  width: 100%;
  box-sizing: border-box;
  background-color: #ffffff;
  border: 2px solid #e1e1e1;
  border-radius: 12px;
  box-shadow: 0 2px 4px #0000000f;
  transition: none;
}

.main-container {
  width: 100%;
  max-width: 1000px;
  margin: 20px 10px;
}

.lang-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}




.alpha-letter {
  color: var(--alpha);
  font-weight: 600;
}




/* Buttons */
.play-button {
  width: 20px;
  margin: 8px;
}

button {
  border: none;
}

.nav-buttons {
  display: flex;
  justify-content: space-between;
}

.nav-button {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--white);
  padding: 15px;
  border: 2px solid #e1e1e1;
  border-radius: 12px;
  cursor: pointer;
  transition: background-color 0.3s;
  box-shadow: 0 2px 4px #0000000f;
}

.nav-button {
  user-select: none;
}

.nav-button:hover {
  background-color: #f0f0f0;
}

.nav-button-image {
  width: 20px;
  height: auto;
}



/* Audio buttons */
.speaker-title {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.speaker-task, .speaker-background, .speaker-play, .lang-background {
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  padding: 0;
  transition: opacity 0.3s;
}
/* 
.speaker-task, .speaker-background {
	background-color: var(--alpha);
}

.speaker {
  width: 20px;
	padding: 8px;
}

.speaker-play {
	padding: 10px;
  background-color: var(--incorrect);
}

.speaker-play img {
  width: 30px;
}

.lang-background,
.speaker-task,
.speaker-background {
  transition: opacity 0.3s;
}

.lang-background:hover,
.speaker-task:hover,
.speaker-background:hover {
  opacity: 0.8;
} */
/* Audio buttons end */



/* Upper menu */
.bar {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.menu {
  width: 50px;
  padding: 15px;
  background-color: var(--white);
  border: 2px solid #e1e1e1;
  border-radius: 12px;
  transition: background-color 0.3s;
  box-shadow: 0 2px 4px #0000000f;
}

.menu:hover {
  background-color: #f0f0f0;
}




.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;
}



/* Mobile version */
@media screen and (max-width: 800px) {
  body {
    margin-top: 10px;
  }

  .dropdown-option, .dropdown-selected {
    font-size: 1rem;
  }

  .dropdown-selected, .dropdown-option {
    width: 150px;
}

  h2 {
    font-size: 28px;
  }

  p {
    font-size: 24px;
  }

  .progress-bar-chapter {
    height: 20px;
  }

}  
