@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Lexend+Deca:wght@100..900&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css');
*, *::before, *::after {
    box-sizing: border-box;  
}
/* Id like to put the timer in this flexbox too */
:root {
    --background-gradient: linear-gradient(
        190deg,
        hsl(198deg 97% 85%) 0%,
        hsl(199deg 98% 90%) 10%,
        hsl(165deg 100% 95%) 20%,
        hsl(167deg, 69%, 95%) 30%,
        hsl(165deg 100% 95%) 40%,
        hsl(169deg 100% 90%) 55%,
        hsl(227deg 98% 84%) 100%
    );
    /* Optional additional variables */
    --background-size: cover;
    --background-position: center;
    --background-repeat: no-repeat;
}
.hero{
    line-height: 3.5rem;
    
}

.topImage {
   
    background-size: cover;
    background-position: center;
    height: 50vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
/* This is to point to a default image. The individual css files will take precedence 
    background-image: url('assets/images/B2ex1LP2.webp');
    */
}

.topTitle {
    color: white;
    font-size: 3.5rem;
    text-align: center;
    line-height: normal;
    font-weight: bolder;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    padding: 0 1em 0.25em 0.5em;
    align-self: flex-end;
}



#logo {
    margin-right: auto;
    background-color: rgb(97, 2, 121);
    -webkit-background-clip: text;
            background-clip: text;
    -webkit-text-fill-color: transparent;
}
.dropdown{
    position: relative;
    z-index: 100;
}
.dropdown-content{
    position: absolute;
    z-index:100 ;
}
.dropbtn {
    height: 1.4em;
}
body {
    font-family: 'Lexend Deca', 'Noto Sans', Helvetica, sans-serif;
    margin: 0; 
    line-height: 1.5rem; 
    margin-right: auto; 
    margin-left: auto; 
}
main {
    background-color: #D9F2FD;
    background: var(--background-gradient);
    font-family: 'Lexend Deca', Helvetica, sans-serif; 
    /* padding-top: 1em;  changed on 14Nov24 */
    padding-bottom: 5em;
}
#examPartsNavWrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0em 0em 1em 1.5em;
    padding: 0;
    flex-wrap: wrap;
    margin-left: auto;
    margin-right: auto;
    max-width: 75%;
    flex: 1;
}
#examSelect {
    width: auto;
    height: min-content;
    padding: 0.5em 0.5em 0.5em 0.5em;
    align-items: center;
    margin: auto 0 auto 5px;
    border: solid 2px rgb(97, 2, 121);
    border-radius: 10px;
}
#examSelect:hover {
    filter: drop-shadow( 0px 0px 7px #6564b6);
    cursor: pointer;
}
#examSelect h3{
    margin:0;
    color:rgb(97, 2, 121);
    line-height: 0.9em;
    font-size: 0.9rem;
   
}
#examSelect h3:hover {
    cursor: pointer;
}
#examPartsNav {
    display: flex;
    align-self: end;
    padding:0.2em ;
    margin: 0.3em;
    margin-left: 1em;
    gap: 2em;
    justify-content: space-between;
    z-index: 100;
}
#navAndTxtOpt{
    display: flex;
    flex-direction: column;
    max-width: 100%;
    padding: 0; 
}
#textAndOptions{
    color: rgb(77, 77, 77);
    position: relative;
    display: flex;
    border-radius: 20px;
    padding:0em;
    width: 100%;
    min-width:fit-content;
    height: 100vh;
    background-color: grey;
    font-size: 1rem;
    justify-content:space-between;
    /* box-shadow:0 5px 20px #6564b6 ; */
}

