body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column; 
    min-height: 100vh;
    background-color: #f0f0f0;
    position: relative; /* Added for positioning context */
}
nav ul li {
    display: inline;
    margin: 0 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
}
nav ul {
    list-style-type: none;
    padding: 0;
}



/* Hide submenu by default */
.submenu {
    display: none;
    position: relative;
    background-color: #f9f9f9;
    min-width: 150px;
    box-shadow: 100px 8px 16px 100px rgba(0,0,0,0.2);
    z-index: 1;
}

/* Show submenu on hover */
nav ul li:hover .submenu {
    display: block;
}

.submenu li {
    display: block;
    width: 100%;
}

.submenu li a {
    color: black;
}

.submenu li a:hover {
    background-color: #4CAF50;
}

/* Fixed Header */
header {
    background-color: #4CAF50;
    color: white;
    text-align: center;
    padding: 1em;
    position: fixed;   /* Makes the header fixed */
    width: 100%;
    top: 0;
    z-index: 1000;     /* Ensures it stays on top */
}

header h1 {
    margin: 0;
}



/* Adjust main content to account for fixed header and footer */
main {
    flex: 1;
    padding: 140px 20px 60px; /* Top padding for header, bottom for footer */
    overflow-y: auto; /* Allow scrolling if content overflows */
}

section {
    margin-bottom: 20px;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

form {
    display: flex;
    flex-direction: column;
}

label {
    margin-top: 10px;
}

input, textarea {
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 4px;
}

/* Fixed Footer */
footer {
    background-color: #4CAF50;
    color: white;
    text-align: center;
    padding: 10px 0;
    position: fixed;
    width: 100%;
    bottom: 0;
    z-index: 1000;
}
