#main-container {
  max-width:1200px;
  margin: 0 auto;
}

.legend {
  background-color: #331858;
  padding: .5em 1em;
  margin-bottom: 2rem;
  color: white;
  font-size:40px;
  line-height: 1;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
}
.done .legend {
  margin-bottom: 0;
}

.legend a {
  border: 2px solid #F4C55D;
  padding: .5em 2em;
  margin-left: 1em;
  background-color: transparent;
  font-weight: bold;
  font-size: 14px;
  margin-left: 2em;
  color: white;
  text-decoration: none;
}
.legend span {line-height: .5em;}

.progress-bar {
 width: 100%;
 height: 24px;
 background-color: #ddd;
 position: relative; /* Add this to position the text */
}
.progress-bar-fill {
 height: 100%;
 background-color: #4CAF50;
}
.progress-percentage {
 position: absolute;
 bottom: -20px;
 left: 0;
 //transform: translate(-50%, -50%);
 color: #333;
 font-weight: bold;
 font-size: 12px;
 text-shadow: 0px 0px 2px rgba(255, 255, 255, 0.7); /* Makes text readable on any background */
}


/* Likert Scale Styling */
.likert-scale {
 margin: 20px 0;
 width: 100%;
}

.likert-labels {
 display: flex;
 justify-content: space-between;
 margin-bottom: 10px;
}

.likert-labels span {
 text-align: center;
 width: 20%;
 font-size: 14px;
}

.likert-options {
 display: flex;
 justify-content: space-between;
}

.likert-option {
 text-align: center;
 width: 20%;
 position: relative;
}

.statement-to-rate {
 font-size: 18px;
 margin: 15px 0;
 font-weight: bold;
}

/* Hide the radio button numbers and use custom styling */
.likert-option input[type="radio"] {
 margin: 0 auto;
 display: block;
}

.likert-option label {
 display: none;
 display: block;
 overflow:hidden;
 text-indent: -1000vw;
 position: absolute;
 top:0;
 left: 0;
 margin: 0 !important;
}

.likert-option label:before {
  display: none !important;
}

/* Add these styles to the existing CSS */
.chart-container {
 margin:  0;
 height: 600px;
 padding: 20px;
 background-color:white;
 border-radius: 0;
 box-shadow:none;
 
 width: 100%;
 padding-bottom: 5em;
}

.chart-container h4 {
 margin-top: 0;
 margin-bottom: 15px;
 text-align: center;
}

#resultsChart {
 width: 100%;
 height: 550px;
 max-height: 88%;
 max-width: 100%;
}

.primary-result {
 margin-bottom: 30px;
 border-bottom: 1px solid #eee;
 padding-bottom: 20px;
}

.additional-results h3 {
 margin-bottom: 15px;
}

.results {
  display: flex;
  flex-wrap: wrap;
  gap: 0px;
}


.results-grid {
 display: flex;
 gap: 10px;
 flex-wrap: wrap;
 width: 100%;
 background-color: #F2F2F2;
 padding: 1rem;
}

@media (min-width: 111800px) {
  .results {
    display: flex;
    flex-wrap: nowrap;
  }      
  .results-grid {
    width: 50%
  }
  .chart-container {
    width: 50%;
    padding-bottom: 0;
  }
}


.result-card {
  border: none;
  border-radius: 0px;
  padding: 10px;
  background-color: transparent;
  width: 100%;
  display: flex;
  gap: 20px;
  align-items: center;
}

.result-card-image {
  width: 120px;
}

.result-card-image img {
  border-radius: 50%;
  width: 118px;
  height: auto;
}

.result-card-head {
 justify-content: start;
 align-items: first;
 margin-bottom: 10px;
 border-bottom: 2px solid #522A88;
 display: flex;
 margin-bottom: 1rem;
}

.result-card-head h4 {
 margin: 0;
 padding-bottom: .5rem;
 font-size: 20px;
 display: flex;
}

.result-card-percentage {
 font-weight: bold;
 padding-right: .5em;
 font-size: inherit;
}
.result-card-text {
  width: calc(100% - 140px);
}
.result-card-text p {
 margin: 0;
 font-size: 14px;
 display: flex;
 align-items: start;
 justify-content: space-between;
}
.result-card-text p a {
  float: right;
  border: 2px solid #F4C55D;
  padding: .5em;
  margin-left: 1em;
  background-color: white;
  font-weight: bold;
  color: black;
  text-decoration: none;
  max-width: 100px;
  text-align: center;
  width: 100%;
}
.result-more-info {
  margin-bottom: 3rem;
}
#quiz label:after {
  background-color: transparent;
}
#quiz input:checked + label,
#quiz input:hover + label {
  overflow: visible;
}
#quiz input:checked + label:after,
#quiz input:hover + label:after {
  position: absolute !important;
  width: 66px;
  height: 66px;
  content: "" !important;
  display: block !important;
  background-image: url("checkmark.svg") !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-size: contain !important;
  z-index: 100 !important;
  top:-8px; 
  left: 8px;
  background-color:transparent !important;
  opacity: 1 !important;
  border-radius: 0;
}