#textAndKeywords{
    display: flex;
    background: linear-gradient(white, white) padding-box,
                 linear-gradient(to bottom, #8ea5f6, #6564b6) border-box;
    border: 4px solid transparent;
    border-radius: 20px;
}
#text {
    background: linear-gradient(white, white) padding-box,
                 linear-gradient(to bottom, #8ea5f6, #6564b6) border-box;
    border: 4px solid transparent;
    border-radius: 20px;
    padding: 1em 2.5em;
    margin: 1em;
    height: 96%;
    flex: 1 1 auto;
    overflow: auto;
    scrollbar-width: thin;
    scrollbar-gutter: #511774;
    text-align: justify ;    
    line-height: 2.5rem;
    font-size: 1rem;
}
#keywords{
    display: flex;
    width:auto;
    flex-direction: column;
    margin-top: 5em;
    padding: 1em;
}
#options{
    margin: 1em 0 0 0;
    padding: 1em;
    padding-top: 0;
    overflow: scroll;
   
    border: 0em;
    flex: 1 0 0;
    overflow: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    /* scrollbar-width:none; */
    scrollbar-gutter: #511774;
    top: 0%;
    margin-top: 1.5em;
}
#navBar {
    padding: 1em 4em 0.2em;
    display: flex;
    gap: 2rem;
    /* background: linear-gradient(90deg, #B0C2FF, #00F0FF); */
    height: 100%;
} 
#nav{
    background-color: #511774;
    margin: 0.5em;
    padding-right: 0px;
    width: 2em;
}
.optBtnScrWrapper{
    display: flex;
    flex-direction: column;
    margin-bottom: 2em;
}
.option{
    margin: 0.5em 0;
    background: linear-gradient(white, white) padding-box,
    linear-gradient(to right, #B0C2FF, #b29afa) border-box;
    border: 4px solid transparent; 
    border-radius: 15px;
    padding: 0.5em 1.5em; 
    min-width: 15em;
    font-size: 0.9rem;
}
.question, #textAndOptions {
    background-color: var(--dark-backg, #ffffff);
}
.question {
    color: #4a4a4a;
    border: 5px solid #6e7178;
    border-radius: 15px;
    padding: 1em 2em;
    background: linear-gradient(white, white) padding-box,
                 linear-gradient(to right, #B0C2FF, #00F0FF) border-box;
    border: 4px solid transparent;
    margin-bottom: 1em;
    max-width: 100%;
    line-height: 1.8rem;
}
.questionExplanation{
    max-width: 35em;
}
.dropzone{
    font-size: 0.9rem;
}
.questionExplanation, .explanation {
    background-color: #d9f2fd72;
    padding: 1em;
    border-radius: 15px;
    color:#4a4a4a;
    margin-top: 2em;
}
#checkBtn, .checkBtn, .nextBtn {
    font-size: 16px; 
    height: auto;
    width: auto;
    position: static;
    align-self: center;
    margin: 0.8em;
    cursor: pointer;
    border-radius: 2em;
    padding: 0.5em 1em;
    color: rgb(155, 225, 255);
    background-color: #502f77;
    border: none;
    font-family: sans-serif;
    font-variant: small-caps;
    font-size: 1.5em;
    right: 15%;
    bottom: 5%;
    transition: background-color 0.3s ease, color 0.3s ease;
    text-decoration: none;
}
#highlightBtn {
    padding: 5px 10px;
    font-size: 14px;
    cursor: pointer;
    color: rgb(155, 225, 255);
    background-color: #502f77;
    border: none;
    border-radius: 2em;
    transition: background-color 0.3s ease, color 0.3s ease;
}
#removeHighlightBtn {
    padding: 5px 10px;
    font-size: 14px;
    cursor: pointer;
    position: absolute;
    z-index: 1000;
    color: rgb(155, 225, 255);
    background-color: #502f77;
    border: none;
    border-radius: 2em;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.scoresAndMore {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    flex-grow: 0.5; 
    background: linear-gradient(90deg, white, #D9F2FD) padding-box,
                linear-gradient(to right, #B0C2FF, #00F0FF) border-box;
    margin-bottom: 0.5em;
    margin-top: 1em;
    border: 4px solid transparent;
    border-radius: 14px;
}
#score, #score2 {
    background-color: #ffffff;
    min-width: 5em;
    max-width: 150px;
    padding: 1em;
    border-radius: 1em;
    height: auto;
    margin-bottom: 0.5em; 
    margin-left: auto;
    margin-right: auto;
    background: linear-gradient(white, white) padding-box,
    linear-gradient(to right, #B0C2FF, #b29afa) border-box;
    border: 4px solid transparent; 
    border-radius: 15px;
}
.highlightYellow{
    background-color: rgb(255, 247, 153);
}
.highlightExplanations {
    background-color: lightgreen;
    animation: fadeInLeftToRight 1s ease-in-out;
}

@keyframes fadeInLeftToRight {
    from {
        opacity: 0;
        transform: translateX(-100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
.hidden {
    display: none; 
}
.option{
    margin: 0.5em 0;
    background: linear-gradient(white, white) padding-box,
    linear-gradient(to right, #B0C2FF, #b29afa) border-box;
    border: 4px solid transparent; 
    border-radius: 15px;
    padding: 0.5em 1.5em; 
    min-width: 15em;
}
#keywords{
    display: flex;
    width:auto;
    flex-direction: column;
    margin-top: 5em;
    padding: 1em;
}
.option{
    margin: 0.5em 0;
    background: linear-gradient(white, white) padding-box,
    linear-gradient(to right, #B0C2FF, #b29afa) border-box;
    border: 4px solid transparent; 
    border-radius: 15px;
    padding: 0.5em 1.5em; 
    min-width: 15em;
    position: relative;
}
#keywords{
    display: flex;
    width:auto;
    flex-direction: column;
    margin-top: 5em;
    padding: 1em;
}
.correct {
    color: green;
}
.half{
    color: orange;
}
.wrong {
    color: palevioletred;
}
/* Highlight in yellow For Firefox 
::-moz-selection {
    background-color: rgba(255, 255, 0, 0.5);
    
}

/* Highlight in yellow For WebKit browsers (Chrome, Safari, Edge) 
 ::selection {
    background-color: rgba(255, 255, 0, 0.5);
    
} */
button:disabled {
    display: none;
} 
input[type="text"], .gap, textarea, input[type="email"] {
    background-color: rgb(188, 238, 255);
    border-radius: 1.5em;
    border-color: white;
    height: 2em;
    padding: 0.5em 0.9em;
    font-size: max(1em, 16px); /* This ensures the font size is at least 16px but can be larger if the screen is larger. iOS zooms automatically if its smaller than 16px */
    max-width: 10em;
    min-width: 6em;
}
.input-container {
    position: relative; /* Necessary for positioning the ::after element */
    display: inline-block; /* Allows the container to size to the input */
    z-index: 0;
}

/* Adding the ::after pseudo-element */
.input-container::after {
    content: attr(data-suffix); /* Uses the data-suffix attribute for dynamic content */
    position: absolute;
    right: 1.5em; /* Adjust as needed to position the suffix */
    top: 50%;
    transform: translateY(-50%);
    color: #555; /* Suffix color */
    font-size: 0.9em; /* Suffix font size */
    pointer-events: none; /* Allows clicks to pass through */
}

/* Adjust input padding to prevent text overlapping with suffix */
.input-container input {
    padding-right: 3em; /* Adjust based on suffix width */
}

/*  */
/* hover states */
/*  */

.option:hover, .questions:hover{
    background: linear-gradient(white, white) padding-box,
                 linear-gradient(to right, #B0C2FF, #00F0FF) border-box;
    box-shadow: 0 0 15px #B0C2FF;
    animation: changeColorRUE 0.35s forwards;
}
#checkBtn:hover, .checkBtn:hover, .nextBtn:hover, #highlightBtn:hover, #removeHighlightBtn:hover{
    
    border: 1px solid rgb(217, 242, 253);
    background-color: rgb(155, 225, 255);
    color: #502f77;
}
input[type="radio"]:hover, label:hover{
cursor: pointer;
}
label:hover{
    color: black;
    text-decoration: underline;
}
.flagProblemBtn {
    display: none;
}
.highlightYellow:hover {
    cursor: pointer;
    background-color: gold;
}
.flagProblemBtn:hover {
    
    background-color: #512f7700;
    color: rgb(187, 39, 39);
    text-decoration: underline;
}
.showExplanationBtn {
    font-family: 'Lexend Deca', 'Noto Sans', Helvetica, sans-serif;
    font-size: 0.9em;
    padding: 0.5em 1em;
    margin: 0.5em 0;
    background-color: rgb(155, 225, 255);
    border: 1px solid rgb(217, 242, 253);
    border-radius: 10px;
    color: #502f77;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.showExplanationBtn.disabled {
    display: none;
}
.showExplanationBtn:hover {
    background-color: #502f77;
    color: rgb(155, 225, 255);
}
.blur {
    filter: blur(7px);
    pointer-events: none; /* Prevent interactions with the blurred content */
}

/*  */
/* styling for RUEp4 and listenings */
/*  */

audio{
    width: 100%;
    height: 1.5em;
    top: 0.5em;
    left: 1em;
    right: 1em;
}
#SbAndPBAndScoreWrp, #progressBarsAndScoreWrapper{
    z-index: 90;
    position: sticky;
    top: 2em;
    
}
#progressBarsAndScoreWrapper{
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
    gap: 1em;
    z-index: 0;
}
#progressBars {
    
    display: flex;
    flex-grow: 1;
    gap: 1em;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    justify-content: space-between;
    padding: 1em 1em;
    background-color: rgb(255, 255, 255);
    background: linear-gradient(white, white) padding-box,
    linear-gradient(to bottom, #8ea5f6, #6564b6) border-box;    
    border: 4px solid transparent;
    border-radius: 1em;
}
.progressBar {
    background-color: whitesmoke;
    border-radius: 1em;
    flex-grow: 1;
    text-align: center;
    line-height: 0px;
    font-size: 0.8rem;
}
.progressBarCorrect {
    background-color: green;
}
.progressBarHalf{
    background-color: orange;
}
.progressBarWrong {
    background-color: palevioletred;
}
.questions {
    background: linear-gradient(white, white) padding-box,
    linear-gradient(to right, #B0C2FF, #b29afa) border-box;
    border: 4px solid transparent; 
    border-radius: 15px;
    padding: 2em;
    margin-top: 3em;
    width: 100%;
    margin-bottom: 4em;
}
#score2{
    width:auto;
    min-width: 10rem;
    max-width: none;
    line-height: 0px;
    padding: 1.4em;
    margin: 0;
    align-content: center;
    line-height: 0.8rem;
    font-size: 1rem;
}
#checkBtn:disabled {
    display: none;
}
.fa-check {
    color: green;
    font-size: 1.6rem;
    margin: 0px;
}
.fa-xmark {
    color: red;
    font-size: 1.6rem;
}

/*  */
/* keyframes for gradient animation on hover for options */
/*  */

@keyframes changeColorRUE {
    0% {
        background: linear-gradient(white, white) padding-box,
                    linear-gradient(to right, #B0C2FF, #b29afa) border-box;
    }
    10% {
        background: linear-gradient(white, white) padding-box,
                    linear-gradient(to right, #B0C2FF, #ab8bf2) border-box;
    }
    20% {
        background: linear-gradient(white, white) padding-box,
                    linear-gradient(to right, #B0C2FF, #a57ced) border-box;
    }
    30% {
        background: linear-gradient(white, white) padding-box,
                    linear-gradient(to right, #B0C2FF, #9d6fe7) border-box;
    }
    40% {
        background: linear-gradient(white, white) padding-box,
                    linear-gradient(to right, #B0C2FF, #9662e2) border-box;
    }
    50% {
        background: linear-gradient(white, white) padding-box,
                    linear-gradient(to right, #B0C2FF, #8f60cf) border-box;
    }
    60% {
        background: linear-gradient(white, white) padding-box,
                    linear-gradient(to right, #B0C2FF, #7b91e8) border-box;
    }
    70% {
        background: linear-gradient(white, white) padding-box,
                    linear-gradient(to right, #B0C2FF, #6bb1f5) border-box;
    }
    80% {
        background: linear-gradient(white, white) padding-box,
                    linear-gradient(to right, #B0C2FF, #4fbfff) border-box;
    }
    90% {
        background: linear-gradient(white, white) padding-box,
                    linear-gradient(to right, #B0C2FF, #1ed8ff) border-box;
    }
    100% {
        background: linear-gradient(white, white) padding-box,
                    linear-gradient(to right, #B0C2FF, #00F0FF) border-box;
}
}
@keyframes changeColorLST {
    0% {
        background: linear-gradient(white, whitesmoke) padding-box,
                    linear-gradient(to right, #36e7c4, rgb(73, 156, 134)) border-box;
    }
    10% {
        background: linear-gradient(white, whitesmoke) padding-box,
                    linear-gradient(to bottom right, #36e7c4, rgb(81, 168, 144)) border-box;
    }
    20% {
        background: linear-gradient(white, whitesmoke) padding-box,
                    linear-gradient(to bottom right, #36e7c4, rgb(90, 180, 154)) border-box;
    }
    30% {
        background: linear-gradient(white, whitesmoke) padding-box,
                    linear-gradient(to bottom right, #36e7c4, rgb(99, 191, 164)) border-box;
    }
    40% {
        background: linear-gradient(white, whitesmoke) padding-box,
                    linear-gradient(to bottom, #36e7c4, rgb(107, 203, 174)) border-box;
    }
    50% {
        background: linear-gradient(white, whitesmoke) padding-box,
                    linear-gradient(to bottom, #36e7c4, rgb(116, 215, 184)) border-box;
    }
    60% {
        background: linear-gradient(white, whitesmoke) padding-box,
                    linear-gradient(to bottom, #36e7c4, rgb(124, 219, 193)) border-box;
    }
    70% {
        background: linear-gradient(white, white) padding-box,
                    linear-gradient(to bottom, #36e7c4, rgb(124, 219, 193)) border-box;
    }
    80% {
        background: linear-gradient(white, white) padding-box,
                    linear-gradient(to bottom, #36e7c4, rgb(124, 219, 193)) border-box;
    }
    90% {
        background: linear-gradient(white, white) padding-box,
                    linear-gradient(to bottom, #36e7c4, rgb(124, 219, 193)) border-box;
    }
    100% {
        background: linear-gradient(white, white) padding-box,
                    linear-gradient(to bottom, #36e7c4, rgb(119, 225, 175)) border-box;
    }
}

/*  */
/* Media query for small laptop screens  */
/*  */

@media (max-width: 1200px) {
   
    #textAndKeywords{
        flex-direction: column;
        max-width: 100%;
    }
    #keywords{
        margin: 0.2em 0 0 0;
        padding-top: 0;
        align-items: center;
        overflow-x: scroll;
        
    }
    #examPartsNavWrapper{
        max-width: 85%;
    }
    .hero{
        line-height: 4rem;
    }
}
/* Media query for Tablets and iPads 
   */
    @media  (max-width: 768px){
        #examPartsNavWrapper{
            max-width: 95%;
        }
    #examPartsNav{
        gap: 1em;
    }
    .option{
        min-width: auto;
        overflow: auto;
    }
    #progressBarsAndScoreWrapper, #SbAndPBAndScoreWrp{
        top: 0em;
    }
    
    .correct{
       /* max-height: 15em; 
       THIS WAS STOPPING THE CORRECT EXPLANATION GROWING WHEN YOU CLICK WHY, BUT WHY WAS IT HERE? DELETE AFTER FEB IF NOT NEEDED*/
        overflow:scroll;
    }
    #text{
        height: 100%;
        margin: 0;
        padding: 1em;
        line-height: 2em;
    }
    #examSelect h3{
        
        font-size: 0.6rem;
       
    }
}
/* Phones  */
@media (max-width: 500px) {
    h4{
        margin: 5px;
        font-size: 0.8rem;
    }
    h2{
        font-size: 1.2rem;
    }
    h3{
        font-size: 0.9rem;
    }
    p, #text, .radioBtns{
      font-size: 0.8rem;  
    
    }

    .questions {
        
        padding: 1em;
        
    }
    .question{

        font-size: 1rem;
        line-height: 1.3em;  /* changed on 31Jan25  for RUEp4 see how it affects other parts */
    }
    #examPartsNavWrapper{
        max-width: 100%;
        margin: 0.5em 0;
    }
    #options{
        margin: 0;
        padding: 0;
    }
    .option{
        padding: 1em;
    }
    .explanation{
        margin:0px;
    }
    .flagProblemBtn{
        padding:0px;
        margin:0px;
    }
    .optBtnScrWrapper {
        padding: 0;
        margin-left: 0.5em;
    }
    input[type="text"] {
      
        font-size: 1em;
        min-width: 6em;
    
    }
    .progressBar {
        width: 1.5em;
        height: 1.5em;
        min-width: 1.5em;
        max-width: 1.5em;
        min-height: 1.5em;
        max-height: 1.5em;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.7rem;
        line-height: normal;
        aspect-ratio: 1/1;
        flex: 0 0 1.5em;
        padding: 0;
        margin: 0 0.1em;
    }
    #progressBars {
        padding: 0.3em;
        gap: 0.1em;
        flex-wrap: wrap;
        width: auto;
    }
    
    #score2 {
        font-size: 0.8rem;
        padding: 0.8em;
        min-width: auto;
    }
}

/* Tips System Styles */
.tips-icon {
    cursor: pointer;
    position: relative;
    font-size: 0.9em;
    transition: transform 0.3s ease;
}

.tips-icon:hover {
    transform: scale(1.2);
}

.tooltip {
    position: absolute;
    background: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    white-space: nowrap;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.tips-icon:hover .tooltip {
    opacity: 1;
    visibility: visible;
}

.tips-panel {
    position: fixed;
    right: -400px;
    top: 50%;
    transform: translateY(-50%);
    width: 350px;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(
                    190deg,
                    hsl(198deg 97% 85%) 0%,
                    hsl(227deg 98% 84%) 100%
                ) border-box;
    border: 2px solid transparent;
    border-radius: 10px;
    padding: 20px;
    transition: right 0.5s ease;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    z-index: 1000;
}

.tips-panel.active {
    right: 20px;
}

.tips-content {
    color: #545454;
}

.tips-content h3 {
    color: rgb(80, 47, 119);;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.tips-content ul {
    list-style-type: none;
    padding: 0;
}

.tips-content li {
    margin: 10px 0;
    padding-left: 20px;
    position: relative;
    font-size: 0.9rem;
}

.tips-content li:before {
    content: "•";
    color: rgb(80, 47, 119);
    position: absolute;
    left: 0;
}

.tips-buttons {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    justify-content: flex-start;
}

.close-tips {
    margin-top: 0;
    padding: 8px 15px;
    font-size: 14px;
    background: linear-gradient(to right, rgb(80, 47, 119), rgb(60, 35, 89));
    border: none;
    border-radius: 5px;
    color: white;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.close-tips:hover {
    opacity: 0.9;
}

.more-tips-btn {
    padding: 8px 15px;
    background: white;
    border: 2px solid rgb(80, 47, 119);
    border-radius: 5px;
    color: rgb(80, 47, 119);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 14px;
}

.more-tips-btn:hover {
    background: rgb(80, 47, 119);
    color: white;
}