/* Updated styles.css with animations and a more attractive design */

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    animation: fadeInBody 1s ease-in-out;
    background: linear-gradient(45deg, #c8ee07, #6fb3ca, #491349, #4a5a2f, #1f4037);
    background-size: 1400% 1400%;
    animation: gradientAnimation 10s ease infinite;
}

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

.container {
    max-width: 600px;
    margin: 60px auto;
    background: #ffffff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    animation: slideUp 0.8s ease-out;
    transition: transform 0.3s ease;
}

.container:hover {
    transform: scale(1.02);
}

h1, h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 20px;
    animation: fadeInText 1s ease-in-out;
}

label {
    display: block;
    margin: 15px 0 5px;
    color: #34495e;
}

input[type="text"], input[type="password"], select {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
    transition: border-color 0.3s;
}

input[type="text"]:focus, input[type="password"]:focus, select:focus {
    border-color: #5dade2;
    outline: none;
}

button {
    width: 100%;
    padding: 12px;
    background-color: #5dade2;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s, transform 0.2s;
    margin-top: 20px; /* Add space before the button */
}

button:hover {
    background-color: #3498db;
    transform: translateY(-2px);
}

#timer p {
    font-size: 18px;
    color: #e74c3c;
    text-align: center;
    margin-bottom: 20px;
}

#result {
    text-align: center;
    background-color: #ecf0f1;
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
}

/* Animations */
@keyframes fadeInBody {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes fadeInText {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Styling questions */
.question p {
    font-weight: bold;  /* Makes the question text bold */
    margin-bottom: 10px;
}

/* Styling options */
.question label {
    font-weight: normal; /* Keeps the options in normal font weight */
    display: block;
    margin: 5px 0;
}

/* Adds spacing between the submit button and the last question option */
button {
    margin-top: 30px;  /* Adds a top margin to the button */
}

/* Adds extra space after the last question options */
.question:last-child label {
    margin-bottom: 20px; /* Adds space after the last question option */
}

/* Styling for all buttons */
button {
    background-color: #007BFF; /* A nice blue color */
    color: white;
    border: none;
    padding: 10px 20px; /* Standard padding */
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px; /* Standard font size */
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s, transform 0.3s;
    letter-spacing: 1px; /* Add some space between the letters */
}

/* Hover effect for buttons */
button:hover {
    background-color: #0056b3; /* Darker blue when hovered */
    transform: translateY(-3px); /* Slight lift on hover */
}

/* Active state effect for buttons */
button:active {
    background-color: #003f8f; /* Even darker blue when clicked */
    transform: translateY(0); /* Normal position when clicked */
}

/* Styling for 'Powered by' button */
.powered-by-button {
    background-color: #007BFF; /* A nice blue color */
    color: white;
    border: none;
    padding: 10px 20px; /* Match the padding of the submit button */
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px; /* Match the font size of the submit button */
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s, transform 0.3s;
    letter-spacing: 1px; /* Add some space between the letters */
}

/* Hover effect for 'Powered by' button */
.powered-by-button:hover {
    background-color: #0056b3; /* Darker blue when hovered */
    transform: translateY(-3px); /* Slight lift on hover */
}

/* Active state effect for 'Powered by' button */
.powered-by-button:active {
    background-color: #003f8f; /* Even darker blue when clicked */
    transform: translateY(0); /* Normal position when clicked */
}

/* Media query for screens larger than 1460px to change the effect */
@media screen and (min-width: 1461px) {
    /* Change hover effect for buttons */
    button:hover, .powered-by-button:hover {
        background-color: #004085; /* Change to an even darker blue when hovered */
        transform: scale(1.05); /* Scale the button to 105% of its size on hover */
    }

    /* Change the active state effect */
    button:active, .powered-by-button:active {
        background-color: #002c5f; /* Darker shade when clicked */
        transform: translateY(2px); /* Apply a stronger press effect */
    }
}

/* Media query for smaller screens (less than 1460px) */
@media screen and (max-width: 1460px) {
    .powered-by-button {
        font-size: 14px; /* Adjust font size for smaller screens */
        padding: 8px 16px; /* Adjust padding for smaller screens */
    }

    button {
        font-size: 14px; /* Adjust font size for submit button */
        padding: 8px 16px; /* Adjust padding for submit button */
    }
}

/* Media query for smaller devices like tablets and phones */
@media screen and (max-width: 768px) {
    .powered-by-button {
        font-size: 12px; /* Smaller font size for smaller devices */
        padding: 6px 12px; /* Smaller padding for smaller devices */
    }

    button {
        font-size: 12px; /* Adjust font size for submit button */
        padding: 6px 12px; /* Adjust padding for submit button */
    }
}

/* Media query for very small screens (e.g., phones in portrait mode) */
@media screen and (max-width: 480px) {
    .powered-by-button {
        font-size: 10px; /* Tiny font size for very small screens */
        padding: 4px 8px; /* Smallest padding */
    }

    button {
        font-size: 10px; /* Adjust font size for submit button */
        padding: 4px 8px; /* Adjust padding for submit button */
    }
}




<style>
        .buttons-container {
            margin-top: 20px;
            text-align: center;
        }
        .btn {
            padding: 10px 20px;
            margin: 10px;
            font-size: 16px;
            cursor: pointer;
        }
        .select-subject-btn {
            background-color: #468adc;
            color: white;
            transition: background-color 0.3s ease;
        }
        .logout-btn {
            background-color: #ff4d4d;
            color: white;
            border: none;
            border-radius: 5px;
        }
        .reatapt-btn {
            background-color: #468adc;
            color: white;
            border: none;
            border-radius: 5px;
        }
    </style>