:root {
    --sideNavActiveColor: #d2e7ff;
    --btnBorderRadius: 18px;
    --btnColor: #6060be;
    --btnColorActive: #3c3c76;
    --iconWidth: 24px;
    --iconHeight: 24px;
}

@font-face {
    font-family: 'Roboto';
    src: url('Roboto/GoogleSans-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: fallback;
    }

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Roboto !important;
}

p {
    margin-block-start: 1em;
    margin-block-end: 1em;
}

body {
    font-family: Roboto !important;
    height: 100vh;
    overflow: hidden;
}

.content {
    background: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: none;
    display: flex;
    flex-direction: column;
    transition: left 0.3s ease, width 0.3s ease;
}


.content-header {
    box-shadow: 0 2px 8px rgba(123, 95, 255, 0.3);
    background: linear-gradient(90deg, #d6c0ff, #e9d7ff, #7b5fff, #9a76ff);
    background-size: 400% 400%;
    animation: purpleGradient 12s ease infinite;
    color: #fff;
    text-shadow: 0 0 6px rgba(123, 95, 255, 0.6);
    padding: 15px 20px;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: auto;
    min-height: 70px;
    flex-wrap: wrap;
}
.content-header button {
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    margin-left: 10px;
    border: none;
    background: none;
    cursor: pointer;
}

@media (max-width: 768px) {
    .content-header {
        padding: 12px 15px;
        font-size: 16px;
        min-height: 60px;
    }
    .content-header button {
        width: 40px;
        height: 40px;
        margin-left: 8px;
    }
}

@media (max-width: 480px) {
    .content-header {
        padding: 10px 12px;
        font-size: 14px;
        min-height: 55px;
    }
    .content-header button {
        width: 36px;
        height: 36px;
        margin-left: 5px;
    }
}
.content-header button:hover {
    background: var(--sideNavActiveColor);
}

.content-header button span.icon-container-header svg {
    width: 32px;
    height: 32px;
    fill: #333;
    display: inline-flex;
}

.ripple-btn header-btn {
    transform: translateY(2px);
}
.content-main {
    overflow-y: auto;
    padding: 40px 50px 80px 50px;
    height: calc(100vh - 130px);
    max-width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}
@media (max-width: 1024px) {
    .content-main {
        padding: 30px 30px 90px 50px;
        height: calc(100vh - 130px);
    }
}

@media (max-width: 768px) {
    .content-main {
        padding: 20px 20px 20px 20px;
        height: calc(100vh - 130px);
        min-height: auto;
    }
}

@media (max-width: 480px) {
    .content-main {
        padding: 15px 15px 80px 15px;
        height: calc(100vh - 130px);
        min-height: auto;
    }
}

/* width */
.content-main::-webkit-scrollbar {
  width: 8px;
}

/* Track */
.content-main::-webkit-scrollbar-track {
  opacity: transparent;
}

/* Handle */
.content-main::-webkit-scrollbar-thumb {
  background: transparent;
}

/* Handle on hover */
.content-main::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #9a76ff, #7b5fff);
    border-radius: 2px;
}
.content-main::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #b89fff, #9a76ff);
  }


.content-footer {
    box-shadow: 0 2px 8px rgba(123, 95, 255, 0.3);
    background: linear-gradient(90deg, #d6c0ff, #e9d7ff, #7b5fff, #9a76ff);
    background-size: 400% 400%;
    animation: purpleGradient 12s ease infinite;
    color: #fff;
    text-shadow: 0 0 6px rgba(123, 95, 255, 0.6);
    text-align: left;
    padding: 15px 20px;
    height: auto;
    min-height: 60px;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    transition: left 0.3s ease, width 0.3s ease;
}
@media (max-width: 768px) {
    .content-footer {
        padding: 12px 15px;
        min-height: 70px;
    }
}
@media (max-width: 480px) {
    .content-footer {
        padding: 10px 12px;
        
        font-size: 12px;
    }
}

nav {
    background: #f5f5f5ab;
    width: 320px;
    position: fixed;
    top: 70px;
    bottom: 60px;
    left: 0;
    display: none;
    flex-direction: column;
    border-right: 1px solid #dddddd81;
    background-size: 400% 400%;
    animation: purpleGradient 15s ease infinite;
    z-index: 1001;
}

.nav-header {
    background: linear-gradient(90deg, #d6c0ff, #e9d7ff, #7b5fff, #9a76ff);
    background-size: 400% 400%;
    animation: purpleGradient 12s ease infinite;
    color: #fff;
    padding: 15px 20px;
    height: auto;
    min-height: 70px;
    font-size: 18px;
    text-align: left;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .nav-header {
        min-height: 60px;
        font-size: 16px;
        padding: 12px 15px;
    }
}

@media (max-width: 480px) {
    .nav-header {
        min-height: 55px;
        font-size: 14px;
        padding: 10px 12px;
    }
}

.nav-main {
    flex: 1;
    overflow-y: auto;
    padding: 0px 15px 0px 20px;
    margin-right: 2px;
}

/* width */
.nav-main::-webkit-scrollbar {
  width: 4px;
}

/* Track */
.nav-main::-webkit-scrollbar-track {
    background: transparent;
}

/* Handle */
.nav-main::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #9a76ff, #7b5fff);
    border-radius: 2px;
}

/* Handle on hover */
.nav-main::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #b89fff, #9a76ff);
}

