/* Reset some default styles */
body, h1, h2, p, form, input, textarea, select {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding: 0;
    margin: 0;
}

/* Basic styling for header */
header {
    background: #333;
    color: #fff;
    padding: 10px 0;
}

header h1 {
    text-align: center;
}

/* Navigation styling */
nav {
    text-align: center;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

nav ul li {
    display: inline-block; /* Default layout for desktop */
    margin: 0 10px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    padding: 10px 20px;
    display: block;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

nav ul li a:hover {
    background: #0056b3;
    font-weight: bold;
}

/* Styling for 3D nav buttons */
.nav-button {
    display: inline-block;
    padding: 10px 20px;
    font-size: 16px;
    color: #fff;
    background: navy;
    text-decoration: none;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.nav-button:hover {
    background: #0056b3;
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.3);
    font-weight: bold;
    transform: translateY(-2px);
}

.nav-button:active {
    background: #003d7a;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transform: translateY(1px);
}

/* Main content styling */
main {
    padding: 20px;
}

/* Enhanced section styling with faint colors */
section {
    margin-bottom: 20px;
    padding: 20px;
    background: #f9f9f9; /* Very light gray background */
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

section:nth-of-type(even) {
    background: #eaf4ff; /* Very light blue background */
}

section h2 {
    border-bottom: 2px solid #333;
    padding-bottom: 10px;
    margin-bottom: 15px;
    font-size: 1.5em;
}

section p {
    line-height: 1.6;
}

/* Form styling */
form {
    margin: 0 auto;
    max-width: 600px;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

form input[type="text"],
form input[type="password"],
form input[type="email"],
form input[type="number"],
form input[type="date"],
form textarea,
form select {
    width: 100%;
    padding: 10px;
    margin-bottom: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

form input[type="submit"] {
    background-color: navy;
    color: #fff;
    border: none;
    padding: 15px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

form input[type="submit"]:hover {
    background-color: #0056b3;
}

/* Footer styling */
footer {
    background: navy;
    color: #fff;
    text-align: center;
    padding: 10px 0;
    box-shadow: 2px 2px 2px black;
}

footer a:link, footer a:visited {
    color: white;
}

footer a:hover {
    font-weight: bolder;
}

/* Responsive design */
@media (max-width: 768px) {
    nav ul {
        text-align: center;
        padding: 0;
    }

    nav ul li {
        display: block;
        margin: 5px 0; /* Adjusted margin for vertical spacing */
    }

    header h1 {
        font-size: 1.5em;
    }
    .responsive-image {
        max-width: 100%;  /* Ensure image never exceeds the width of its container */
        height: auto;     /* Maintain aspect ratio */
        display: block;   /* Remove bottom space and line break */
        margin: 0 auto;   /* Center the image if needed */
    }
}

@media (max-width: 480px) {
    header {
        padding: 5px 0;
    }

    nav ul li {
        margin: 5px 0;
    }

    header h1 {
        font-size: 1.2em;
    }

    .responsive-image {
        max-width: 100%;  /* Ensure image never exceeds the width of its container */
        height: auto;     /* Maintain aspect ratio */
        display: block;   /* Remove bottom space and line break */
        margin: 0 auto;   /* Center the image if needed */
    }
}
