@font-face {
    font-family: 'IMFellEnglish';
    src: url('./fonts/IMFellEnglish.ttf') format('truetype');
    font-style: normal;
    font-weight: 400;
}

@font-face {
    font-family: 'IMFellEnglish';
    src: url('./fonts/IMFellEnglish-italic.ttf') format('truetype');
    font-style: italic;
    font-weight: 400;
}

body {
    font-family: 'IMFellEnglish', serif;
    color: #3e4e50;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    height: 100vh;
    background-attachment: fixed;
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'IMFellEnglish', serif;
    color: #ffdda2;
    text-shadow: 1px 1px 0px #333;
}

a {
    color: rgba(237, 227, 212, 0.78);
}

.container {
    background-color: rgba(255, 255, 255, 0.8);
    padding: 20px;
    border-radius: 10px;
    margin: 10px;
}

.button {
    background-color: #6b4423;
    color: white;
    border: none;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 5px;
}

.content {
    margin: 10px;
    color: rgb(237 227 212 / 100%);
    min-width: 500px;
    max-width: 33%;
    mix-blend-mode: soft-light;
    /* text-shadow: 1px 1px 0px black; */
    font-size: 14pt;
    padding-left: 10px;
    padding-right: 10px;
    padding-bottom: 0px;
    padding-top: 1px;
    transition: all 0.5s ease;
}

/* on mouseover, switch to hard light */

.content:hover {
    mix-blend-mode: hard-light;
    color: rgb(237 227 212 / 78%);
    backdrop-filter: blur(3px);
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    transition: all 0.5s ease;
}

.content:hover p {
    transition: all .5s linear;
}

.content:hover p {
    transition: all .5s linear;
}

.content p {
    transition: all .5s linear;
}

/* Switch to hard light  */
.nav-button:hover {
    mix-blend-mode: hard-light;
    color: rgb(237, 227, 212 / 78%);
    backdrop-filter: blur(3px);
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    transition: all 0.5s ease;
}


p {
    margin-top: 10px;
    color: rgb(237 227 212 / 100%);
    /* text-shadow: 1px 1px 0px black; */
    font-size: 14pt;
}

blockquote p {
    font-size: 12pt; 
}

#backgroundImg {
    position: fixed;
    top: 0;
    left: 0;
    min-width: 100%;
    min-height: 100%;
    max-height: 100vh;
    z-index: -1;
    /* Display the center of the image */
}
#backgroundImg img {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
}

ul {
    margin-top: 20px;
    color: rgb(237 227 212 / 100%);
    max-width: 500px;
    /* text-shadow: 1px 1px 0px black; */
    font-size: 14pt;
}

.nav-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: rgba(107, 68, 35, 0.1);
    mix-blend-mode: difference;
    border: none;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 20px;
    cursor: pointer;
    border-radius: 5px;
    font-family: 'IMFellEnglish', serif;
    padding: 5px;
    color: rgb(172, 156, 128);
    transition: all 0.5s ease;
    box-sizing: border-box;

}

.nav-button:hover {
    mix-blend-mode: hard-light;
    color: rgba(237, 227, 212, 0.78);
    backdrop-filter: blur(3px);
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
    width: 100%;
}

.gallery-item {
    flex: 1 1 calc(25% - 20px); /* Adjust the number of items per row */
    box-sizing: border-box;
    padding: 10px;
    background-color: #333;
    border-radius: 10px;
    overflow: hidden;
    max-width: calc(25% - 20px);
}

.gallery-item img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.attribution {
    color: rgba(237, 227, 212, 1);
}

footer {
    position: absolute;
    bottom: 0;
    width: 100%;
   }

/* Responsive design */
@media only screen and (max-width: 1200px) {
    .gallery-item {
        flex: 1 1 calc(33.33% - 20px); /* 3 items per row */
        max-width: calc(33.33% - 20px);
    }
}

@media only screen and (max-width: 800px) {
    .gallery-item {
        flex: 1 1 calc(50% - 20px); /* 2 items per row */
        max-width: calc(50% - 20px);
    }
}

@media only screen and (max-width: 600px) {
    .content {
        font-size: 12pt;
        width: 100%;
        min-width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        margin: 0;
    }

    .gallery-item {
        flex: 1 1 100%; /* Full width for small screens */
        max-width: 100%;
    }

    .nav-button {
        font-size: 16px;
        bottom: 10px;
        right: 10px;
        padding: 8px;
    }

    body {
        background-position: center top;
        overflow: auto;
        font-size: 14pt;
    }
}

/* Ensure the footer is at the bottom */
html {
    height: 100%;
}
