@font-face {
    font-family: MPLUS_Regular;
    src: url(../fonts/MPLUS1-Regular.ttf);
}

:root {
    --color-text: #372816;
    --color-background: #FFF9F0;
    --color-highlights: #A67C52;
    --color-navBarA: #793401;
    --color-classicNegative: #D9D9D9;
    --color-nostalgicNegative: #C2956B;
    scrollbar-width: thin;
    scrollbar-color: var(--color-highlights) transparent;
}

body {
    font-family: 'MPLUS_Regular', monospace;
    margin: auto;
    max-width: 1280px;
    color: var(--color-text);
    background: var(--color-background);
    padding-left: 1rem;
    padding-right: 1rem;
}

footer {
    height: 100px;
}

/*Home*/
.topnav {
    background: var(--color-background);
    max-width: fit-content;
    margin-top: 0.5rem;
}

.topnav a {
    color: var(--color-navBarA);
    display: inline-block;
    font-size: 15px;
    padding: 10px;
    text-decoration: none;
}

.topnav a:hover {
    color: var(--color-highlights);
}

.nav-line {
    height: 2px;
    background: var(--color-highlights);
    color: var(--color-highlights);
    border: none;
}

.accent-line {
    width: 40px;
    height: 2px;
    background: var(--color-highlights);
    margin: 1.5rem 0;
}

.home-top {
    display: flex;
    gap: 3rem;
}
.home-top img {
    border-radius: 5px;
    width: 500px;
    margin-top: 200px;
}
.home-text {
    max-width: 40%;
}

.contact-link {
    color: var(--color-text);
    font-size: 24px;
}

/*Photography*/
.recipe-div {
    margin-top: 1rem;
    margin-bottom: 1rem;
    margin-left: 2rem;
    width: fit-content;
    padding: 10px;
}

.photos-image {
    height: 300px;
    margin: 2.5px;
    cursor: pointer;
}

.gallery {
    display: flex;
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: thin;
    scrollbar-color: var(--color-highlights) transparent;
}

/* Lightbox overlay */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 6px;
}

.lightbox .close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

.lightbox .nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 3rem;
    cursor: pointer;
    user-select: none;
    padding: 0 20px;
}

.lightbox .prev {
    left: 10px;
}

.lightbox .next {
    right: 10px;
}

/*Recommendations*/
.recommendation-text {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.recommendation-text ul {
    flex: 1;
}

.recommendations img {
    display: flex;
    border-radius: 5px;
    max-width: 500px;
    width: 100%;
    height: auto;
}

.divider-line {
    width: auto;
    height: 2px;
    background: var(--color-highlights);
    margin: 1.5rem 0;
}

.recommend-list-header {
    margin: 0;
    display: contents;
}

.other-place {
    align-items: baseline;
    margin-bottom: 0.75rem;
    gap: 8px;
}

.other-place-header {
    margin: 0;
}

.small-width-image {
    max-width: 250px !important;
    align-self: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    body p {
        font-size: 20px;

    }

    .topnav {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        max-width: none;
    }

    .topnav a {
        display: block;
        width: 100%;
        padding: 16px 20px; 
        font-size: 20px;
        text-align: center;
        box-sizing: border-box;
        border-bottom: 1px solid rgba(0,0,0,0.1);
    }

    .topnav a:active {
        background-color: rgba(0,0,0,0.05); 
    }

    .nav-line {
        display: none;
    }

    /* Home */
    .home-top {
        flex-direction: column-reverse;
        align-items: start;
        gap: 0;
    }

    .home-top img {
        max-width: 100%;
        height: 100%;
        margin-top: 0;
    }

    .home-text {
        max-width: 100%;
    }

    /* Photography */
    .recipe-div {
        margin-left: 0;
        width: 100%;
        box-sizing: border-box;
    }

    /* Recommendations */
    .recommendation-text {
        flex-direction: column;
    }

    .recommendation-text img {
        max-width: 100%;
    }
}
