 body {
     font-family: 'Inter', sans-serif;
     background: #f5f6fa;
     margin: 0;
     padding: 0;
     display: flex;
     flex-direction: column;
     min-height: 100vh;
     color: #222;
 }

 header {
     display: flex;
     justify-content: space-around;
     align-items: center;
     background: #fff;
     padding: 1rem 0;
     box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
     gap: 1rem;
     flex-wrap: wrap;
 }

 header div {
     text-align: center;
     font-weight: 600;
     font-size: 1rem;
     color: #555;
 }

 header div strong {
     display: block;
     font-size: 1.3rem;
     color: #1c7ed6;
     margin-top: 0.2rem;
 }

 main {
     flex: 0 0 auto;
     max-width: 2000px;
     margin: 2rem auto 10rem auto;
     padding: 2rem;
     background: #f5f6fa;
     display: flex;
     flex-direction: column;
     gap: 1.5rem;
     max-height: 70vh;
     overflow-y: auto;
 }


 .options {
     display: flex;
     flex-direction: column;
     gap: 1rem;
 }

 label {
     display: flex;
     align-items: center;
     cursor: pointer;
     background: #fff;
     border-radius: 12px;
     padding: 1.2rem 2rem;
     font-weight: 600;
     font-size: 1.2rem;
     color: #404040;
     transition: all 0.3s ease;
     box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
     border: none;
     min-width: 850px;
 }

 label:hover {
     border-color: #1c7ed6;
     background: #e7f0ff;
 }

 input[type="checkbox"] {
     display: none;
 }

 .option-letter {
     width: 60px;
     height: 60px;
     border-radius: 4px;
     background: #999;
     color: white;
     display: flex;
     align-items: center;
     justify-content: center;
     font-weight: 700;
     font-size: 2rem;
     margin-right: 1rem;
     flex-shrink: 0;
     transition: background 0.3s ease;
 }

 .question-content .question-image {
     width: 400px;
     height: auto;
     border-radius: 12px;
     box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
     margin-top: 1rem;
 }

 input[type="checkbox"]:checked+.option-letter {
     background: #fff59d;
     color: #222;
 }

 label:has(input[type="checkbox"]:checked) {
     background: #bbdefb;
     color: #222;
     border-color: #90caf9;
 }


 footer {
     display: flex;
     justify-content: center;
     gap: 2rem;
     margin-top: 2rem;
 }

 button {
     font-size: 1.2rem;
     font-weight: 600;
     padding: 0.9rem 2rem;
     border-radius: 12px;
     border: none;
     cursor: pointer;
     transition: background 0.3s ease, transform 0.2s ease;
 }

 button#laterBtn {
     background: transparent;
     border: 2px solid #ccc;
     color: #555;
 }

 button#laterBtn:hover {
     background: #eee;
     transform: scale(1.05);
 }

 button#submitBtn {
     background: #388e3c;
     color: white;
     border: none;
 }

 button#submitBtn:hover:not(:disabled):not(.inactive) {
     background: #2e7d32;
     transform: scale(1.05);
 }


 button#submitBtn:disabled {
     background: #999;
     cursor: not-allowed;
 }

 button#modifyBtn {
     color: #d32f2f;
     border: 2px solid #d32f2f;
     background: transparent;
 }

 button#modifyBtn:hover:not(:disabled):not(.inactive) {
     background: #fddede;
     transform: scale(1.05);
 }

 .home-btn {
     background: transparent;
     border: none;
     cursor: pointer;
     display: flex;
     align-items: center;
     justify-content: center;
     font-size: 2.2rem;
     color: #1c7ed6;
     margin-right: 1rem;
     transition: color 0.3s ease;
 }

 .home-btn:hover {
     color: #155bb5;
 }

 footer {
     position: fixed;
     bottom: 0;
     left: 0;
     width: 100%;
     background: #fff;
     padding: 2rem 2rem;
     box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.1);
     display: flex;
     justify-content: center;
     gap: 2rem;
     z-index: 1000;
 }

 footer button#laterBtn,
 footer button#modifyBtn,
 footer button#submitBtn {
     font-size: 1.3rem;
     padding: 1.2rem 2.5rem;
     border-radius: 8px;
     min-width: 330px;
     justify-content: center;
 }

 #timeRemaining {
     font-size: 2rem;
     color: #388e3c;
     font-weight: 700;
 }

 button.inactive {
     background: #ccc !important;
     color: #666 !important;
     border: none !important;
     cursor: not-allowed !important;
     transform: none !important;
     box-shadow: none !important;
 }


 .question-text {
     font-size: 1.5rem;
     font-weight: 600;
     margin: -3rem auto 2rem auto;
     padding: 1rem 1.5rem;
     max-width: 720px;
     color: #111;
     text-align: center;
     display: block;
 }

 .question-content {
     display: flex;
     justify-content: space-between;
     align-items: flex-start;
     gap: 2rem;
     flex-wrap: wrap;
 }

 .options {
     flex: 1;
 }

 @media (max-width: 575.98px) {
     body {
         padding: 0.5rem;
         font-size: 1rem;
     }

     main {
         margin: 1rem auto 6rem auto;
         padding: 1rem;
         gap: 1rem;
     }

     .question-content {
         flex-direction: column;
         align-items: center;
         gap: 1rem;
     }

     .question-content .question-image {
         order: -1;
         width: 100%;
         max-height: 40vh;
         object-fit: contain;
         margin-bottom: 1rem;
     }

     .options {
         width: 100%;
         max-height: 50vh;
         overflow-y: auto;
         display: flex;
         flex-direction: column;
         gap: 0.5rem;
     }

     label {
         font-size: 1rem;
         padding: 0.5rem 0.8rem;
         min-width: unset;
     }

     .option-letter {
         width: 50px;
         height: 50px;
         font-size: 2rem;
     }

     footer {
         display: flex;
         flex-direction: column;
         gap: 0.3rem;
         padding: 0.5rem;
         position: fixed;
         bottom: 0;
         left: 0;
         width: 100%;
         background-color: #fff;
         z-index: 1000;
         box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
     }

     footer .row-top {
         display: flex;
         width: 95%;
         gap: 0.25rem;
     }

     footer button#laterBtn,
     footer button#modifyBtn {
         flex: 1 1 auto;
         font-size: 0.9rem;
         padding: 0.4rem 0.5rem;
         min-width: 0;
     }

     footer button#submitBtn {
         width: 95%;
         font-size: 1rem;
         padding: 0.5rem 0.5rem;
     }

     .question-text {
         font-size: 1.3rem;
         margin: 0.5rem auto 0.8rem auto;
         padding: 0.3rem 0.5rem;
         text-align: center;
     }

     header {
         display: flex;
         flex-wrap: wrap;
         justify-content: space-between;
         align-items: center;
         gap: 0.3rem;
         padding: 0.5rem;
     }

     header .home-btn {
         flex: 0 0 auto;
         font-size: 2.7rem;
         padding: 0.2rem 0.8rem;
         min-width: 45px;
         min-height: 45px;
         border-radius: 5px;
     }

     #totalQuestions {
         font-size: 1rem;
         color: #1a73e8;
     }

     #questionsLeft {
         font-size: 1rem;
         color: #fbbc04;
     }

     #timeRemaining {
         font-size: 1.2rem;
         color: #34a853;
         font-weight: bold;
     }

     #correctAnswers {
         font-size: 1rem;
         color: #0f9d58;
     }

     #wrongAnswers {
         font-size: 1rem;
         color: #ea4335;
     }
 }