html, body{
    width: 100%;
    margin: 0;
    padding: 0;
    background: #F5E3D0;
    font-family: 'Merriweather', serif;
    font-size: 17px; /*slightly larger than wiki*/
    box-sizing: border-box;
    line-height: 130%;
    display: flex;
    align-items: center;
    flex-direction: column;
    touch-action: manipulation;
    overflow-x: hidden;
    cursor: url('cursor.svg'), url('cursor.png'), auto;
}

header {
    align-self: stretch;
    text-align: center;
    padding-top: 80px;
    padding-bottom: 0px;
    padding-left: 20px;
    padding-right: 20px;
}

aside {
    padding-left: 20px;
    padding-right: 20px;
}

main {
    max-width: 1100px;
    width: 100%;
    justify-content: center;
    align-items: center;
    padding-bottom: 15px;
}

article {
    background-color: #d7dfe5;
    padding: 8px 18px 10px 18px;
    margin: 0px 30px 80px 30px; /* Add margin-top to account for fixed navbar */
    border-radius: 8px;
}



h1 {
    color: #555;
    background-color: #cba9b8;
    border-radius: 5px;
    display: block;
    line-height: 35px;
    padding: 22px 8px;
    text-align: center;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    font-weight: 500;
}

h2 {
    color: #555;
    background-color: #b8cde0;
    padding: 13px 18px;
    border-radius: 5px;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    font-weight: 500;
    line-height: 1.4;
}


.blog-list, .info-pages {
    margin: 25px;
}

h3 {
    background-color: #a9bfd6e6;
    color: #555;
    padding: 9px 8px;
    border-radius: 5px;
    width: fit-content;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    font-weight: 500;
    line-height: 1.4;
}

h4 {
    background-color: #dcc7a7e5;
    color: #555;
    padding: 6px 6px;
    border-radius: 5px;
    width: fit-content;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    font-weight: 500;
}

h5 {
    background-color: #d1b4cee5;
    color: #555;
    padding: 4px 4px;
    margin-left: 4px;
    border-radius: 5px;
    width: fit-content;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    font-weight: 500;
}

p {
    color: #555;
    background-color: transparent;
    font-size: 1rem;
    text-align: left;
    margin: 5px;
    text-align: justify;
}

.info-pages p {
    margin: 15px 15px 15px 15px;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}

ul {
    list-style-type: none;
    display: flex;
    flex-wrap: wrap;
    padding: 0;
}

li {
    list-style-type: none;
    margin: 10px;
}

label {
    background-color: red;
}

::placeholder {
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    color: #888; /* Change to your desired color */
    opacity: 1; /* For some browsers to ensure visibility */
}


a {
    font-size: 0.9rem;
    color: #444;
    background-color: #f1c28b;
    border-radius: 3px;
    padding: 1px 4px;
    text-decoration: none;
    transition: background-color 0.3s;
}

button {
    background-color: red;
    font-family: 'Merriweather', serif;
}

a:hover {
    background-color: #eda34e;
}


.index_hero_container {
    display: flex;
    flex-wrap: wrap;
    padding-bottom: 1;
    justify-content: space-between;
    align-items: center;
}

.index_hero_info {
    margin: 20px;
    text-align: left;
    flex-grow: 1;
    flex-basis: 200px;
    background-color: #e3cbaf;
    height: 250px;
    padding: 25px;
    border-radius: 10px;
    box-sizing: content-box;
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
}

.index_hero_info p {
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}

.index_hero_title {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto 20px auto;
    width: 250px;
}

.index_hero_image-container{
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
    display: none;
}
@media (min-width: 768px) {
    .index_hero_image-container{
        display: flex;
        margin: 20px;
        max-width: 300px;
        height: 300px;
        border-radius: 10px;
        background-color: #dedbd9;
    }
}

.index_hero_image {
    border-radius: 10px;
    object-fit: fill;
    margin: 8%;
    
}

.search_container {
    margin: 20px;
    text-align: left;
    flex-grow: 1;
    flex-basis: 200px;
    background-color: #e3cbaf;
    padding: 25px 25px 35px;
    border-radius: 10px;
    box-sizing: content-box;
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
}


/*=========================== Photo Page ========================================*/

.start-page{
    display: none;
}

.start_page_photo{
    display: none;
}
.start_page_title{
    display: none;
}

@media (max-width: 768px) and (hover: none) and (pointer: coarse) {
    .start-page {
        position: relative;
        height: 100vh;
        width: 100vw;
        display: flex;
        /* justify-content: center; */
        padding-top: 10vh;
        align-items: center;
        flex-direction: column;
        text-align: center;
        color: gray;
    }
}

