/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background: linear-gradient(45deg, hsl(236, 100%, 12%), #0022ff, #00b7ff, #8e2de2);
    background-size: 400% 400%;
    animation: gradientAnimation 15s ease infinite;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    flex-direction: column;
    overflow: auto;
    font-family: 'Arial', sans-serif;
    transition: background-color 0.3s ease-in-out;
}

/* Animated Gradient Background */
@keyframes gradientAnimation {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Container Styles */
.quiz-container, .certificate-container {
    background: #ffffff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    max-width: 700px;
    width: 90%;
    text-align: center;
    max-height: 80vh;
    overflow-y: auto;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.quiz-container:hover, .certificate-container:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.15);
}

/* Header Styling */
h1 {
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 20px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #eae8e8;
    line-height: 1.5;
}

/* Button Styling */
button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: background-color 0.3s, transform 0.3s;
    width: 100%;
    max-width: 200px;
    margin-top: 10px;
}

button:hover {
    background-color: #45a049;
    transform: scale(1.05);
}

/* Form & Input Fields */
input[type="text"] {
    width: 100%;
    padding: 15px;
    margin-top: 15px;
    border-radius: 10px;
    border: 1px solid #ddd;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus {
    border-color: #ffffff;
}

/* Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

label {
    color: white; /* Sets the text color of the label */
    font-size: 1.2rem;
    font-weight: bold;
}


.pagination button {
    background-color: #008CBA;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

.pagination button:hover {
    background-color: #005f7a;
    transform: scale(1.05);
}

/* Certificate Styling */
.certificate-container {
    background: #f7f7f7;
    border: 5px solid #4CAF50;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    max-width: 800px;
    margin: auto;
    text-align: center;
    font-family: 'Arial', sans-serif;
}

.certificate-container h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #4CAF50;
}

.certificate-container p {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.5;
}

.certificate-container button {
    background-color: #008CBA;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1.1rem;
    margin-top: 20px;
    transition: background-color 0.3s, transform 0.3s;
}

.certificate-container button:hover {
    background-color: #005f7a;
    transform: scale(1.05);
}

/* Smooth Page Transition */
body {
    animation: fadeIn 1.2s ease-in-out;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}
