* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-image: url('background.png'); /* Add your background image here */
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    flex-direction: column;
    text-align: center; /* Center text in all sections */
}

.logo {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 200px;
}


/* Media query for small screens */
@media screen and (max-width: 600px) {
    .logo {
        width: 150px; /* Adjust the width as needed */
    }
}

 /* Style for the hyperlink */
        #guidelines-link {
            position: absolute;
            top: 20px;
            right: 20px;
            font-size: 16px;
            color: white;
            text-decoration: none;
        }

        #guidelines-link:hover {
                color: #cccccc; /* Light gray on hover */


        }
  #login-link, #logout-link {
    position: absolute;
    top: 20px;
    right: 150px; /* Adjusted spacing from Legal Guidelines */
    font-size: 16px;
    color: white;
    cursor: pointer;
    text-decoration: none;
}

#login-link:hover, #logout-link:hover {
    color: #cccccc; /* Light gray on hover */
    text-decoration: none; /* No underline on hover */
}
.welcome-message {
    text-align: center;
    position: absolute; /* Fix position to prevent moving */
    top: 20%; /* Adjust for vertical centering */
    transform: translateY(-50%); /* Adjust vertical position */
    margin-top: 60px;
    margin-bottom: 40px; /* Space below welcome message */
    color: white; /* Change text color for better visibility */
    z-index: 10; /* Ensure it's above other elements */
}

h1 {
    font-size: 36px;
    margin-bottom: 10px;
    font-weight: bold; /* Bold title */
}

h3 {
    font-size: 24px;
    color: #f0f0f0; /* Slightly lighter color for motto */
    margin-bottom: 30px; /* Space between motto and category select */
    font-weight: bold; /* Bold motto */
    position: relative; /* Position relative to keep its place */
}

.input-section {
    margin-top: 200px; /* Ensure there's enough space below motto */
    position: relative; /* Set position to relative */
    z-index: 1; /* Set lower z-index to stay below welcome message */
    min-height: 300px; /* Ensure minimum height to maintain space after contribution message */
    transition: all 0.3s ease;
}

button {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s; /* Smooth transition */
    margin: 10px 5px; /* Margin around buttons */
}

button:hover {
    background-color: #45a049;
}

.hidden {
    display: none; /* Class to hide elements */
}

.text-input {
    border: 1px solid white;
    padding: 10px;
    width: 300px;
    background-color: transparent; /* No fill color */
    color: white;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s; /* Smooth transition */
}

.text-input:focus {
    border-color: #4CAF50; /* Change border color on focus */
}

.thank-you {
    color: white;
    font-size: 18px;
    margin-top: 20px;
    opacity: 0; /* Initially hidden */
    transition: opacity 0.5s; /* Fade transition */
}

.modal {
    margin-top: 20px;
    color: white;
    opacity: 0; /* Initially hidden */
    transition: opacity 0.5s; /* Fade transition */
}

.fade-in {
    opacity: 1; /* Fully visible */
}

.fade-out {
    opacity: 0; /* Fully hidden */
}

.error-message {
    color: red;
    font-weight: bold;
    margin-top: 10px;
    opacity: 0; /* Initially hidden */
    transition: opacity 0.5s; /* Fade transition */
}
/* Styling for messages */
.message {
    font-size: 18px; /* Increase font size */
    margin-bottom: 10px; /* Space below messages */
    line-height: 1.5; /* Improve readability */
}

/* Adjusting input fields to be below the messages */
.input-container {
    display: block; /* Ensure they are block elements */
    margin-top: 10px; /* Space above input fields */
}

/* Legal Notice Styling */
#legal-notice {
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Center the modal */
    width: 80%; /* Define the width of the modal (adjust as necessary) */
    max-width: 800px; /* Set a maximum width to prevent it from getting too wide */
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.8); /* Dark background with some transparency */
    border-radius: 10px; /* Rounded corners for a smoother look */
    text-align: center;
    z-index: 20; /* Ensure it stays above other content */
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.5); /* Optional shadow for emphasis */
}

/* Media query for small screens */
@media screen and (max-width: 600px) {
    #legal-text {
       font-size: 20px;
    }
}


.legal-text {
    font-size: 18px; /* Set a readable font size */
    line-height: 1.5; /* Improve text readability */
    color: white; /* White text color */
    margin-bottom: 20px;
}


/* Additional styles for error message */
#error-message {
    color: red; /* Red color for error messages */
    font-weight: bold; /* Make error messages stand out */
}

/* Thank you message styles */
#thank-you-message {
    position: absolute;
    top: 50%;  /* Center vertically */
    left: 50%;
    transform: translate(-50%, -50%);
    color: green;
    font-weight: bold;
    font-size: 24px;
    opacity: 0;  /* Initially hidden */
    transition: opacity 0.5s ease-in-out; /* Smooth fade-in */
}

#input-section {
    margin-top: 80px; /* Add margin to maintain spacing */
}



.modal {
    transition: opacity 0.5s ease;
}
