﻿
body {
    font-family: Arial, sans-serif;

    margin: 0;
    padding: 0;
}

h2 {
    color: #2c3e50;
    margin-top: 20px;
}

.message-box {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 5px;
}

.timer {
   
    position: fixed;
    top: 345px;
    right: 231px;
    background-color: #fff;
    border: 2px solid #dc3545;
    padding: 8px 12px;
    border-radius: 5px;
    font-weight: bold;
    color: #dc3545;
    font-size: 18px;
    z-index: 9999;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.question-card {
    background-color: #fff;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #007bff;
}

.option-label {
    display: block;
    margin: 5px 0;
    padding: 6px 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

    .option-label:hover {
        background-color: #f0f0f0;
    }

.correct {
    background-color: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.incorrect {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.missed {
    background-color: #fff3cd;
    color: #856404;
    border-left: 4px solid #ff9800;
}

.submit-btn {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #007bff;
    border: none;
    border-radius: 5px;
    color: white;
    cursor: pointer;
}

    .submit-btn:hover {
        background-color: #0056b3;
    }

#startPopup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    display: flex;
   
    justify-content: center;
}

    #startPopup > div {
        background: white;
        
        border-radius: 10px;
        
        width: 90%;
        max-width: 400px;
    }

/* Responsive Design for Small Screens */
@media (max-width: 600px) {
    .timer {
        position: fixed;
        top: 217px;
        right: 5px;
        font-size: 12px;
        padding: 1px 1px;
    }

    .question-card {
        padding: 15px;
        font-size: 15px;
    }

    .option-label {
        padding: 6px 8px;
        font-size: 14px;
    }

    .submit-btn {
        width: 100%;
        font-size: 15px;
        padding: 10px;
    }

    h2 {
        font-size: 20px;
        padding: 0 10px;
    }

    .message-box {
        font-size: 14px;
        margin: 10px;
    }
}


/*popucss*/
/* Overlay background */

    /* Popup content box */
#startPopup .popup-content {
    background: #fff;
    max-height: 94%;
    max-width: 450px;
    width: 100%; /* full width on small screens */
    box-shadow: 0px 2px 10px rgba(0,0,0,0.3);
    font-family: Arial, sans-serif;
    position: fixed;
    top: 4%;
}

    /* Headings */
    #startPopup h3,
    #startPopup h4 {
        margin-top: 0;
        font-weight: 600;
        
    }

    /* Lists */
    #startPopup ul {
        padding-left: 20px;
        margin: 8px 0;
        font-size: 14px;
    }

        #startPopup ul li {
            margin-bottom: 5px;
        }

    /* Declaration box */
    #startPopup .declaration-box {
        background: #f9fafb;
        padding: 2px;
        border-radius: 5px;
        font-size: 13px;
        
    }

    /* Checkbox */
    #startPopup input[type="checkbox"] {
        transform: scale(1.1);
        margin-right: 8px;
    }

    /* Start button */
#startPopup #starttest {
    padding: 10px 20px;
    font-size: 18px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
    margin-top: 15px;
    cursor: pointer;
    width: 32%;
    margin-bottom: 6px;
    margin-left: 60%;
    margin-top: 3px;
}

        #startPopup #starttest:disabled {
            background-color: #9ca3af;
            cursor: not-allowed;
        }

/* ===== Responsive Breakpoints ===== */

/* For devices smaller than 480px wide */
@media (max-width: 480px) {
    #startPopup .popup-content {
        font-size: 13px;
        max-width: 267px;
        position: fixed;
        left: 23px;
    }

    #startPopup h3 {
        font-size: 16px;
    }

    #startPopup h4 {
        font-size: 14px;
    }

    #startPopup ul li {
        font-size: 12px;
    }

    #startPopup #starttest {
        font-size: 14px;
        padding: 6px;
    }
}

/* For very small devices (320px) */
@media (max-width: 350px) {

    #startPopup .popup-content {
        font-size: 13px;
        max-width: 267px;
        position: fixed;
        left: 23px;
    }

    #startPopup h3 {
        font-size: 16px;
    }

    #startPopup h4 {
        font-size: 14px;
    }

    #startPopup ul li {
        font-size: 12px;
    }

    #startPopup #starttest {
        font-size: 14px;
        padding: 6px;
    }
}
