* {
    box-sizing: border-box;
}

body {
    background-color: darkgray;
    margin: 0; /* 移除瀏覽器預設邊距 */
    padding: 0;
    width: 100vw;
}

div.outermost {
    width: 100%;

    max-width: 100vw; /* 限制最大寬度為視窗寬度 */
    overflow-x: hidden; /* 這是最後一道防線，隱藏溢出的橫向內容 */
    
    background-color: gray;
    padding-bottom: 10px;
    padding-top: 20px;
    margin: auto;
}

.head {
    width: 96%;
    margin: auto;
    background-color: rgb(175, 175, 175);
    border-color: whitesmoke;
    border-style: solid;
    margin-bottom: 10px;
    padding-top: 5px;
    padding-left: 5px;
    padding-right: 5px;
}

.blog_name {
    font-size: xx-large;
    font-weight: bold;
    color: darkgreen;
    margin: 5px;
}

.blog_comment {
    font-size: medium;
    font-weight: bold;
    color: black;
    margin: 5px;
}

.blog_name_link {
    text-decoration: none;
}

.post_content img {
    margin-left: auto;
    margin-right: auto;
    display: block;
    max-width: 65%;
    border-color: whitesmoke;
    border-style: solid;
}

.post_content hr {
    width: 98%;
    size: 4px;
    color: whitesmoke;
}

#AllPostList {
    background-color: rgb(220, 220, 220);
    border-color: whitesmoke;
    margin: auto;
    width: 90%;
    text-align: center;
    border-style: solid;
}

/*
#AllPostList.p {
    color: black;
    margin-top: 4px;
    margin-bottom: 4px;
}*/

#AllTagList {
    background-color: rgb(220, 220, 220);
    border-color: whitesmoke;
    margin: auto;
    width: 90%;
    text-align: center;
    border-style: solid;
}



#AllcategoryList {
    background-color: rgb(220, 220, 220);
    border-color: whitesmoke;
    margin: auto;
    width: 90%;
    text-align: center;
    border-style: solid;
}


.post_outermost {
    width: 96%;
    background-color: rgb(141, 141, 141);
    margin: auto;
    border-style: solid;
    border-color: whitesmoke;
    margin-bottom: 10px;
    padding-top: 5px;
    padding-left: 5px;
    padding-right: 5px;
    padding-bottom: 10px;
}

.post_title_outermost {
    width: 100%;
    background-color: rgb(175, 175, 175);
    margin: auto;
}

.post_time {
    margin: 5px;
    font-size: medium;
}

.post_title {
    margin: 5px;
    font-size: large;
    font-weight: bold;
}

.more_div {
    margin: auto;
    text-align: center;
}

.more_a {
    text-decoration: none;
}

.more_p {
    color: darkred;
    font-size: large;
    font-weight: bold;
}

.back_top {
    text-align: center;
    color: darkred;
    font-size: large;
    font-weight: bold;
}


.top_a {
    text-decoration: none;
}

.read_title {
    color: black;
    margin-top: 4px;
    margin-bottom: 4px;
}

.post_list_border {
    border-style: solid;
    padding-left: 20px;
}

/*loading start*/
#loading {
    width: 25%;
    margin: auto;
}

.loader {
    width: fit-content;
    font-weight: bold;
    font-family: monospace;
    font-size: 30px;
    clip-path: inset(0 3ch 0 0);
    animation: l4 1s steps(4) infinite;
    margin: auto;
}

.loader:before {
    content: "Loading..."
}

@keyframes l4 {
    to {
        clip-path: inset(0 -1ch 0 0)
    }
}

/*loading end*/


.categorys_title {
    font-size: medium;
    font-weight: bold;

    margin-top: 0px;
    margin-bottom: 0px;
}

.categorys {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    margin-left: 15%;
    /*border-style: solid;*/
}

.category_p {
    color: darkblue;
    margin-top: 0px;
    margin-bottom: 0px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    margin-left: 15%;
    /*border-style: solid;*/
}

.tags_title {
    font-size: medium;
    font-weight: bold;
    margin-top: 0px;
    margin-bottom: 5px;

}

.tag_p {
    color: darkblue;
    margin-top: 0px;
    margin-bottom: 5px;
}


.tag_link {
    text-decoration: none;
}

.date_link {
    text-decoration: none;
}

.category_link {
    text-decoration: none;
}


.category_item_region {
    margin-left: 6px;
}


.tag_item_region {
    margin-left: 6px;
}




.tag_list_region {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    margin: auto;
    border-style: solid;
    width: 98%;
    border-color: whitesmoke;
}

#AllTagList p {
    font-weight: bold;
    text-align: center;
}

/*  category */

#AllcategoryList p {
    font-weight: bold;
    text-align: center;
}


.date_list_region {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    margin: auto;
    border-style: solid;
    width: 98%;
    border-color: whitesmoke;
}



.category_list_region {
    /*display: flex;
    flex-wrap: wrap;
    align-items: flex-end;*/
    margin: auto;
    border-style: solid;
    width: 98%;
    border-color: whitesmoke;
}


#AllDateList {
    background-color: rgb(220, 220, 220);
    border-color: whitesmoke;
    margin: auto;
    width: 90%;
    text-align: left;
    border-style: solid;
}





#AllDateList p {
    font-weight: bold;
    text-align: center;
}

/*日期展開選單start*/
ul,
#myUL {
    list-style-type: none;
}

#myUL {
    margin-left: 5px;
    padding: 0;
    width: 95%;
}

.caret {
    cursor: pointer;
    -webkit-user-select: none;
    /* Safari 3.1+ */
    -moz-user-select: none;
    /* Firefox 2+ */
    -ms-user-select: none;
    /* IE 10+ */
    user-select: none;
}

.caret::before {
    content: "\25B6";
    color: black;
    display: inline-block;
    margin-right: 6px;
}

.caret-down::before {
    -ms-transform: rotate(90deg);
    /* IE 9 */
    -webkit-transform: rotate(90deg);
    /* Safari */
    transform: rotate(90deg);
}

.nested {
    display: none;
    padding-left: 30px;
}

.active {
    display: block;
    padding-left: 30px;
}

/*日期展開選單end*/

#AllCommentList {
    background-color: rgb(220, 220, 220);
    border-color: whitesmoke;
    margin: auto;
    width: 90%;
    text-align: center;
    border-style: solid;
}

#AllCommentList p {
    font-weight: bold;
    text-align: center;
}

#blog_search {
    background-color: rgb(220, 220, 220);
    border-color: whitesmoke;
    margin: auto;
    width: 90%;
    text-align: center;
    border-style: solid;
}

#blog_search_google p {
    font-weight: bold;
    text-align: center;
}


/* https://yoast.com/how-to-make-youtube-videos-responsive */
.youtube-video {
    aspect-ratio: 16 / 9;
    width: 60%;
}

.youtube-vide-portrait {
    aspect-ratio: 16 / 9;
    width: 99%;
}