progress {
  border: none;
  width: 90%;
  height: 20px;
  background: #f1f1f1;
}

progress {
  color: #e18939;
}

progress::-webkit-progress-value {
  background: #f1f1f1;
}

progress::-moz-progress-bar {
  background: #e18939;
}

progress::-webkit-progress-value {
  background: #e18939;
}

progress::-webkit-progress-bar {
  background: #f1f1f1;
}

/* The container_sub */
.container_sub {
  display: block;
  position: relative;
  padding-left: 100px;
  margin-bottom: 30px;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Hide the browser's default checkbox */
.container_sub input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

/* Create a custom checkbox */
.checkmark {
  position: absolute;
  top: 0;
  left: 50px;
  height: 25px;
  width: 25px;
  background-color: #f1f1f1;
  border: 1px solid #e18939;
}

/* On mouse-over, add a grey background color */
.container_sub:hover input ~ .checkmark {
  background-color: #ccc;
}

/* When the checkbox is checked, add a blue background */
.container_sub input:checked ~ .checkmark {
  background-color: #e18939;
}

/* Create the checkmark/indicator (hidden when not checked) */
.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

/* Show the checkmark when checked */
.container_sub input:checked ~ .checkmark:after {
  display: block;
}

/* Style the checkmark/indicator */
.container_sub .checkmark:after {
  left: 9px;
  top: 5px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 3px 3px 0;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}

.button1 {
  width: 100px;
  height: 30px;
  border: solid white;
  border-width: 0 3px 3px 0;
  background-color: #f1f1f1;
  color: black;
}

.button1:hover {
  font-weight: bold;
}

.button2 {
  width: 100px;
  height: 30px;
  border: solid white;
  border-width: 0 3px 3px 0;
  background-color: #e18939;
  color: white;
}

.button2:hover {
  font-weight: bold;
}

@media all and (max-width: 30em) {
  .button1 {
    display: block;
    margin: 0.4em auto;
  }

  .button2 {
    display: block;
    margin: 0.4em auto;
  }
}

#questiontext > a {
  color: #e18939 !important;
}

@media screen and (max-width: 768px) {
  #questiontext {
    line-height: 1.2 !important;
    hyphens: auto;
  }

  #ansdiv {
    padding-left: 0 !important;
  }

  #prevnext {
    padding-top: 0 !important;
    display: flex !important;
  }
}

@media screen and (min-width: 769px) {
  #prevnext {
    padding-bottom: 2rem;
  }
}

/* Styles moved from index.php */
@media screen and (max-width: 767px) {
  .site-section {
    display: block !important;
  }
}

/* Styles moved from quest.php */
body {
  background-color: #000000; /* Note: This might conflict with other body rules */
}

.padding {
  padding: 10rem !important;
  margin-left: 200px;
}

.br-theme-bars-1to10 .br-widget {
  height: 50px;
  white-space: nowrap;
}

.br-theme-bars-1to10 .br-widget a {
  display: block;
  width: 30px;
  padding: 5px 0;
  height: 20px;
  float: left;
  background-color: #fbedd9;
  margin: 1px;
  text-align: center;
}

.br-theme-bars-1to10 .br-widget a.br-active,
.br-theme-bars-1to10 .br-widget a.br-selected {
  background-color: #e18939;
}

.br-theme-bars-1to10 .br-widget .br-current-rating {
  font-size: 20px;
  line-height: 2;
  float: left;
  padding: 0 20px 0 20px;
  color: #edb867;
  font-weight: 400;
}

.br-theme-bars-1to10 .br-readonly a {
  cursor: default;
}

.br-theme-bars-1to10 .br-readonly a.br-active,
.br-theme-bars-1to10 .br-readonly a.br-selected {
  background-color: #f2cd95;
}

.br-theme-bars-1to10 .br-readonly .br-current-rating {
  color: #f2cd95;
}

@media print {
  .br-theme-bars-1to10 .br-widget a {
    border: 1px solid #b3b3b3;
    background: white;
    height: 38px;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
  }
  .br-theme-bars-1to10 .br-widget a.br-active,
  .br-theme-bars-1to10 .br-widget a.br-selected {
    background-color: #e18939;
  }
}

/* Styles moved from result.php */
@media screen and (max-width: 989px) {
  .quickcheck-charts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr);
    grid-template-areas:
      "qc-info donut"
      "qc-info chart1"
      "qc-info chart2";
    margin-top: 50px;
  }

  .qc-info {
    z-index: 99999;
  }

  .quickcheck-charts img {
    height: 200px;
  }

  .donut {
    grid-area: donut;
    transform: scale(1.1);
    margin-top: -20px;
    margin-left: -50px;
    z-index: 0;
  }

  .chart1 {
    grid-area: chart1;
  }

  .chart2 {
    grid-area: chart2;
  }
}

@media screen and (min-width: 990px) {
  .quickcheck-charts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 1fr;
    column-gap: 1rem;
  }

  .quickcheck-charts img {
    height: 200px;
  }

  .chart2 {
    transform: scale(0.92);
    margin-top: 10px;
  }

  /* .checkmark rule already exists, ensure consistency or remove duplication */
  /* .checkmark {
    left: 0;
  } */

  /* .container_sub rule already exists, ensure consistency or remove/merge */
  /* .container_sub {
    padding-left: 2rem !important;
  } */
}
