:root {
    --text-title: #282839;
    --text-subtitle: #8787a2;
    --footer-text: #888;

    --primary: rgb(177, 230, 140);
    --secondary: rgb(118, 174, 78);

    --hyperlink: #0000cc;

    --hr: #bbb;

    --window-bg: #294256;
    --window-title-bg: #D8DFFF;

    --bg1: #D8DFFF;
    --bg2: #F0F3FF;
}

.beta {
    color: #AA0000;
}

.pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background-color: var(--primary);
    margin: 1px;
    border-radius: 0px;
}

.pagination-selected a {
    background-color: var(--secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin: 1px;
    border-radius: 0px;
}

.preserve-newline {
    white-space: pre-wrap;
}

body {
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    background: linear-gradient(var(--bg1) 0%, var(--bg2) 40%);
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    margin: 0;
    padding: 20px;
}

a {
    color: var(--hyperlink);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

h2 {
    margin-top: 10px;
    margin-bottom: 0px;
    font-size: 2.5em;
}

h4 {
    font-size: 1.5em;
}

.page-container {
    margin: auto;
    text-align: center;
    max-width: 800px;
}

.page-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: fit-content;
    margin: auto;

    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

hr {
    border: none;
    height: 1px;
    background-color: var(--hr);
}


.pfp-small-container {
    position: fixed;
    top: 20px;
    right: 20px;
}

.pfp-small-avatar {
    width: 40px;
    height: 40px;
    border: 2px solid var(--text-title);
    object-fit: cover;
}

.pfp-big-avatar {
    width: 150px;
    height: 150px;
    border: 2px solid var(--text-title);
    object-fit: cover;
}

.profile-header {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    align-items: flex-start;
}

.profile-info {
    flex: 1;
}

.profile-pronouns {
    text-align: left;
    margin-top: 5px;
    font-size: 0.9em;
    color: var(--footer-text);
}

.profile-preview {
    display: none;
}

.profile-name {
    font-weight: bold;
    position: relative;
    display: inline-block;
}

.profile-name:hover .profile-preview {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    border: 1px solid var(--text-title);
    width: max-content;
    white-space: nowrap;
    height: 55px;
    background-color: #FFF;
    pointer-events: none;
    opacity: 1;
    z-index: 100;
}

.profile-preview-content {
    flex-wrap: nowrap;
    flex-direction: row;
    padding: 5px;
    align-items: flex-start;
    height: 100%;
    display: flex;
    gap: 5px;
    text-align: left;
}

.profile-text-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.profile-preview-status {
    font-size: 1.0em;
    color: #000;
    font-style: italic;
    font-weight: normal;
}


.main-title {
    color: var(--text-title);
    font-weight: bold;
    font-size: 4em;
    margin-bottom: 25px;
}

.board-title {
    color: var(--text-title);
    font-weight: bold;
    font-size: 3.2em;
    margin-bottom: 0px;
    text-align: left;
}

.external-link {
    color: var(--text-subtitle);
    font-size: 1em;
    margin-bottom: 10px;
    margin-top: 10px;
    text-align: left;
    vertical-align: bottom;

    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    align-self: flex-start;
}



.window {
    align-items: center;
    background-color: white;
    border: 1px solid var(--text-title);
    text-align: left;
    margin-bottom: 10px;
}

.window-horizontal {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.window-navbar {
    text-align: left;
    background-color: var(--window-title-bg);
    padding: 5px 8px;
    font-size: 1.1em;
    font-weight: bold;
    color: var(--text-title);
}

.window-content {
    padding: 15px;

    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

.window-title {
    text-align: left;
    font-size: 1.1em;
    font-weight: bold;
}

.window-text {
    font-size: 1em;
    margin-top: 5px;
    text-align: left;
}

.window-footer {
    text-align: left;
    margin-top: 5px;
    font-size: 0.8em;
    color: var(--footer-text);
}

.window-box {
    background-color: #fafafa;
    border: 1px solid #ccc;
    text-align: left;
    padding: 10px 8px;
    margin: auto;
    margin-left: 10px;
    margin-right: 10px;
    margin-bottom: 15px;
}

.window-box-subtitle {
    font-size: 0.9em;
    color: #999;
    display: flex;
    text-align: left;
    vertical-align: bottom;

    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.window-box-hr {
    background-color: #ccc;
}

.window-thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    margin-left: auto;
    flex-shrink: 0;
    margin-right: 12px;
}

.alert {
    color: #d71717;
}

button.link-button {
    appearance: none;
    background: none;
    border: 0;
    padding: 0;
    margin: 0;
    font: inherit;
    text-decoration: none;
    cursor: pointer;
    display: inline;
}

button.link-button:hover {
    text-decoration: underline;
}

form.inline-form {
    display: inline;
    margin: 0;
    padding: 0;
}

.home-recent-post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    justify-items: center;
}

.post_preview.no-image {
    justify-content: center;
}

.home-post-image-preview {
    width: 120px;
    height: 120px;
    object-fit: scale-down;
}

.post_preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100px;
}

.post-preview-title {
    font-size: 0.85em;
    font-weight: bold;
    text-align: center;
    margin-top: 5px;
}

.post-image {
    object-fit: scale-down;
    height: 360px;
}

.post-preview-timestamp {
    font-size: 0.8em;
}