/* #hello:hover{
    background-color: purple !important;

}
#hello{
    transition: background-color 0.3s ease-in;
} */

/* don't make navBar cover header when navigating (baking page) */
h3 {
    scroll-margin-top: 80px;
    margin-top: 50px;
}

body {
    background-color: #263822;
    color: #E2E9CD;
    font-size: 22px;
    margin: 0; 
    padding: 24px;
}

/* --- mobile display layout --- */
.navigationBox{
    position: sticky;
    top:0;
    background-color: #A9BF6E;
    border: none;
    border-radius: 32px;
    padding: 8px;
}

.navHeader {
    display: grid;
    grid-template-columns:1fr auto 1fr;
    align-items: center;
    gap:2px;
}

.pageGIF {
    max-height: 100%;
    max-width: 100%;
    justify-self:center;
}

.hamburgerMenu {
    justify-self:left;
    cursor: pointer;
    background-color: transparent;
    color: #655E3E;
    border: none;
    padding: 0px 0px;
    font-size: 24px;
}
.gifOnOff {
    border-radius: 8px;
    width: 28px;
    height:fit-content;
    background-color: #E2E9CD;
    color:#263822;
    border-color: #263822;
}

.navigationBox ul {
    display: flex;
    flex-direction: column;
    list-style: none;
    margin: 0;
    padding: 0px 6px;

    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.5s ease-out, opacity 0.5s ease-out, padding 0.3s ease;
}

.navigationBox ul.open {
    max-height: 200px;
    opacity: 1;
    padding-bottom: 6px;
    padding-right: 12px;
    padding-top: 12px;
    gap: 6px;
}

.navigationBox a {
        color: #E2E9CD;
        text-decoration: none;
        font-weight: 600;
    }


.taiwanFoodList li{
    list-style:circle;
    overflow: hidden;
    margin-bottom: 32px;
}

.bakeLinkBox {
    display: flex;
    align-items: center;
    justify-content: center;
    gap:5px;
    background: #655E3E;
    border-radius: 10px;
    height:50px;
    padding: 5px;
}
.bakeLink {
    color: #A9BF6E;
}

.recipeList a{
    color:#A9BF6E;
}
.toTopButton {
    width: 35px;
    height: 35px;
    border-radius: 25px;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999; 
    pointer-events: auto; 
}

.picsGallery {
    display: grid;
    gap: 16px;
    margin: 20px 0;
}
.picsGallery img {
    width: 100%;
    height: 250px;
    object-fit: cover; 
    border-radius: 16px;
}

.isaacLink{
    color:#A9BF6E;
    background-color: #655E3E;
    border-radius: 12px;
    padding:8px;
    }

.footnotes a, 
.footnotes a:link, 
.footnotes a:visited {
    color: #E2E9CD;
    display: inline-flex;
    transition: transform 0.2s ease, opacity 0.2s ease;
}
/* --- desktop screen layout --- */
@media (min-width: 600px) {
    .layout {
        display: flex;
        flex-direction: column;
        row-gap: 20px;
        width: 60%;
        height: fit-content;
        margin: auto;
    }
    .hamburgerMenu{
        opacity: 0;
        justify-self: left;
    }
    .gifOnOff{
        justify-self: center;
    }

    .navHeader {
    display: grid;
    grid-template-columns:1fr auto 1fr;
    align-items: center;
    gap:2px;
}

    .navigationBox {
        position: relative;
        background-color: #A9BF6E;
        display:grid;
        
        border: none;
        border-radius: 32px;
        padding: 10px;
    }
    .navigationBox ul {
        list-style: none;
        display: flex ;
        flex-direction: row;
        max-height: 200px;
        opacity: 1;
        border: none;
        background-color: #A9BF6E;
        align-items: center;
        justify-content: space-around;
        padding: 12px;
    }

    .navigationBox a:hover{
        color: #655E3E;
        transition: color 0.2s ease-in;
    }

    .pageGIF {
    height: 44px;
    justify-self:center;
}

    .navigationBox a.active{
        color: #655E3E;
        font-weight:900;
        font-size:30px;
    }
    .picsGallery {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 16px;
    margin: 20px 0;
    }
    .picsGallery img {
        width: 100%;
        height: 350px;
        object-fit: cover; /* Prevents image stretching */
        border-radius: 16px;
    }
    
}