.nav-main h3 {
    margin: 10px 0;
    font-size: 16px;
    color: #fff;
    text-transform: uppercase;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}
@media (max-width: 768px) {
    .nav-main h3 {
        font-size: 14px;
        margin: 8px 0;
        color: #444;
    }
}

@media (max-width: 480px) {
    .nav-main h3 {
        font-size: 12px;
        color: #444;
    }
}

.nav-main h3:hover {
    text-shadow: 0 0 8px #b399ff, 0 0 16px #7b5fff;
    color: #9a76ff;
}

.nav-main h3 .icon-container {
    margin-right: 8px; /* Space between the icon and the text */
    width: var(--iconWidth); /* Icon size */
    height: var(--iconHeight); /* Icon size */
}

.nav-main ul {
    list-style: none;
    margin-bottom: 20px;
    padding: 0;
}

.nav-main ul li {
    margin-bottom: 10px;
}

.nav-main ul li button {
    font-size: 16px;
    width: 100%;
    text-align: left;
    border: 1px solid #555;
    color: #fff;
    text-decoration: none;
    display: flex;
    flex-wrap: wrap;
    padding: 10px 8px;
    background: #4a4a4a;
    border-radius: var(--btnBorderRadius);
    cursor: pointer;
    transition: all 0.3s ease;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

@media (max-width: 768px) {
    .nav-main ul li button {
        border: 1px solid #e6e6e6;
        color: #333;
        background: rgba(230, 230, 230, 0.7);
    }
}

.nav-main ul li button:hover {
    /* background: #ccc; */
    background: linear-gradient(90deg, #b399ff, #7b5fff, #9a76ff);
    color: #fff;
    transform: scale(1.05);
    box-shadow: 0 0 12px rgba(155, 118, 255, 0.7), 0 0 20px rgba(123, 95, 255, 0.5);
    border: 1px solid #fff;
    text-shadow: 0 0 6px #9a76ff, 0 0 12px #7b5fff;
}

.nav-footer {
    box-shadow: -2px -1px 2px #bebebe;
    background: linear-gradient(90deg, #d6c0ff, #e9d7ff, #7b5fff, #9a76ff);
    background-size: 400% 400%;
    animation: purpleGradient 12s ease infinite;
    color: #fff;
    text-align: center;
    padding: 15px 20px;
    min-height: 60px;
}
.nav-footer svg {
    cursor: pointer;
}

.quiz-icon-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 8px; /* Space between icon and text */
}

/* SVG inside icon-container */
.quiz-icon-container svg {
    width: var(--iconWidth); /* Icon size */
    height: var(--iconHeight); /* Icon size */
    fill: #333;
}

/* Ripple effect */
.ripple-btn {
    position: relative;
    overflow: hidden;
    border-radius: var(--btnBorderRadius);
}

.ripple {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    background-color: rgba(43, 159, 235, 0.5);
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

@keyframes purpleGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Create Exam Base button style */
.create_exam_md {
    display: flex;
    margin: 0;
    height: 50px;
    align-items: center;
    font-size: 16px;
    justify-content: center;
    border: none;
    border-radius: 100px;
    background-color: rgb(255, 255, 255);
    background: linear-gradient(45deg, #7b5fff, #9a76ff, #d6c0ff);
    background-size: 300% 300%;
    animation: purpleGradient 10s ease infinite;
    color: #fff;
    /* box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px, rgba(60, 64, 67, 0.15) 0px 1px 3px 1px; */
    box-shadow: 0 0 8px rgba(123, 95, 255, 0.6);
    padding: 0 15px;
    cursor: pointer;
    /* transition: 0.3s all, box-shadow 0.4s; */
    transition: all 0.3s ease, box-shadow 0.4s ease, transform 0.2s ease;
    /* transition: 0.3s background; */
}

.create_exam_md:hover {
    /* box-shadow: 0 0 15px rgba(123, 95, 255, 0.8), 0 0 30px rgba(155, 118, 255, 0.5); */
    background: linear-gradient(90deg, #b399ff, #7b5fff, #9a76ff);
    background-size: 400% 400%;
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(155, 118, 255, 0.8), 0 0 25px rgba(123, 95, 255, 0.6);
    border: 1px solid #fff;
    color: #fff;
}

.create_exam_md:active {
    background: #dbdbdb;
}

.create_exam_md .list_icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
}

.create_exam_md .description {
    font-size: 16px;
    white-space: nowrap;
}

/* AlertDialog Design */
.alertDialogWindow {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    z-index: 99;
    top: 0px;
    left: 0px;
    background: rgba(0,0,0,0.5);
    width: 100%;
    height: 100%;
    overflow: hidden;
    padding: 20px;
    box-sizing: border-box;
}

.alertDialogFirstCon {
    background: none;
    position: fixed;
    top: 50%;
    left: 50%;
    width: 90%;
    height: 450px;
    transform: translate(-50%, -50%);
    padding: 40px;
    overflow-x: hidden;
    overflow-y: auto;
}
@media (max-width: 480px) {
    .alertDialogFirstCon {
        width: 95%;
        max-width: none;
    }
}


.alertDialogCon {
    background: linear-gradient(135deg, #f3e8ff, #d6c0ff, #7b5fff);
    background-size: 400% 400%;
    animation: purpleGradient 12s ease infinite;
    width: auto;
    height: auto;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #7b5fff;
    box-shadow: 0 0 20px rgba(123, 95, 255, 0.5), 0 16px 24px rgba(75, 44, 145, 0.3);
    box-sizing: border-box;
    overflow: visible;
}
@media (max-width: 480px) {
    .alertDialogCon {
        padding: 15px;
    }
}
@keyframes alertDialog {
  0% {
    top: -200%;
    opacity: 0.5;
  }
  100% {
    top: 50%;
    opacity: 1;
  }
}

.alerDialogTitle {
  font-weight: bold;
  color: #333;
  padding-bottom: 10px;
  text-shadow: none;
  font-size: 1.8em;
}

.alertDialogMessage {
    font-size: 16px;
    color: gray;
    margin-bottom: 20px;
    text-shadow: none;
    line-height: 1.5;
    background: transparent;
    padding: 0;
    margin: 0 0 20px 0;
  }

.alertDialogButtonCon {
    text-align: center;
    margin-top: 15px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.alertDialogButtonCon button {
    outline: none;
    border: 1px solid #38c;
    text-shadow: none;
    background: white;
    padding: 10px 20px;
    color: #38c;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    min-height: 40px;
    font-size: 14px;
    transition: all 0.2s ease;
    z-index: 100;
    position: relative;
}

.alertDialogButtonCon button:hover {
    background: #38c;
    color: white;
}
@media (max-width: 480px) {
    .alerDialogTitle {
        font-size: 1.3em;
        padding-bottom: 8px;
    }
    .alertDialogMessage {
        font-size: 14px;
        margin-bottom: 15px;
        line-height: 1.4;
    }
    .alertDialogButtonCon {
        margin-right: 0;
    }
    .alertDialogButtonCon button {
        padding: 8px 12px;
        min-height: 40px;
        font-size: 13px;
    }
}

/* Modal Menu */
.menu_modal {
    display: block;
    background: none;
    position: fixed;
    top: 48%;
    right: -49%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    padding: 40px;
    overflow-x: hidden;
    overflow-y: auto;
    z-index: 20;
    border-radius: 20px;
}

.modal-content {
    position: absolute;
    right: 10px;
    width: auto;
    min-width: 250px;
    max-width: 315px;
    border: 1px solid #7b5fff;
    background: linear-gradient(135deg, #d6c0ff, #f3e8ff, #7b5fff, #9a76ff);
    background-size: 400% 400%;
    animation: purpleGradient 15s ease infinite;
    box-shadow: 0 0 20px rgba(123, 95, 255, 0.5), 0 8px 25px rgba(75, 44, 145, 0.3);
    border-radius: 20px;
    text-align: left;
}

.modal-content a {
    display: block;
    background: #ffffff;
    text-decoration: none;
    text-align: left;
    padding: 16px;
    width: 100%;
    border-radius: 20px;
    color: black;
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
}
@media (max-width: 480px) {
    .modal-content a {
        padding: 12px;
        font-size: 14px;
    }
}

.modal-content a:hover {
    background: var(--sideNavActiveColor);
}

/* Question and Choices Container their design */
.instruction_con {
    background: none;
    border: none;
    padding: 20px 20px 5px 0;
    border-radius: 10px;
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    margin-top: -20px;
    margin-bottom: 19px;
    box-sizing: border-box;
}
@media (max-width: 768px) {
    .instruction_con {
        padding: 15px 15px 5px 0;
    }
}

@media (max-width: 480px) {
    .instruction_con {
        padding: 10px 10px 5px 0;
    }
}

.question_con {
    border: 1px solid #b999ff;
    box-shadow: 0 0 10px rgba(123, 95, 255, 0.4), 0 4px 20px rgba(123, 95, 255, 0.2);
    background: linear-gradient(145deg, #f3e8ff, #d6c0ff, #e9d7ff, #9a76ff);
    background-size: 400% 400%;
    animation: purpleGradient 20s ease infinite;
    padding: 20px;
    border-radius: 10px;
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    box-sizing: border-box;
}
@media (max-width: 768px) {
    .question_con {
        padding: 15px;
        border-radius: 8px;
    }
}

@media (max-width: 480px) {
    .question_con {
        padding: 12px;
        border-radius: 6px;
    }
}

.question {
    font-size: 18px !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
}
@media (max-width: 768px) {
    .question {
        font-size: 16px !important;
    }
}

@media (max-width: 480px) {
    .question {
        font-size: 14px !important;
    }
}

.choices_con {
    border: none;
    margin-top: 20px;
}

.choices {
    font-size: 20px !important;
    border: 1px solid lightgray;
    padding: 10px 8px;
    border-radius: 10px;
    margin: 8px 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    display: block;
    width: 100%;
    text-align: left;
    box-sizing: border-box;
}
@media (max-width: 768px) {
    .choices {
        font-size: 16px !important;
        padding: 8px 6px;
    }
}

@media (max-width: 480px) {
    .choices {
        font-size: 14px !important;
        padding: 6px 5px;
        margin: 5px 0;
    }
}
.choices:hover {
    border: 1px solid gray;
    padding: 5px;
    border-radius: 10px;
    margin: 5px;
    cursor: pointer;
    border-color: #9a76ff;
    /* background: linear-gradient(145deg, #f3e8ff 0%, #d6c0ff 100%); */
    color: #2b003a;
    /* transform: scale(1.03); */
    transition: 0.2s all;
    transform: scale(1.04);
    box-shadow: 0 0 12px rgba(155, 118, 255, 0.6), 0 0 20px rgba(123, 95, 255, 0.4);
    background: linear-gradient(145deg, #f3e8ff, #d6c0ff, #9a76ff);
    background-size: 400% 400%;
    animation: purpleGradient 8s ease infinite;
}

.submit_question {
    margin: 10px 5px 0 0;
    width: auto;
    border-top: 1px solid lightgray;
    text-align: right;
    background: none;
    padding: 10px 0 0 0;
}

.submit_question button {
    /* background: var(--btnColor);
    color: white; */
    background: linear-gradient(45deg, #7b5fff, #9a76ff, #d6c0ff);
    background-size: 300% 300%;
    animation: purpleGradient 10s ease infinite;
    color: #fff;
    box-shadow: 0 0 8px rgba(123, 95, 255, 0.6);
    padding: 10px;
    border: none;
    border-radius: var(--btnBorderRadius);
    cursor: pointer;
    /* box-shadow: 0 0 8px rgba(123, 95, 255, 0.6); */
    transition: 0.3s all, box-shadow 0.4s;
}

.submit_question button:hover {
    box-shadow: 0 0 15px rgba(123, 95, 255, 0.8), 0 0 30px rgba(155, 118, 255, 0.5);
}

.submit_question button:active {
    background: var(--btnColorActive);
    color: white;
    padding: 10px;
}

.question_counter_con_and_timer {
    margin: 10px 5px 0 0;
    width: auto;
    border-bottom: 1px solid lightgray;
    text-align: left;
    background: none;
    padding: 0 0 10px 0;
    margin: 0 0 10px 0;
}

.timer {
    margin-top: 0;
    font-size: 16px;
    clear: right;
    float: right;
    padding: 6px 8px;
    border-radius: var(--btnBorderRadius);
    width: auto;
    min-width: 90px;
    border: 1px solid #7b5fff;
    background: linear-gradient(90deg, #f3e8ff, #d6c0ff);
    color: #4b2c91;
    box-shadow: 0 0 8px rgba(123, 95, 255, 0.5);
    font-weight: bold;
}
@media (max-width: 768px) {
    .timer {
        font-size: 14px;
        min-width: 80px;
        padding: 5px 6px;
    }
}

@media (max-width: 480px) {
    .timer {
        font-size: 12px;
        min-width: 70px;
        padding: 4px 5px;
        margin-top: 5px;
    }
}

#timerMinutes, #timerSeconds {
    font-size: 15px;
}

.question_data_poster_name {
    font-size: 10px;
    margin-top: -41px;
    padding: 10px;
}

.poster_name_for_prev_question {
    border-top: 1px solid silver;
    font-size: 10px;
    padding: 10px 10px 0 10px;
    text-align: right;
    margin-top: 15px;
}

.answered_time {
    font-size: 15px;
    padding-bottom: 10px;
    margin-bottom: 15px;
    border-bottom: 1px solid silver;
}

.answered_time b {
    font-size: 15px;
}

.c_a_n {
    text-align: right;
    height: 0px;
    position: relative;
}

.wrong_design_notif {
    width: 212px;
    padding: 7px;
    position: relative;
    top: -55px;
    right: -446px;
    border: 1px solid red;
    color: red;
    font-size: 13px;
    font-weight: bolder;
    border-radius: 10px;
    text-align: center;
    background: none; /* #ffbaba */
}

.correct_design_notif {
    width: 232px;
    padding: 7px;
    position: relative;
    top: -55px;
    right: -427px;
    border: 1px solid green;
    color: green;
    font-size: 13px;
    font-weight: bolder;
    border-radius: 10px;
    text-align: center;
    background: none; /* #a3ffa3 */
}

/* Show Result Design */
.show_result_con {
    border: 1px solid #b999ff;
    box-shadow: 0 0 10px rgba(123, 95, 255, 0.4), 0 4px 20px rgba(123, 95, 255, 0.2);
    background: linear-gradient(145deg, #f3e8ff, #d6c0ff, #e9d7ff, #9a76ff);
    background-size: 400% 400%;
    animation: purpleGradient 20s ease infinite;
  padding: 20px;
  border-radius: 20px;
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  box-sizing: border-box;
}
@media (max-width: 768px) {
    .show_result_con {
        padding: 15px;
        border-radius: 15px;
    }
}

@media (max-width: 480px) {
    .show_result_con {
        padding: 12px;
        border-radius: 10px;
    }
}
.print_button_con {
    background: none;
    border: none;
    padding: 0 0 5px 0;
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    margin-top: -17px;
    margin-bottom: 19px;
    text-align: right;
    box-sizing: border-box;
  }
  @media (max-width: 480px) {
    .print_button_con {
        text-align: center;
        margin-top: -10px;
        margin-bottom: 15px;
    }
}
.print_button_con button {
  border: 1px solid gold;
  background: #f7ffbc;
  padding: 10px;
  border-radius: var(--btnBorderRadius);
  margin-bottom: -10px;
  cursor: pointer;
}
.print_button_con button:active {
  background: #dcdc00;
}

table.design_table_rating_exam, table.design_table_rating_exam th, table.design_table_rating_exam td {
    border: 1px solid gray;
    border-collapse: collapse;
    padding: 8px;
    text-align: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
table.design_table_rating_exam th {
    background: linear-gradient(135deg, #d6c0ff, #f3e8ff);
    color: #2b003a;
    text-shadow: 0 0 2px #7b5fff;
}
table, th, td {
    border: 1px solid gray;
    border-collapse: collapse;
    padding: 8px;
    text-align: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
    font-size: 14px;
  }
  @media (max-width: 768px) {
    table, table th, table td {
        padding: 6px;
        font-size: 12px;
    }
    table.design_table_rating_exam, table.design_table_rating_exam th, table.design_table_rating_exam td {
        padding: 6px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    table, table th, table td {
        padding: 4px;
        font-size: 10px;
    }
    table.design_table_rating_exam, table.design_table_rating_exam th, table.design_table_rating_exam td {
        padding: 4px;
        font-size: 10px;
    }
}

.review_ans_con {
    background: none;
    border: none;
    padding: 0 0 5px 0;
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    text-align: right;
    box-sizing: border-box;
}
@media (max-width: 480px) {
    .review_ans_con {
        text-align: center;
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
    }
}
.review_answer, .retake_quiz {
    /* background: var(--btnColor);
    color: white; */
    background: linear-gradient(45deg, #7b5fff, #9a76ff, #d6c0ff);
    background-size: 300% 300%;
    animation: purpleGradient 10s ease infinite;
    color: #fff;
    box-shadow: 0 0 8px rgba(123, 95, 255, 0.6);
    padding: 10px;
    border: none;
    border-radius: var(--btnBorderRadius);
    cursor: pointer;
    margin-right: 3px;
    /* box-shadow: 0 0 8px rgba(123, 95, 255, 0.6); */
    transition: 0.3s all, box-shadow 0.4s;
}

.review_answer:active, .retake_quiz:active {
    background: var(--btnColorActive);
    color: white;
}

.review_answer:hover, .retake_quiz:hover {
    box-shadow: 0 0 15px rgba(123, 95, 255, 0.8), 0 0 30px rgba(155, 118, 255, 0.5);
}

.scoreboard_review_ans_con {
    background: none;
    border: none;
    padding: 0 0 5px 0;
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    text-align: right;
    box-sizing: border-box;
}

@media (max-width: 480px) {
    .scoreboard_review_ans_con {
        text-align: center;
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
    }
}

.scoreboard_review_answer:hover, .scoreboard_retake_quiz:hover {
    box-shadow: 0 0 15px rgba(123, 95, 255, 0.8), 0 0 30px rgba(155, 118, 255, 0.5);
}

.scoreboard_review_answer, .scoreboard_retake_quiz {
    /* background: var(--btnColor);
    color: white; */
    background: linear-gradient(45deg, #7b5fff, #9a76ff, #d6c0ff);
    background-size: 300% 300%;
    animation: purpleGradient 10s ease infinite;
    color: #fff;
    box-shadow: 0 0 8px rgba(123, 95, 255, 0.6);
    padding: 10px;
    border: none;
    border-radius: var(--btnBorderRadius);
    cursor: pointer;
    margin-right: 3px;
    /* box-shadow: 0 0 8px rgba(123, 95, 255, 0.6); */
    transition: 0.3s all, box-shadow 0.4s;
}

.scoreboard_review_answer:active, .scoreboard_retake_quiz:active {
    background: var(--btnColorActive);
    color: white;
}

.scoreboard_back_to_result_btn {
    position: relative;
    background: #fff;
    border-radius: var(--btnBorderRadius);
    cursor: pointer;
    padding: 10px;
    border: 1px solid silver;
    margin-right: 19px;
}
.scoreboard_back_to_result_btn:hover {
  background: gray;
}

.back_to_result_btn {
    position: relative;
    top: -42px;
    background: #fff;
    border: none;
    border-radius: var(--btnBorderRadius);
    cursor: pointer;
    padding: 10px;
    border: 1px solid silver;
    margin-right: 116px;
}
.back_to_result_btn:hover {
  background: gray;
}

.prev_question_con {
    border: 1px solid #b999ff;
    box-shadow: 0 0 10px rgba(123, 95, 255, 0.4), 0 4px 20px rgba(123, 95, 255, 0.2);
    background: linear-gradient(145deg, #f3e8ff, #d6c0ff, #e9d7ff, #9a76ff);
    background-size: 400% 400%;
    animation: purpleGradient 20s ease infinite;
    padding: 20px;
    border-radius: 10px;
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    margin-bottom: 20px;
    box-sizing: border-box;
}
@media (max-width: 768px) {
    .prev_question_con {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .prev_question_con {
        padding: 12px;
        margin-bottom: 15px;
    }
}
.prev_question {
    font-size: 20px !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  @media (max-width: 768px) {
    .prev_question {
        font-size: 16px !important;
    }
}

@media (max-width: 480px) {
    .prev_question {
        font-size: 14px !important;
    }
}
.prev_choices_con {
  border: none;
  margin-top: 20px;
}
.prev_choices {
    font-size: 21px !important;
    border: 1px solid lightgray;
    padding: 10px 8px;
    border-radius: 10px;
    margin: 8px 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    display: block;
    width: 100%;
    text-align: left;
    box-sizing: border-box;
  }
  @media (max-width: 768px) {
    .prev_choices {
        font-size: 16px !important;
        padding: 8px 6px;
    }
}

@media (max-width: 480px) {
    .prev_choices {
        font-size: 14px !important;
        padding: 6px 5px;
        margin: 5px 0;
    }
}
.prev_choices:hover {
   border-color: #9a76ff;
    /* background: linear-gradient(145deg, #f3e8ff 0%, #d6c0ff 100%); */
    color: #2b003a;
    /* transform: scale(1.03); */
    transform: scale(1.04);
    box-shadow: 0 0 12px rgba(155, 118, 255, 0.6), 0 0 20px rgba(123, 95, 255, 0.4);
    background: linear-gradient(145deg, #f3e8ff, #d6c0ff, #9a76ff);
    background-size: 400% 400%;
    animation: purpleGradient 8s ease infinite;
    transition: 0.2s all;
}
.prev_choices.correct {
    background: #a3ffa3; /* #00a700 */
    color: green; /* white */
}
.prev_choices.wrong {
    background-color: #ff4f4f;
    color: white;
}
.correct {
    background: #a3ffa3 !important; /* #00a700 */
    color: green !important; /* white */
}
.wrong {
    background-color: #ffbaba !important; /* ff4f4f */
    color: red !important; /* white */
}
.check_my_answers_btn {
  border: 1px solid gray;
  background: #fff;
  border-radius: 5px;
  padding: 5px;
  cursor: pointer;
}
.check_my_answers_btn:active {
  border: 1px solid #fff;
  background: blue;
  border-radius: 5px;
  padding: 5px;
  color: #fff;
  cursor: pointer;
}
.prev_display_review_result_btn, .next_display_review_result_btn {
  background: none;
  padding: 10px;
  border: 1px solid silver;
  border-radius: var(--btnBorderRadius);
  cursor: pointer;
  font-size: 16px;
}
.prev_display_review_result_btn[disabled] svg, .next_display_review_result_btn[disabled] svg {
  fill: #a7a7a7;
}
.prev_display_review_result_btn:active, .next_display_review_result_btn:active {
  background: lightgray;
}
.tooltip_for_prev_display {
  position: relative;
    border-radius: var(--btnBorderRadius);
    top: 0; 
    left: 0;
    width: 96px;
    margin-left: -115px;
    margin-top: -24.5px;
    font-size: 11px;
    /* color: #fff; */
    /* background: #fff; */
    /* box-shadow: 0 1px 2px silver; */
    background: linear-gradient(90deg, #d6c0ff, #f3e8ff);
    box-shadow: 0 0 8px rgba(123, 95, 255, 0.5);
    color: #2b003a;
    padding: 5px;
    text-align: center;
}
.tooltip_for_prev_display.wrong:after {
    content: "";
    position: absolute;
    width: 0;
    height: 0;
    margin-left: -6.5px;
    margin-top: -4.2px;
    left: 100%;
    top: 50%;
    box-sizing: border-box;
    border: 0.5em solid black;
    border-color: transparent transparent #ffbaba #ffbaba; /* ff4f4f */
    transform-origin: 50% 50%;
    transform: rotate(-135deg);
    box-shadow: -5px 5px 10px 0 rgba(0, 0, 0, 0.1);
}
.tooltip_for_prev_display.correct:after {
    content: "";
    position: absolute;
    width: 0;
    height: 0;
    margin-left: -6.5px;
    margin-top: -4.2px;
    left: 100%;
    top: 50%;
    box-sizing: border-box;
    border: 0.5em solid black;
    border-color: transparent transparent #a3ffa3 #a3ffa3; /* #00a700 */
    transform-origin: 50% 50%;
    transform: rotate(-135deg);
    box-shadow: -5px 5px 10px 0 rgba(0, 0, 0, 0.1);
}

.question_explanation {
    background: linear-gradient(to right, #f3e8ff, #e5d7ff);
    border-left: 4px solid #9a76ff;
    box-shadow: 0 0 8px rgba(123, 95, 255, 0.3);
    padding: 20px;
    border-radius: 20px;
    margin: 2% 0 0 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}
@media (max-width: 768px) {
    .question_explanation {
        padding: 15px;
        border-left-width: 3px;
    }
}

@media (max-width: 480px) {
    .question_explanation {
        padding: 12px;
        border-left-width: 2px;
        margin: 15px 0 0 0;
    }
}

.button_design {
    /* background: var(--btnColor); */
    /* color: white; */
    background: linear-gradient(45deg, #7b5fff, #9a76ff, #d6c0ff);
    background-size: 300% 300%;
    animation: purpleGradient 10s ease infinite;
    color: #fff;
    box-shadow: 0 0 8px rgba(123, 95, 255, 0.6);
    padding: 10px;
    border: none;
    border-radius: var(--btnBorderRadius);
    cursor: pointer;
    font-size: 15px;
    /* box-shadow: 0 0 8px rgba(123, 95, 255, 0.6); */
    transition: 0.3s all, box-shadow 0.4s;
}

.button_design:hover {
    box-shadow: 0 0 15px rgba(123, 95, 255, 0.8), 0 0 30px rgba(155, 118, 255, 0.5);
}

.button_design:active {
    background: var(--btnColorActive);
    color: white;
    padding: 10px;
}

button, .choices, .prev_choices, .modal-content, .alertDialogCon {
    transition: all 0.3s ease, box-shadow 0.4s ease, transform 0.2s ease;
}


/* Login design */
.login_window {
    background: #eee;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 50;
}
.login_container {
    /* background: #fff; */
    /* border: 1px solid gray; */
    border: 1px solid #7b5fff;
    background: linear-gradient(135deg, #f3e8ff 0%, #d6c0ff 100%);
    box-shadow: 0 0 20px rgba(123, 95, 255, 0.5), 0 10px 25px rgba(75, 44, 145, 0.3);
    position: absolute;
    top: 40%;
    left: 50%;
    width: 25em;
    transform: translate(-50%, -50%);
    padding: 20px 20px 12px 20px;
    border-radius: 10px;
   
}

@media (max-width: 480px) {
    .login_container {
        width: 95%;
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .login_container h2 {
        font-size: 1.2em;
    }
}
.login_container h2 {
    font-size: 1.5em;
    margin-bottom: 16px;
    color: #333;
}

.login_container form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.login_container label {
    text-align: left;
    font-size: 0.9em;
    color: #555;
}

.login_container input[type="text"],
.login_container input[type="password"] {
    padding: 10px;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 5px;
    outline: none;
    transition: all 0.2s ease;
}

.login_container input[type="text"]:focus,
.login_container input[type="password"]:focus {
    border-color: #9a76ff;
    box-shadow: 0 0 8px rgba(123, 95, 255, 0.5);
}

.login_container input[type="submit"] {
    background: #3f51b5;
    color: #fff;
    padding: 10px;
    font-size: 1em;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.login_container input[type="submit"]:hover {
    background: #303f9f;
}

.login_container input[type="submit"]:active {
    background: #283593;
}

.auth-footer {
    margin-top: 16px;
    text-align: center;
    font-size: 0.9em;
    color: #555;
}

.auth-footer a {
    color: #3f51b5;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s ease;
}

.auth-footer a:hover {
    color: #303f9f;
    text-decoration: underline;
}

/* Name Input Dialog Styling */
.nameInputWindow {
    background: rgba(0, 0, 0, 0.5);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.nameInputFirstCon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.nameInputCon {
    background: linear-gradient(135deg, #f3e8ff 0%, #d6c0ff 100%);
    border: 1px solid #7b5fff;
    box-shadow: 0 0 20px rgba(123, 95, 255, 0.5), 0 10px 25px rgba(75, 44, 145, 0.3);
    border-radius: 10px;
    padding: 30px;
    width: 90%;
    max-width: 28em;
    text-align: center;
    box-sizing: border-box;
}

.nameInputTitle {
    font-size: 1.8em;
    font-weight: bold;
    color: #333;
    margin-bottom: 12px;
}
@media (max-width: 480px) {
    .nameInputTitle {
        font-size: 1.3em;
    }
}

.nameInputDescription {
    font-size: 0.95em;
    color: #666;
    margin-bottom: 24px;
    line-height: 1.5;
}

.nameInputCon form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.nameInputField {
    padding: 12px;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 5px;
    outline: none;
    transition: all 0.2s ease;
}

.nameInputField:focus {
    border-color: #9a76ff;
    box-shadow: 0 0 8px rgba(123, 95, 255, 0.5);
}

.nameInputButton {
    background: #3f51b5;
    color: #fff;
    padding: 12px;
    font-size: 1em;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.2s ease;
    font-weight: 600;
}

.nameInputButton:hover {
    background: #303f9f;
}

.nameInputButton:active {
    background: #283593;
}

@media (min-width: 769px) {
    body.logged-in .content {
        left: 320px;
        width: calc(100% - 320px);
    }
}

@media (min-width: 768px) {
    body.logged-in .content-footer {
        width: calc(100% - 320px);
        left: 320px;
    }
}

#mainNav {
    position: fixed;
    top: 70px;
    left: -320px;
    width: 320px;
    height: calc(100vh - 130px);
    background: #959494;
    transition: left 0.3s ease;
    z-index: 1001;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #dddddd81;
  }
  
  #mainNav.show-nav {
    left: 0;
  }
  
  .nav-backdrop {
    display: none;
  }
  
  @media (max-width: 768px) {
    #mainNav {
      position: fixed;
      top: 0;
      left: -320px;
      width: 320px;
      height: 100vh;
      background: #e8e8e8;
      z-index: 1001;
      transition: left 0.3s ease;
    }

    #mainNav.show-nav {
      left: 0;
    }

    .nav-backdrop {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.5);
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.3s ease, visibility 0.3s ease;
      z-index: 1000;
      display: block;
    }

    .nav-backdrop.show {
      opacity: 1;
      visibility: visible;
    }
  }    
  body.logged-in .mobile-menu-toggle {
    display: inline-flex;
    align-items: center;
  }
  
  /* menu button hidden until login */
  .mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
  }

  /* Mobile nav visibility */
  @media (max-width: 768px) {
    nav {
      display: none;
    }
  }
