/* SVG Changes */

div#__game_section__ {
    position: relative;
    z-index: 9;
}

#game_level_text {
    display: none;
}

#game_button_click,
#game_go_label {
    cursor: pointer;
    transition: transform 0.15s ease;
}

#game-white-layer,
#game_sound_text,
#game_go_label,
#game_close_dashboard1,
#game_close_dashboard2 {
    pointer-events: none;
}

#game_button_wrapper:hover #game_button_click {
    transform: translateY(10px);
}

#game_button_wrapper:hover+#game_go_label {
    transform: translateY(10px);
}

#game_button_for_sound {
    cursor: pointer;
    transition: fill 0.3s ease;
}

#game_button_for_sound.enabled {
    fill: #25252F;
}

#game_button_for_sound.disabled {
    fill: #555;
}

/* SVG Changes */
/* SVG Inside Elements */
#dashboard_popup #levelup_image {
    position: absolute;
    top: 18%;
    left: 9%;
    width: 80px;
}

/* SVG Inside Elements */
#game_front_box {
    width: auto;
    max-width: 290px;
    min-width: 180px;
    margin: auto;
    display: block;
    position: relative;
}

#game_front_box #loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: #555;
    font-size: 14px;
}

#game_front_box .spinner {
    border: 4px solid #ccc;
    border-top: 4px solid #555;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: gameLoadingSpin 1s linear infinite;
}

@keyframes gameLoadingSpin {
    to {
        transform: rotate(360deg);
    }
}

/* Popup Overlay */
#dashboard_popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 100;
    backdrop-filter: blur(2px);
    line-height: 0;
}

#dashboard_content {
    border-radius: 12px;
    width: 100%;
    max-width: 800px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    animation: popupFade 0.3s ease;
}

@keyframes popupFade {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

#dashboard_content svg {
    width: 100%;
    height: auto;
}

@media (max-width: 768px) {
    #game_front_box {
        width: 70%;
        max-width: 280px;
    }
}

@media (max-width: 480px) {
    #game_front_box {
        width: 80%;
        max-width: 220px;
    }
}

#game-progress-bar {
    transition: width 0.5s ease, fill 0.5s ease;
}



/* question */
#dashboard_popup .question {
    font-size: 26px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #FBCA3C;
    text-align: center;
}

/* options */
#dashboard_popup .options {
    margin-bottom: 15px;
    display: flex;
    flex-wrap: wrap;
}

#dashboard_popup .options label {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 15px;
    border: 2px solid #000;
    border-radius: 30px;
    background-color: #fff;
    color: #000;
    font-size: 1rem;
    padding: 15px 10px;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
    box-shadow: 4px 4px 0 #000;
    text-align: center;
}

#dashboard_popup .options label:hover {
    transform: translate(4px, 4px);
    box-shadow: none;
    background: #eaf4ff;
}

#dashboard_popup .options input[type="radio"] {
    display: none;
}

#dashboard_popup .options input:checked+label {
    border-color: #000;
    background: #FF6819;
    color: #fff;
}

#dashboard_popup .result {
    background: transparent;
    border: transparent;
    padding: 12px;
    border-radius: 8px;
    font-size: 26px;
    font-weight: bold;
    margin-bottom: 3rem;
    color: #FBCA3C;
    text-align: center;
}

#dashboard_popup .hidden {
    display: none;
}

#dashboard_popup .main_quiz_logic_box {
    position: absolute;
    width: 70%;
    padding: 0 3%;
    line-height: initial;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 0;
    right: 0;
    bottom: 0;
    height: 80%;
    margin: auto;
}

#dashboard_popup .btn {
    min-width: 130px;
    max-width: 180px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    white-space: nowrap;
    border: 2px solid #000;
    border-radius: 30px;
    background-color: #fac323;
    color: #000;
    font-size: 1rem;
    padding: 10px 14px;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
    box-shadow: 4px 4px 0 #000;
}

#dashboard_popup a.btn {
    text-decoration: none;
}


#dashboard_popup .btn:hover {
    transform: translate(4px, 4px);
    box-shadow: none;
}

#dashboard_popup .buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

#dashboard_popup .error {
    background-color: #ed5764;
    border-radius: 0.25rem;
    padding: 8px;
    color: #fff;
    display: flex;
    width: 100%;
    margin-top: 1rem;
    align-items: center;
    justify-content: center;
    transition: 0.6s all;
}

