body {
    font-family: 'Inconsolata', monospace;
    background-color: white;
    margin: 0;
    padding: 15px;
    scroll-behavior: smooth;
    overflow-x: hidden;

    overflow-y: hidden;
}

* {
    box-sizing: border-box;
}

:root {
    --bg-color: white;
    --text-color: #333;
    --post-bg: #f9f9f9;
    --border-color: #ddd;
    --button-bg: #f8f8f8;
    --fuschia: #e900fe;
}

body.dark-mode {
    --bg-color: #111;
    --text-color: #eee;
    --post-bg: #222;
    --border-color: #444;
    --button-bg: #333;
}

button {
    display: inline-block;
    font-family: inherit;
    font-weight: normal;
    text-align: center;
    border: none;
    cursor: pointer;
    background: offwhite;
    padding: 3px 5px;
    font-size: 8pt;
    font-size: 11pt;

    font-family: 'Inconsolata', monospace;

}


#blog-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;

}

#blog-container img {
    filter: grayscale(100%);

    transition: filter 0.5s ease;
}


#blog-container img:hover {
    filter: none;
    transition: filter 0.5s ease;

}

/* Make sure video scales naturally without distortion */
#blog-container video {
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    display: block;
}

/* Fullscreen video styling */
video:-webkit-full-screen,
video:-moz-full-screen,
video:-ms-fullscreen,
video:fullscreen {
    width: auto;
    height: 100%;
    max-width: 100%;
    max-height: 100vh;
    object-fit: contain;
}

#blog-container.grid-view {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    justify-items: center;
    align-items: center;
}

#blog-container.grid-view .year-container {
    display: contents;
}

#blog-container.list-view {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

#blog-container.list-view .year-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.image-container,
.text-container {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    width: 100%;
    max-width: 600px;
    margin-bottom: 60px;
    padding: 0px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.image-container img,
.image-container video {
    width: auto;
    height: 89vh;
    border-radius: 15px;
    object-fit: cover;
}

.text-container {
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    background-color: #f9f9f9;
    border-radius: 5px;
}

.text-post {
    font-family: 'Inconsolata', monospace;
    font-size: 1rem;
    color: #333;
    white-space: pre-wrap;
}

.text-post .post-content {
    font-size: 10pt;
    line-height: 1.6;
    padding: 0 10px;
}

.post-info {
    margin-top: 10px;
    font-size: 8pt;
    text-align: center;
    font-family: 'Inconsolata', monospace;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Show caption and tags */
/* .image-container:hover .post-info,
.text-post:hover .post-info {
    opacity: 1;
    transform: translateY(0);
} */

#directory-structure {
    position: fixed;
    top: 0px;
    left: 0px;
    padding: 10px;
    font-family: 'Inconsolata', monospace;
    z-index: 1000;
    white-space: pre;
    margin-top: 10px;
}

#directory-structure pre {
    margin: 0;
    background-color: offwhite;
}

pre p {
    background-color: offwhite;
}

.year-link {
    display: inline;
    margin-left: 10px;
}

#sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 220px;
    padding: 10px;
    font-family: 'Inconsolata', monospace;
    background-color: none;
    z-index: 1000;
    overflow-y: auto;
    max-height: 100vh;
}



.directory {
    white-space: pre;
    margin: 0;
    background-color: white;
}

.box {
    font-size: 8pt;
    font-size: 11pt;

    margin-top: 10px;
    padding: 8px;
    border: 1px solid gray;
    border-radius: 5px;
    max-width: 200px;
    word-wrap: break-word;
    background-color: rgb(255, 255, 255);
    z-index: 10;
    /* Ensure it appears above other content */
    position: relative;
}

.image-container .post-info .caption {
    font-weight: normal;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

.image-container .post-info .tags {
    font-size: 12px;
    color: gray;
    margin-top: 5px;
    display: none;

}

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


.tag {

    display: inline-block;
    font-family: inherit;
    font-weight: normal;
    text-align: center;
    border: none;
    cursor: pointer;
    background: #eee;
    color: black;
    padding: 3px 5px;
    font-size: 8pt;
    font-family: 'Inconsolata', monospace;
}


a {
    color: var(--fuschia);
    color: black;
}

a {
    display: inline-block;
    transition: transform 0.3s ease;
}

a:hover {
    transform: rotate(-5deg);
}


#copy-email a:hover {
    transform: rotate(5deg);
}


/* ------------------------ */
/*           MODAL          */
/* ------------------------ */

.modal {
    display: none;
    position: fixed;
    top: 27%;
    left: 14.5%;
    transform: translate(-50%, -50%);
    padding: 6px 11px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 100;
    letter-spacing: -.025em;
    z-index: 9999;
    transition: 1s;
    border: 1px solid black;
    background-color: black;
    color: white;
    background-repeat: repeat;
    transition: border-color 300ms ease-in-out;
    padding: 3px 5px;
    font-size: 8pt;
    width: min-content;
}

.hide {
    display: none;
}




.marquee-container {
    position: fixed;
    bottom: 1%;
    left: 50%;
    transform: translateX(-50%);
    width: 98vw;
    /* 95% of viewport width */
    height: 40px;
    overflow: hidden;
    background-color: white;
    border: 1px solid gray;
    border-radius: 5px;
    display: flex;
    align-items: center;
    padding: 8px;
    box-sizing: border-box;
    z-index: 9999;
}

.marquee-text {
    display: inline-block;
    white-space: nowrap;
    color: #111;
    font-family: 'Inconsolata', monospace;
    font-size: 11pt;
    padding-left: 100%;
    /* start off screen */
    animation: scroll 20s linear infinite;
    will-change: transform;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}


@media (max-width: 600px) {
    body {
        overflow-y: auto;
        /* better UX on mobile */
        padding-top: 30px;
    }


    #sidebar {
        position: fixed;
        top: 18px;
        left: 0;
        width: 240px;
        padding: 10px 20px;
        font-family: 'Inconsolata', monospace;
        background-color: none;
        z-index: 1000;
        overflow-y: auto;
        max-height: 100vh;
    }

    .image-container img,
    .image-container video {
        width: auto;
        height: 86vh;
        border-radius: 15px;
        object-fit: cover;
    }

    .marquee-container {
        width: 94vw;
    }
}