.test-intro-page-shadow {
  background-color: black;
  opacity: 0.5;
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
}

.test-intro-page-card {
  background-color: white;
  width: 60vw;
  position: fixed;
  z-index: 100;
  left: 20vw;
  height: fit-content;
  top: 10vh;
  padding-left: 2.5vw;
  padding-top: 2vw;
  padding-right: 2.5vw;
  padding-bottom: 2vw;
  border-radius: 2vw;
  color: var(--c2);
}

.test-intro-page-card h1 {
  font-size: 2.7vw;
}

.test-intro-page-card h2 {
  font-size: 1.5vw;
}

.test-intro-page-card span {
  font-size: 1.5vw;
}

.test-intro-page-button-container {
  width: 56vw;
  display: flex;
  justify-content: space-between;
  margin-top: 1vw;
}

#test-intro-page-start-btn,
#test-intro-page-cancel-btn {
  width: fit-content;
  height: fit-content;
  font-size: 1.2svw;
  color: var(--c2);
  background-color: var(--c1);
  border: 2px solid var(--c2);
  text-align: center;
  padding: 0.25vw 1vw;
  border-radius: 2vw;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, border 0.3s ease;
}

#test-intro-page-start-btn:hover,
#test-intro-page-cancel-btn:hover {
  background-color: var(--c2);
  color: var(--c1);
}

.multiple-choice-intro-page-card {
    width: 80vw;
    height: fit-content;
    margin-left: 7.5vw;
    margin-top: 7.5vw;
    padding-top: 2.5vw;
    padding-bottom: 2.5vw;
    padding-left: 2vw;
    padding-right: 2vw;
    border-radius: 2vw;
    background-color: white;
}

.multiple-choice-intro-page-card-title-container {
    width: 75vw;
    font-size: 3vw;
    color: var(--c2);
    padding-bottom: 0.5vw;
}

.multiple-choice-intro-page-card-main-content-container {
    width: 75vw;
    display: flex;
    justify-content: space-between;
    margin-top: 1.5vw;
    margin-left: auto;
    margin-right: auto;
}

.multiple-choice-intro-page-card-main-content-btn-1,
.multiple-choice-intro-page-card-main-content-btn-2 {
    width: 12vw;
    height: 3.5vw;
    border-radius: 1.75vw;
    background-color: var(--c2);
    color: white;
    border: none;
    font-size: 2vw;
    margin: 0;
    transition: background-color 0.3s ease, color 0.3s ease, border 0.3s ease;
}

.multiple-choice-intro-page-card-main-content-btn-1:hover,
.multiple-choice-intro-page-card-main-content-btn-2:hover {
    background-color: white;
    color: var(--c2);
    border: 2px solid var(--c2);
}

.multiple-choice-page .question-container {
    background-color: var(--c2);
    width: 65vw;
    height: 10.4vw;
    border-radius: 2.5vw;
    margin: auto;
    margin-top: 2.08vw;
    color: white;
    padding-left: 1.3vw;
    padding-top: 1vw;
}

.multiple-choice-page .question-container h1 {
    font-size: 2vw;
    opacity: 0.5;
}

.multiple-choice-page .question-container h2 {
    font-size: 3vw;
    margin-top: 2%;
}

.multiple-choice-page .options-container {
    margin-top: 1%;
    width: 65%;
    height: 40%;
    margin-left: 17.5%;
    display: flex;
    flex-direction: column;
}

.multiple-choice-page .options-container .option-1,
.multiple-choice-page .options-container .option-2,
.multiple-choice-page .options-container .option-3 {
    background-color: var(--c2);
    width: 100%;
    height: 100%;
    margin-top: 0;
    border: 3px solid white;  
    border-radius: 3vw;
    padding-left: 4%;
    padding-right: 4%;
    color: white;
    transition: border 0.5s ease, color 0.5s ease, background-color 0.5s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.7vw;
}

.multiple-choice-page .options-container .option-1:hover,
.multiple-choice-page .options-container .option-2:hover,
.multiple-choice-page .options-container .option-3:hover {
    color: white;
    background-color: var(--a2);
}

