/* Basic Reset and Setup */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* Ensures padding and borders are included in element's total width/height */
}

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

/* Header Styling */
.header {
    background-color: #000;
    color: white;
    padding: 10px 20px;
    display: flex; /* Use flexbox for layout */
    justify-content: space-between; /* Puts logo on left, menu on right */
    align-items: center; /* Vertically centers logo and menu */
    position: sticky; /* Makes the header stick to the top */
    top: 0;
}


.resized-img {
  width: 200px; /* Sets a fixed width */
  height: auto; /* Automatically adjusts height to maintain aspect ratio */
}

/* Navigation Bar Styling */
.navbar ul {
    list-style: none;
    display: flex; /* Makes menu items horizontal */
}

.navbar ul li a {
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    display: block;
}

.navbar ul li a:hover {
    background-color: #555;
}

/* Main Content Area (for demonstration) */
main {
    padding: 20px;
}


/* Responsive Design (Media Queries) */

/* For screens smaller than 768px (tablets and mobile phones) */
@media (max-width: 768px) {
    .header {
        flex-direction: column; /* Stack logo and menu vertically on small screens */
        align-items: flex-start;
    }

    .logo {
        margin-bottom: 10px;
    }
    
    .navbar ul {
        flex-direction: column; /* Stack menu items vertically */
        width: 100%;
    }

    .navbar ul li a {
        padding: 10px;
        text-align: left;
    }
}

