html {
    background-color: rgb(36, 36, 36);
    font-family: 'Quicksand', sans-serif;
    font-size: 22px;
    color: white;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    flex-shrink: 0;
}

.title {
    font-size: clamp(32px, 8vw, 70px);
    margin: auto;
    margin-bottom: 10px;
    padding: 10px;
    text-align: center;
}

.title-link {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.title-link:hover {
    color: greenyellow;
}

.title-link:visited {
    color: white;
}

.nav-top {
    margin: auto;
    margin-top: 0;
    margin-bottom: 20px;
    text-align: center;
}

.nav-top ul {
    margin: 0;
    padding: 0;
    line-height: normal;
    margin-bottom: 20px;
}

.nav-top li {
    display: inline-block;
    position: relative;
    vertical-align: top;
    margin: 15px 0;
}

.nav-top li.has-dropdown {
    position: relative;
}

.nav-top .dropdown-arrow {
    font-size: 0.8em;
    margin-left: 3px;
}

.nav-top a {
    color: white;
    text-decoration: none;
    margin: 10px;
    padding: 10px;
    border-bottom: 1px solid white;
    border-top: 1px solid white;
}

.nav-top a:visited {
    color: white;
}

.nav-top a:hover {
    color: black;
    background-color: greenyellow;
    border-radius: 10px;
}

.nav-top .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: rgb(50, 50, 50);
    list-style: none;
    padding: 10px 0;
    margin: 5px 0 0 0;
    min-width: 180px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    text-align: left;
}

@media (hover: hover) and (pointer: fine) {
    .nav-top li.has-dropdown:hover .dropdown-menu {
        display: block;
    }
}

.nav-top li.has-dropdown.active .dropdown-menu {
    display: block;
}

.nav-top .dropdown-menu li {
    display: block;
    margin: 0;
}

.nav-top .dropdown-menu a {
    display: block;
    border: none;
    margin: 0;
    padding: 10px 20px;
    border-radius: 0;
}

.nav-top .dropdown-menu a:hover {
    background-color: greenyellow;
    color: black;
    border-radius: 0;
}


a {
    color: greenyellow;
}

a:visited {
    color: green;
}

.content {
    max-width: 1000px;
    margin: 20px auto;
    padding: 20px;
    flex: 1;
    width: 100%;
    box-sizing: border-box;
}

.post-container {
    margin: 20px auto;
    max-width: 900px;
    width: 100%;
    box-sizing: border-box;
    padding: 20px;
    word-wrap: break-word;
    border: 2px solid rgb(212, 212, 212);
    border-radius: 10px;
}

.page-container {
    margin: 20px auto;
    max-width: 900px;
    width: 100%;
    box-sizing: border-box;
    padding: 20px;
    word-wrap: break-word;
    border: 2px solid rgb(212, 212, 212);
    border-radius: 10px;
}

.post-container h1,
.post-container h2,
.page-container h1,
.page-container h2 {
    margin-top: 0;
}

.post-excerpt .excerpt-image-wrap {
    margin: 0 0 12px;
}

.post-excerpt .excerpt-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid rgba(212, 212, 212, 0.6);
}

.post-title {
    font-size: clamp(24px, 5vw, 35px);
    border-bottom: 1px solid;
    margin-bottom: 0;
    padding-bottom: 6px;
}

.post-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.post-title a:hover {
    color: greenyellow;
}

.post-author-date {
    margin: 0;
    padding-top: 6px;
    padding-bottom: 8px;
    border-bottom: 1px solid;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.post-date {
    white-space: nowrap;
}

.post-excerpt {
    margin-bottom: 15px;
    line-height: 1.6;
}

blockquote {
    border-left: 4px solid greenyellow;
    margin: 16px 0;
    padding: 8px 16px;
    background-color: rgba(255, 255, 255, 0.05);
    color: rgb(230, 230, 230);
}

blockquote p {
    margin: 0;
}

pre,
code {
    font-size: 0.75em;
    background-color: rgba(255, 255, 255, 0.08);
    color: rgb(235, 235, 235);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
}

pre {
    padding: 12px 14px;
    overflow-x: auto;
    line-height: 1.6;
    margin: 16px 0;
}

code {
    padding: 2px 6px;
}

pre code {
    padding: 0;
    border: none;
    background: transparent;
    color: inherit;
}

.post-container img,
.page-container img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 16px auto;
    cursor: pointer;
    border-radius: 8px;
    transition: opacity 0.3s;
}

.post-container img:hover,
.page-container img:hover {
    opacity: 0.85;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 30px auto 10px;
    flex-wrap: wrap;
}

.pagination-btn,
.pagination-page,
.pagination-current {
    color: white;
    text-decoration: none;
    padding: 6px 12px;
    border: 1px solid rgb(212, 212, 212);
    border-radius: 6px;
    font-size: 0.9em;
}

.pagination-btn:hover,
.pagination-page:hover {
    border-color: greenyellow;
    color: greenyellow;
}

.pagination-current {
    background-color: greenyellow;
    color: black;
    border-color: greenyellow;
    font-weight: 600;
}

.pagination-pages {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pagination-ellipsis {
    color: rgb(212, 212, 212);
    padding: 0 6px;
}

.lightbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    cursor: pointer;
    animation: fadeIn 0.3s;
    user-select: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.lightbox-overlay.active {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.lightbox-overlay.active.zoomed {
    display: block;
    overflow: auto;
    padding: 0;
}

.lightbox-image {
    max-width: 95%;
    max-height: 95vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
    animation: zoomIn 0.3s;
    cursor: zoom-in;
    transition: none;
}

.lightbox-image.zoomed {
    max-width: none;
    max-height: none;
    width: auto;
    height: auto;
    cursor: grab;
    display: block;
    margin: 0;
    position: relative;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-close {
    position: fixed;
    top: 20px;
    right: 30px;
    font-size: 50px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    transition: color 0.3s;
    line-height: 1;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
    pointer-events: auto;
}

.lightbox-close:hover {
    color: greenyellow;
}

.read-more {
    margin-top: 15px;
    text-align: right;
}

.read-more a {
    color: greenyellow;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95em;
    transition: color 0.3s;
}

.read-more a:hover {
    color: white;
    text-decoration: underline;
}

.post-navigation {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgb(212, 212, 212);
}

.back-to-blog {
    color: greenyellow;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.back-to-blog:hover {
    color: white;
    text-decoration: underline;
}

.foot {
    margin-top: 20px;
    padding: 10px 20px;
    text-align: center;
    flex-shrink: 0;
}

.foot p {
    margin: 0;
}

/* Mobile responsiveness */
@media screen and (max-width: 768px) {
    html {
        font-size: 18px;
    }

    .content {
        margin: 0px;
        padding: 15px;
    }

    .post-container {
        margin: 0px;
        padding: 15px;
    }

    .page-container {
        margin: 0px;
        padding: 15px;
    }

    .nav-top a {
        margin: 0px;
        padding: 8px;
        font-size: 16px;
    }
}