:root{
/* html[data-theme="dark"]{ */
  --bg: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --card: #ccc;
  --border: #e2e8f0;
  --link: #2563eb;
}

html[data-theme="dark"]{
/* :root{ */
  --bg: #0b1220;
  --text: #e5e7eb;
  --muted: #a1a1aa;
  --card: #111a2e;
  --border: #23304a;
  --link: #60a5fa;
}


#tip {
  position: absolute;
  z-index: 9999;
  display: none;
  max-width: 280px;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--text);
  /* opacity: 0.85; */
  color: var(--bg);
  font-size: 14px;
  font-weight: bold;
  line-height: 1.2;
  pointer-events: none;
}

/* Оверлей подсветки */
.word-highlight {
  position: absolute;
  z-index: 9998;
  /* background: yellow; */
  border: 2px solid yellow;
  border-radius: 3px;
  pointer-events: none;
  opacity: 0.85;
}



.text {
  font: 20px/1.5 sans-serif;
  /* padding: 24px; */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


ul {
  margin: 0;
  padding: 0;
}

li {
  list-style: none;
  margin: 0;
}

body {
  background: var(--bg);
  font: 20px sans-serif;
}




.container {
  width: 940px;
  margin: 0 auto;
}









header {
  background: green;

}

.header-content {
  display: flex;
  justify-content: space-between;
}


.header-content h1 {
  color: white;
}

.header-content p {
  color: var(--text);
}

#themeToggle {
  background: rgba(0, 0, 0, 0);
  border: none;
  font-size: x-large;
}


/* --------------section_texts-------------- */
.section_texts {
  margin: 10px 0;
}


.section_texts-titles {
  display: flex;
  flex-direction: column;
  border-bottom: var(--text) 1px solid;
}



.section_texts-titles a {
  padding: 10px;
  font: 25px sans-serif;
  transition: 0.2s;
  color: var(--text);
  text-decoration: none;

  border-top: var(--text) 1px solid;


  display: flex;
  justify-content: space-between;
  align-items: center;

}

.section_texts-titles a:hover {
  background: var(--card);
}

.section_texts-titles a span {
  width: max-content;
}








/* --------------section_texts-------------- */


/* --------------section_text-------------- */



.section_text {
  margin: 10px 0;
}


.section_text-content {
  display: flex;
  flex-direction: column;
  position: relative;
}

.section_text-content h1 {
  color: var(--text);
  font: 30px/1.5 sans-serif;
  cursor: default;
}

.section_text-content p {
  color: var(--text);
  font: 20px sans-serif;
  cursor: default;
}

.section_text-buttons {
  margin-top: 20px 0;
  display: flex;
  gap: 10px;
}

.section_text-buttons a {
  width: 120px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  background: #4CAF50;
  border: #4CAF50 2px solid;
  color: #fff;
  border-radius: 6px;
}

.section_text-buttons a:hover {
  border: black 2px solid;
  color: black;
  background: rgb(235, 235, 235);
}



.section_text-content-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.section_text-content-top .switch {
  background: white;
  width: 50px;
  height: 25px;
  border-radius: 25px;
  position: relative;
  outline: 1px solid black;
  
}

.section_text-content-top .switch input {
  display: none;
}

#translate_switcher {
  width: 25px;
  height: 25px;
  background: #4CAF50;
  position: absolute;
  border-radius: 50%;
  transition: 0.3s;
}

.switch-ru {
  top: 50%;
  right: 100%;
  transform: translateY(-50%) translateX(100%);
}

.switch-uz {
  top: 50%;
  right: 0;
  transform: translateY(-50%);
}

#uz_button {
  position: absolute;
  font-size: large;
  left: 25%;
  top: 50%;
  transform: translateY(-50%) translateX(-50%);
  transition: 0.3s;
  user-select: none;
  

}

#ru_button {
  position: absolute;
  font-size: large;
  right: 25%;
  top: 50%;
  transform: translateY(-50%) translateX(50%);
  transition: 0.3s;
  user-select: none;
}

.active-lang {
  color: white;
}

.inactive-lang {
  color: black;
}

/* --------------section_text-------------- */


/* --------------section_test_info-------------- */
.section_test_info {
  margin: 10px 0;
}

