/* Navigation Link Styles */
.navigation {
    display: flex;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    font-size: 20px;
    font-weight: bold;
    color: inherit;
    transition: all .3s;
    background-color: rgba(75, 75, 75, .5);
}

.navigation.inactive {
    font-size: 20px;
    font-weight: bold;
    text-decoration: none;
    color: grey;
    background-color: transparent;
}

.navigation:hover {
    background-color: rgba(75, 75, 75, .5);
}

.navigation.inactive:hover {
    color: lightgray;
}

.new-post-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.new-post-container p {
    color: white;
    font-weight: bold;
    font-size: 20px;
    margin: 0;
}

.new-post {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    font-size: 12px;
}

.new-post-button {
    position: fixed;
    width: 255px;
    height: 62px;
    top: 105px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #00baf8;
    border: 1px solid rgba(75, 75, 75, .75);
    border-radius: 10px;
    margin-bottom: 3px;
    transition: all .3s;
    z-index: 3;
    color: white;
}

.new-post-button:hover {
    background-color: #0093c4;
}

.new-post-button span {
    color: white;
    font-weight: bold;
    font-size: 20px;
    margin: 0;
    display: block;
}

.new-post-button i {
    color: white;
    font-weight: bold;
    font-size: 34px;
    display: none;
}

.filter-relays {
    position: fixed;
    top: 175px;
    width: 270px;
    height: 32px;
    padding-left: 15px;
    z-index: 3;
    color: white;
    font-weight: bold;
    font-size: 20px;
    text-align: center;
    border-radius: 10px;
    transition: all .3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.filter-relays label {
    color: white;
    font-size: 0.9rem;
    font-weight: normal;
    margin: 3px 10px 0 0;
    text-align: center;
}

.filter-relays select {
    color: white;
    font-size: 0.9rem;
    background-color: rgb(0,0,0);
    border: 1px solid #00baf8;
    border-radius: 10px;
    width: 100%;
    padding: 5px;
}

/* Left Widget Styles */
.widget {
    background: var(--card-background-gradient);
    border: var(--card-outer-border);
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    border-radius: 10px;
    padding: 20px;
    transition: box-shadow 0.3s ease-in-out;
}

.widget.advertisement {
    display: flex;
    justify-content: center;
    align-items: center;
}

.widget.has-post-filter {
    margin-top: 40px;
}

.widget:hover {
    box-shadow: rgba(0, 0, 0, 0.56) 0px 22px 70px 4px;
}

.widget-heading {
    font-size: 24px;
    font-weight: bold;
    padding-bottom: 15px;
    border-bottom: var(--card-divider-border);
}

.widget-heading i {
    color: darkgray;
}

.widget-heading.information-heading {
    padding-bottom: 0;
    border-bottom: none;
}

.widget-table {
    font-size: 13px;
}

.widget-table-row {
    margin: 2px !important;
    padding-top: 5px;
    padding-bottom: 5px;
}

.announcements-heading .announcements-title {
    color: white;
}

.announcements-table .widget-table-row:not(:last-child) {
    border-bottom: var(--card-divider-border);
}

.widget-table-row.leaderboard:first-child {
    font-size: 20px;
    margin: 2px;
    padding-bottom: 5px;
}

.announcements-posted-at {
    font-size: 10px;
    padding-top: 5px;
    padding-bottom: 5px;
    justify-content: end;
    color: white;
}

/* Post Styles */
a.username {
    color: inherit;
    text-decoration: none;
    padding: 0;
}

a.username:hover {
    text-decoration: underline;
}

.mobile-avatar {
    display: none;
    max-height: 50px;
}

.tier-image {
    max-height: 60px;
    max-width: 120px;
}

.mobile-tier-container {
    display: none;
    margin-left: 15px;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.mobile-tier {
    max-height: 40px;
    max-width: 120px;
}

.mobile-custom-title {
    font-size: 12px;
    margin: 0;
}

.relay__card-body.media {
    display: flex;
    flex-wrap: nowrap;
}

.post-text {
    font-size: 15px;
    padding: 0 15px 0 0 !important;
}

.relay-post-image {
    max-height: 800px;
}

/* Emojis and Icons */
.post-icon-link {
    color: white !important;
    display: flex;
    justify-content: center;
    align-items: center;
}

.post-icon-link:hover {
    color: #cccccc !important;
}

.post-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    border-radius: 9999px;
    margin-right: 5px;
    width: 30px;
    height: 30px;
}

.post-icon i.fa-plus {
    color: #00afff;
}

.link:hover .post-icon,
.link .post-icon:hover,
.link:hover .reply-count,
.link:hover .reaction-count {
    transition: all .5s;
}

/* Laughing Emoji */
.link.emoji-laugh:hover .post-icon,
.link.emoji-laugh .post-icon:hover {
    background-color: rgba(0, 0, 0, 0.6);
}

.link.emoji-laugh:hover .reaction-count {
    color: black;
}

/* Alien Emoji */
.link.emoji-alien:hover .post-icon,
.link.emoji-alien .post-icon:hover {
    background-color: rgba(255, 255, 0, 0.6);;
}

.link.emoji-alien:hover .reaction-count {
    color: yellow;
}

/* Fire Emoji */
.link.emoji-fire:hover .post-icon,
.link.emoji-fire .post-icon:hover {
    background-color: rgba(255, 0, 0, 0.6);
}

.link.emoji-fire:hover .reaction-count {
    color: red;
}

/* Plus Icon */
.link.icon-plus:hover .post-icon,
.link.icon-plus .post-icon:hover {
    background-color: rgba(173, 216, 230, 0.6);
}

/* Create Comment Button */
.relay-reply-button {
    background-color: var(--card-dell-blue);
    color: black !important;
    text-transform: uppercase;
    border-radius: 20px;
    padding: 0 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100px;
    transition: all 0.3s;
}

.relay-reply-button:hover {
    background-color: var(--card-dell-blue-hover);
}

.post-image {
    height: auto;
    width: auto;
    max-height: calc(100% - 10px);
    max-width: calc(100% - 10px);
    border-radius: 10px;
    box-shadow: 10px 10px 31px -8px rgba(0,0,0,0.56);
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.post-video {
    aspect-ratio: 16 / 9;
    width: calc(100% - 20px);
    height: calc(100% - 10px);
    border-radius: 10px;
    box-shadow: 10px 10px 31px -8px rgba(0,0,0,0.56);
    transition: all .3s;
}

.post-video:hover {
    box-shadow: 10px 10px 31px -4px rgba(0,0,0,0.56);
}

.avatar-image-container {
    display: flex;
    flex-wrap: nowrap;
    flex-direction: column;
    align-items: center;
}

.avatar-link {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 160px;
}

.avatar-link:has(>.avatar-image.has-border) {
    margin-bottom: 15px;
}

.avatar-image {
    height: auto;
    width: auto;
    z-index: 1;
}

.avatar-image.has-border {
    height: auto;
    width: auto;
    pointer-events: none;
}

.avatar-image:hover {
    filter: brightness(95%);
}

.avatar-border {
    position: absolute;
    z-index: 2;
    max-height: 250px;
}

.avatar-border:hover {
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    filter: brightness(95%);
}

.avatar-tier-banner {
    width: auto;
    max-width: 180px;
    height: auto;
    padding: 5px 10px;
}

.avatar-tier-title {
    font-size: 16px;
    margin: 0;
}

.link {
    color: var(--card-dell-blue) !important;
    text-decoration: inherit;
    padding: 0 !important;
    transition: color 0.3s;
}

.link:hover {
    color: var(--card-dell-blue-hover) !important;
}

.relay-announcement-wrap {
    white-space: pre-wrap;
    word-wrap: break-word;
    word-break: break-all;
    white-space: normal;
    display:block;
}

/* Tablet View Modifiers */
@media(max-width:900px) {
    .navigation-buttons {
        display: flex;
        justify-content: center;
    }

    .navigation {
        padding-left: 10px;
        padding-right: 10px;
    }

    .relay__card-body.media {
        flex-wrap: wrap;
        justify-content: center;
    }

    .relay__card-body.media .post-text {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
    }

    .post-text {
        margin-left: 10px;
        margin-right: 10px;
        padding-left: 15px !important;
    }

    .post-text p {
        margin-top: 10px;
    }
}

@media(max-width: 767px) {
    .filter-relays {
        position: absolute;
        top: 80px;
        z-index: 2;
        padding: 0 5px;
    }
}

/* Mobile View Modifiers */
@media(max-width:567px) {
    .widget.discord {
        display: none;
    }

    .widget.advertisement {
        display: none;
    }

    .avatar-image-container {
        display: none;
    }

    .mobile-avatar {
        display: block;
    }

    .mobile-tier-container {
        display: flex;
    }

    a.username {
        margin-left: 5px !important;
    }

    .tier-image {
        display: none;
    }

    .avatar-image {
        width: 144px;
    }

    .avatar-tier-banner {
        max-width: 144px;
    }

    .avatar-tier-title {
        font-size: 12px;
    }

    .relay__card-body.media {
        flex-wrap: wrap;
        justify-content: center;
    }

    .relay__card-body.media .post-text {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
    }

    .post-text {
        margin-left: 10px;
        margin-right: 10px;
        padding-left: 15px !important;
    }

    .post-text p {
        margin-top: 10px;
    }

    .footer-icons {
        font-size: 12px;
        flex-direction: row;
        flex-wrap: nowrap !important;
        justify-content: center;
    }

    .post-icon {
        cursor: pointer;
        font-size: 18px;
        max-width: 25px;
    }
}

@media (max-width: 1200px) {
    .widget.has-post-filter {
        margin-top: 0;
    }
}

/* Floating Create Post Button Style Modifiers */
@media (max-width: 575px) {
    .new-post-button {
        width: 80px;
        height: 80px;
        border-radius: 50%;
    }

    .filter-relays {
        width: 570px;
        position: static;
        margin-top: 80px;
    }

    .filter-relays.form-open {
        margin-top: 10px;
    }
}

@media (min-width: 576px) and (max-width: 767px) {
    .new-post-button {
        width: 80px;
        height: 80px;
        border-radius: 50%;
    }

    .filter-relays {
        width: 510px;
        position: static;
        margin-top: 80px;
    }

    .filter-relays.form-open {
        margin-top: 10px;
    }
}

@media (min-width: 768px) and (max-width: 900px) {
    .new-post-button {
        width: 160px;
        left: 5%;
    }

    .filter-relays {
        width: 160px;
        left: 5%;
        padding-left: 0px;
    }

    .navigation-buttons {
        flex-direction: column;
        align-items: center;
    }
}

@media (min-width: 901px) and (max-width: 991px) {
    .new-post-button {
        width: 160px;
    }

    .filter-relays {
        width: 175px;
    }
}

@media (min-width: 992px) and (max-width: 1200px) {
    .new-post-button {
        width: 210px;
    }

    .filter-relays {
        width: 225px;
    }
}

@media (max-width: 767px) {
    .new-post-button span {
        display: none;
    }
    
    .new-post-button i {
        display: block;
    }
}