/* exam-styles.css */

/* Container for exam questions */
#exam-questions {
    background-color: #f9f9f9;
    border: none;
    text-align: left;
    background: black;
    margin-bottom: 20px;
}
.question-container {
    margin-bottom: 20px; /* Add space between each question */
}
#mainmenuexam, #exam-display {
    transition: opacity 0.5s ease-in-out;
    background: black;
    text-align: left;
    padding:0px;
    margin: 0px;
        width:100vw;
        height:100vh;
    
}
/* General text color and custom input styling within .choices */
.choices label {
    color: white; /* Change text color to white */
    display: flex;
    align-items: center;
    font-family: helvetica;
    font-size: 2rem;
}

.choices input[type="radio"] {
    appearance: none; /* Remove default styling */
    width: 20px;
    height: 20px;
    margin-right: 10px;
    border: 2px solid white; /* White border for unselected squares */
    background-color: transparent;
    border-radius: 0; /* Make it a square */
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

/* Smaller animated square with color-changing effect */
.choices input[type="radio"]:checked::before {
    content: '';
    position: absolute;
    top: 4px; /* Creates space inside the square */
    left: 4px;
    width: 12px; /* Smaller than the container */
    height: 12px;
    background-color: red; /* Starting color */
    animation: color-change 2s infinite;
    border-radius: 2px; /* Rounded inner square corners (optional) */
}

/* Keyframes for the color change animation */
@keyframes color-change {
    0% { background-color: red; }
    25% { background-color: orange; }
    50% { background-color: yellow; }
    75% { background-color: green; }
    100% { background-color: blue; }
}

/* Focus state for accessibility */
.choices input[type="radio"]:focus {
    outline: 2px solid lightblue; /* Optional focus styling */
}
/* Style the question */
.question-container p {
     font-weight: bold;
    font-size: 1.2em;
    margin: 0; /* Remove default margin */
}

/* Container for audio element */
.audio-container {
    margin-top: 10px; /* Add space between question and audio */
}
/* Exam timer */
#exam-timer {
     font-weight: bold;
    font-size: 1.8em;
    text-decoration: bold;
    margin-bottom: 20px;
}

#next-question,
#finish-exam {
    background-color: white;
    color: black;
    border: 2px solid;
    border-radius: 0px;
    font-weight: bold;
    margin-left: 20px;
    box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.5); 
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    margin-right: 10px;
    animation: rainbow-border 3s linear infinite;
    transition: all 0.3s ease;
}

@keyframes rainbow-border {
    0% {
        border-color: red;
    }
    16% {
        border-color: orange;
    }
    33% {
        border-color: yellow;
    }
    50% {
        border-color: green;
    }
    66% {
        border-color: blue;
    }
    83% {
        border-color: indigo;
    }
    100% {
        border-color: violet;
    }
}

/* Animated background gradient */
@keyframes rainbow-background {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Hover Effect with animated background */
#next-question:hover,
#finish-exam:hover {
    color: white; /* Font turns white */
    border-color: white; /* Border becomes white */
    background: linear-gradient(123deg, red, orange, yellow, green, blue, indigo, violet);
    background-size: 1000% 1000%; /* Expands the background to enable animation */
    animation: rainbow-background 3s ease infinite; /* Background animation */
}


/* Exam form */
#exam-form {
    margin-top: 20px;
}

#exam-answer {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 10px;
    border: none;
}

/* Cute Styles for Form */
#form-high-grade {
    display: none;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: black;
    color:white;
    border: white 1px solid;
    border-radius: 0px;
}
#form-low-grade {
    display: none;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
        background-color: black;
    color:white;
    border-radius: 0px;
}
#form-high-grade p {
    font-size: 16px;
    color:white
    margin-bottom: 15px;
}
.answerpart{
    background:black;
    border: solid 1px white;
    width: 100%;
    height: 50%;
    padding: 5px;
    color: white;
}
#form-high-grade label {
    display: block;
    font-weight: bold;
    color: white;
    margin-bottom: 5px;
}

#form-high-grade input[type="text"],
#form-high-grade input[type="number"],
#form-high-grade textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    bacground:black;
    color:white;
    border-radius: 0px;
}

#form-high-grade input[type="checkbox"] {
    margin-bottom: 15px;
}

#form-high-grade textarea {
    height: 150px; /* Increased height for text area */
}

#form-high-grade input[type="submit"] {
    background-color: white;
    color: black;
    padding: 15px 20px;
    border: solid 2px;
    border-radius: 0px;
    cursor: pointer;
    font-size: 16px;
    animation: rainbow-border 3s linear infinite;
}

#form-high-grade input[type="submit"]:hover {
     color: white; /* Font turns white */
    border-color: white; /* Border becomes white */
    background: linear-gradient(123deg, red, orange, yellow, green, blue, indigo, violet);
    background-size: 1000% 1000%; /* Expands the background to enable animation */
    animation: rainbow-background 3s ease infinite; 
}



        /* General styling for mainmenuexam */
        #mainmenuexam {
            font-family: Arial, sans-serif;
            color: #ffffff;
            background-color: #000000;
            padding: 0px;
            display:none;
            text-align: center;
        }

        /* Title and description */
        #mainmenuexam h1.mainmenuexam {
            font-size: 24px;
            margin-bottom: 10px;
            color:white;
        }

        #mainmenuexam hr {
            border: 1px solid #ffffff;
            width: 80%;
            margin: auto;
            margin-bottom: 15px;
        }

        /* Assignment grid styling */
        .assignmentgridmainmenuexam {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 15px;
            margin-top: 20px;
        }

        /* Category styling */
        .menu-categorymainmenuexam {
            background-color: #333333;
            padding: 20px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            text-align: center;
            cursor: pointer;
            transition: transform 0.3s ease;
        }

        .menu-categorymainmenuexam:hover {
            transform: scale(1.05);
        }

        /* Icon styling */
        .menu-categorymainmenuexam i {
            font-size: 36px;
            color: #ffffff;
            margin-bottom: 10px;
        }

        /* Button styling */
        .menu-categorymainmenuexam button {
            background-color: transparent;
            border: none;
            color: #ffffff;
            font-size: 16px;
            font-weight: bold;
            cursor: pointer;
            padding: 0;
            margin-bottom: 5px;
        }

        .menu-categorymainmenuexam p {
            font-size: 14px;
            color: #cccccc;
            margin: 0;
        }
        #exam-content{
            padding:20px;
        }
.assignmentgridmainmenuexam{
    font-family: helvetica !important;
    background: black;
}

        @media (max-width: 600px) {
            .assignmentgridmainmenuexam {
                grid-template-columns: 1fr;
            }
        }