.multiple-choice-page .options-container .option-1.correctOption,
.multiple-choice-page .options-container .option-2.correctOption,
.multiple-choice-page .options-container .option-3.correctOption {
    background-color: var(--goodc1);
    color: white;
}

.multiple-choice-page .options-container .option-1.notCorrectOption,
.multiple-choice-page .options-container .option-2.notCorrectOption,
.multiple-choice-page .options-container .option-3.notCorrectOption {
    background-color: var(--badc1);
    color: white;
}

.multiple-choice-page .options-container .option-1 .checkmark {
    display: block;
    margin-right: 0;
    display: flex;
    align-items: center;
    width: 10%;
    margin-top: 0;
    padding-left: 1%;

}

.multiple-choice-page .options-container .option-1 .checkmark .checkmark1 {
    height: 5vw;
    display: none;
}

.multiple-choice-page .options-container .option-1 .checkmark .checkmark2 {
    height: 3.5vw;
    display: none;
}

.multiple-choice-page .options-container .option-2 .checkmark {
    display: block;
    margin-right: 0;
    display: flex;
    align-items: center;
    width: 10%;
    margin-top: 0;
    padding-left: 1%;
}

.multiple-choice-page .options-container .option-2 .checkmark .checkmark1 {
    height: 5vw;
    display: none;
}

.multiple-choice-page .options-container .option-2 .checkmark .checkmark2 {
    height: 3.5vw;
    display: none;
}

.multiple-choice-page .options-container .option-3 .checkmark {
    display: block;
    margin-right: 0;
    display: flex;
    align-items: center;
    width: 10%;
    margin-top: 0;
    padding-left: 0%;
}

.multiple-choice-page .options-container .option-3 .checkmark .checkmark1 {
    height: 5vw;
    display: none;
}

.multiple-choice-page .options-container .option-3 .checkmark .checkmark2 {
    height: 3.5vw;
    display: none;
}

.multiple-choice-page .next-question-btn {
    width: 15vw;
    height: 10vh;
    background-color: var(--c2);
    margin-left: 67.5vw;
    margin-top: 23vw;
    font-size: 1vw;
    border-radius: 6vw;
    color: white;
    position: relative;
    padding-left: 2vw;
    padding-top: 1.5vw;
    display: none;
}

.multiple-choice-page .next-question-btn img {
    height: 4vw;
    position: absolute;
    margin-left: 8.3vw;
    margin-top: -3.25vw;
}


.multiple-choice-page .progress-bar {
    background-color: white;
    position: fixed;
    width: 60vw;
    left: 20vw;
    height: 5vw;
    bottom: 1vw;
    border-radius: 1vw;
    color: var(--c2);
    padding-left: 2vw;
    padding-top: 0.5vw;
    font-size: 0.5vw;
}

.multiple-choice-page .progress-bar .full-bar {
    width: 56vw;
    background-color: var(--c1);
    height: 2vw;
    margin-left: 0vw;
    margin-top: 0.5vw;
    border-radius: 1vw;
    position: absolute;
}

.multiple-choice-page .progress-bar .completed-bar {
    width: 0vw;
    background-color: var(--c2);
    height: 2vw;
    margin-left: 0vw;
    margin-top: 0.5vw;
    border-radius: 1vw;
    position: absolute;
    z-index: 12;
    transition: width 0.5s ease;
}

.test-result-page .header {
    width: 80vw;
    height: fit-content;
    padding-bottom: 1vw;
    border-bottom: 2px solid var(--c2);
    margin-left: 5vw;
    font-size: 2vw;
    color: var(--c2);
}

.test-result-page .result-card {
    width: 80vw;
    height: 35vw;
    background-color: white;
    border-radius: 3vw;
    margin-left: 5vw;
    margin-top: -2.5vw;
    padding: 2vw;   
    display: flex;
    justify-content: space-between;
}

.test-result-page .result-card .left-content {
    border-right: 3px solid var(--c2);
    width: 38vw;
    height: 31vw;
}

.test-result-page .result-card .right-content {
    width: 38vw;
    height: 31vw;
    padding-left: 2vw;
}

.test-result-page .result-card .result-card-left-header {
    color: var(--c2);
    font-size: 1.5vw;

}

