@font-face {
    font-family: 'Poppins';
    font-display: swap;
    src: url('../Poppins/Poppins-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

body{
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    border: none;
    background-color: #f7f7f7;
}

a{
    text-decoration: none;
}

.pretty_a{
    font-weight: bold;
    background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0) 50%, rgba(255,255,0,1) 50%, rgba(255,255,0,1) 100%)
}

button:hover{
    cursor: pointer;
}

.btn_white{
    background-color: #fff;
    color: #000;
}

#master_navigation{
float: left;
height: 100%;
width: 5%;
}

#master_content{
width: 95%;
height: 100%;
float:right;
}

#master_navigation {
    position: fixed;
    left: 0;
    top: 0;
    width: 60px;
    height: 100%;
    background-color: black; /* Example background color */
    z-index: 1000; /* Ensures the panel stays on top */
}

#master_navigation > div {
    height: 50%; /* Each section takes 50% of the height */
    width: 100%;
}

/*
#top_section {
    border-bottom: 1px grey solid;
}

#bottom_section {
}*/

#description-text {
    display: none;
    position: absolute;
    background-color: white;
    color: black;
    height: auto;
    width: 280px;
    max-width: 90vw;
    z-index: 100;
    padding: 16px 20px;
    border-radius: 15px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    top: 44px;
    right: 0;
}

#description-text.visible {
    display: block;
}

#helper {
    cursor: pointer;
}

#top-content ul{
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

#top-content li{
    float: left;
    padding: 20px 20px;
    background-color: green;
    margin-right: 15px;


}

#master_navigation #bottom_section img {
    width: 115px;
    height: auto;
    position: absolute;
    margin-left: -30px;
    bottom: 100px;
    line-height: 0px;
    transform: rotate(-90deg);
}

#master_navigation #top_section .arrow {
    width: 20px;
    height: 20px;
    position: absolute;
    margin-left: 20px;
    top: 100px;
    border: 1px solid #ffd500;
    border-width: 0px 5px 5px 0px;
}

#container{
    width: 90%;
    margin-left: auto;
    margin-right: auto;
}

#content{
    width: 90%;
    margin-top: 50px;
    margin-left: auto;
    margin-right: auto;
}

h1{
    font-weight: 300;
    font-size: 42px;
}

/* 176348db

b2b6c6

13756cf5
*/

#content-right{
    float: right;
    display: inline;
    width: 20%;
    height: 100%;
    color: black;
}

#title-desc{
    display: inline-block;
    width: 72%;
}

#main-title{
    display: inline-block;
    width: 50%;
}

#settings{
    width: 20%;
    float: right;
    display: flex;
    margin-top: 25px;
    position: relative;
}

.settings-options > img{
    width: 35px;
}

#order-selection{
    width: 100%;
    display: inline-block;
    border-left: 3px black solid;
    border-radius: 15px;
    background-color: rgb(248, 247, 247);
    color: black;
    }
    
ul{
    list-style-type: none;
    padding-inline-start: 0;
    padding: 5px;
}

li{
    text-decoration: none;
}

li.heading{
padding: 20px 10px;
font-weight: bold;
color: black;
}

li.option{
padding: 11px 25px;

}

li.option-dashboard{
    padding: 16px;
    border-radius: 15px;
    margin-top: 10px;
    color: #e5e5e5; 
    border-left: 3px black solid;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

input[type="radio"]:checked + label::after {
    /* Style changes for selected state */
    background: #000; /* Change the color */
  }

#content-left{
    float: left;
    width: 78%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.answer-option{
    padding: 16px 20px;
    margin-top: 15px;
    border-radius: 5px;
    float: left;
    background-color: #fff;
}

.answer-option:hover {
    /* background-color: rgb(140, 190, 244); */
    background-color: #f2af588d;
    cursor: pointer;
    }

#question-container {
    width:90%;
    float: left;
    margin-left: auto;
    min-height: 400px;
    margin-right: auto;
    margin-top: 20px;
    position: relative;
}

#question-form{
    display: flex;
    flex-direction: column;
}

#question-image{
    padding: 20px;
    text-align: center;
}

#progress {
    display: block;
    font-size: 12px;
    color: #888;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

#ID {
    font-size: 18px;
    color: #011235;
    font-weight: bolder;
}

#ID::after{
    content: ".";
}

#keyboard-hint {
    width: 90%;
    margin: 16px auto 0;
    font-size: 12px;
    color: #aaa;
    float: left;
}

kbd {
    display: inline-block;
    padding: 2px 6px;
    font-size: 11px;
    font-family: 'Poppins', sans-serif;
    border: 1px solid #ccc;
    border-radius: 3px;
    background: #f7f7f7;
    color: #555;
    margin: 0 2px;
}

