*{
    margin:0;
    padding:0;
    box-sizing: border-box;
    text-align: center;
}
/* Header Footer and Main for all the pages */

header {
    text-align: center;
    background-color: #4A2040; 
    color: white;
    padding: 2rem 1.5rem; 
    font-size: 1rem;
    font-weight: bold;
}

@media (max-width: 768px) {
    header {
        padding: 2rem 1rem; 
        font-size: 1rem;
        flex-wrap: wrap;    
    }
}
footer {
    text-align: center;
    padding: 1rem;
    background-color: #3C493F;
    color: white;
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    footer {
        padding: 1.5rem;
        font-size: 1rem;
    }
}


main {
    margin-top: 3rem;
    flex-grow: 1;
}



/* for index.html */
body.index-file {
    background-color: #CBC0D3;
    display: flex;
    flex-direction: column;
    min-height: 100vh; 
}
#index-file-section {
    padding: 1rem;
    background-color: #f4f4f4; 
    border-radius: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.4); 
    margin: 0.5rem auto;
    width: 80%; 
    max-width: 1000px; 
}

#index-file-section ul {
    list-style: none;
    padding: 0;
}

#index-file-section li {
    margin: 1rem 0; 
}

#index-file-section a {
    text-decoration: none;
    font-size: 1.1rem; 
    color: #4A2040; 
    display: block; 
    padding: 0.5rem;
    transition: background-color 0.2s ease, color 0.2s ease;
}

#index-file-section a:hover {
    background-color: #4A2040; 
    color: white;
    border-radius: 4px;
}
/* Media Queries for responsiveness */
@media (max-width: 768px) {
    #index-file-section {
        width: 80%; /* Full width for smaller screens */
        padding: 1.5rem; /* Adjust padding for better spacing */
        margin: 1rem auto;
    }

    #index-file-section a {
        font-size: 0.9rem; /* Slightly smaller font size */
        padding: 0.4rem; /* Reduce padding inside links */
    }

    #index-file-section li {
        margin: 0.8rem 0; /* Less vertical margin between items */
    }
}

/* for homepage.html */
body.homepage{
    background-color: #CBC0D3;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.intro {
    text-align: center;
    margin-bottom: 2rem;
    animation: fadeIn 2s ease-in-out;
}
/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.intro h3 {
    font-size: 2.5rem;
    color: #5A2A5D;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}

.highlight {
    color: #FFEBFF;
    font-weight: bold;
    font-style: italic;
}


/* Form Section */
.form-section {
    background-color: #ffffff;
    padding: 2.5rem;
    margin: 3rem 0;
    margin: 0 auto;
    border-radius: 1.2rem;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.15);
    max-width: 700px;
    width: 100%;
    transition: box-shadow 0.3s ease-in-out;
}

.form-section:hover {
    box-shadow: 0 12px 20px rgba(0, 0, 0, 2);
}

.form-section h4 {
    color: #333;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

/* Input Fields */
.form-section input,
.form-section select,
.form-section textarea {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    background-color: #F9F9F9;
    transition: all 0.3s ease;
}

.form-section input:focus,
.form-section select:focus,
.form-section textarea:focus {
    border-color: #5A2A5D;
    background-color: #fff;
    outline: none;
}

/* Submit Button */
.form-section .submit-btn {
    background-color: #F9A825;
    color: white;
    border: none;
    padding: 1rem 3rem;
    border-radius: 0.8rem;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.form-section .submit-btn:hover {
    background-color: #5A2A5D;
    transform: scale(1.05);
}

/* Tracker Section */
.tracker-section {
    font-size: 1.5rem;
    margin-top: 3rem;
    margin-bottom: 2rem;
    width: 100%;
}

.tracker-section select {
    width: 40%;
    padding: 1rem;
    font-size: 1.1rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    background-color: #F9F9F9;
    transition: all 0.3s ease;
}

.tracker-section select:focus {
    border-color: #5A2A5D;
    background-color: #fff;
    outline: none;
}

/* Responsive Styles */
@media (max-width: 768px) {
    body.homepage {
        padding: 0 1rem;
    }
    
    .intro h3 {
        font-size: 2rem;
    }

    .form-section {
        padding: 2rem;
        width: 100%;
    }

    .form-section input,
    .form-section select,
    .form-section textarea {
        font-size: 1rem;
    }

    .form-section .submit-btn {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }
}
