#main-view {
    margin-left: 20px;
    width: 700px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

#main-view > #main-end-reached {
    width: 100%;
    text-align: center;
    margin-bottom: 20px;
}

#main-view:focus-visible {
    outline: none;
}

#announcements-text {
    font-weight: bold;
    font-size: 24px;
    margin: 20px 0;
}

#announcements {
    display: flex;
    flex-direction: row;
    gap: 20px;
    min-height: 220px;
    width: 700px;
    overflow: auto;
}

#announcements:focus-visible {
    outline: none;
}

.announcement {
    display: flex;
    flex-direction: column;
    height: 180px;
    min-width: 180px;
    max-width: 180px;
    box-shadow: var(--box-shadow);
    border-radius: 10px;
    background: var(--tile);
    padding: 10px;
}

.date {
    font-size: 11px;
    font-weight: bold;
}

.title {
    font-size: 16px;
    font-weight: bold;
    max-lines: 2;
    padding: 10px 0;
}

.truncate {
    display: block;
    overflow: hidden;
    flex-shrink: 1;
    flex-grow: 1;
    height: 100%;
    line-height: 140%;
    font-weight: normal;
}

.announcement > hr {
    margin: 10px 0;
}

.comments {
    font-size: 16px;
    text-align: center;
    margin: 0;
}

.post-view {
    padding-right: 80px;
    box-sizing: border-box;
}

#sort {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#sort > div {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 0;
}

.sort-flex {
    height: 35px;
    width: 150px;
    display: flex;
    flex-direction: column;
}

.sort-flex > label,
.sort-flex > span {
    text-align: center;
    margin-bottom: 10px;
    cursor: pointer;
}

.sort-flex > input {
    display: none;
}

.sort-flex > input:checked ~ label {
    font-weight: bold;
}

.sort-flex > div {
    width: 100%;
    height: 4px;
    background: var(--button);
}

.sort-flex:hover > div {
    background: #555C5C;
}

.sort-flex > input:checked ~ div {
    background: var(--main);
}

@media (prefers-color-scheme: light) {
    .sort-flex > div {
        width: 100%;
        height: 4px;
        background: var(--text-box);
    }

    .sort-flex:hover > div {
        background: var(--tile);
    }

    .sort-flex > input:checked ~ div {
        background: var(--button);
    }
}
[data-theme="light"] {
    .sort-flex > div {
        width: 100%;
        height: 4px;
        background: var(--text-box);
    }

    .sort-flex:hover > div {
        background: var(--tile);
    }

    .sort-flex > input:checked ~ div {
        background: var(--button);
    }
}

#sort-submit {
    margin-top: 10px;
    display: var(--no-javascript-display)
}

#posts {
    margin-top: 14px;
    width: 700px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding-bottom: 40px;
}

.post {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    width: 340px;
    height: 460px;
    box-shadow: var(--box-shadow);
    border-radius: 10px;
    background: var(--tile);
    padding: 10px;
    gap: 10px;
}

#main-view > #posts > .post {
    max-height: 475px;
    height: auto;
}

.post-stats {
    display: flex;
    height: 40px;
    align-items: center;
    position: relative;
}

.post-info {
    display: flex;
    height: 40px;
    align-items: center;
    margin-right: 6px;
}

.post-info > img {
    background: var(--background);
    height: 40px;
    max-height: 40px;
    min-width: 40px;
    max-width: 40px;
    border-radius: 5px;
    object-fit: cover;
}

.post-info > div {
    height: 30px;
    margin-left: 6px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.post-info > div > span {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: bold;
    white-space: nowrap;
}

.post-title {
    display: block;
    font-weight: bold;
    font-size: 16px;
    max-height: 22px;
    overflow: hidden;
    line-height: 130%;
}

#main-post > .post-title {
    max-height: 100%;
}

.user-flairs {
    display: flex;
    overflow: hidden;
    -ms-overflow-style: none;
    scrollbar-width: none;
    margin-right: 10px;
    width: 100%;
}

.user-flairs::-webkit-scrollbar {
    display: none;
}

.overlay-dropdown-icon {
    width: auto;
    cursor: pointer;
    background: var(--overlay-dropdown-icon) no-repeat center;
}

.stats-back {
    margin-left: auto;
    width: 18px;
    height: 18px;
    min-width: 18px;
    min-height: 18px;
}

.stats-back > img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    content: var(--back-button-icon);
}

.dropdown-select {
    padding: 16px 16px;
    width: 0;
    height: 0;
    text-transform: none;
    outline: none;
    border: none;
    -moz-appearance: none;
    -webkit-appearance: none;
    overflow: hidden;
    border-radius: 10px
}

.dropdown-select::-ms-expand {
    display: none
}

.post-flairs {
    display: flex;
    gap: 5px;
    max-height: 42px;
}