#question {
    font-size: 18px;
    font-weight: bold;
}

.selected {
    background-color: #f2af58;
}

.correct {
    background-color: #54a180;
}

.incorrect {
    background-color: #d96464;
}

#percentage{
    background: #000;
}

#button-container{
    width: 90%;
    float: left;
    display: flex;
    margin-left: auto;
    margin-right: auto;
    margin-top: 45px;
    flex-direction: row;
    justify-content: space-between;
    align-items: stretch;
}

button{
    font-family: sans-serif;
    background-color: #000;
    color: #ffd500;
    font-weight: bold;
    padding: 16px 20px;
    border: none;
}

#next-button, #previous-button, #loadPreciseQuestion{
    color: white;
}

.arrow {
    border: solid #ffd500;
    border-width: 0 3px 3px 0;
    display: inline-block;
    padding: 3px;
  }
  
  .left {
    transform: rotate(135deg);
    -webkit-transform: rotate(135deg);
  }

  .right {
    transform: rotate(-45deg);
    -webkit-transform: rotate(-45deg);
  }

#loadPreciseQuestion{
    padding: 8px 16px;
}

#incorrect-questions-container {
    /* Style for the container */
    margin-top: 15px;
    min-height: 200px;
    height: fit-content;
    display: flex;
    flex-direction:row;
}

#incorrect-questions-list{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    margin-top: 5px;
}

.incorrect-question-link {
    cursor: pointer;
    color: #ffd500;
    background-color: black;
    padding: 12px;
    margin-right: 5px;
}

input[type="number"] {
    width: 45%; /* Width of the input field */
    padding: 5px; /* Padding inside the input field */
    border: 1px solid #ccc; /* Border of the input field */
    border-radius: 4px; /* Rounded corners */
    font-size: 16px; /* Font size */

}

input[type="number"]:focus {
    outline: none; /* Removes the default focus outline */
    border-color: #4d90fe; /* Changes border color when focused */
}

.settings-options{
    float: right;
    margin-left: 20px;
}

.float_left{
    float: left;
    width: 50%;
}

.float_right{
    float: right;
    width: 50%;
}

#zen{
    cursor: pointer;
}

#questions-order{
    display: none;
    visibility: 0;
}

#mobile-header-arrow{
    display: none;
}

#question-list-container {
    width: 100%; /* Adjust the width as necessary */
    padding: 20px; /* For some spacing around the container */
}

#question-list-container ul{
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    list-style-type: none;
    padding: 0;
}

#question-list-container ul li{
    width: 33%;
    cursor: pointer;
    box-sizing: border-box;
    margin: 1px;
    padding: 10px;
    background-color: rgb(192, 192, 192);
}

#question-list-container ul li:hover {
    background-color: #f2af58;
}

#question-list-container ul li.answered-question {
    background-color: #f2af58;
}

#question-list-container ul li.current-question {
    background-color: #000;
    color: #ffd500;
    font-weight: bold;
}

/* ── Evaluation summary ── */
#result-summary {
    text-align: center;
    padding: 48px 20px 36px;
    margin-bottom: 32px;
}

.verdict {
    font-size: 48px;
    font-weight: bold;
    letter-spacing: 4px;
    margin-bottom: 8px;
}

