body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f7f7f7;
  line-height: 1.6;
}
/* Responsive container */
.container {
  /* width: 100%;*/
  max-width: 800px;
  margin: 20px auto;
  padding: 20px;
  background-color: white;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.container-old {
  width: 80%;
  margin: 50px auto;
  padding: 20px;
  background-color: white;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  /*border-radius: 8px;*/
}
h1 {
  text-align: center;
  color: #333;
}
.question {
  margin-bottom: 20px;
  padding-top: 5px;
}
.question p {
  font-size: 18px;
  margin: 10px;
}
.options {
  list-style-type: none;
  padding: 0;
  margin: 0;
}
.options li {
  background-color: #f1f1f1;
  margin: 5px 0;
  padding: 10px;

  /*border-radius: 4px;*/
}
input:not(li input) {
  width: 95%;
  font-size: 18px;
  /*background-color: #f1f1f1;*/
  margin: 5px 0;
  padding: 10px;
}
.options li:hover {
  /*background-color: #e1e1e1;*/
}
.options li.correct,
.options input.correct {
  background-color: #4caf50; /* Green for correct answer */
}
.options li.correct label,
.options li.incorrect label {
  color: white;
}
.options li.incorrect,
.options input.incorrect {
  background-color: #f44336; /* Red for incorrect answer */
}
.explanation {
  /*margin-top: 15px;*/
  padding: 10px;
  background-color: #f1f1f1;
  /*border-radius: 5px;*/
  display: none; /* Initially hidden */
}
.feedback {
  font-size: 16px;
  margin-top: 10px;
}
.feedback.correct {
  color: #4caf50;
}
.feedback.incorrect {
  color: #f44336;
}
li,
p,
.explanation {
  line-height: 1.5em;
}
h2 {
  padding: 10px;
  background-color: #fff;
}
#description {
  padding: 10px;
}
.submit-button {
  background-color: #4caf50; /* Green background */
  border: none; /* Remove borders */
  color: white; /* White text */
  padding: 15px 32px; /* Some padding */
  text-align: center; /* Centered text */
  text-decoration: none; /* Remove underline */
  display: inline-block; /* Make the link block level */
  font-size: 16px; /* Increase font size */
  margin: 4px 2px; /* Some margin */
  cursor: pointer; /* Pointer/hand icon */
  border-radius: 12px; /* Rounded corners */
  transition: background-color 0.3s; /* Smooth transition */
}
.submit-button:hover {
  background-color: #45a049; /* Darker green on hover */
}
#loading-indicator {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.5em;
  color: #333;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0;
  padding-left: 10px;
  padding-bottom: 20px;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  font-family: Arial, sans-serif;
}

.level-filter label {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  font-size: 16px;
  color: #333;
}

input[type="checkbox"] {
  margin-right: 10px;
}

.level-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.level-filter label,
.test-select-container label {
  background-color: #f0f0f0;
  padding: 10px 15px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.level-filter label:hover {
  background-color: #e0e0e0;
}

.level-filter input[type="checkbox"]:checked + label {
  background-color: #007bff;
  color: white;
}

.test-select-container {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.test-select-container label {
  margin-right: 10px;
}

.test-select-container select {
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
  font-size: 16px;
  transition: border-color 0.3s ease;
  width: 90%;
}

.test-select-container select:focus {
  border-color: #007bff;
  outline: none;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

.nav-container button {
  background-color: #4caf50; /* Green background */
  border: none;
  color: white; /* White text */
  padding: 15px 32px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  margin: 4px 2px;
  cursor: pointer;
  border-radius: 8px; /* Rounded corners */
  transition: background-color 0.3s ease; /* Smooth transition */
}

.nav-container button:hover {
  background-color: #45a049; /* Darker green on hover */
}

.nav-container button:disabled {
  background-color: #cccccc; /* Gray background for disabled buttons */
  cursor: not-allowed;
}

/* audio */
.audio-player {
  display: flex;
  align-items: center;
  gap: 10px;
}

.play-pause {
  background-color: #4caf50; /* Green background */
  border: none;
  color: white; /* White text */
  padding: 10px 20px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  cursor: pointer;
  border-radius: 5px; /* Rounded corners */
  transition: background-color 0.3s ease; /* Smooth transition */
}

.play-pause:hover {
  background-color: #45a049; /* Darker green on hover */
}

/* audio */
.progress-bar {
  width: 100%;
  height: 10px;
  background-color: #ddd;
  border-radius: 5px;
  overflow: hidden;
  position: relative;
}

.progress {
  height: 100%;
  background-color: #4caf50;
  width: 0;
  transition: width 0.1s;
}

/*progress bar */
#progress-container {
  width: 100%;
  background-color: #ddd;
  border-radius: 5px;
  overflow: hidden;
  margin: 20px 0;
}

#progress-bar {
  height: 20px;
  background-color: #4caf50;
  width: 0;
  transition: width 0.3s;
}

.container {
  /*    margin: 20px;*/
  font-family: Arial, sans-serif;
}

.test-select-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.toggle-arrow {
  cursor: pointer;
  font-size: 1.5rem;
  transform: rotate(0deg);
  transition: transform 0.3s ease;
}

.toggle-arrow.rotated {
  transform: rotate(180deg);
}

.level-filter {
  display: none;
}

/*
        .level-filter {
          display: none;
          margin-top: 10px;
          padding: 10px;
          border: 1px solid #ddd;
          border-radius: 5px;
          background: #f9f9f9;
        }
  */
/* new */
/* Typography adjustments */
h1 {
  text-align: center;
  color: #333;
  font-size: 1.8rem;
  margin-bottom: 20px;
}

/* Select and filter styles */
.test-select-container,
.level-filter {
  margin-bottom: 20px;
}

.test-select-container select,
.level-filter input {
  width: 95%;
  padding: 10px;
  margin-top: 10px;
  font-size: 1.2rem;
}

.level-filter label {
  font-size: 1rem;
}

/* Question styles */
.question {
  margin-bottom: 20px;
  font-size: 1.2rem;
}

/* Button and interactive element styles */
.submit-button {
  width: 100%;
  font-size: 1.2rem;
  padding: 15px;
  margin: 10px 0;
  background-color: #4caf50;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.submit-button:hover {
  background-color: #45a049;
}

/* Progress bar */
#progress-container {
  width: 100%;
  background-color: #ddd;
  height: 20px;
  border-radius: 5px;
}

#progress-bar {
  height: 20px;
  background-color: #4caf50;
  width: 0;
  transition: width 0.3s;
}

/* Image styles */
img {
  max-width: 100%;
  height: auto;
  margin: 20px 0;
  display: block;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#back-button {
  order: 1;
}

#filtered-questions-count {
  order: 2;
  flex-grow: 1;
  text-align: center;
}

#next-button {
  order: 3;
}

#script-select,
#language-select,
#speed-select {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #f9f9f9;
  font-size: 16px;
  margin: 5px 0;
  width: 100%;
  box-sizing: border-box;
}

label.none {
  display: none;
}

/* Media queries for mobile devices */
@media screen and (max-width: 600px) {
  body {
    font-size: 1rem;
  }

  h1 {
    font-size: 1.5rem;
  }

  .submit-button {
    font-size: 1rem;
  }

  .test-select-container select,
  .level-filter input {
    font-size: 1rem;
  }

  .container {
    padding: 15px;
  }
}