#dashboard_popup .flex_box_style .options {
    display: flex;
    flex-wrap: nowrap;
}

#dashboard_popup .flex_box_style .options label {
    width: 33%;
    white-space: normal;
    margin: 5px;
    padding: 10px 15px;
    font-size: 16px;
    line-height: 22px;
    text-align: center;
}

#dashboard_popup img.result_icon {
    width: 100px;
    display: block;
    margin: auto;
    margin-top: 2rem;
}

#game_reset_label {
    pointer-events: none;
}

#dashboard_content .close_btn {
    display: none;
}

#dashboard_popup .result span {
    display: block;
    margin-bottom: 10px;
}

.result_course_box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.result_course_box .pahal_design_card {
    background: #fff;
    padding: 10px;
    width: 33%;
    min-height: 130px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00364c;
    position: relative;
    font-size: 18px;
}

.result_course_box .pahal_design_card:before {
    content: '';
    position: absolute;
    width: 100%;
    height: 10px;
    background: red;
    top: 0px;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.result_course_box .pahal_design_card:nth-child(1):before {
    background: #2A4BB3;
}

.result_course_box .pahal_design_card:nth-child(2):before {
    background: #F74E2D;
}

.result_course_box .pahal_design_card:nth-child(3):before {
    background: #288B29;
}


.pahal_design_card img.pinImage {
    position: absolute;
    width: 14px;
    top: -5px;
    right: 20px;
}

#dashboard_content svg.lucide-arrow-right {
    height: 17px;
    width: auto;
}

/* Mobile Version */
@media(max-width:767px) {
    #dashboard_popup #levelup_image {
        position: absolute;
        top: 35px;
        left: 0px;
        width: 80px;
        right: 0px;
        text-align: center;
        margin: auto;
    }

    #dashboard_popup .question {
        font-size: 18px;
    }

    #dashboard_popup .main_quiz_logic_box {
        width: 100%;
        left: 0;
        margin: auto;
    }

    #dashboard_popup .options label {
        width: 90%;
        gap: 0.5rem;
        padding: 5px 10px;
        text-align: center;
        font-size: 12px;
        margin: auto;
        margin-bottom: 10px;
    }

    #dashboard_popup .flex_box_style .options {
        flex-wrap: wrap;
    }

    #dashboard_popup .flex_box_style .options label {
        width: 90%;
        margin: auto;
        margin-bottom: 10px;
        font-size: 13px;
        padding: 5px 15px;
    }

    #dashboard_popup .result {
        padding: 12px 25px;
        font-size: 20px;
        margin-bottom: 0px;
    }

    .result_course_box .pahal_design_card {
        min-height: 90px;
    }

    #dashboard_content {
        width: 97%;
    }

    div#level2-design .question {
        font-size: 16px;
    }

    div#level2-finearts .question {
        font-size: 16px;
        padding: 0px 20px;
    }

    div#level2-finearts {
        position: relative;
        top: 20px;
    }

    div#level2-design {
        position: relative;
        top: 20px;
    }

    #dashboard_popup #level1 .options label {
        font-size: 14px;
    }

    #dashboard_popup .error {
        font-size: 12px;
        position: absolute;
        bottom: -10px;
        left: 0px;
        right: 0px;
        margin: auto;
        width: 53%;
    }

    #dashboard_content .close_btn {
        display: flex;
        position: absolute;
        top: -30px;
        right: 2px;
        background: #2a4bb3;
        color: #fff;
        border-radius: 100px;
        padding: 2px;
    }

    #dashboard_content .close_btn svg {
        width: 20px;
    }

    #dashboard_popup #thankyou-box .buttons {
        flex-direction: column-reverse;
        gap: 10px;
    }

    #dashboard_popup #thankyou-box .buttons button,
    #dashboard_popup #thankyou-box .buttons a {
        width: 100%;
    }

    #dashboard_popup #thankyou-box .result {
        font-size: 20px;
    }

    #dashboard_popup div#level2-result .result {
        font-size: 15px;
    }

    #dashboard_popup div#level2-result .pahal_design_card {
        width: 50%;
    }

    #dashboard_popup .result img {
        width: 50px;
    }

    #dashboard_popup .pahal_design_card img.pinImage {
        width: 14px;
    }

    .result_course_box .pahal_design_card {
        font-size: 13px;
    }
}

/* Mobile Version */