/* Global Styles (styles.1.css) */

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    background: linear-gradient(135deg, rgb(42, 59, 247), #1655f3, #1205c9);
    background-size: 200% 200%;
    animation: gradientAnimation 13s ease infinite;
}

/* Wrapper for centering content */
.container {
    width: 100%;
    max-width: 37.5rem;
    padding: 1.25rem;
    box-sizing: border-box;
}

@keyframes gradientAnimation {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 100%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Button Styles */
button {
    padding: 0.5rem 0.75rem;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 0.25rem;
    cursor: pointer;
    margin: 0.3125rem;
}

/* Responsive Button Styles */
@media (max-width: 768px) {
    .dropdown-button, .auth-link {
        width: 100%;
        margin: 0.3125rem 0;
    }
}

/* Ensure buttons do not overlap */
.auth-links {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.auth-link {
    width: 100%;
    box-sizing: border-box;
    margin: 0.72rem 0;
}

/* Login Page Styles (pg.1.login.css) */
.login-form input[type="email"],
.login-form input[type="password"] {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 0.0625rem solid #c6c4c4;
    border-radius: 0.25rem;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.login-form button[type="submit"] {
    background-color: #007FFF;
    color: white;
    padding: 0.75rem 1.25rem;
    border: none;
    border-radius: 0.25rem;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.login-form button[type="submit"]:hover {
    background-color: #005FCC;
}

/* Registration Page Styles (pg.1.register.css) */
.registration-form {
    background-color: #fec20c;
    padding: 1.25rem;
    border-radius: 0.25rem;
    box-shadow: 0 0.5rem 1rem rgba(243, 238, 85, 0.1);
    max-width: 37.5rem;
    margin: auto;
}

.registration-form label {
    display: block;
    margin-bottom: 0.625rem;
    color: #2416a8;
    font-weight: bold;
}

.registration-form input[type="text"],
.registration-form input[type="email"],
.registration-form input[type="password"],
.registration-form input[type="date"],
.registration-form select {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 0.0625rem solid #2929f4;
    border-radius: 0.25rem;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.registration-form input:focus,
.registration-form select:focus {
    border-color: #007FFF;
    outline: none;
}

.registration-form select {
    appearance: auto;
    background-color: #fcfcfd;
    cursor: pointer;
    display: block;
    margin-bottom: 0.625rem;
    color: #2416a8;
    font-weight: bold;
}

.registration-form button[type="submit"] {
    background-color: #007FFF;
    color: rgb(249, 247, 246);
    padding: 0.75rem 1.25rem;
    border: none;
    border-radius: 0.25rem;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.9s ease;
}

.registration-form button[type="submit"]:hover {
    background-color: #005FCC;
}

.error-message {
    color: #FF4C4C;
    margin-bottom: 1rem;
}



/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    -webkit-backdrop-filter: blur(0.25rem);
    backdrop-filter: blur(0.25rem);
}

.modal-content {
    position: relative;
    margin: 5% auto;
    padding: 1.875rem;
    background-color: #FAF9F6;
    color: #333;
    width: 60%;
    max-width: 90vw;
    max-height: 80vh; /* Set a maximum height for the modal */
    border-radius: 0.25rem;
    box-shadow: 0 0.5rem 1rem rgba(255, 213, 3, 0.502);
    animation: fadeIn 0.3s ease;
    overflow-y: auto; /* Make the modal content scrollable if it exceeds the maximum height */
}

.modal .close {
    color: #007FFF;
    float: right;
    font-size: 1.75rem;
    font-weight: bold;
}

.modal .close:hover,
.modal .close:focus {
    color: #005FCC;
    cursor: pointer;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Global Font Adjustments */
body, h1, h2, p {
    font-family: 'Arial', sans-serif;
    font-size: 0.8125rem;
    color: #bae7fd;
}

h1 {
    font-size: 3.5rem;
    font-weight: bold;
}

p {
    font-size: 1.2rem;
    line-height: 1.3;
}

/* Image Interaction: Hover Effects */
.bucket-image {
    max-width: 99%;
    height: auto;
    border: 0.3125rem solid transparent;
    border-radius: 0.625rem;
    margin-bottom: 1.25rem;
}

/* Auth Links Styles */
.auth-links a {
    text-decoration: none;
    font-size: 1rem;
    color: #c0c1c3;
    padding: 1rem;
    border-radius: 0.25rem;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.auth-links a:hover {
    background-color: #2188fd;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.2);
}

/* Verification error and button styling */
.verification-error {
    margin: 0.5rem 0;
    padding: 0.5rem;
    border-radius: 0.25rem;
    background-color: rgba(255, 193, 7, 0.1);
    color: #856404;
    border: 1px solid #ffeeba;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.verification-success {
    margin: 0.5rem 0;
    padding: 0.5rem;
    border-radius: 0.25rem;
    background-color: rgba(40, 167, 69, 0.1);
    color: #155724;
    border: 1px solid #c3e6cb;
}

#verificationError button {
    align-self: flex-start;
    background-color: #007bff;
    color: white;
    border: none;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    cursor: pointer;
    font-size: 0.9rem;
}

#verificationError button:hover {
    background-color: #0069d9;
}

#verificationError button:disabled {
    display: none; /* Make the button invisible when disabled */

}

/* Ensure flash messages in registration form appear at the bottom */
#register-modal .flashes {
    margin-top: 1rem;
}



/* PLOP Header Styles - Updated Gradient */
.header-content h1 {
    font-size: 4rem; /* Large and bold */
    font-weight: bold;
    text-transform: uppercase;
    text-align: center;
    background: linear-gradient(135deg, rgb(42, 59, 247),  rgb(249, 247, 246), rgb(42, 59, 247)); /* Updated gradient */
    background-size: 200% 200%; /* For animation */
    -webkit-background-clip: text; /* Vendor-prefixed for WebKit browsers */
    background-clip: text; /* Standard property for compatibility */
    -webkit-text-fill-color: transparent; /* WebKit-specific for gradient text */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3); /* Subtle shadow for depth */
    animation: gradientShift 13s ease infinite; /* Slower gradient animation */
    letter-spacing: 2px; /* Slight spacing for clarity */
    font-family: 'Arial Black', sans-serif; /* Bold and impactful font */
    margin: 0; /* Remove default margin */
}

/* Gradient Animation */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}



/* FAQ Link Styling - Add this new section */
.faq-link-container {
    text-align: center;
    margin: 1.5rem auto;
    padding: 1rem;
}

.faq-link {
    display: inline-block;
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    font-weight: bold;
    color: #bae7fd;
    text-decoration: none;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 165, 0, 0.2));
    border: 2px solid #ffd700;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.faq-link:hover {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.4), rgba(255, 165, 0, 0.4));
    border-color: #ffa500;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5);
    color: #ffd700;
}

.faq-link:active {
    transform: translateY(-1px);
}

/* Responsive FAQ link */
@media (max-width: 768px) {
    .faq-link {
        padding: 0.6rem 1.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .faq-link {
        padding: 0.5rem 1.25rem;
        font-size: 0.9rem;
        width: 90%;
        max-width: 250px;
    }
}