.verdict.pass { color: #54a180; }
.verdict.fail { color: #d96464; }

.score-display {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 16px;
    margin: 4px 0 24px;
}

.score-fraction {
    font-size: 52px;
    font-weight: 300;
    line-height: 1;
}

.score-pct {
    font-size: 22px;
    color: #888;
    font-weight: 300;
}

.score-bar-wrap {
    width: 100%;
    max-width: 520px;
    height: 14px;
    background: #e0e0e0;
    border-radius: 7px;
    overflow: hidden;
    margin: 0 auto 28px;
    display: flex;
}

.score-bar-correct {
    background: #54a180;
    height: 100%;
    transition: width 0.6s ease;
}

.score-bar-incorrect {
    background: #d96464;
    height: 100%;
    transition: width 0.6s ease;
}

.score-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 32px;
    font-weight: bold;
    line-height: 1;
}

.stat-label {
    font-size: 11px;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 4px;
}

.correct-color   { color: #54a180; }
.incorrect-color { color: #d96464; }
.unanswered-color{ color: #bbb; }

#evaluation-container{
    display: flex;
    flex-direction: column;
}

.question{
    display: flex;
    flex-direction: column;
    margin-bottom: 50px;
}

.question > p{
    font-size: 18px;
    font-weight: bold;
}

#donut-evaluation{
    width: 400px;
    height: 400px;
    margin-left: auto;
    margin-right: auto;
}

.timer_styling{
    font-size: 2vw;
}


/* ... (Keep other styles as they are but convert fixed sizes to relative sizes where appropriate) ... */

/* Responsive adjustments */
@media (max-width: 768px) { /* Adjust breakpoint as needed */

    #master_navigation {
        display: none;
        visibility: 0;
    }
    #master_navigation > div {
        height: 100%; /* Each section takes 50% of the height */
        width: 50%;
        }

    #top_section{
        float: left;
    }

    .timer_styling{
        font-size: 4vw;
        color: black;
    }

    #next-button, #previous-button, #submit-answer{
        margin-top: 5px;
    }

    #master_navigation #top_section .arrow{
        top: auto;
        position: relative;
    }

    #bottom_section{
        float: right;
    }

    #master_navigation #bottom_section img{
        top: auto;
        position: relative;
        transform: none;
        margin-left: auto;
        margin-right: auto;
        bottom: 0;
    }

    #master_content {
        width: 100%; /* Adjust content width */
        float: none;
        margin-left: auto;
        margin-right: auto;

    }

    #container{
        padding: none;
    }

    li.option-dashboard{
        padding: 14px 7px;
        flex: 1;
        margin: 4px;
        color: #e5e5e5;
        border-radius: 5px;
        border-left: none;
        display: flex;
        flex-direction: column;
        align-content: center;
        align-items: center;
    }

    #main-title{
        display: block;
        width: 100%;
        text-align: center;
        color: white;
    }
    
    #main-title > h1{
        font-size: 25px;
        font-weight: bold;
        margin-left: 0;
    }

    #settings{
        float: right;
        margin-top: 0px;
        width: 90%;
        margin-top: 33px;
        flex-direction: row;
        border-radius: 20px 0px 0px 20px;
        flex-wrap: wrap;
        background-color: #f7f7f7;
        align-content: space-around;
        justify-content: center;
        align-items: center;
    }

    .settings-options{
        z-index: 5;
        padding: 16px;
        position: relative;
    }

    .settings-options > img{
        width: 35px;
    }

    /* .settings-options::before{
        content: "";
        position: absolute;
        inset: 7px;
        border-radius: 60px;
        transform: translate(0px, 0px);
        z-index: -1;
        box-shadow: inset 1px -4px 11px #e5e5e5;
        background: linear-gradient(4deg, #a0a0a0, #dddddd);
        filter: blur(0px);
    } */

    #success-metrics > ul{
        display: flex;
        padding: 0;
        margin: 0;
        justify-content: space-between;
    }

    #question-container{
        float: none;
    }

    #questions-order{
        display: inline;
        visibility: 1;
    }

    #order-selection{
        display: none;
    }

    #mobile-header{
        background-color: #000000;
        color: #ffffff;
        padding-bottom: 50px;
        padding-top: 20px;
        border-radius: 0px 0px 0px 0px;
    }

    #mobile-header #container{
        width: 100%;
    }

    #mobile-header-arrow{
        display: block;
        position: absolute;
        top: 30px;
        left: 30px;
        color: white;
    }

    #mobile-header-arrow .arrow{
        border: solid #ffcc00;
        padding: 6px;
        border-width: 0px 3px 3px 0px;
    }

    #back-button{
        position: absolute;
        left: 0;
        top: 0;

    }
    

    #content{
        padding: 0;
        margin-top: 20px;

    }

    #content-left{
        display: flex;
        flex-direction: column;
    }

    #button-container{
        flex-direction: column;
    }

    #container{
        margin-top: 0px;
    }

    #title-desc, #content-right, #content-left {
        width: 100%; /* Stack content on small screens */
        float: none;
    }
    #order-selection, #success-metrics {
        border: none; /* Adjust or remove borders */
        margin: 10px 0;
    }
    .float_left, .float_right {
        width: 100%; /* Stack floated elements */
    }
    input[type="number"], #loadPreciseQuestion {
        width: 100%; /* Full width form elements */
    }
    #description-text {
        width: 75%; /* Adjust width of floating descriptions */
        left: 10%; /* Centering it */
        top: 20%; /* Positioning */
    }
}

/* Further adjustments for even smaller screens */
@media (max-width: 480px) {
    .settings-options, #question, .answer-option, button {
        font-size: 1em; /* Larger font size */
    }
    /* ... additional style adjustments ... */
}





:focus-visible { outline: 3px solid #8c6500; outline-offset: 3px; }
#quiz-status { line-height: 1.6; padding: 12px; }
button:disabled { opacity: .6; cursor: wait; }
.question-link, .answer-option { touch-action: manipulation; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