.likert-option {
  height: 66px;
  width: 66px;
  margin: 0 auto;
}
label {
  border-radius: 50%;
  height: 66px;
  width: 66px;
}

label[for=choice5] {
  background-color: #522A88;
}
label[for=choice4] {
  background-color: #674990;
}
label[for=choice3] {
  background-color: #7D6998;
}
label[for=choice2] {
  background-color: #92889F;
}
label[for=choice1] {
  background-color: #A7A7A7;
}


.likert-labels {
  margin-top: .5em;
  font-weight: bold;
  font-size: 2rem;
}


.progress-bar {
  border:1px solid #9F9F9F;
}
.progress-bar-fill {
  background-color:#9682B1;
}


#quiz {
  position: relative;
  overflow: hidden;
  padding-left: 5rem;
  padding: 0rem 0rem 3rem 0rem;
  background-color: #F2F2F2;
  margin-top: 3rem;
}
#quiz.done {
  background-color: white;
}
#quiz-choices {
  max-width: 80%;
  margin-left: 8rem;
  padding-left: 2rem;
  margin-bottom: 2rem;
}
#quiz-question {
  
}
#quiz-errors {
  display: inline-block;
}
#quiz-errors p{
  padding: 0 0 0 2rem;
  margin:0;
  
}
#quiz-question h2 {
  font-weight: normal;
  margin-left: 2rem;
  margin-right: 2rem;
  margin-bottom: 2rem;
  font-size: 40px;

}
#quiz-question h2 span{
  font-weight: bold;
  display:block;
  float: left;
  width: 8rem;
  height: 400px;
  padding-right: 2rem;
  margin-right: 1rem;
  text-align: left;
  margin-bottom: 4rem;
  margin-right: 0;

}
#quiz-question h2 span:after {
  content: "";
  height: calc(100% - 10rem);
  width: 2px;
  background-color: #522A88;
  position: absolute;
  left: 8rem;
}

#quiz-buttons {

  margin-left: 9rem;
  margin-top: 4rem;
  
}

#quiz-buttons input[type=button] {
  border: 2px solid #F4C55D;
  padding: .75em 2em;
  margin-right: 1em;
  background-color: white;
  font-weight: bold;
}

.progress-bar {
  margin-left: 10rem;
  max-width: 80% 
}




.progress-percentage {
  position: absolute;
}




  @media (max-width: 700px) {
  
  div.legend {
    font-size:25px;
    padding: 10px 20px;
  }
  
  #quiz {
    
  }
  
  .legend {
    padding: .25em 20px;
  }
  
  .done .legend {
    display: block;
  }
  
  .done legend a {
    margin: 1em 1em 0 0;
    display: inline-block;
    width: auto;
  }
  
  .legend span {
    display: block;
    padding: 1em 0 .5em;
  }
  .legend span a {
    margin: 0 1em 0 0;
    padding: .5em 1em;
  }
  
  
  #quiz-question {
    padding: 0 20px;
    
  }
  #quiz-question h2{
    border-bottom: 2px solid #522A88;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    font-size: 24px;
    margin-left: 0;
  }
  #quiz-question h2 span{
    width: auto;
    display: inline;
    float: none;
    padding: 0;
  }
  #quiz-question h2 span:after {
    display: none;
    width: auto;
    display: inline-block;
    float: none;
  }
  
  #quiz-choices {
    max-width: none;
    margin-left: 0;
    padding: 0 20px;

  }
  #progress-bar {
    margin-left: 20px;
    max-width: none;
    width: calc(100% - 40px);

  }
  
  #quiz-buttons {
    margin-left: 20px;
  }
  #quiz-buttons input[type=button] {
    padding: .25em 1em;
  }
  
  .likert-option {
    width:44px;
    height:44px
  }

  label {
    height: 44px;
    width: 44px;
  } 
  .likert-labels span{
    font-size: 10px;
  }

input:checked + label:after, input:hover + label:after {
  width: 44px !important;
  height: 44px !important;
  top: -6px !important;
  left: 6px !important;
  border-radius: 0 !important;
}
.result-card-image {
  width: 90px;
}
.result-card-image img {
  width: 88px;
  max-width: 20vw
}

.results-grid {
  padding: 1em 20px;
  gap: 3rem;
}
.result-card {
  padding: 0;
  align-items: flex-start;
}

.result-card-head h4 {
  font-size: 20px;
  display: block;
}
.result-card-head h4 span{
  font-size: inherit;
}
.result-card-text p {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.result-card-text p a {
  float: none;
  margin: 0;
  width: 120px;
  max-width: 120px;
}
  
  
  
  .chart-container {
    height: auto;
    max-height: 65vh
  }
  #resultsChart {
    height: 340px !important;
    max-width: 100%;
    max-height: 100vw;
  }
  
}