@media (max-width: 768px) {
    .start_page_photo {
    display: flex;
    width: 85vw;
    }
    .start_page_title {
    display: flex;
    width: 50vw;
    padding-top: 5vw;
    }
}

.swipe-indicator {
    position: absolute;
    bottom: 25vh;
    animation: bounce 5s infinite;
    font-size: 1.5em;
    color: rgb(181, 122, 200);
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/*===============================================================================*/
/*=========================== styling for the search bar ========================*/
/*===============================================================================*/

.SearchBar {
    display: flex;
    align-items: center;
    margin-top: 10px;
    position: relative;
}

.SearchBar__input {
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #dccebd;
    flex-grow: 1;
    font-size: 14px;
}


/*=========================== styling for the sumbit button========================*/
.submit-button {
    background-color: #f1c28b;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    border: none;
    color: #444;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
}

.submit-button:hover {
    background-color: #eda34e;
    color: white;
}

.index_hero_tag-container {
    margin-top: 10px;
    overflow-y: scroll;
    max-height: 100px;
}

.flex {
    display: flex;
}

.flex-wrap {
    flex-wrap: wrap;
}

.gap-2 {
    gap: 10px;
}

.SearchTag {
    background-color: #cba9b8;
    color: white;
    font-family: "Gill Sans", "Gill Sans MT", Calibri, "Trebuchet MS", sans-serif;
    font-weight: 200;
    padding: 5px 10px;
    border-radius: 5px;
    text-decoration: none;
}


.SearchTag:hover {
    background-color: #b89baf;
}

/* ====================================== Navigation bar ====================================== */

.navbar {
    background-color: #88AFA6;
    padding: 0px;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
}


.navbar ul {
    list-style-type: none;
    margin: 0;
    padding: 5px;
	flex-wrap: wrap;
    justify-content: center;
	width: 100%;
    flex-direction: column;
    background-color: #88AFA6;
}


.navbar ul li {
    color: #f0f0f0;
    position: relative; /* Add this for dropdown */
    margin: 4px 15px;
    padding: 5px 6px 5px 6px;
    box-sizing: border-box;
    transition: background-color 0.3s;
    border-radius: 4px;
    width: fit-content;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    font-weight: 500; 
}

.navbar ul li a {
    color: #f0f0f0;
    font-size: 110%;
    background-color: transparent;
    transition: background-color 0.3s;
    font-weight: 400;
    border-radius: 4px;
}

.navbar ul li:hover {
    position: relative; /* Add this for dropdown */
    margin: 4px 15px;
    background-color: #416A62;
}


/*====================================== Menu Toggle==============================================*/
/* Show class for toggling menu visibility */
#nav-menu.show {
    display: flex;
}

/* Hide menu initially */
.menu-toggle {
    background-color: #88AFA6;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    border: none;
    color: #f0f0f0;
    padding: 8px;
    margin: 6px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s;
    font-size: 22px;
}

#nav-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 10px;
}

/* .menu-toggle:hover for mac and active for phone, */
@media (hover: hover) and (pointer: fine){
    .menu-toggle:hover {
        background-color: #416A62;
}}
@media (hover: none) and (pointer: coarse){
    .menu-toggle:active {
        background-color: #416A62;
}}

.arrow {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-left: 8px;
    margin-bottom: 2px;
    border-top: 2px solid #f0f0f0;
    border-left: 2px solid #f0f0f0;
    transform: rotate(225deg); /* Points DOWN initially (45deg is UP, +180deg) */
    transition: transform 0.3s, margin-bottom 0.3s;
    font-size: 0; /* Hide the text character */
}

.menu-toggle.open .arrow {
    transform: rotate(45deg); /* Points UP */
    margin-bottom: -2px; /* Adjust position slightly */
}

/* Hide menu toggle for screens wider than 768px and display menu */
@media (min-width: 768px) {
    .menu-toggle {
        display: none;
    }
    #nav-menu {
        display: flex;
        flex-direction: row;
    }
    .navbar {
        height: 25px;
    }
    .navbar ul li .arrow {
        transform: rotate(180deg) translateY(4px);
    }
    .navbar ul li:hover .arrow {
        transform: rotate(0deg) translateY(4px);
    }
}


/* For search display  */
.blog-list {
    text-align: left;
}

.blog-list p {
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}

.blog-post { 
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding: 10px;
    background-color: #d5ced9;
    border-radius: 5px;
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
    align-items: flex-start;
    margin: 15px 10px 15px 10px;
}

