html,
body {
    width: 100%;
    min-width: 0;
    overflow-x: hidden;
}

body {
    font-family: Whitney, 'Source Sans Pro', ui-sans-serif, system-ui, -apple-system, 'system-ui', 'Segoe UI',
        Roboto, 'Helvetica Neue', Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
    color: #dcddde;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: #282828 linear-gradient(to bottom, #282828 0%, #23272a 100%);
}

.main-layout {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    gap: 2.5rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 48px 0 0 0;
    min-height: 100vh;
}

.main-content {
    flex: 2 1 0;
    min-width: 0;
}

.news-section {
    width: 100%;
    background: #23272a;
    border-radius: 16px;
    margin: 64px auto 0 auto;
    max-width: 900px;
    padding: 2.5rem 1.5rem 2.5rem 1.5rem;
    box-shadow: 0 2px 16px 0 #0008;
}

.news-section-title {
    font-size: 1.7rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2rem;
    letter-spacing: 0.01em;
    text-align: left;
}

.discord-message {
    color: #dcddde;
    display: flex;
    flex-direction: column;
    font-size: 0.9em;
    font-family: inherit;
    padding: 0px 1em;
    position: relative;
    word-wrap: break-word;
    user-select: text;
    flex: 0 0 auto;
    padding-right: 48px !important;
    min-height: 1.375rem;
    margin: 1.5rem auto 0 auto;
    max-width: 700px;
    background: none;
    box-shadow: none;
}

.discord-message .discord-message-inner {
    display: flex;
    position: relative;
    flex: 0 0 auto;
}

.discord-message .discord-author-avatar {
    margin-right: 16px;
    margin-top: 5px;
    min-width: 40px;
    z-index: 1;
}

.discord-message .discord-author-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.discord-message .discord-message-content {
    width: 100%;
    line-height: 160%;
    font-weight: normal;
    padding-top: 2px;
}

.discord-message .discord-author-info {
    display: inline-flex;
    align-items: center;
    font-size: 16px;
    margin-right: 0.25rem;
}

.discord-message .discord-author-info .discord-author-username {
    color: #fff;
    font-size: 1em;
    font-weight: 500;
}

.discord-message .discord-author-info .discord-application-tag {
    background-color: #5865f2;
    color: #fff;
    font-size: 0.625em;
    margin-left: 4px;
    border-radius: 3px;
    line-height: 100%;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    height: 0.9375rem;
    padding: 0 0.275rem;
    margin-top: 0.075em;
    border-radius: 0.1875rem;
}

.discord-message .discord-author-info .discord-application-tag-verified {
    display: inline-block;
    width: 0.9375rem;
    height: 0.9375rem;
    margin-left: -0.25rem;
}

.discord-message .discord-message-timestamp {
    color: #72767d;
    font-size: 12px;
    margin-left: 8px;
}

.discord-message .discord-message-body {
    font-size: 1rem;
    font-weight: 400;
    word-break: break-word;
    position: relative;
    margin-top: 0.2rem;
}

.discord-message .discord-message-body b {
    color: #fff;
}

.discord-mention {
    color: #00bfff;
    cursor: pointer;
}

code {
    background: #2f3136;
    color: #fff;
    border-radius: 4px;
    padding: 0.1em 0.4em;
    font-size: 1em;
}

ul {
    margin: 0.7em 0 0.7em 1.2em;
    padding: 0;
    color: #fff;
    font-size: 1.05rem;
}

.centered-title {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    margin: 0;
    text-align: center;
    color: #dcddde;
    font-size: 5.5rem;
    font-weight: bold;
    letter-spacing: 0.05em;
    pointer-events: none;
    user-select: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    mix-blend-mode: difference;
}

.centered-logo {
    max-width: 180px;
    width: 60vw;
    height: auto;
    display: block;
    margin-bottom: 0.5rem;
    mix-blend-mode: difference;
    filter: brightness(1.2);
}

#pause-bg-video {
    position: fixed;
    bottom: 18px;
    right: 18px;
    z-index: 20;
    background: rgba(24, 24, 24, 0.7);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 1.2rem;
    cursor: pointer;
}

.bottom-gradient {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 120px;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(to top, #23272a 0%, transparent 100%);
}

/* Add a top-fade for the main content to blend with the video */
.fade-bottom {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 80px;
    /* smaller on mobile */
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(to bottom, transparent 0%, #23272a 100%);
}

/* Adjust .main-layout and .news-section to start after the fade */
.main-layout,
.news-section {
    position: relative;
    z-index: 10;
    margin-top: 0;
}

nav {
    box-sizing: border-box;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    max-width: 100%;
    z-index: 20;
    background: rgba(35, 39, 42, 0.95);
    backdrop-filter: blur(6px);
    padding: 0.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-logo {
    height: 38px;
    width: auto;
    display: block;
    border-radius: 10px;
    user-select: none;
    pointer-events: none;
}

.nav-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.04em;
    user-select: none;
    pointer-events: none;
}

.nav-buttons {
    display: flex;
    gap: 1rem;
}

.nav-button {
    background: transparent;
    border: none;
    color: #e0e0e0;
    font-size: 1rem;
    padding: 0.5rem 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.nav-button:hover {
    background: #444;
    color: #fff;
}

/* Hamburger styles */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    width: 32px;
    height: 32px;
    cursor: pointer;
    margin-left: 1rem;
}

.hamburger span {
    height: 4px;
    width: 100%;
    background: #e0e0e0;
    margin: 4px 0;
    border-radius: 2px;
    transition: 0.3s;
}

/* Forum styles */
.forum-container {
    max-width: 700px;
    margin: 110px auto 0 auto;
    background: rgba(24, 24, 24, 0.92);
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
    padding: 2rem 1.5rem 2.5rem 1.5rem;
    z-index: 5;
    position: relative;
}

.forum-header {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #fff;
    letter-spacing: 0.04em;
    text-align: left;
}

.post-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.post {
    background: rgba(34, 34, 34, 0.98);
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
    padding: 1.2rem 1rem 1rem 1rem;
    color: #f0f0f0;
    position: relative;
    transition: box-shadow 0.2s;
}

.post:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}

.post-title {
    font-size: 2rem;
    font-weight: bold;
    color: #fff;
    margin-bottom: 1.2rem;
    margin-left: 0;
}

.post-meta {
    font-size: 0.95rem;
    color: #aaa;
    margin-bottom: 0.7rem;
}

.post-content {
    font-size: 1.25rem;
    color: #e0e0e0;
    border-radius: 0.3rem;
    padding: 1.2rem 1.5rem 1.2rem 1.5rem;
    margin-top: 0.2rem;
    font-family: inherit;
    box-shadow: 0 0 0 1px #1a1010;
}

/* Video overlay and pause button */
#bg-video {
    position: fixed;
    top: 0;
    left: 0;
    min-width: 100vw;
    min-height: 100vh;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: -2;
    pointer-events: none;
}

