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

a {
    color: #b06cd9;
}

body {
    margin: 0;
    padding-top: 40px;
    background: radial-gradient(circle at center, #0a0014, #000000 85%);
    color: #e0ccff;
    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/alice-persdotter-rydberg-cutscene-4.gif");
    background-size: cover;
    background-position: center top;
    background-attachment: fixed;
    font-family: 'EB Garamond', serif;
    font-size: 18px;
}

.top-banner{
    height: 100px;
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
    filter: brightness(0.5) contrast(1.3);
}

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

.sidebar {
    padding: 10px 10px 0px 10px;
    
    background: rgb(10, 0, 17, 0.90);
    box-shadow:
        0 0 15px rgba(106, 27, 154, 0.3), inset 0 0 12px rgba(90, 20, 140, 0.3);
}

.sidebar.left {
    border-style: ridge;
    border-color: rgba(156, 39, 176, 0.5);
    border-left: none;
}

.sidebar.right {
    border-style: ridge;
    border-color: rgba(156, 39, 176, 0.5);
    border-right: none;
}

.sidebar h2 {
    text-align: center;
    font-family: 'Gothic', serif;
    font-size: 35px;
    margin-bottom: 6px;
    color: #e0ccff;
    text-shadow: 0 0 10px rgba(156, 39, 176, 0.6);
}

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

.sidebar ul:hover {
    cursor: none;
}

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

.sidebar a:hover {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(156, 39, 176, 0.9);
    cursor: none;
}

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

.sidebar li a {
    position: relative;
    padding-left: 22px;
}

.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(156, 39, 176, 0.7),
        transparent
    );

    box-shadow: 0 0 8px rgba(156, 39, 176, 0.6);
}

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

.post {
    background: rgb(10, 0, 17, 0.90);
    border-style: ridge;
    border-color: rgba(156, 39, 176, 0.5);
    padding: 20px;
    margin-bottom: 40px;

    box-shadow:
        0 0 20px rgba(90, 20, 140, 0.35),
        inset 0 0 15px rgba(70, 10, 110, 0.35);
}

.post h2 {
    margin: 0 0 5px 0;
    font-family: 'Gothic', serif;
    color: #f0d6ff;
    font-size: 35px;

    text-shadow: 0 0 12px rgba(156, 39, 176, 0.8);
}

.post-meta {
    font-size: 14px;
    color: #b06cd9;
    margin-bottom: 10px;
}

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

.post-img {
    width: 100%;
    margin: 10px 0;
    filter: brightness(0.75) contrast(1.2);
}

#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: #fff;
    text-decoration: underline;
    font-weight: bold;
}

.archive-link:hover {
    color: #8a0303; /* Blood Red */
    text-decoration: underline;
}

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

/* The container for the archive list */
#archive-list-container {
    max-height: 500px; /* Adjust based on how tall you want the "window" to be */
    overflow-y: auto;
    padding-right: 15px;
    scrollbar-width: thin;
    scrollbar-color: #8a0303 #111; /* Blood red handle, dark track */
    background: rgb(10, 0, 17, 0.90);
    border-style: ridge;
    border-color: rgba(156, 39, 176, 0.5);
    padding: 20px;
    margin-bottom: 40px;

    box-shadow:
        0 0 20px rgba(90, 20, 140, 0.35),
        inset 0 0 15px rgba(70, 10, 110, 0.35);
}

/* Custom Scrollbar for Chrome/Safari/Edge */
#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: #f0d6ff;
    border-top: 1px solid rgba(156, 39, 176, 0.25);
}

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

@media (max-width: 900px) {
    .layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        border: none;
        border-bottom: 1px solid rgba(156, 39, 176, 0.25);
    }

    .content {
        padding: 20px;
    }
}