/* General Reset */
body, h1, h2, p, ul, li, label, input, button {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body Styling with Fullscreen Background Image */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #fff;
    margin: 0;
    padding: 0;
    background-image: url('https://images.unsplash.com/photo-1618005182384-a83a8bd57fbe?q=80&w=2728&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D'); /* Replace with your image file */
    background-size: cover; /* Makes the image cover the entire viewport */
    background-position: center; /* Centers the image */
    background-attachment: fixed; /* Keeps the image fixed while scrolling */
}

/* Semi-Transparent Overlay */
.overlay {
    background: rgba(0, 0, 0, 0.6); /* Adds a dark overlay for better readability */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Sticky Navbar */
.navbar {
    position: sticky;
    top: 0;
    width: 100%;
    background-color: #007BFF;
    color: white;
    z-index: 1000; /* Ensures it stays on top */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

.navbar-item {
    color: white;
    text-decoration: none;
    font-weight: bold;
    margin: 0 10px;
    transition: color 0.3s;
}

.navbar-item:hover {
    color: #ffdd57;
}

/* Responsive Navbar */
@media (max-width: 768px) {
    .navbar-container {
        flex-direction: column;
        text-align: center;
    }
    .navbar-item {
        margin: 10px 0;
    }
}

/* Darker Container Background */
.container {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background: rgba(50, 50, 50, 0.85); /* Darker grey background */
    color: white; /* White text for better contrast */
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Text Styling */
.container h1, .container h2, .container p, .container label {
    color: white; /* Ensure headings, labels, and paragraphs are white */
}

/* Form Styling */
form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

form label {
    font-weight: bold;
    margin-bottom: 5px;
}

form input, form button, form select {
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
}

form input:focus, form button:focus, form select:focus {
    outline: none;
    border-color: #007BFF;
}

form button {
    background-color: #007BFF;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

form button:hover {
    background-color: #0056b3;
}

/* Table Styling */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    color: white; /* White text in table for consistency */
}

table th, table td {
    text-align: left;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

table th {
    background-color: rgba(255, 255, 255, 0.2);
    font-weight: bold;
}

/* Links */
a {
    text-decoration: none;
    color: #007BFF;
    font-weight: bold;
    display: inline-block;
    margin-top: 10px;
}

a:hover {
    color: #ffdd57;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    table th, table td {
        padding: 8px;
    }

    form input, form button, form select {
        font-size: 0.9rem;
        padding: 8px;
    }
}