/* Reset */
body {
    margin: 0;
    font-family: Arial, sans-serif;
}

/* HEADER */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #1e1e1e;
    padding: 10px 20px;
}

.logo {
    height: 50px;
    width: auto;
    display: block;
}

.nav-right a {
    color: white;
    text-decoration: none;
    margin-left: 20px;
    font-size: 1rem;
    font-weight: bold;
}

.nav-right a:hover {
    text-decoration: underline;
}

/* MAIN CONTENT */
main {
    flex: 1;
    padding: 40px;
    padding-top: 20px;
}

/* FOOTER */
footer {
    background-color: #f2f2f2;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px 0;  /* height */
    gap: 10px;         /* space between copyright and links */
    margin-top: 0;     /* remove extra white space */
}

/* Remove default margins from inner elements */
footer p,
footer nav {
    margin: 0;
    padding: 0;
}

/* Footer links */
.footer-nav a {
    margin: 0 15px;   /* horizontal spacing between links */
    color: #333;
    text-decoration: none;
    font-weight: bold;
}

.footer-nav a:hover {
    text-decoration: underline;
}

/* -------------------------- */
/* ABOUT PAGE */

/* Container */
.about-container {
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* Heading — NO custom margin on desktop */
.about-heading {
    font-size: 2rem;
    
}

/* Desktop content layout */
.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: flex-start;
}

/* Text on left */
.about-text {
    flex: 1 1 0;
    font-size: 1rem;
    line-height: 1.6;
}

/* Image on right */
.about-image {
    width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 6px;
}

.about-image .image-title {
    margin-top: 8px;
    font-size: 0.9rem;
    text-align: center;
    color: #555;
}

/* Match heading-to-paragraph spacing with normal pages (desktop only) */
.about-text p:first-child {
    margin-top: 0;
}


/* -------------------------- */
/* MOBILE ONLY */
@media (max-width: 768px) {

    .about-content {
        flex-direction: column;
        gap: 20px;
    }

    /* Mobile ordering */
    .about-image {
        order: 1;
        width: 100%;
        align-items: center;
    }

    /* Increase left/right spacing for image only */
    .about-image img {
        width: calc(100% - 120px); /* 60px margin on each side */
        margin: 0 auto;
    }

    .about-text {
        order: 2;
        width: 100%;
    }
}

/* Ensure full height layout */
html, body {
    height: 100%;
    margin: 0;
}

/* Page wrapper controls the layout */
.body-wrapper {
    min-height: 100vh;       /* full viewport height */
    display: flex;
    flex-direction: column;
}

/*about picture text*/
.image-title {
    text-align: center;
    font-size: 0.9rem;
    color: #555;
    margin-top: 8px;
}

/* Background image only for main content on the homepage */
body.home main {
    flex: 1;
    background-image: url("images/background.jpg"); 
    /* image source: https://unsplash.com/photos/ocean-waves-crashing-on-shore-during-daytime-WSbG8whAcEs */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

body.home main * {
    position: relative;
    color: black; 
}

/* Make links in the homepage main underline on hover */
body.home main a {
    color: inherit;           /* same as paragraph text */
    text-decoration: none;    /* no underline by default */
}

body.home main a:hover {
    text-decoration: underline; /* underline on hover */
}