/* Importing google Fonts */
@import url("https://fonts.googleapis.com/css?family=Poppins:wght@200;300;400;500;600;700&display=swap");

*,
*::after,
*::before {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", "sans-serif";
}

body {
  background: #007bff;
  position: relative;
}

/* Info Box */
#click {
  box-shadow: 0px 4px 8px 0 rgba(0 0 0 / 0.2), 0px 6px 20px 0 rgba(0 0 0 / 0.19);
  font-size: 17px;
  font-weight: 600;
  color: #007bff;
  padding: 10px 25px;
  outline: none;
  border: none;
  border-radius: 5px;
  background: #fff;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: capitalize;
  position: absolute;
  top: 5%;
  left: 50%;
  transform: translate(-50%, 50%);
  font-weight: bold;
}
#click:hover {
  color: #0263ca;
}

.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  background: #fff;
  border-radius: 5px;
  box-shadow: 0px 4px 8px 0 rgba(0 0 0 / 0.2), 0px 6px 20px 0 rgba(0 0 0 / 0.19);
  user-select: none;
  width: 540px;
  max-width: 80%;
  transition: all 0.3s ease-in-out;
}

.modal.active {
  transform: translate(-50%, -50%) scale(1);
  display: block;
  top: 50%;
  height: fit-content;
}

.modal_header {
  height: 60px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  font-size: 20px;
  font-weight: 600;
  text-transform: capitalize;
  box-shadow: 0px 2px 8px rgba(0 0 0 / 0.15);
}

.modal_header .title {
  font-size: 20px;
  font-weight: bold;
}

.modal_header .title span {
  color: #007bff;
  position: relative;
}
.modal_header .title span::before {
  content: "";
  width: 100%;
  height: 2px;
  background: #007bff;
  position: absolute;
  bottom: -0.5px;
  left: 0;
}

.modal_header .close_btn {
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
  font-size: 30px;
  font-weight: bold;
  color: #007bff;
}

.modal .info_list {
  padding: 15px 35px;
}

.modal .info_list .info {
  margin: 5px 0;
  font-size: 17px;
}

.modal .info_list .info span {
  font-weight: 600;
  color: #007bff;
}

#overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0 0 0 / 0.5);
  pointer-events: none;
  opacity: 0;
  z-index: 100;
}

#overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* Quiz Box */
.quiz_box {
  z-index: 5;
  width: 100%;
  background: #fff;
  border-radius: 5px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%) scale(0.9);
  box-shadow: 0px 4px 8px 0 rgba(0 0 0 / 0.2), 0px 6px 20px 0 rgba(0 0 0 / 0.19);
  margin-top: 100px;
}

.quiz_box header {
  position: relative;
  z-index: 10;
  height: 70px;
  padding: 0 30px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 5px 5px 0 0;
  box-shadow: 0px 3px 5px 1px rgba(0 0 0 / 0.1);
}

.quiz_box header .title {
  font-size: 20px;
  font-weight: 600;
}

.quiz_box header .timer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 195px;
  height: 45px;
  background: #cce5ff;
  border: 1px solid #b8daff;
  border-radius: 5px;
  padding: 0 8px;
}

.quiz_box header .timer .time_text {
  font-weight: 400;
  font-size: 17px;
  user-select: none;
}

.quiz_box header .timer .time_sec {
  font-size: 18px;
  font-weight: 500;
  background: #343a40;
  height: 30px;
  width: 95px;
  color: #fff;
  text-align: center;
  line-height: 30px;
  border-radius: 5px;
  border: 1px solid #343a40;
  user-select: none;
}

.timeField{
  display: flex;
  flex-direction: row;
  align-items: center;
}

#hide{
  font-size: 20px;
  color: #343a40;
  cursor: pointer;
  padding-left: 25px;
}
#hide:hover{
  text-decoration: underline;
}

.disapper{
  visibility: hidden;
}

.quiz_box section {
  padding: 25px 30px 20px 30px;
}

.quiz_box section .q .heads {
  font-size: 20px;
  color: #343a40be;
  margin: 20px 0;
  text-align: center;
}

.quiz_box section .q .heads:first-child {
  padding: 0;
}

.quiz_box section .q {
  border-top: 1px solid #343a40be;
}

.quiz_box section .q:first-child {
  border-top: none;
}

.quiz_box section .q .heads span {
  color: #007bff;
  font-size: 20px;
}

.quiz_box section .que_text {
  font-size: 25px;
  font-weight: 600;
}

.quiz_box section .option_list {
  padding: 20px 0;
  display: block;
  margin-left: 10%;
  
}

.quiz_box section .option_list .option {
  background: aliceblue;
  border: 1px solid #84c5fe;
  border-radius: 5px;
  padding: 8px 15px;
  font-size: 17px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  width: 90%;
}

.quiz_box section .option_list .option input{
  position: absolute;
  float: left;
}

.quiz_box section .option_list .option label{
  padding-left: 20px;
  cursor: pointer;
}

.quiz_box section .option_list .option:hover {
  color: #004085;
  background: #cce5ff;
  border-color: #b8daff;
}

.option_list .option:last-child {
  margin-bottom: 0;
}

.option_list .inp_option textarea {
  background: aliceblue;
  border: 1px solid #84c5fe;
  border-radius: 5px;
  width: 90%;
  padding: 8px 15px;
  font-size: 17px;
}

.option_list .inp_option input {
  background: aliceblue;
  border: 1px solid #84c5fe;
  border-radius: 5px;
  font-size: 17px;
  width: 20%;
  cursor: pointer;
  margin-bottom: 20px;
}

.quiz_box footer {
  height: 60px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
}

.quiz_box footer .tool_que span {
  display: flex;
  user-select: none;
}

/* Quiz Box Footer */
footer .tool_que span p {
  font-weight: 500;
  padding: 0 5px;
}

footer .tool_que span p:first-child {
  padding-left: 0px;
}

footer .next_btn {
  height: 50px;
  padding: 0 53px;
  font-size: 18px;
  font-weight: 400;
  border: none;
  outline: none;
  background: #007bff;
  color: #fff;
  border-radius: 5px;
  border: 1px solid #007bff;
  cursor: pointer;
  transition: all 0.3s ease;
}

footer .next_btn:hover {
  background: #0263ca;
}

@media (max-width: 767px) {
  .option_list .inp_option input {
    width: 70%;
  }
  .quiz_box {
    margin-top: 10px;
  }
  .modal_header .title {
    font-size: 17px;
  }
}
