* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Times New Roman", Times, serif;
}

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #dddfeb;
}

.container {
  height: 100vh;
  position: relative;
  width: 800px;
  max-width: 100%;
  background-color: #1f2847;
  padding: 15px;
  border-radius: 0;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
}

.heading {
  text-align: center;
  font-size: 40px;
  color: #fff;
  margin-bottom: 50px;
}

label {
  display: block;
  font-size: 20px;
  margin-bottom: 10px;
  color: #fff;
}

select {
  width: 100%;
  padding: 10px;
  text-transform: capitalize;
  border-radius: 5px;
  margin-bottom: 20px;
  background-color: #fff;
  color: #1f2847;
  font-size: 16px;
}

.settings {
  margin-bottom: 50px;

  gap: 10px;
}

.btns {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin: 0 20% 0 20%;
}

.btn {
  width: 100%;
  height: 60px;
  background-color: #0c80ef;
  border: none;
  border-radius: 10px;
  color: #fff;
  /* margin-top: 5px; */
  font-size: 18px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s linear;
}

.btn:hover {
  background-color: #0a6bc5;
}

.btn:disabled {
  cursor: not-allowed;
  background-color: #576081;
}

.hide {
  display: none;
}

.timer {
  width: 100%;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.timer .progress {
  position: relative;
  width: 100%;
  height: 40px;
  background-color: transparent;
  border-radius: 30px;
  overflow: hidden;
  /* margin-bottom: 10px; */
  border: 3px solid #3f4868;
}

.timer .progress .progress-bar {
  width: 100%;
  height: 100%;
  border-radius: 30px;
  overflow: hidden;
  background: linear-gradient(to right, #ea517c, #b478f1);
  transition: 1s linear;
}

.timer .progress .progress-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 18px;
  font-weight: 500;
}

.question-wrapper {
  position: relative;
}

.question-wrapper .number {
  color: #a3aace;
  font-size: 25px;
  font-weight: 500;
  margin-bottom: 10px;
}

.question-wrapper .number .total {
  color: #576081;
  font-size: 18px;
}

.question-wrapper .question {
  width: auto;
  height: auto;
  margin-bottom: 10px;
}

.question-wrapper .question img {
  border-radius: 3px;

  width: 750px;
}

.question .answer-wrapper {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}

.question-wrapper .answer-wrapper .answer {
  width: 100%;
  height: 60px;
  padding: 20px;
  border-radius: 10px;
  color: #fff;
  border: 3px solid #3f4868;
  display: flex;

  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  cursor: pointer;
  transition: 0.3s linear;
}

.answer .checkbox {
  width: 20px;
  height: 20px;
  font-size: 12px;
  border-radius: 50%;
  border: 3px solid #3f4869;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s;
}

.answer .checkbox .icon {
  opacity: 0;
}

.answer:hover:not(.checked).checkbox,
.answer.selected .checkbox {
  background-color: #0c80ef;
  border-color: #0c80ef;
}

.answer.selected .checkbox .icon {
  opacity: 1;
}

.answer:hover .checkbox .icon {
  opacity: 1;
}

.answer-wrapper .answer.correct {
  border-color: #0cef2a;
}

.answer-wrapper .answer.wrong {
  border-color: #fc3939;
}

.question-wrapper,
.answer-wrapper {
  margin-bottom: 50px;
}

.end-screen .score {
  color: #fff;
  font-size: 25px;
  font-weight: 500;
  margin-bottom: 80px;
  text-align: center;
}

.end-screen .score-text {
  color: #aeaaae;
  font-size: 16px;
  margin-bottom: 120px;
}

/* @media (max-width: 600px) {
  .container {
    width: 500px;
  }
} */

@media (max-width: 400px) {
  .container {
    height: 100vh;
    position: relative;
    width: 100%;
    max-width: 400px;
    background-color: #1f2847;
    padding: 15px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  }

  .btn {
    width: 100%;
    height: 60px;
    background-color: #0c80ef;
    border: none;
    border-radius: 10px;
    color: #fff;
    /* margin-top: 5px; */
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s linear;
  }

  .btn:hover {
    background-color: #0a6bc5;
  }

  .btn:disabled {
    cursor: not-allowed;
    background-color: #576081;
  }

  .hide {
    display: none;
  }

  .timer {
    width: 100%;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .timer .progress {
    position: relative;
    width: 100%;
    height: 30px;
    background-color: transparent;
    border-radius: 30px;
    overflow: hidden;
    /* margin-bottom: 10px; */
    border: 3px solid #3f4868;
  }

  .timer .progress .progress-bar {
    width: 100%;
    height: 100%;
    border-radius: 30px;
    overflow: hidden;
    background: linear-gradient(to right, #ea517c, #b478f1);
    transition: 1s linear;
  }

  .timer .progress .progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 18px;
    font-weight: 500;
  }

  .question-wrapper {
    position: relative;
  }

  .question-wrapper .number {
    color: #a3aace;
    font-size: 25px;
    font-weight: 500;
    margin-bottom: 10px;
  }

  .question-wrapper .number .total {
    color: #576081;
    font-size: 18px;
  }

  .question-wrapper .question {
    width: auto;
    height: auto;
    margin-bottom: 10px;
  }

  .question-wrapper .question img {
    border-radius: 3px;
    width: 325px;
  }

  .question-wrapper .answer-wrapper .answer {
    width: 100%;
    height: 60px;
    padding: 20px;
    border-radius: 10px;
    color: #fff;
    border: 3px solid #3f4868;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    cursor: pointer;
    transition: 0.3s linear;
  }

  .answer .checkbox {
    width: 20px;
    height: 20px;
    font-size: 12px;
    border-radius: 50%;
    border: 3px solid #3f4869;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s;
  }

  .answer .checkbox .icon {
    opacity: 0;
  }

  .answer.selected .checkbox .icon {
    opacity: 1;
  }

  .answer:hover .checkbox .icon {
    opacity: 1;
  }

  .answer-wrapper .answer.correct {
    border-color: #0cef2a;
  }

  .answer-wrapper .answer.wrong {
    border-color: #fc3939;
  }

  .question-wrapper,
  .answer-wrapper {
    margin-bottom: 50px;
  }

  .btn.submit {
    display: block;
  }

  .btn.next {
    display: none;
  }

  .end-screen .score {
    color: #fff;
    font-size: 25px;
    font-weight: 500;
    margin-bottom: 80px;
    text-align: center;
  }

  .end-screen .score-text {
    color: #aeaaae;
    font-size: 16px;
    margin-bottom: 120px;
  }
}