.OC,
.romania,
.video {
    display:inline-block;
    width: fit-content;
    font-weight: bold;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 40px;
    background: #C62222;
    cursor: inherit;
}

.OC {
    background: #17A504;
}

.romania {
    background: #E6BF12;
    color: #1B1E1E;
}

.video {
    background: #0E5ED6;
}

.post-media {
    background: var(--background);
    flex-grow: 1;
    height: 254px;
}

.post-media > img {
    height: 100%;
}

.no-media {
    display: flex;
    text-align: center;
    align-items: center;
    justify-content: center;
}

.post-stuff {
    display: flex;
    margin-top: auto;
}

.votes {
    display: flex;
    align-items: center;
}

.votes > span {
    margin: 0 10px;
}

.post-vote-button {
    width: 42px;
    height: 42px;
    border-radius: 21px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: none;
    background: var(--button);
    box-shadow: 0 3px 13px rgba(16, 23, 27, 0.2), inset 0 2px 0 rgba(231, 245, 249, 0.11), inset 0 -3px 0 rgba(17, 18, 18, 0.28);
    cursor: pointer;
}

.post-vote-button > span {
    font-weight: bold;
    font-size: 24px;
}

.post-vote-button:hover {
    background: var(--highlighted-ui);
}

@media (prefers-color-scheme: light) {
    .post-vote-button {
        box-shadow: 0 4px 9px rgba(16, 23, 27, 0.1), inset 0 2px 0 rgba(231, 245, 249, 0.11), inset 0 -3px 0 rgba(11, 92, 85, 0.13);
    }
}

.w-pressed {
    background: var(--w-color) !important;
    box-shadow: none;
}

.l-pressed {
    background: var(--l-color) !important;
    box-shadow: none;
}

.post-comments {
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-items: center;
    white-space: nowrap;
    overflow: hidden;
}

#tactical-spacer {
    margin: 20px 0;
    font-size: 24px;
    cursor: default;
    user-select: none;
    color: var(--background);
    white-space: nowrap;
}

#main-post {
    width: 100%;
    height: auto;
    margin-bottom: 20px;
}

#main-post > hr {
    margin: 10px 0;
}

#main-post > .post-media {
    height: unset;
    max-height: 1000px;
}

#description {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

#description > p {
    font-weight: bold;
}

#make-comment {
    flex-direction: column;
    display: flex;
    box-sizing: border-box;
    box-shadow: var(--box-shadow);
    background: var(--tile);
    border-radius: 10px;
    padding: 10px;
    gap: 10px;
}

#make-comment > span {
    font-size: 11px;
    font-weight: bold;
}

#make-comment > textarea {
    height: 76px;
    font-size: 15px;
}

#reply-buttons {
    font-size: 16px;
    justify-content: end;
}

#make-comment > .display-none {
    display: none;
}

#reply-image-info {
    display: flex;
    max-height: 50px;
}

#reply-image-info {
    align-items: center;
}

#reply-image-preview {
    width: 50px;
    height: 50px;
    object-fit: cover;
}

#no-comments {
    margin: 20px 0;
    text-align: center;
    font-weight: bold;
}

.comment {
    flex-direction: column;
    display: flex;
    box-sizing: border-box;
    box-shadow: var(--box-shadow);
    background: var(--tile);
    border-radius: 10px;
    padding: 10px;
    gap: 10px;
}

.comment:target {
    animation: highlight-comment 1.5s ease-in-out;
}

@keyframes highlight-comment {
    13%, 87% {
        background: var(--button)
    }

    100% {
        background: var(--tile);
    }
}

.comment-text {
    word-wrap: break-word;
    max-height: 256px;
    overflow: auto;
}

.comment-text > img {
    float: left;
    border-radius: 5px;
    width: 175px;
    margin-right: 10px;
}

.comment-text > br {
    display: none;
}

.score-and-reply {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    margin-top: auto;
}

.score-and-reply > label,
.score-and-reply > button {
    height: fit-content;
    margin-left: auto;
    user-select: none;
}

.reply-input:focus ~ label {
    outline: var(--accesibility-outline);
    background: var(--text-box);
    box-shadow: none;
}

.team-member {
    background: var(--text-box);
    min-width: 180px;
    align-items: center;
    padding: 10px;
    border-radius: 10px;
}

.team-member > img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 10px;
}

.team-member > span {
    text-align: center;
}

#important-ppl-you-must-worship-now {
    overflow: auto;
}

#profile-div {
    margin-top: 58px;
    padding: 10px;
    gap: 20px;
    top: 0;
    position: sticky;
}

.profile-page {
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

#profile-image {
    width: 125px;
    height: 125px;
}

#profile-info {
    align-items: center;
    height: fit-content;
}

#profile-username {
    display: flex;
    align-items: center;
    gap: 5px;
}

#profile-info > .user-flairs {
    width: 100%;
    margin-bottom: 10px;
    gap: 8px;
}