.blog-post img {
    width: 150px;
    margin-right: 20px;
    border-radius: 5px;
    height: 150px;
    object-fit: scale-down;
    box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.15), inset 0 -3px 6px rgba(0, 0, 0, 0.05);  
}

.blog-post-content {
    flex: 1;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.blog-post h3 {
    margin: 0;
    background-color: #bdacc8;
    transition: background-color 0.3s;
}

.blog-post h3:hover {
    margin: 0;
    background-color: #b9a0c9;
}

.blog-post h3 > a {
    background-color: transparent;
    font-size: large;
}

.blog-post p {
    margin: 5px 5px 0px 5px;
    padding: 0px;
    display: block;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}

.blog-post .meta {
    font-size: 0.8rem;
    color: #888;
}


/* For phones */
@media (max-width: 768px) {
    .blog-post {
        flex-direction: column;
        max-height: none;
    }
    .blog-post img {
        width: 90%;
        padding: 5%;
        margin-bottom: 10px;
        height: auto;
        max-width: none;
        display: flex;
        aspect-ratio: 4 / 3;
        object-fit: contain;
    }

    .blog-post img.full-width-thumbnail {
        width: 100%;
        padding: 0;
        aspect-ratio: unset;
        height: auto;
        object-fit: contain;
        display: block;
        box-shadow: none;
        border-radius: 5px;
        -webkit-mask-image: -webkit-linear-gradient(white, white);
    }
}




/* ========================================== Blog post content bar=========================================== */

.content-bar {
    position: fixed;
    top: 46px;
    left: 0;
    height: calc(100vh - 170px);
    width: min(calc((100vw - 1100px)/2 - 50px), 320px);
    padding: 15px;
    margin: 20px;
    /* background-color:#f0e0d2; */
    box-shadow: inset 0 4px 8px rgba(0, 0, 0, 0.2);
    /* border-color: #d4ba97; */
    /* border-style: solid; */
    border-radius: 8px;
    flex-direction: column;
    overflow-y: scroll;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    font-weight: 500;
}

.content-bar h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.content-bar ul {
    display: block;
    list-style: none;
    padding: 0;
}

.content-bar ul li {
    display: flex;
    margin: 10px 0;
    padding: 0%;
}


.toc-h2 a{
    background-color: #d6b6c6;
    font-size: 90%;
    padding: 5px;
    margin-left: 3px
}

.toc-h2 a.active {
    background-color: #c5a3b4;
}

.toc-h2 a:hover {
    background-color:#b390a2;
}

.toc-h3 a{
    background-color: #b8c9d7;
    margin-left: 10px;
}

.toc-h3 a.active {
    background-color: #a1b9ce;
}

.toc-h3 a:hover {
    background-color: #89a9c5;
}

.toc-h4 a{
    font-size: 80%;
    background-color: rgb(234, 211, 174);
    margin-left: 15px;
}

.toc-h4 a.active {
    background-color: #d7be9b;
}

.toc-h4 a:hover {
    background-color: rgba(195, 168, 135, 0.708)
}



@media (max-width: 1440px) {
    .content-bar {
        display: none; /* Hide sidebar */
    }

    .content-bar.menu-open {
        box-shadow:none;
        left: 0;
        display: block; /* Show sidebar when menu button is clicked */
        position: fixed;
        width: 80%;
        background-color:#f0e0d2;
        max-width: 220px;
        border: 5px;
        border-style: solid;
        border-color: #d4ba97;
        height: calc(100vh - 170px);
        z-index: 1000;
    }

}


.content-toggle {
    background-color: #88AFA6;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    font-size: 110%;
    position: fixed; /* Position relative to the navbar */
    top: 7px; 
    right: 8px;
    z-index: 1001; /* Ensure it's above other elements */
    border: none;
    color: #f0f0f0;
    padding: 8px 10px 8px 10px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.content-toggle:hover {
    background-color: #416A62;
}

/* Hide content toggle for screens wider than 768px and display menu */
@media (min-width: 1440px) {
    .content-toggle {
        display: none;
    }
}

.blog-header-image {
    max-width: 200px;
    height: auto;
    display: block;
    margin: 0 auto;
    padding-bottom: 10px;
    padding-top: 20px;
}


/*========================================== footer and footnotes ============================================*/

footer {
    width: 100vw;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    background-color: #A08DA7;
    padding: 10px 10px 10px 20px; /* Equal padding on top and bottom */
    color: #555;
    box-sizing: border-box;
}

footer > p > a {
    background-color: transparent;
    transition: color 0.3s;
    color: #555;
}

footer > p > a:hover {
    background-color: transparent;
    color: #222222;
}

.footnotes > p {
    font-size: 90%;
}

