
/* Background and Font */

body {
    font-family: Arial, Helvetica, sans-serif;
    background: linear-gradient(to bottom, #eeeeee, #d4d4d4);
    margin: 0;
}


/* Header */

header {
    text-align: center;
    font-size: 2em;
    font-weight: bold;
    padding: 25px;
    background-color: #2e7d32;
    color: white;
}


/* Navigation Menu */

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    padding: 0;
    margin: 0;
    background-color: #444;
}

nav ul li {
    margin: 0 15px;
}

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

/* Hover effect */

nav ul li a:hover {
    background-color: #4CAF50;
    color: white;
    border-radius: 4px;
}


/* Main Sections */

section {
    padding: 20px;
    margin: 20px;
    background-color: white;
    border: 2px solid #ddd;
    box-shadow: 2px 2px 8px rgba(0,0,0,0.2);
}


/* Footer */

footer {
    text-align: center;
    font-size: 0.85em;
    padding: 15px;
    background-color: #2e7d32;
    color: white;
}
/* =====================================
   NEW FEATURES FOR THIS ASSIGNMENT
   ===================================== */

/* Navigation transition */
nav ul li a {
    transition: background-color 0.3s ease;
}

/* Section hover zoom */
section {
    transition: transform 0.3s ease;
}

section:hover {
    transform: scale(1.02);
}

/* Table styling */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

caption {
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 1.1em;
}

th, td {
    border: 1px solid #999;
    padding: 10px;
    text-align: left;
    vertical-align: top;
}

/* Table header color (match your green theme) */
thead {
    background-color: #a5d6a7;
}

/* Table footer */
tfoot {
    background-color: #eeeeee;
    font-style: italic;
}
/* =====================================
   RESPONSIVE CONTACT FORM ASSIGNMENT
   ===================================== */

/* Main content flexbox */
main {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Navigation flexbox */
nav ul {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 10px;
}

/* Contact form flexbox */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* Form field styling */
input[type="text"],
input[type="email"],
textarea {
    padding: 10px;
    border: 1px solid #999;
    border-radius: 4px;
    transition: border-color 0.3s ease;
    font-family: Arial, Helvetica, sans-serif;
}

/* Submit button styling */
input[type="submit"] {
    background-color: #2e7d32;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

/* Hover and focus effects */
input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
    border-color: #2e7d32;
    outline: none;
}

input[type="submit"]:hover {
    background-color: #4CAF50;
}

/* Responsive media queries */
@media screen and (max-width: 599px) {
    body {
        min-width: 320px;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
    }
}

@media screen and (min-width: 600px) and (max-width: 899px) {
    body {
        min-width: 600px;
    }
}

@media screen and (min-width: 900px) {
    body {
        min-width: 900px;
    }
}
