body,
html {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
    overflow-x: hidden;
}

/* ----------------------------- Header Section ----------------------------- */
#logo img {
    justify-content: left;
    width: 240px;
    height: 160x;
    z-index: 1;
}

#logo {
    flex: 0 1 auto;
}

#header {
    margin: 0;
    padding: 0;
    /* change to white once done more stuff */
}

#header-container {
    display: flex;
    align-items: center;
    /* Align items vertically centered */
    padding: 10px 20px;
    /* Optional: Add some padding */
    /*!!!!!!Change the font to Azur sans-serif!!!!!!*/
    margin: 0;
    font-size: 15px;
}

nav {
    flex: 1 1 auto;
    /* Allow the nav to grow and shrink */
    text-align: center;
    /* Center the nav content */
}

nav ul {
    list-style-type: none;
    /* Remove bullets */
    padding: 0;
    /* Remove padding */
    margin: 0;
    /* Remove margin */
    display: flex;
    /* Use flexbox to arrange items horizontally */
    justify-content: center;
}

nav ul li {
    padding: 10px 20px;
    text-align: center;
    /* Add padding for spacing */
}

nav ul li a {
    text-decoration: none;
    /* Remove underline from links */
    color: black;
    /* Set link color */
}

nav ul li a:hover {
    color: grey;
    /* Change color on hover */
}

/* ------------------------------- Mobile Mode Header ------------------------------ */

/* Hide the menu icon by default */
#menu-toggle {
    display: none;
}

/* Media Query for Mobile Devices */
@media only screen and (max-width: 960px) {
    #header-container {
        flex-direction: column;
        align-items: center;
        position: relative;
    }

    nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        text-align: center;
    }

    nav ul li {
        width: 100%;
    }

    nav ul.show {
        display: flex;
    }

    #menu-toggle {
        display: block;
        cursor: pointer;
        position: absolute;
        right: 20px;
        top: 10px;
    }

    #menu-toggle img {
        width: 30px;
        height: 30px;
    }
}


/* ----------------------------- Top Image Card ----------------------------- */

/* Adjustments for mobile view */
@media only screen and (max-width: 960px) {
    .image-container {
        width: 100%;
        height: auto;
    }

    .image-container img {
        width: 100%;
        height: auto;
        object-fit: cover;
        position: static;
        /* Remove absolute positioning */
        transform: none;
        /* Remove centering transform */
    }

    #overlay-text {
        top: 50%;
        /* Center text vertically */
        left: 50%;
        transform: translate(-50%, -50%);
        width: 80%;
        /* Reduce width for better fit on small screens */
        font-size: 2em;
        /* Adjust font size for better fit on small screens */
    }
}

/* General styles for image container */
.image-container {
    width: 100%;
    height: auto;
    /* Allow height to adjust automatically */
    overflow: hidden;
    position: relative;
}

.image-container img {
    width: 100%;
    height: auto;
    display: block;
    /* Ensure image is block level for proper scaling */
}

/* Overlay text styling */
#overlay-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    width: 80%;
    /* Reduce width for better fit */
    font-size: 2.5em;
    z-index: 2;
    text-align: center;
    padding: 1000px 1000px;
    /* Add padding for better readability */
    background: rgba(0, 0, 0, 0.05);
    /* Add background for better contrast */
    border-radius: 10px;
    /* Add border radius for a polished look */
}

/* Mobile view adjustments */
@media only screen and (max-width: 960px) {
    .image-container {
        height: auto;
        /* Adjust height to content */
    }

    #overlay-text {
        width: 100%;
        /* Increase width for better fit on small screens */
        font-size: 1em;
        /* Adjust font size for better fit on small screens */
        padding: 1000px 1000px;
        /* Adjust padding for smaller screens */
    }
}

/* --------------------------------- Writing -------------------------------- */

#writing-container {
    background-color: #1a1a1a;
}

#writing {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: left;
    text-align: left;
    line-height: 1.5;
    margin: 0px 40px;
    padding-bottom: 20px;
}

#writing h2 {
    color: whitesmoke;
}

#writing h3 {
    color: #bf0000;
}

#writing span {
    font-weight: 700;
}

#writing p {
    color: #F4F5F5;
}


@media only screen and (max-width: 960px) {
    #writing h2 {
        font-size: 20px;
    }

    #writing h3 {
        font-size: 15px;
    }

    #writing p {
        font-size: 12px;
    }

    #writing {
        margin: 0px 10px;
        max-width: 90%;
    }
}

/* --------------------------------- Footer --------------------------------- */

#footer {
    width: 100%;
    padding: 30px 20px;
    transition: background-color 0.2s ease-in;
}

#footer:hover {
    background-color: #F4F5F5;
}

#footer #icon-container {
    display: flex;
    justify-content: right;
    align-items: center;
    width: 100%;
    position: relative;
    right: 50px;
}

#footer #icon-container img {
    width: 20px;
    height: 20px;
    margin: 0 5px;
}

@media only screen and (max-width: 960px) {
    #footer #icon-container {
        justify-content: center;
        right: 0;
    }
}