html, body {
    background-color: #303030;

    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #F5F5F5;
    min-height: 100vh;
}

/* Styled links */
a { text-decoration: none; }
a:link { color: #73A5C6; }
a:visited { color: #8f82cb; }
a:active { color: #c673a5; }
a:hover {
    cursor: pointer;
    text-decoration: underline;
}

.plushie-title {
    border-bottom: 1px solid #F5F5F5;
    padding-bottom: 0.5rem;
}

.collapsed {
    font-weight: bold;
}

.title-container {
    display: flex;
    justify-content: space-between;
    flex-direction: column;
}

.issues-title {
    display: block;
    text-align: center;
    font-size: 1.25rem;
    font-weight: bold;
    margin: 0.83rem 0 0.83rem 0;
}

.active-dev {
    border-left: 4px solid #6151b3;
    border-top: 1px solid #2d2654;
    border-right: 1px solid #2d2654;
    border-bottom: 1px solid #2d2654;
    background-color: #1a162b;
    color: #d1cbec;
    border-radius: 4px;
    padding: 12px 15px;
    margin: 15px 0;
    font-size: 14px;
    line-height: 1.5;
}

.active-dev-title {
    color: #fff;
    letter-spacing: 0.02rem;
}

.sub-title {
    display: flex;
    justify-content: center;
    margin: 0.5rem auto;
    padding: 0.5rem;

    font-weight: bold;
}

.button-container {
    display: flex;
    flex-wrap: wrap;
    padding-bottom: 0.5rem;
    justify-content: center;
    margin: 0 auto;
}

#image-changer-panel {
    display: flex;
    flex-direction: column;
}

.menu-btn {
    font: inherit; /* Inherit the font size from the parents. */
    background-color: transparent;
    border: none;
    border-bottom: 2px solid #F5F5F5;
    color: #F5F5F5;
    padding: 5px 10px;
    cursor: pointer;
    text-decoration: none;
    margin: 5px;
}

.menu-btn:hover {
    border-bottom-color: #6151b3;
    transition: border-bottom-color 0.15s ease-out;
}

.selected {
    border-bottom-color: #6151b3;
    text-shadow: 0.03em 0 0 currentColor, -0.03em 0 0 currentColor;
}

.container {
    display: flex;
    max-width: 90%;
    margin: 1rem auto;
    padding: 2.5rem;
    background-color: #404040;
    color: #F5F5F5;
    justify-content: center;
    flex-direction: column;
    gap: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.main-container {
    border-radius: 4px;
}

.credits-container {
    border: 2px solid black;
}

.top-content-wrapper {
    display: flex;
    justify-content: space-between;

    flex-direction: column-reverse;
    align-items: center; /* Center image on mobile */

    gap: 1rem;
    flex-shrink: 0;
}

.content-left {
    flex: 1; /* Space the items equally */
    min-width: 50%;
}

.sidebar-img-container {
    display: flex;
    flex-direction: column-reverse;
    flex-shrink: 0;
    margin: 0;
    padding: 0;
}

.sidebar-img {
    display: block;
    margin: auto;
    width: 320px;

    image-rendering: pixelated;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.2));
}

.sidebar {
    display: block;
    height: auto;
    outline: 1px solid #3c2a68;
    background-color: #202020;

    width: 100%;
    flex-shrink: 0;
}

.gallery-container {
    padding: 0.5rem 1rem 1rem 1rem;
}

.sidebar table {
    width: 100%;
}

.sidebar table tr {
    display: flex;
    flex-wrap: wrap;
}

.sidebar table td {
    display: block;
    /* 150px base; grows to fill space or shrinks and wraps when needed */
    flex: 1 1 150px;
    padding: 0.5rem;
    box-sizing: border-box;
}

.sidebar tbody tr:nth-child(even) {
    background-color: #252525; /* Use a shade slightly lighter or darker than your main background */
}

.table-container {
    padding-top: 1rem;
}

.info-table {
    outline: 2px solid #3c2a68;
    border-collapse: collapse;
    table-layout: fixed;
    background-color: #202020;
}

.info-table tr:nth-child(even) {
    background-color: #303030;
}

.table-list {
    margin: 0;
    padding: 0;
    list-style: none; /* Removes bullet points */
}

.table-list li + li {
    margin-top: 4px; /* Adds spacing between items */
}

.info-header {
    background-color: #5c4595;
    text-align: center;
}

.table-item {
    padding: 0.5rem;
}

.table-note {
    font-family: sans-serif;
    font-size: 0.875rem;
    color: #a0a0a0;
    margin-top: 8px;
}

.note-title {
    color: #ffffff;
}

.note-text {
    font-weight: bold;
    color: #ff79c6;
}

.video-container {
    display: flex;
    justify-content: center;
    width: 100%;
}

table {
    border-collapse: collapse;
    table-layout: fixed;
}

.img-desc {
    padding: 0.5rem;
    text-align: left;
}

.main-title {
    display: flex;
    justify-content: center;
    background-color: #5c4595;
    margin: 1rem 1rem 0 1rem;
    padding: 0.5rem;
    text-align: center;
    outline: 4px solid #3c2a68;
}

.tag-container {
    display: flex;
    flex-wrap: wrap; /* Wraps tags to next line if space is tight */
    gap: 8px;
    font-family: 'Courier New', monospace; /* Professional dev look */
}

.extra-gap {
    padding-top: 1rem;
}

.collapsed-container {
    background-color: #363636;
    border: 2px solid #303030;
    padding: 1rem;
    box-sizing: border-box;
    margin-bottom: 1rem;
}

#go-to-top-btn {
    display: none;
    position: fixed;
    bottom: 1.25rem;
    right: 1.875rem;
    z-index: 99;
    outline: none;
    background-color: #202020;
    color: white;
    cursor: pointer;
    font-size: 2.5rem;
    padding: 0.75rem 1rem;
    transition: background-color 0.3s, opacity 0.3s;
    border: 2px solid black;
}