#profile-info > .user-flairs > div {
    flex-wrap: wrap;
}

#profile-stats {
    width: 100%;
}

#profile-description {
    gap: 10px;
    height: fit-content;
}

#profile-comments {
    margin-top: 20px;
    flex-wrap: wrap;
    gap: 20px;
    display: flex;
    width: 700px;
    align-content: flex-start;
    padding-bottom: 20px;
}

#profile-comments > .comment {
    width: 340px;
}

.replying-to {
    font-size: 12px;
    font-weight: bold;
}

.replies-div {
    width: 100%;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

.comment-background {
    border-radius: 10px;
    background: #191C1C;
}

@media (prefers-color-scheme: light) {
    .comment-background {
        background: #8FC7C6;
    }
}

[data-theme="light"] {
    .comment-background {
        background: #8FC7C6;
    }
}

.show-replies,
.hide-replies {
    cursor: pointer;
}

.show-replies:focus,
.hide-replies:focus {
    outline: var(--accesibility-outline);
}

.toggle-replies:checked ~ div > .show-replies {
    display: none;
}

.toggle-replies:checked ~ div > .hide-replies {
    display: block;
}

.toggle-replies:checked ~ .replies {
    display: flex;
    width: 100%;
}

.reply-form {
    padding: 10px;
    display: none;
}

.reply-input:checked + .comment-background > .reply-form {
    display: flex;
}

.reply-form > div {
    margin-left: auto;
}

.reply-form > div > input {
    font-weight: normal;
}

#privacy-policy h1,
#privacy-policy h2 {
    margin: 0;
}

#privacy-policy ul {
    padding-left: 20px;
    list-style: initial;
}

#contact-images {
    gap: 40px;
    flex-wrap: wrap;
}

#contact-images img {
    width: 100px;
    height: 100px;
}

.badge-16px {
    width: 16px;
    height: 16px;
}

.badge-24px {
    width: 24px;
    height: 24px;
}

.badge-32px {
    width: 32px;
    height: 32px;
}

.dropdown-input {

}

.dropdown-input:checked + .dropdown-options {
    display: flex;
    z-index: 9999;
}

.dropdown-options {
    top: 100%;
    position: absolute;
    display: none;
    right: 0;
    background: var(--tile);
    width: 200px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    z-index: 5;
}

@keyframes overflow-scroll-animation {
    0% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(var(--flair-scroll-width));
    }

    100% {
        transform: translateX(0);
    }
}

.user-flairs > div {
    display: flex;
    flex-wrap: nowrap;
    flex-direction: row;
    align-items: center;
    flex-grow: 0;
    flex-shrink: 1;
    gap: 5px;
    overflow: visible;
}

.scrolling-overflow > div {
    animation: overflow-scroll-animation linear infinite;
    animation-timing-function: cubic-bezier(.20,.05,.80,1.1);
    animation-duration: var(--flair-scroll-length);
}

#page-select {
    margin: 0 auto;
    gap: 10px;
    padding-bottom: 20px;
}

#notifications-toggle:checked ~ #notifications {
    right: 150px;
    display: flex;
}

#notifications {
    display: none;
    flex-direction: column;
    position: absolute;
    overflow: auto;

    top: 58px;
    right: -100%;
    height: auto;
    max-height: 400px;
    padding: 20px;
    gap: 20px;

    transition-duration: var(--transition-duration);
    background: var(--text-box);
}

#read-all-button {
    margin-left: auto;
}

#no-notifications {
    margin: 50px auto;
}

#notifications-label {
    flex: 0 0;
}

#notification-blip {
    --shadow_2: rgba(11, 92, 85, 0.13);
    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--l-color);
    box-shadow: 0 2px 0 0 rgba(231, 245, 249, 0.11) inset, 0 -3px 0 0 rgba(17, 18, 18, 0.28) inset;
    border-radius: 8px;
    padding: 1px 5px 3px;
    height: 15px;
    transform: translate(20%, -20%);
    color: var(--dark-text);
    white-space: nowrap;
}

.notification {
    width: 100%;
    height: auto;
    gap: 10px;
}

.notification > .button {
    margin-left: auto;
}

.award {
    border: none;
    padding: 4px 8px;
    border-radius: 40px;
    box-shadow: none;
    max-height: 22px;
    display: flex;
    gap: 5px;
    background: var(--button);
    align-items: center;
    cursor: default;
}

.award > img {
    height: 14px;
    width: 14px;
}

.post-awards {
    gap: 5px;
}

.award-button {
    width: 30px;
    cursor: pointer;
}

.award-image {
    height: 36px;
    width: 36px;
}

#award-dialog {
    width: 300px;
    padding: 20px;
    height: auto;
}

#close-awards-button {
    margin-left: auto;
}

#award-dialog > div {
    align-items: center;
    justify-content: space-between;
}

#confirm-award-box {
    width: 268px;
    height: auto;
}

