/* Basic reset to remove default margins and paddings */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
    color: #333;
    /* line-height: 1.6; */
    padding: 20px;
    margin: 0; /* Ensure no default margin */
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

h1 {
    margin-bottom: 20px;
    text-align: center;
    flex-grow: 1;
    color: white;
}

header {
    margin-bottom: 20px;
    background-color: rgb(70,70,70);
    width: 100%; /* Full width of the body */
    top: 0; /* Align it to the top */
    left: 0; /* Align it to the left */
    position: fixed;
    z-index: 1; /* Ensure it is on top of other elements */
} 

main {
    margin-top: 100px; /* Adjust this value to match the height of the header */
    margin-bottom: 100px;
}

nav {
    position: relative;
}

nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    background-color: #333;
}

nav ul li {
    margin: 0 10px;
}

nav ul li a {
    text-decoration: none;
    color: white;
    padding: 10px 20px;
    display: block;
    transition: background-color 0.3s ease;
}

nav ul li a:hover {
    background-color: #575757;
}

/* Hamburger Menu Icon */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    padding: 10px;
    background-color: #333;
    z-index: 1;
}

.hamburger div {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 4px 0;
    transition: all 0.3s ease;
}

/* Hide navigation menu by default on small screens */
@media (max-width: 768px) {
    .header-content {
        justify-content: flex-start;
    }

    h1 {
        text-align: left;
        margin-right: auto;
        margin-left: 10px;
    }  

    .hamburger {
        display: flex;
    }

    nav ul {
        display: none;
        flex-direction: column;
        justify-content: flex-start;
        position: absolute;
        /* top: 50px; */
        right: 0;
        background-color: #333;
        width: 200px;
    }

    nav ul li {
        margin: 10px 0;
    }
}

/* Rotate hamburger menu icon when active */
.hamburger.active div:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active div:nth-child(2) {
    opacity: 0;
}

.hamburger.active div:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* Show the navigation menu when active */
nav ul.active {
    display: flex;
}

footer {
    padding-left: 10px;
    background-color: rgb(70,70,70);
    width: 100%; /* Full width of the body */
    bottom: 0; /* Align it to the bottom */
    left: 0; /* Align it to the left */
    position: fixed;
}

ul {
    list-style-type: none;
}

ul li a {
    text-decoration: none;
    color: #007BFF;
    transition: color 0.3s ease;
}

ul li a:hover {
    color: #0056b3;
}

