/* Card Layout */

:root {
    /* --card-background-gradient: linear-gradient(45deg, hsla(0, 0%, 0%, 1) 0%, hsla(0, 0%, 10%, 1) 25%, hsla(0, 0%, 20%, 1) 50%, hsla(0, 0%, 30%, 1) 75%, hsla(0, 0%, 40%, 1) 100%); */
    --card-background-gradient: linear-gradient(45deg, hsla(0, 0%, 0%, 1) 0%, hsla(0, 0%, 0%, 0.9) 25%, hsla(0, 0%, 0%, 0.8) 50%, hsla(0, 0%, 0%, 0.7) 75%, hsla(0, 0%, 0%, 0.6) 100%);
    --reply-card-background-gradient: linear-gradient(0deg, hsla(0, 0%, 0%, 1) 0%, hsla(0, 0%, 0%, 0.9) 25%, hsla(0, 0%, 0%, 0.8) 50%, hsla(0, 0%, 0%, 0.7) 75%, hsla(0, 0%, 0%, 0.6) 100%);
    --card-outer-border: 1px solid #a9a9a9;
    --card-divider-border: 1px solid #a9a9a9;
    --card-gray-background-color: #252525;
    --card-divider-color: #a9a9a9;
    --card-link-color: #08a2c8;
    --card-dell-blue: #00dbef;
    --card-dell-blue-hover: #00acbc;
}

.relay__nav-back {
    color: white !important;
    width: fit-content;
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    padding-left: 10px;
}

.relay__nav-back:hover {
    color: #0aceff !important;
}

.relay__nav-back i {
    font-size: 1.2em;
    margin-right: 10px;
}

.relay__nav-back span {
    font-size: 1.3em;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 5px;
}

