/* Background and Font */
body {
    background-color: #b0b0b0; 
    font-family: 'Lucida';
}

/* Header */
header {
    text-align: center; 
    font-size: 2em; 
    font-weight: bold; 
    padding: 20px; 
    background-color: #d177b7; 
    color: white; 
}

/* Navigation Menu */
nav ul {
    list-style-type: none; 
    padding: 0; 
}

nav ul li {
    display: inline; 
    margin: 0 15px; 
}

nav ul li a {
    text-decoration: none; 
    color: white; 
    padding: 5px 10px; 
}

nav ul li a:hover {
    background-color: #561865; 
    color: white; 
}

/* Main Sections */
main section {
    padding: 20px; 
    margin: 20px; 
    border: 2px solid #ccc; 
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3); 
    background-color: rgb(230, 204, 244); 
}

/* Footer */
footer {
    font-size: 0.8em; 
    text-align: center; 
    background-color: #333; 
    color: white; 
    padding: 10px; 
}


/* Fix for special-font class */
.special-font {
    font-family: "Lucida Handwriting", cursive;
}

/* --- Navigation Hover Transition --- */
nav ul li a {
    text-decoration: none;
    color: white;
    padding: 5px 10px;
    transition: background-color 0.3s ease; /* Smooth background transition */
}

nav ul li a:hover {
    background-color: #561865;
    color: white;
}

/* --- Section Hover Interactivity --- */
main section {
    padding: 20px;
    margin: 20px;
    border: 2px solid #ccc;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    background-color: rgb(230, 204, 244);
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth hover effect */
}

main section:hover {
    transform: scale(1.02); /* Slight zoom */
    box-shadow: 4px 4px 15px rgba(0, 0, 0, 0.4); /* Stronger shadow */
}

/* --- Table Styling --- */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    background-color: #fff;
}

caption {
    caption-side: top;
    font-weight: bold;
    font-size: 1.2em;
    margin-bottom: 8px;
}

thead th {
    background-color: #d177b7;
    color: white;
    padding: 10px;
    border: 1px solid #ccc;
    text-align: center;
}

tbody td {
    padding: 10px;
    border: 1px solid #ccc;
    text-align: center;
}

tfoot td {
    text-align: center;
    font-style: italic;
    padding: 10px;
    border-top: 2px solid #d177b7;
}

tbody tr:hover {
    background-color: #f9e6f4; /* Row hover effect */
    transition: background-color 0.3s ease;
}

img {
    max-width: 100px;
    height: auto;
    border-radius: 5px;}

    /* Colgroup Styling */
.col-light {
    background-color: #f0f8ff; /* Light blue shade */
}
/* Flexbox for main content */
.main-flex {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    flex-wrap: wrap;
}

/* Flexbox for navigation menu */
nav ul {
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Flexbox for contact form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 400px;
    margin-top: 1rem;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Form input and textarea styling */
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    transition: border-color 0.3s ease;
    font-size: 1rem;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
    border-color: #00796b;
    outline: none;
}

/* Submit button styling */
.contact-form button[type="submit"] {
    padding: 0.7rem 1.5rem;
    background-color: #00796b;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 1rem;
}

.contact-form button[type="submit"]:hover,
.contact-form button[type="submit"]:focus {
    background-color: #004d40;
}

/* Responsive Design */
@media (max-width: 600px) {
    .main-flex {
        flex-direction: column;
        gap: 1rem;
    }
    .contact-form {
        max-width: 100%;
    }
    nav ul {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (min-width: 601px) and (max-width: 900px) {
    .main-flex {
        flex-direction: column;
        gap: 1.5rem;
    }
    .contact-form {
        max-width: 80%;
    }
}

@media (min-width: 901px) {
    .main-flex {
        flex-direction: row;
        gap: 2rem;
    }
    .contact-form {
        max-width: 400px;
    }
}
