body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background-color: #003366;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: Arial, sans-serif;
}

/* Main container managing overall layout */
.main-container {
    display: flex;
    flex-direction: column;
    width: 100%; /* Full width to avoid any unexpected overflow */
    min-height: 100vh; /* Full viewport height to occupy entire screen */
    align-items: center; /* Center content horizontally */
    justify-content: flex-start; /* Align content to the top */
}

/* Styling for the title bar */
.title-bar {
    background-color: #003366;
    color: #FFFFFF;
    height: 60px; /* Fixed height for predictability */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    width: 100%; /* Full width to stretch across the screen */
}

/* Title text styling */
.title-bar .title {
    font-size: 1.5em;
    flex-grow: 1;
    text-align: center;
}

/* Menu icon styling */
.title-bar .menu {
    font-size: 2em;
    cursor: pointer;
    margin-right: 1%;
}

/* Dropdown menu styling */
.menu-dropdown {
    display: none;
    position: absolute;
    top: 60px; /* Adjust based on the height of the title bar */
    right: 0;
    background-color: #FFFFFF;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 100;
}

.menu-dropdown a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.menu-dropdown a:hover {
    background-color: #ddd;
}

/* Map container styling */
#map {
    flex-grow: 1;
    width: 100%; /* Full width */
    height: calc(100vh - 60px); /* Adjust height to take remaining space */
}

/* Additional content styling */
.content {
    padding: 20px;
}

/* Login container specific styling */
.login-container {
    width: 300px;
    padding: 20px;
    background-color: #ffffff;
    box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.5);
    border-radius: 5px;
    text-align: center;
}

.login-container h1 {
    margin-bottom: 20px;
    color: #003366;
}

.input-group {
    margin-bottom: 15px;
    text-align: left;  /* Align text to the left within the input groups */
}

.input-group input[type="text"], .input-group input[type="password"], .input-group input[type="email"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;  /* Ensure padding and border are included in the element's total width and height */
}

.input-group button {
    width: 100%;
    padding: 8px;
    background-color: #004488;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.input-group button:hover {
    background-color: #0055aa;
}

.input-group input[type="checkbox"] {
    margin-right: 5px;
}

/* Button styling */
button {
    width: 100%;
    padding: 8px;
    background-color: #004488;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

button:hover {
    background-color: #0055aa;
}

input[type="checkbox"] {
    margin-right: 5px;
}

form {
    margin-top: 20px;
}

/* Shake animation for error messages */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-10px); }
    20%, 40%, 60%, 80% { transform: translateX(10px); }
}

.shake {
    animation: shake 0.82s cubic-bezier(.36,.07,.19,.97) both;
}

/* Error message styling */
.error-message {
    color: red;
    display: none; /* Hidden by default, shown on error */
}