.relay__post-card {
    background: var(--card-background-gradient);
    border-radius: 10px;
    width: 100%;
    margin-bottom: 10px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    transition: box-shadow 0.3s ease-in-out;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

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

.relay__post-card>div:first-child {
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.relay__post-card>div:last-child {
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

.relay__post-card-row {
    display: flex;
    justify-content: center;
    width: 100%;
}

.relay__card-header {
    font-size: 24px;
    font-weight: bold;
    width: 95%;
    display: flex;
    justify-content: start;
    align-items: center;
    padding: 10px 0;
    margin-left: 0 !important;
    margin-right: 0 !important;
    border-bottom: var(--card-divider-border);
}

.relay__card-header h3 {
    color: white;
    font-size: 0.7em;
    margin-bottom: 0;
    text-transform: none;
}

.relay__card-header span.post-tag {
    font-size: 20px;
}

.relay__card-header .dropdown-menu,
.relay-comment-sort .dropdown-menu {
    border-radius: 0;
    border: 1px solid #52d3fd;
    border-bottom: none;
    background-color: #000;
    padding: 0;
}

.relay__card-header .dropdown-menu .dropdown-item,
.relay-comment-sort .dropdown-menu .dropdown-item {
    color: #52d3fd;
    font-size: 12px;
    padding: 12px 20px;
    border-bottom: 1px solid #52d3fd;
    width: 100%;
}

.relay__card-header .dropdown-menu .dropdown-item:hover {
    background-color: #2d6e80;
}

.relay__card-header a h3 {
    color: var(--card-link-color);
}

.relay__card-header a:hover h3 {
    color: #0aceff;
    text-decoration: underline;
}

.relay__card-body {
    width: 100%;
    height: fit-content;
    font-size: 80%;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.relay__card-body .card-table-row {
    --bs-gutter-x: 0;
    display: flex;
    align-items: center;
    color: white;
    padding-left: 15px;
    padding-right: 15px;
    padding-top: 5px;
    padding-bottom: 5px;
}

.relay__card-body .card-table-row:not(:last-child) {
    border-bottom: 1px solid var(--card-divider-color);
}

.relay__card-footer {
    display: flex;
    justify-content: flex-end;
    width: 95%;
    padding: 10px 0px;
    margin: 0 !important;
    border-top: var(--card-divider-border);
}

.relay__card-footer p {
    color: gray;
    font-size: 0.8rem;
    margin: 0;
}

.relay__card-header button {
    background-color: transparent;
    border: none;
    color: white;
    font-size: 1.6rem;
    margin-left: 15px;
    padding: 0;
}

.relay__card-header button:hover {
    color: lightgray;
}

.relay__card-header button:focus {
    outline: 0;
}

.reactions-container {
    row-gap: 10px;
}

.relay__card-reaction-badge {
    border: 1px solid transparent;
    border-radius: 10px;
    max-width: 40px;
    max-height: 50px;
    font-size: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin: 0 0.25rem;
    padding: 1.65em 1.4em;
}

.relay__card-reaction-badge p {
    color: white;
}

.relay__card-reaction-badge.has-reacted {
    background-color: #2c2c2c;
    border-color: #b2b2b2;
}

.relay__card-reaction-badge:has(img) {
    display: flex;
    justify-content: center;
    align-items: center;
}

.relay__card-reaction-badge img {
    max-height: 30px;
    margin-top: 5px;
}

.relay__card-reaction-badge:hover {
    cursor: pointer;
    background-color: #2c2c2c;
    border-color: #555555;
}

.emoji-picker-container {
    position: absolute;
    bottom: 0;
    left: 58%;
    z-index: 2;
}

.relay__card-footer .social-share {
    color: white !important;
    padding: 0 10px;
    transition: all 0.3s;
    font-size: 1.5rem;
}

.relay__card-footer .social-share:last-of-type {
    padding-right: 20px;
}

.relay__card-footer .social-share:hover {
    color: #cccccc !important;
}

.relay__card-video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
}

.relay__card-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 10px;
}

.relay__card-video-short-container {
    position: relative;
    width: 100%;
}

.relay__card-video-short {
    width: 300px;
    height: 540px;
    border-radius: 10px;
}

.relay__link-container {
    display: inline-flex;
    max-width: 580px;
    text-wrap: nowrap;
}

.relay__link-container .relay__post-link {
    overflow: hidden;
    text-overflow: ellipsis;
}

.post-actions .social-container-mobile {
    display: none;
}

.post-actions .social-container-mobile button {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.2rem;
    margin-right: 10px;
    transition: all 0.3s;
}

.post-actions .social-container-mobile button:hover {
    color: #cccccc;
}

.post-actions .social-container-mobile .socials-mobile {
    display: flex;
    position: absolute;
    bottom: 110%;
    right: 30%;

    background-color: var(--card-gray-background-color);
    border: 1px solid white;
    border-radius: 10px;
    padding: 5px;

    display: none;
}

@media (min-width: 992px) {
    .relay__card-header h3 {
        font-size: 1.2em;
    }

    .relay__card-body {
        font-size: var(--bs-body-font-size);
    }
}

@media (max-width: 991px) {
    .post-actions .social-container {
        display: none !important;
    }

    .post-actions .social-container-mobile {
        display: block;
    }

    .relay__card-footer .social-share:last-of-type {
        padding: 0 10px;
    }

    .relay__card-reaction-badge {
        padding: 1.2em 1.4em;
        margin: 0 0.1rem
    }

    .relay__card-reaction-badge img {
        max-height: 25px;
    }

    .post-icon {
        font-size: 1.2rem !important;
    }

    .relay__card-footer .social-share {
        font-size: 1.2rem;
    }

    
    .relay__link-container {
        max-width: 450px;
    }
}

@media(max-width:767px) {
    .post-actions .social-container-mobile .socials-mobile {
        right: 37%;
    }
}

@media(max-width:567px) {
    .relay__card-header {
        font-size: 18px;
    }

    .emoji-picker-container {
        left: 25%;
    }

    .relay__link-container {
        max-width: 85vw;
    }

    .relay__card-header span.post-tag {
        font-size: 13px;
    }
}