@charset "UTF-8";
@import url('./dynamic.css');

.spacenet_main_container{ /* 主容器 */
    width: 100%;
}

.spacenet_latest_post_place {  /* 區塊 */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.spacenet_latest_post_container { /* 容器 */
    padding-top: 70px;
    width: 90%;
}

.spacenet_latest_post_container h2 { /* 什麼都不是 */
    align-self: flex-start; 
    white-space: nowrap;
    padding: 0px 40px;
    padding-bottom: 20px;
    color: white;
}

.spacenet_latest_post_list { /* 互動式列表 */
    position: relative;
    display: flex;
    width: 100%;
    height: 480px;
    padding: 10px 40px;
    box-sizing: border-box;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    align-items: center;
    border-radius: 10px;
    background-color: var(--container-background-color);
}

/* WebKit */
.spacenet_latest_post_list::-webkit-scrollbar {
  height: 1px; /* x 軸 scrollbar 高度 */
}

.spacenet_latest_post_list::-webkit-scrollbar-track {
  background: transparent;
}

.spacenet_latest_post_list::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 1px;
  min-height: 20px;
}

.spacenet_latest_post_list::-moz-scrollbar-button:decrement,
.spacenet_latest_post_list::-moz-scrollbar-button:increment {
  width: 0;
  height: 0;
}

.spacenet_latest_post_list::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}

.spacenet_blog_post_card {
    width: 420px;
    height: 420px;
    border-radius: 10px;
    margin-right: 60px;        /* 原本是 100px，可視覺再調 */
    background-color: rgb(34, 34, 34);
    position: relative;
    box-shadow: rgba(0, 0, 0, 0.24) 0 3px 8px;
}

.spacenet_blog_post_card:last-child {
  margin-right: 0;           /* 收尾乾淨 */
}

.post_preview_title_legacy {
    position: absolute;
    top: 0;
    transform: translate(-50%, -50%);
    z-index: 2;
    color: white;
    font-size: 1.2rem;
    text-decoration: none;
    padding: 0.5em 1em;
    background: rgba(0,0,0,0.5);
    border-radius: 4px;
}

.post_preview_title {
    position: absolute;
    z-index: 2;
    top: 0;
    left: 0;
    padding: 10px 20px;
    font-size: 25px;
    font-weight: bold;
    color: white;
}

.post_card_wrapper {
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    overflow: hidden;
}

.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;
}

.img_overlay_hover {
    opacity: 1;
}

.post_card_short_description {
    position: absolute;
    z-index: 2;
    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;
}

.short_description_hover {
    font-size: 35px;
}

.post_card_wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    z-index: 0;
}

/* .spacenet_article_container {
    min-height: 800px;
    position: relative;
    display: flex;
    justify-content: center;
    margin-top: 35px;
}

.spacenet_article_box {
    width: 95%;
    min-height: 200px;
    border-radius: 25px 25px 25px 25px;
}
*/

.spacenet_footer {
    margin-top: auto;
    width: 100%;
    flex-direction: column;
    display: flex;
}

.first_level_footer {
    display: flex;
    width: 100%;
    height: 70px;
    flex-direction: row;
}

.second_level_footer {
    display: flex;
    width: 100%;
    height: 40px;
    flex-direction: row;
}

.footer_website_title {
    color: rgb(255, 255, 255);
    font-weight: bold;
    font-size: 35px;
    padding: 25px 30px;
}

.footer_website_copyright {
    color: rgb(255, 255, 255);
    font-weight: 300;
    font-size: 16px;
    margin: 0 auto;
    margin-bottom: 10px;
}

.separater_line {
    background-color: rgba(172, 172, 172, 0.753);
    height: 2px;
    width: 85%;
    /*  像魔術一樣!! */
    margin: 0 auto;
}

.right_position {
    position: absolute;
    right: 0;
}

.left_position {
    left: 0;
}

.center_message_for_container {
    color: white;
    font-size: 30px;
    font-weight: bold;
    z-index: 100;
    width: 200px;

    /* 好用的置中方式 */
    height: 100px;
    margin: auto;            /* 四邊自動，XY 都置中 */
    position: absolute;      /* 搭配 absolute 定位 */
    top: 0; bottom: 0; left: 0; right: 0;
}

.spacenet_workspace {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.uncopyable {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}