/* Reset default styles */
body, h1, h2, p {
    margin: 0;
    padding: 0;
}

/* Set the background image on the body */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-image: url('robot_background.jpg');
    background-attachment: fixed; /* Keeps the image fixed while scrolling */
    background-size: cover; /* Scales the image to cover the viewport */
    background-position: center; /* Centers the image */
    min-height: 100vh; /* Ensures the body covers the full viewport height */
    
    /* Add these properties for sticky footer */
    display: flex;
    flex-direction: column;
    margin: 0;
}

/* New top header styles */
.top-bar {
    height: 20px;
    background-color: #333; /* Dark background to stand out over the image */
    width: 100%; /* Spans the full width */
}

/* Header styles (top menu) */
header {
    background-color: #333;
    color: #fff;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 1rem;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
}

nav ul li a.active {
    font-weight: bold;
    text-decoration: underline;
}

/* Main content styles */
main {
    padding: 2rem;
    /* Make main content take up all available space */
    flex: 1 0 auto;
}

.hero {
    text-align: center;
    padding: 4rem 0;
    background-color: #f4f4f4; /* Light background for readability */
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.content {
    margin-top: 2rem;
}

/* Footer styles */
footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 1rem 0; /* Changed from fixed height to padding for better content handling */
    width: 100%; /* Spans the full width */
    /* Make the footer stick to the bottom */
    flex-shrink: 0;
}