@charset "UTF-8";
h1::before {
    content: "⚠️ ";
}
#compilation_div {
    display: flex;
    gap: 0.2rem;
}
section {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
#latest_comment_sec {
    position: relative;
    background: var(--bg3);
    padding: 0.5rem;
    box-shadow: 0 0 0.3rem var(--shadow);
}
#latest_comment_sec > p:first-of-type {
    color: var(--muted);
}
#latest_comment_sec time {
    position: absolute;
    padding: 0.3rem;
    font-size: 0.8rem;
    top: 0;
    right: 0;
}
#latest_comment_sec h2 {
    color: var(--cool);
}
#latest_comment_sec a {
    padding: 0.5rem;
    font-size: 0.9rem;
    width: 100%;
    color: var(--bg4);
    text-align: end;
    background: var(--bg5);
}
#latest_comment_sec .message {
    background: var(--bg5);
    padding: 0.3rem;
    border-top: 0.05rem solid var(--border1);
    border-bottom: 0.05rem solid var(--border1);
}
.topic-link-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
#favorite_links:empty::before {
    content: "❗ Ei lisättyjä suosikkeja";
    font-size: 0.8rem;
}
#topic_nav:empty::before {
    content: "❗ Aiheita ei löytynyt";
    font-size: 0.8rem;
}
.topic-link-container div {
    width: 100%;
    height: 2.3rem;
    display: flex;
    align-items: center;
    position: relative;
    box-shadow: 0 0 0.5rem var(--shadow);
    border: 0.05rem solid var(--border1);
    background: var(--bg3);
    border-radius: 999px;
    user-select: none;
    transition: transform 0.2s;
}
.topic-link-container div button:first-child {
    background-color: var(--bg1);
    height: 100%;
    aspect-ratio: 1;
    border-radius: 0.5rem;
    font-size: 0.8rem;
    border: 0.05rem solid var(--border2);
}
.topic-link-container div a {
    font-size: 0.8rem;
    white-space: nowrap;
    height: 100%;
    width: calc(100% - 6.5rem);
    overflow-x: auto;
    overflow-y: hidden;
    color: var(--txt1);
    padding-left: 0.5rem;
    text-decoration: none;
    display: flex;
    align-items: center;
}
.topic-link-container div:has(a:hover){
  transform: scale(0.99);
}
.topic-link-container div a span:first-of-type {
    display: block;
}
.topic-link-container div a span:first-of-type::first-letter {
    text-transform: uppercase;
}
.topic-link-container div a span:last-of-type {
    position: absolute;
    line-height: 2.5rem;
    right: 0;
    width: 4rem;
    top: 50%;
    transform: translateY(-50%);
    padding-right: 0.5rem;
    font-size: 0.7rem;
    color: var(--muted);
}
/* ------------- */
.favorite-topic span:first-child::before {
    content: "⭐";
}
/* ------------- */
    .top-bar div {
        display: inline-block;
        white-space: nowrap;
        animation: top-bar-scroll 25s linear infinite;
    }
    .top-bar div span {
        display: inline-block;
        margin-right: 2rem;
    }
/*  */

/*  */
    #post_container {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: repeat(2, minmax(0, 1fr));
        gap: 0.5rem;
        min-height: 0;
    }
    #post_container article {
        margin: 0;
        cursor: pointer;
        min-width: 0;
        display: flex;
        justify-content: space-between;
        flex-direction: column;
    }
    #post_container article:active {
        transform: scale(0.99);
    }
/*  */
    @keyframes top-bar-scroll {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(-50%);
        }
    }


