﻿html {
  scroll-behavior: smooth;
}

html, body {
  font-size: 18px;
  font-family: Arial;
  background-color: #222;
  color: #eeeeee;
}

input, button {
  font-size: 18px;
  font-family: Arial;
}

body{
  padding: 20px 0 50px 0;
}

form{
  padding: 10px 5px;
  top: 0;
  left: 0;
}

@media only screen and (min-width: 1000px) {
  body {
    width:80%;
    margin-left: auto;
    margin-right: auto;
  }
  form{
    left: 10%;
    padding: 10px 0;
  }
}

@media only screen and (min-width: 1300px) {
  body {
    width:70%;
    margin-left: auto;
    margin-right: auto;
  }
  form{
    left: 15%;
    padding: 10px 0;
  }
}

a {
  color: #00fdff;
}


/* visited link */
a:visited {
  color: lightgray;
}

/* mouse over link */
a:hover {
  color: hotpink;
}

/* selected link */
a:active {
  color: blue;
}

.questionContainer {
  margin: 20px 0;
  border-bottom: 1px solid #eeeeee;
  padding-bottom: 5px;
}

.questionContainer > label{
  color: MediumAquaMarine;
}

.rightAnswer,
.wrongAnswer {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 4px 0;
  font-size: 110%;
}

.rightAnswer input,
.wrongAnswer input {
  display: inline-block;
  flex-shrink: 0;
  margin-top: 0.35em;
  width: 1.1em;
  height: 1.1em;
  cursor: pointer;
}

.rightAnswer label,
.wrongAnswer label {
  display: block;
  cursor: pointer;
}

.en,
.vi {
  display: block;
  font-size: 0.78em;
  line-height: 1.35;
  color: #9aa0a6;
  font-style: italic;
  font-weight: normal;
  margin-top: 3px;
}

h1 .en,
h1 .vi,
h2 .en,
h2 .vi,
h3 .en,
h3 .vi {
  font-size: 0.65em;
  font-weight: normal;
}

a .vi {
  color: #9aa0a6;
}

.questionContainer > label .en,
.questionContainer > label .vi {
  color: #7f9e98;
}

.wrongAnswer {
  color: lightpink;
}

body.practiceMode .wrongAnswer {
  color: inherit;
}

body.practiceMode .qOptCont.answerCorrect {
  color: #7dcea0;
}

body.practiceMode .qOptCont.answerWrong {
  color: lightpink;
}

body.practiceMode .qOptCont.answerMissed {
  color: #f0e68c;
}

.checkAnswerBtn {
  margin-top: 10px;
  background-color: #2c6aa0;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 14px;
  cursor: pointer;
}

.checkAnswerBtn:disabled {
  opacity: 0.6;
  cursor: default;
}

#resetPracticeProgress {
  margin: 8px 0 4px;
  background-color: #7a3030;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 14px;
  cursor: pointer;
}

#resetPracticeProgress:hover {
  background-color: #943b3b;
}

.answerResultMsg {
  margin-top: 8px;
  font-weight: bold;
}

.answerResultOk {
  color: #7dcea0;
}

.answerResultBad,
.answerResultMiss {
  color: lightpink;
}

img {
  max-width: 100%;
  height: auto;
  border: none!important;
  padding: 0!important;
}

label {
  width: auto !important;
}

#myBtn {
  display: none; /* Hidden by default */
  position: fixed; /* Fixed/sticky position */
  bottom: 10px; /* Place the button at the bottom of the page */
  right: 10px; /* Place the button 30px from the right */
  z-index: 99; /* Make sure it does not overlap */
  border: none; /* Remove borders */
  outline: none; /* Remove outline */
  background-color: #2c6aa0; /* Set a background color */
  color: white; /* Text color */
  cursor: pointer; /* Add a mouse pointer on hover */
  padding: 15px; /* Some padding */
  border-radius: 10px; /* Rounded corners */
  font-size: 18px; /* Increase font size */
}

@media only screen and (min-width: 1000px) {
  #myBtn {
    bottom: 30px;
    right: 30px;
  }
}
#myBtn:hover {
  background-color: #555; /* Add a dark-grey background on hover */
}