#go-to-top-btn:hover {
    background-color: #555;
}

.sidebar-multi-display {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.inline-display {
    display: flex;
    flex-direction: row;
    justify-content: left;
    align-items: center;
    flex-wrap: wrap;
    padding: 1rem;

    gap: 1rem;
}

.boxed-inline-display {
    display: grid;
    /* Each box will be the same size and they scale with the font size. */
    grid-template-columns: repeat(auto-fill, 12.5rem);
    gap: 1rem;
    justify-content: center;
}

.pixelated-render {
    image-rendering: pixelated;
}

.inline-render {
    margin: 0;
    padding: 1rem;
}

.boxed-inline-display .inline-render {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    /* General layout properties for inline renders */
    aspect-ratio: 1 / 1;
    padding: 0.5rem;
    align-self: flex-start;
    font-size: 1.5rem;
}

.boxed-inline-display .boxed-render {
    display: flex;
    outline: 1px solid #3c2a68;
    background-color: #202020;
    box-sizing: border-box;
}

.inline-render img {
    display: block;
    margin: 0 auto 0 auto;
    width: 150px;

    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.2));
}

.inline-render p, .inline-render figcaption, .inline-render a {
    text-align: center;
}

.inline-render figcaption {
    padding-top: 0.5rem;
}

.navbar {
    display: flex;
    flex-direction: row;
    width: 100%;
    background-color: #363636;
    border: 2px solid #303030;
    align-items: center;
    box-sizing: border-box;
    padding: 1rem;
}

.navbar-container {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    flex-wrap: wrap;
    width: 100%;
}

.nav-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    box-sizing: border-box;
}

.main-content {
    /* Fills remaining space: 100% on mobile, 80% on desktop (sidebar takes 20%). */
    flex: 1;
}

.main-title-container {
    margin-bottom: 1rem;
}

dl {
    margin-bottom: 1.5rem;
}

dt {
    font-weight: 600; /* Semi-bold */
    margin-top: 1rem;
}

dd {
    margin-left: 1.5rem; /* Controls the indentation size */
    margin-bottom: 0.5rem;
}

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

/* Desktops */
@media (min-width: 1280px) {
    #go-to-top-btn {
        font-size: inherit;
    }

    .menu-btn {
        font-size: 0.95rem;
    }

    .container {
        max-width: 80%;
        display: flex;
        flex-direction: row;
    }

    .sidebar-img {
        width: 160px;
    }

    body {
        font-size: 1rem;
    }

    .top-content-wrapper {
        flex-direction: row;
        align-items: flex-start;
        flex-shrink: 0;
    }

    .sidebar {
        width: 35%;
    }

    .inline-render img {
        width: 75px;
    }

    .navbar {
        position: sticky;
        flex-direction: column;
        width: 20%;
        /* Prevents the sticky sidebar from cutting off; users can scroll links even on short screens */
        max-height: calc(100vh - 4rem);
        top: 2rem;
        align-self: flex-start;

        /* Prevents excessive whitespace on large screens. */
        max-width: 350px;
    }

    .navbar-container {
        flex-direction: column;
        justify-content: space-evenly;
        align-items: center;
    }

    .nav-item {
        padding: 1rem 1rem 1rem 0;
        width: 100%;
    }
}