.test-result-page .progress-wheel {
    place-items: center;
    width: fit-content;
    margin-left: 5vw;
    margin-top: 2.5vw;

}
  
.result-card-right-header {
    color: var(--c2);
} 

.result-card-right-header h1 {
    font-size: 3vw;
    color: var(--c2);
}

.result-card-right-header h2 {
    font-size: 1.4vw;
    margin-top: 1vw;
}

.recommended-flash-cards ul {
    margin-top: 2vw;
    margin-left: 1vw;
    color: var(--c2);
    font-size: 1.5vw;
    font-weight: 500;
    transition: color 0.2s ease;
}

.recommended-flash-cards li {
    margin-top: 0.5vw;
    position: relative;
    transition: transform 0.2s ease;
    transform-origin: left center;
}

.recommended-flash-cards li:hover {
    color: rgb(120, 164, 180);
    transform: scale(1.02);
}

/* Comprehensive Mobile Responsiveness */
@media screen and (max-width: 500px) {
  /* General Layout */
  body {
    overflow-x: hidden;
  }
  
  .content-container {
    width: 100%;
    padding: 0;
  }
  
  /* Header and Title */
  .title-box,
  [class*="title-box"] {
    width: 90vw !important;
    margin-left: 5vw !important;
    padding: 3vw !important;
    margin-top: 8.5vw !important;
  }
  
  .title-box h1 {
    font-size: 6vw !important;
  }
  
  .title-box h2 {
    font-size: 4vw !important;
  }
  
  /* Multiple Choice Page */
  .multiple-choice-page .question-container {
    width: 90vw;
    height: auto;
    padding: 4vw;
    margin-top: 15vw;
    margin-left: 5vw;
    border-radius: 5vw;
    margin-bottom: 3vw;
    font-size: 4.5vw;
  }
  
  .multiple-choice-page .options-container {
    width: 90vw;
    margin-left: 5vw;
    gap: 3vw;
    display: flex;
    flex-direction: column;
  }
  
  .multiple-choice-page .options-container .option-1,
  .multiple-choice-page .options-container .option-2,
  .multiple-choice-page .options-container .option-3 {
    width: 100%;
    height: auto;
    padding: 4vw;
    font-size: 4vw;
    border-radius: 3vw;
    margin: 0;
  }
  
  /* Remove hover effects for mobile */
  .multiple-choice-page .options-container .option-1:hover,
  .multiple-choice-page .options-container .option-2:hover,
  .multiple-choice-page .options-container .option-3:hover {
    color: white;
    background-color: var(--c2);
  }
  
  /* Progress Bar */
  .multiple-choice-page .progress-bar {
    width: 90vw;
    left: 5vw;
    height: 15vw;
    padding: 2vw;
    font-size: 2.5vw;
    bottom: 5vw;
    z-index: 100;
  }
  
  .multiple-choice-page .progress-bar .full-bar,
  .multiple-choice-page .progress-bar .completed-bar {
    width: 86vw;
    height: 3vw;
    margin-top: 2vw;
  }
  
  /* Test Results Page */
  .test-result-page .header {
    width: 90vw;
    margin-left: 5vw;
    font-size: 5vw;
    padding-bottom: 3vw;
    margin-top: 15vw;
  }
  
  .test-result-page .result-card {
    width: 90vw;
    height: auto;
    margin-left: 5vw;
    flex-direction: column;
    padding: 5vw;
  }
  
  .test-result-page .result-card .left-content {
    border-right: none;
    border-bottom: 3px solid var(--c2);
    width: 100%;
    height: auto;
    padding-bottom: 12vw;
    margin-bottom: 5vw;
  }
  
  .test-result-page .result-card .result-card-left-header {
    font-size: 4.5vw;
    margin-bottom: 12vw;
  }
  
  .test-result-page .progress-wheel {
    margin-left: auto;
    margin-right: auto;
    margin-top: 5vw;
    transform: scale(1.5);
  }
  
  .result-card-right-header h2 {
    font-size: 4vw;
  }
  
  .recommended-flash-cards ul {
    margin-top: 4vw;
    font-size: 4vw;
    padding-left: 0;
    list-style-position: inside;
  }
  
  .recommended-flash-cards li {
    margin-top: 2vw;
  }
  
  /* Intro Page */
  .multiple-choice-intro-page-card {
    width: 90vw;
    margin-left: 5vw;
    margin-top: 15vw;
    padding: 5vw;
  }
  
  .multiple-choice-intro-page-card-main-content {
    flex-direction: column;
  }
  
  .multiple-choice-intro-page-card-main-content-left,
  .multiple-choice-intro-page-card-main-content-right {
    width: 100%;
    padding: 3vw 0;
  }
  
  .multiple-choice-intro-page-card-main-content-left {
    border-right: none;
    border-bottom: 3px solid var(--c2);
    margin-bottom: 5vw;
  }
  
  .multiple-choice-intro-page-card-main-content-btn-1,
  .multiple-choice-intro-page-card-main-content-btn-2 {
    width: 100%;
    height: auto;
    padding: 4vw;
    font-size: 4vw;
    margin: 3vw 0;
  }
  
  .multiple-choice-intro-page-card-main-content-btn-1:hover,
  .multiple-choice-intro-page-card-main-content-btn-2:hover {
    background-color: var(--c2);
    color: white;
    border: none;
  }
  
  /* Navigation Buttons */
  .multiple-choice-page .next-btn,
  .multiple-choice-page .back-btn {
    width: 40vw;
    height: auto;
    padding: 3vw;
    font-size: 4vw;
    margin-top: 5vw;
  }
  
  .multiple-choice-page .next-btn {
    margin-left: 50vw;
  }
  
  .multiple-choice-page .back-btn {
    margin-left: 5vw;
  }
  
  /* Form elements and labels */
  .form-group, 
  .input-group {
    margin-bottom: 5vw;
    width: 90vw;
    margin-left: 5vw;
    clear: both;
  }
  
  /* Labels */
  label, 
  .label-text {
    display: block;
    margin-bottom: 2vw;
    font-size: 4vw;
  }
  
  /* Input fields */
  input, 
  select {
    width: 100%;
    padding: 3vw;
    font-size: 4vw;
    border-radius: 2vw;
  }
  
  /* Score display */
  .mark-container,
  [id*="mark-container"] {
    margin-top: 8vw;
    margin-bottom: 8vw;
    padding: 4vw;
    border-radius: 3vw;
    width: 90vw;
    margin-left: 5vw;
  }
  
  /* Buttons in the test interface */
  .action-button,
  .primary-button,
  [class*="linc"] {
    display: block;
    width: 90vw !important;
    margin: 3vw 5vw !important;
    padding: 4vw !important;
    font-size: 4.5vw !important;
    border-radius: 10vw !important;
    text-align: center;
  }
  
  /* Fix for overlapping elements */
  .container > * {
    clear: both;
  }
  
  /* Add more space at the bottom */
  .container {
    padding-bottom: 20vw;
  }
  
  /* Vertical layout for selection containers */
  .multiple-choice-intro-page-card-main-content-container {
    width: 90vw;
    flex-direction: column; /* Change from row to column */
    margin-top: 3vw;
    margin-left: 0;
    margin-right: 0;
  }
  
  /* Each section takes full width */
  .multiple-choice-intro-page-card-main-content-container > div {
    width: 100% !important;
    margin-bottom: 5vw;
  }
  
  /* Links to past papers container */
  .past-papers-container,
  .links-container,
  [class*="links-container"] {
    width: 100% !important;
    display: flex;
    flex-direction: column;
    margin-top: 5vw;
  }
  
  /* Individual links */
  .past-papers-container a,
  .links-container a,
  [class*="links-container"] a,
  [class*="linc"] {
    width: 100% !important;
    margin: 2vw 0 !important;
    padding: 4vw !important;
    font-size: 4vw !important;
    text-align: center;
    border-radius: 5vw !important;
  }
  
  /* Remove any horizontal layout */
  .row,
  .flex-row,
  [class*="row"],
  [class*="flex-row"] {
    flex-direction: column !important;
    width: 100% !important;
  }
  
  /* Ensure proper spacing between vertical elements */
  .row > *,
  .flex-row > *,
  [class*="row"] > *,
  [class*="flex-row"] > * {
    width: 100% !important;
    margin-bottom: 3vw !important;
  }
}