.section_test_info-content {
  display: flex;
  flex-direction: column;
}

.section_test_info-content .button{
  margin-top: 10px;
  width: max-content;
  text-decoration: none;
  background: #4CAF50;
  border: #4CAF50 2px solid;
  color: #fff;
  padding: 10px 20px;
  border-radius: 6px;
}

.section_test_info-content .button:hover {
  border: black 2px solid;
  color: black;
  background: rgb(235, 235, 235);
}

.section_test_info-content h1 {
  font: 30px/1.5 sans-serif;
  color: var(--text);
}

.section_test_info-content p {
  font: 20px sans-serif;
  color: var(--text);
}

.section_test_info-content p span {
  font-weight: bold;
}

.section_test_info-info {
  -webkit-box-shadow: 5px 3px 8px 0px rgba(34, 60, 80, 0.2);
  -moz-box-shadow: 5px 3px 8px 0px rgba(34, 60, 80, 0.2);
  box-shadow: 5px 3px 8px 0px rgba(34, 60, 80, 0.2);
  
  padding: 20px 0;
  margin: 10px 0;


}

.section_test_info-buttons a {
  width: 120px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  background: #4CAF50;
  border: #4CAF50 2px solid;
  color: #fff;
  border-radius: 6px;
}

.section_test_info-buttons a:hover {
  border: black 2px solid;
  color: black;
  background: rgb(235, 235, 235);
}

.section_test_info-history {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--text);
}

.section_test_info-history span {
  font-weight: bold;
  color: var(--text);
}

.section_test_info-history .column {
  display: flex;
  flex-wrap: wrap;
  color: var(--text);
}

.section_test_info-history .block {
  width: 50%;
  border: 1px solid var(--text);
}


/* --------------section_test_info-------------- */

/* --------------section_test-------------- */
.section_test {
  margin: 10px 0;
}

.section_test-questions-question {
  color: var(--text);
}

.section_test-question_nums {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.section_test-question_nums span {
  border: black solid 1px;
  border-radius: 5px;
  background: rgb(231, 231, 231);
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: default;
}


.section_test-question_nums span.answered {
    background-color: #4CAF50;
    color: white;
}

.section_test-question_nums span.active {
    border: 2px solid var(--text);
}



.section_test-questions {
  margin: 10px 0;
  display: flex;
  flex-direction: column;
}



.section_test-questions-answers {
  display: flex;
  flex-direction: column;
}

.section_test-questions-answers label {
  width: max-content;
  color: var(--text);
}


.section_test-button {
  width: 160px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  background: #4CAF50;
  border: #4CAF50 2px solid;
  color: #fff;
  border-radius: 6px;
  cursor: default;
}

.section_test-button:hover {
  border: black 2px solid;
  color: black;
  background: rgb(235, 235, 235);
}


.section_test-confirmation .buttons {
  margin-top: 10px;
  display: flex;
  gap: 10px;
}

.section_test-confirmation .buttons a {
  width: 200px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  background: #4CAF50;
  border: #4CAF50 2px solid;
  color: #fff;
  border-radius: 6px;
  cursor: default;
}

.section_test-confirmation .buttons a:hover {
  border: black 2px solid;
  color: black;
  background: rgb(235, 235, 235);
}


.section_test-confirmation p {
  color: var(--text);
}


#timer {
  color: var(--text);
}

/* --------------section_test-------------- */


/* --------------section_result-------------- */

.section_result {
  margin-top: 10px;
}

.section_result-content {
  display: flex;
  flex-direction: column;
  gap: 30px;
}


.section_result-content a {
  width: 160px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  background: #4CAF50;
  border: #4CAF50 2px solid;
  color: #fff;
  border-radius: 6px;
  cursor: default;
}

.section_result-content a:hover {
  border: black 2px solid;
  color: black;
  background: rgb(235, 235, 235);
}

.section_result-content span {
  font-weight: bold;
}


.section_result-content .text{
  color: var(--text);
}


/* --------------section_result-------------- */




#detail-page {
  gap: 30px;
}

#detail-title {
  width: 100%;
  font: 20px sans-serif 20px;
}

#detail-text {
  width: 100%;
  font: 20px sans-serif;
}