@charset "UTF-8";
@import url('./dynamic.css');

.spacenet_latest_comment_place {  /* 區塊 */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.spacenet_latest_comment_container { /* 容器 */
    padding-top: 60px;
    width: 85%;
}

.spacenet_latest_comment_container h2 {
    white-space: nowrap;
    padding: 0 40px;
    padding-bottom: 20px;
    color: white;
}

.spacenet_latest_commentt_list {
    flex-direction: row;
    position: relative;
    display: flex;
    width: 100%;
    height: 350px;
    padding: 30px 30px;
    box-sizing: border-box;
    max-height: 400px;
    overflow-y: hidden;
    overflow-x: auto;
    background-color: #515151;
    border-radius: 10px;
    align-items: center;

    /* Firefox ScrollBar */
    scrollbar-width: thin;
    scrollbar-color: rgba(114, 114, 114, 0.3) transparent;
}

/* WebKit (Chrome, Safari, Edge) */
.spacenet_latest_commentt_list::-webkit-scrollbar {
    width: 8px; /* 垂直 scrollbar 寬度 */
}

.spacenet_latest_commentt_list::-webkit-scrollbar-track {
    background: transparent;
}

.spacenet_latest_commentt_list::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    min-height: 20px;
}

.spacenet_latest_commentt_list::-webkit-scrollbar-thumb:hover {
    background-color: rgba(0, 0, 0, 0.5);
}

.comment_card {
    width: 450px;
    height: 250px;
    border-radius: 10px 10px 10px 10px;
    margin-right: 100px;
    background-color: rgb(34, 34, 34);
    position: relative;
    box-shadow: rgba(0, 0, 0, 0.25) 0 25px 50px -12px;
}

.comment_card_account_info_container {
    height: 50px;
    width: 100%;
    align-items: center;
    justify-content: center;
}

.comment_card_username {
    position: relative;
    font-size: 25px;
    font-weight: bold;
    color: white;
    padding: 0px 10px;
}

.comment_card_account_avatar {
    padding: 10px 10px;
    position: relative;
    vertical-align: middle;
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.comment_card_wrapper {
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    overflow: hidden;
}

.comment_img_overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4)5%, rgba(0,0,0,0))90%;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
    z-index: 1;
    border-radius: 10px;
}

.comment_img_overlay:hover{
    opacity: 1;
}

.comment_card_paragraph {
    position: absolute;
    z-index: 1;
    bottom: 25px;
    left: 0;
    padding: 10px 20px;
    font-size: 25px;
    font-weight: bold;
    color: rgb(255, 255, 255);
    white-space: pre-line;
    transition: font-size 0.5s ease;
}

.comment_card_paragraph_hover {
    font-size: 35px;
}