.video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

#pause-bg-video {
    position: fixed;
    bottom: 18px;
    right: 18px;
    z-index: 20;
    background: rgba(24, 24, 24, 0.7);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 1.2rem;
    cursor: pointer;
}

#pause-bg-video span {
    display: block;
    width: auto;
    height: auto;
    font-size: 1.1rem;
    line-height: 1;
    text-align: center;
    margin: 0;
    padding: 0;
}

#pause-bg-video:hover {
    opacity: 1;
    background: rgba(24, 24, 24, 0.95);
}

#pause-bg-video:focus {
    outline: 2px solid #fff;
}



.centered-logo {
    max-width: 180px;
    width: 60vw;
    height: auto;
    display: block;
    margin-bottom: 0.5rem;
    mix-blend-mode: difference;
    filter: brightness(1.2);
}

.post-row {
    display: flex;
    align-items: flex-start;
    gap: 2.5rem;
}

.post-user {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 170px;
}

.user-icon {
    width: 170px;
    height: 170px;
    border-radius: 50%;
    object-fit: cover;
    background: #222;
    margin-bottom: 0.8rem;
    box-shadow: 0 0 0 2px #222;
}

.post-date {
    color: #ccc;
    font-size: 1.1rem;
    margin-top: 0.5rem;
    text-align: center;
    font-weight: 400;
    letter-spacing: 0.01em;
}

.post-meta-main {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.user-meta-row {
    display: flex;
    align-items: baseline;
    gap: 1.2rem;
    margin-bottom: 1.2rem;
}

.user-name {
    font-size: 2.5rem;
    color: #fff;
    font-weight: 500;
    line-height: 1.1;
    margin-right: 1.2rem;
}


.post-title-icon {
    font-size: 2rem;
    margin-right: 0.5rem;
}


.post-tag {
    color: #6fcf97;
    font-size: 1.1rem;
    font-weight: 500;
}



/* Responsive styles */
@media (max-width: 700px) {
    nav {
        padding: 0.5rem 0.5rem;
    }

    .nav-title {
        font-size: 1.1rem;
    }

    .nav-logo {
        height: 28px;
    }

    .nav-buttons {
        gap: 0.5rem;
    }

    .nav-button {
        font-size: 0.95rem;
        padding: 0.5rem 0.8rem;
    }

    .centered-title {
        font-size: 2.5rem;
        top: 28%;
    }

    .centered-logo {
        max-width: 100px;
    }

    .forum-header {
        font-size: 1.3rem;
    }

    .forum-container {
        max-width: 98vw;
        padding: 1rem 0.5rem 1.5rem 0.5rem;
    }

    .main-content>div,
    body>div[style*="height: 180px"] {
        height: 40px !important;
    }
}

@media (max-width: 500px) {
    nav {
        flex-direction: row;
        align-items: center;
        padding: 0.5rem 0.5rem;
    }

    .nav-buttons {
        position: absolute;
        top: 44px;
        right: 0.5rem;
        left: auto;
        margin: 0;
        flex-direction: column;
        gap: 0.3rem;
        width: 150px;
        max-width: 90vw;
        background: rgba(24, 24, 24, 0.97);
        border-radius: 4px;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
        padding: 0.5rem 0.3rem;
        display: none;
    }

    .nav-buttons.open {
        display: flex;
    }

    .nav-button {
        width: 100%;
        text-align: left;
        font-size: 1rem;
        padding: 0.7rem 0.7rem;
        border-radius: 4px;
    }

    .hamburger {
        display: flex;
        width: 28px;
        height: 28px;
    }

    .bottom-gradient {
        height: 40vh;
    }

    .forum-header {
        font-size: 1.3rem;
    }

    .forum-container {
        margin-top: 80px;
        border-radius: 8px;
    }

    .post {
        border-radius: 6px;
        padding: 0.8rem 0.5rem 0.7rem 0.5rem;
    }
}

@media (max-width: 900px) {
    .post-row {
        flex-direction: column;
        gap: 1.2rem;
    }

    .user-icon {
        width: 100px;
        height: 100px;
    }

    .user-meta-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
    }

    .post-title {
        font-size: 1.3rem;
    }

    .post-content {
        font-size: 1rem;
        padding: 0.8rem 1rem;
    }
}

#bg-video {
    position: absolute;
    top: 0;
    left: 0;
    min-width: 100vw;
    min-height: 100vh;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: -2;
    pointer-events: none;
}

.fade-bottom {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 80px;
    /* smaller on mobile */
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(to bottom, transparent 0%, #23272a 100%);
}