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

a {
    color: rgba(255, 0, 0, 0.5);
}

body {
    margin: 0;
    padding-top: 40px;
    background: radial-gradient(circle at center, #0a0014, #000000 85%);
    color: #ffdede;
    background-color: #000000;
    background-image:
        linear-gradient(to bottom,
            rgba(0, 0, 0, 0.6) 0%,
            rgba(0, 0, 0, 0.3) 6%,
            rgba(0, 0, 0, 0.85) 100%),
        url("../images/background4.gif");
    background-size: cover;
    background-position: center top;
    background-attachment: fixed;
    font-family: 'EB Garamond', serif;
    font-size: 19px;
}

.top-banner {
    width: 100%;
    height: 240px;
    display: flex;
    justify-content: center;
    align-items: center;
    filter: brightness(1) contrast(1.3);
    overflow: hidden;
}

.banner-image {
    max-height: 170%;
    width: auto;
    object-fit: contain;
    display: block;
    animation: slowBounce 4s ease-in-out infinite, slowGlow 2s ease-in-out infinite;
}

.layout {
    display: grid;
    grid-template-columns: 200px 1fr 240px;
    min-height: calc(100vh - 120px);
}

.sidebar {
    padding: 10px 10px 0px 10px;
    background: rgba(0, 0, 0, 0.9);
    box-shadow: 0 0 60px rgba(255, 0, 0, 0.212);
}

.sidebar.left {
    border-style: dashed;
    border-color: rgba(141, 0, 0, 0.5);
    border-width: 1px;
    border-left: none;
}

.sidebar.right {
    border-style: dashed;
    border-color: rgba(141, 0, 0, 0.5);
    border-width: 1px;
    border-right: none;
}

.sidebar h2 {
    text-align: center;
    font-family: 'Gothic', serif;
    font-size: 4vh;
    margin-bottom: 6px;
    color: #ffdede;
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.6);
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar ul:hover {
    cursor: none;
}

.sidebar a {
    color: #ffdede;
    text-decoration: none;
    display: block;
    margin-bottom: 6px;
    transition: 0.2s;
}

.sidebar a:hover {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.6);
    cursor: none;
}

.sidebar li a {
    position: relative;
    padding-left: 22px;
    font-family: 'Gothic', serif;
    font-size: 3vh;
    font-weight: normal;
}

.sidebar li a.under-construction {
    text-decoration: line-through;
}

.sidebar li a::before {
    content: "";
    position: absolute;
    left: 1px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-image: url("../images/quakespin.gif");
    background-size: contain;
    background-repeat: no-repeat;
    visibility: hidden;
}

.sidebar li:hover a::before {
    visibility: visible;
}

.panel {
    padding: 5px;
    margin-bottom: 10px;
    justify-content: center;
    align-items: center;
}

hr {
    border: none;
    height: 1px;
    margin: 12px 0;
    background: linear-gradient(to right,
            transparent,
            rgba(255, 0, 0, 0.5),
            transparent);
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.6);
}

.content {
    padding: 0px 40px 0px 40px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.post {
    background: rgba(0, 0, 0, 0.9);
    border-style: dashed;
    border-color: rgba(141, 0, 0, 0.5);
    border-width: 1px;
    padding: 20px;
    margin-bottom: 40px;
}

.post h2 {
    margin: 0 0 5px 0;
    font-family: 'Gothic', serif;
    color: #ffdede;
    font-size: 4vh;
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.6);
}

.post-meta {
    font-size: 14px;
    color: rgba(255, 222, 222, 0.8);
    margin-bottom: 10px;
}

.post p {
    margin: 0;
    line-height: 1.5;
}

.post-img {
    width: 100%;
    margin: 10px 0;
}

#guestbook {
    width: 100%;
    height: auto;
}

#guestbook-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: bounce 0.5s infinite ease-in-out;
}

#guestbook-wrapper:hover {
    cursor: pointer;
}

.archive-link {
    color: #ffdede;
    text-decoration: underline;
    font-weight: normal;
}

.archive-link:hover {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.6);
    text-decoration: underline;
}

.archive-item {
    font-family: 'EB Garamond', serif;
    font-size: 1.2rem;
    color: #ffdede;
}

/* The container for the archive list - styled to match .post / .sidebar */
#archive-list-container {
    max-height: 500px;
    overflow-y: auto;
    padding-right: 15px;
    scrollbar-width: thin;
    scrollbar-color: #8a0303 #111;
    background: rgba(0, 0, 0, 0.9);
    border-style: dashed;
    border-color: rgba(105, 0, 0, 0.5);
    border-width: 1px;
    padding: 20px;
    margin-bottom: 40px;
    box-shadow: 0 0 60px rgba(255, 0, 0, 0.212);
}

/* Custom Scrollbar */
#archive-list-container::-webkit-scrollbar {
    width: 8px;
}

#archive-list-container::-webkit-scrollbar-track {
    background: #111;
}

#archive-list-container::-webkit-scrollbar-thumb {
    background-color: #8a0303;
    border-radius: 0px;
    border: 1px solid #000;
}

.site-footer {
    text-align: center;
    margin-top: auto;
    font-size: 14px;
    color: #ffdede;
}

@media (max-width: 900px) {
    #guestbook {
        width: 50%;
        margin: 0 auto;
        display: block;
    }

    .layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        border: none;
        border-bottom: 1px dashed rgba(141, 0, 0, 0.5);
    }

    .content {
        padding: 20px;
    }

    .banner-image {
        max-height: 100%;
    }
    .top-banner {
        height: 30vh;
    }
}