@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=JetBrains+Mono:ital,wght@0,100..800;1,100..800&family=Noto+Sans+TC:wght@100..900&family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');
:root {
    --p-c-max-width: 90vw;
    --p-c-max-height: 100vh;
    --default-border-radius-value: 10px;

    --default-font: Roboto;
    --chinese-font: 'Noto Sans TC', Arial;
    --coding-font: 'JetBrains Mono';

    --p-c-bg-color: #ffffff;
    --p-c-text-color: black;
    --scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}


.p_header h2, .p_header .op_info_box .op_name, .post_date_box .delimiter, .post_date_box .date, .post_card .p_header, .hosted_service_item span  {
    font-family: var(--default-font), sans-serif;
}

*.chinese {
    font-family: var(--chinese-font), sans-serif;
}

*.english {
    font-family: var(--default-font), sans-serif;
}


.post_card {
    max-width: var(--p-c-max-width);
    max-height: var(--p-c-max-height);
    background-color: var(--p-c-bg-color);
    border-radius: var(--default-border-radius-value);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2em clamp(10px, 1vw, 20px);
    margin-bottom: 30px;
    box-shadow: rgba(0, 0, 0, 0.16) 0 10px 36px 0, rgba(0, 0, 0, 0.06) 0 0 0 1px;
}

.post_card .p_header {
    width: 100%;
    height: 20%;
    display: flex;
    align-items: center;
}

.p_header h2 {
    padding-left: 20px;
}

.p_header .op_info_box {
    display: flex;
    margin-left: auto;
    flex-direction: row;
    text-align: center;
    align-items: center;
}

.op_info_box > * {
    padding: 5px;
}

.op_info_box .op_name {
    font-weight: 450;
}

.op_info_box .op_avatar {
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    width: 40px;
}

.p_body {
    width: 50vw;
    padding: 10px 10px 20px 20px;
    overflow: hidden;
}

.p_body > * {
    margin-top: 10px;
}


.p_body img {
    aspect-ratio: 1 / 1;
    object-fit: contain;
}

.p_body iframe {
    aspect-ratio: 1 / 1;
    object-fit: contain;
}

.p_body p {
    color: var(--p-c-text-color);
    line-break: normal;
}

.p_c_footer {
    width: 100%;
    height: 20%;
    display: flex;
    align-items: center;
    padding: 20px;
}

.p_c_footer button {
    margin-left: 20px;
    background-color: #ffba00;
    border: none;
    cursor: pointer;
    width: 50px;
    height: 50px;
    border-radius: 15px;
    box-shadow: rgba(100, 100, 111, 0.2) 0 7px 29px 0;
}

.p_c_footer button:hover {
    background-color: #ffc600;
    transform: translateY(-2px);
    transition: all 0.3s ease-in-out;
}

.p_c_footer button img {
    aspect-ratio: 1 / 1;
    width: 100%;
}

.p_c_footer .post_date_box {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-left: auto;
}

.post_date_box > * {
    padding: 5px;
}

.post_date_box .date {
    display: flex;
    color: var(--p-c-text-color);
}

.post_card_container {
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

@media only screen and (max-width: 767px)  {
    .post_card_container {
        padding-top: 20px;
        padding-left: 5px;
    }

    .post_card {
        padding: 1em;
        width: 90vw;
    }

    .p_body {
        width: 90%;
        padding: 0 0 0 0;
    }

    .p_c_footer button {
        width: 40px;
        height: 40px;
    }
}

.image_gallery_list {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    width: 90%;
    height: 30vh;
    overflow-x: scroll;
    overflow-y: hidden;
    scrollbar-color: var(--scrollbar-color);
    scrollbar-width: thin;
}

.image_gallery_list::-webkit-scrollbar {
    width: 8px;
}

.image_gallery_list::-webkit-scrollbar-track {
    background: transparent;
}

.image_gallery_list::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.image_gallery_list img {
    height: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
}


/* For system status page */
.server_status_list {
    background-color: #ffffff;
    border-radius: 15px;
    min-height: 30vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow-y: scroll;
}

.server_status_list::-webkit-scrollbar {
    width: 8px;
}

.server_status_list::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 4px;
}

.server_status_list::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.3);
}

.server_item {
    width: 95%;
    background-color: #ffffff;
    margin: 20px;
    border-radius: 15px;
    min-height: 40px;
    display: flex;
    flex-direction: column;
    box-shadow: rgba(99, 99, 99, 0.2) 0 2px 8px 0;
}

.s_i_floor_1 {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
    height: 60px;
}

.s_i_floor_1 img {
    aspect-ratio: 1 / 1;
    height: 80%;
    padding: 30px;
    border-radius: 40px;
}

.s_i_floor_1 h3 {
    padding: 30px;
}

.s_i_floor_1 h1 {
    margin-left: auto;
    padding: 30px;
}

.hosted_service_list {
    display: none;
    width: 100%;
    flex-direction: column;
}

.hosted_service_item {
    padding: 20px 10px 20px 20px;
    margin-right: auto;
    display: flex;
    width: 100%;
}

.hosted_service_item span {
    flex: 1;
    display: flex;
}

.hosted_service_item a {
    flex: 1;
    text-decoration: none;
    color: deepskyblue;
}

.hosted_service_item i {
    flex: 1;
    margin-right: auto;
}

.server_item {
    &.show_service_list {
        .hosted_service_list {
            display: flex;
        }
    }
}
