@charset "utf-8";
/* CSS Document */
/* 置中 "*"表全區 */
*{
   
    font-family: 'Open Sans', sans-serif;
}

html, body{
    margin:0;
    padding:0;
    background:#DBDCDC;
    scroll-behavior: smooth;
}
header{
    position: relative;
    top:0px;
    width:100%;
    height:10%;
    background:#DBDCDC;
    animation: rightIn 1s ease 0s 1;
}
@keyframes rightIn {
    from {
        opacity: 0;
        transform: translateX(100%); /* 從下方開始，將元素移至底部 */
    }
    to {
        opacity: 1;
        transform: translateX(0); /* 達到頂部，元素停止移動 */
    }
}
.nameplace{
    text-decoration: none; /*將底線去除*/
    display:flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    margin:0px 5px;
    
}
.nameplace a{
    text-decoration: none;
    color: inherit;
}
.nameplace li{
    list-style: none;
}
.nameplace h5{
    color:#595757;
    text-align: left;
    font-weight: 300;
    font-size: 10px;
}
.nameplace h5:hover{
    font-weight: 800;
    font-size: 18px;
    transition: all 1s ease;
}
@keyframes fadeInFromBottom {
    from {
        opacity: 0;
        transform: translateY(50%); /* 從下方開始，將元素移至底部 */
    }
    to {
        opacity: 1;
        transform: translateY(0); /* 達到頂部，元素停止移動 */
    }
}
/* nav */
nav{
    position:relative;
    width:100%;
    height:70%;
    display: flex;
    justify-content: center;
}
nav h1{
    text-align: center;
    line-height: 0.8;
    color:#595757;
    padding:50px;
    animation: leftIn 1s ease 0s 1;
}
@keyframes leftIn {
    from {
        opacity: 0;
        transform: translateX(-100%); /* 從下方開始，將元素移至底部 */
    }
    to {
        opacity: 1;
        transform: translateX(0); /* 達到頂部，元素停止移動 */
    }
}

/* aside */
aside{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    flex-wrap: nowrap;
}
aside ul{
    list-style: none; /* 移除列表樣式 */
    margin:0;
    padding:0;
    display:flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    margin:5px;
    animation: rightIn 1s ease 0s 1;
}
@keyframes rightIn {
    from {
        opacity: 0;
        transform: translateX(100%); /* 從下方開始，將元素移至底部 */
    }
    to {
        opacity: 1;
        transform: translateX(0); /* 達到頂部，元素停止移動 */
    }
}
aside li{
    margin:10px;
}
/* 超連結 */
aside li a {
    color: #595757; /* 文字顏色 */
    text-decoration: none; /*將底線去除*/
    padding: 10px;
    font-weight: 300;
    font-size: 12px;
}
aside li a:hover{
    border-radius:15px;
    padding:10px;
    background:#595757;
    color:#DBDCDC;
    font-weight: 500;
    transition: all 1s ease;
}
@keyframes fadeInFromBottom {
    from {
        opacity: 0;
        transform: translateY(50%); /* 從下方開始，將元素移至底部 */
    }
    to {
        opacity: 1;
        transform: translateY(0); /* 達到頂部，元素停止移動 */
    }
}


/* section */
section{
    width:100%;
    display:flex;
    justify-content:center;
    align-items: center;
    flex-direction: column;
    animation: fadeInFromBottom 1s ease 0s 1;
}
@keyframes fadeInFromBottom {
    from {
        opacity: 0;
        transform: translateY(50%); /* 從下方開始，將元素移至底部 */
    }
    to {
        opacity: 1;
        transform: translateY(0); /* 達到頂部，元素停止移動 */
    }
}
#afternoon{
    width: 100%;
    background-color: #000000;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content:left;
    align-items: center;
}
.texthere{
    margin:3vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%; /* 使容器高度填滿 #afternoon */
}
.imghere{
    display: flex;
    justify-content:left;
    width:80%;
    height:auto;
    margin:0px;
}

.tap a{
    color:#DBDCDC;
    text-decoration: none;
}
.tap a:hover{
    font-weight: 800;
    font-size: 120%;
    transition: all 1s ease;
}
@keyframes fadeInFromBottom {
    from {
        opacity: 0;
        transform: translateY(50%); /* 從下方開始，將元素移至底部 */
    }
    to {
        opacity: 1;
        transform: translateY(0); /* 達到頂部，元素停止移動 */
    }
}
#afternoon h4{
    color:#DBDCDC;
    font-weight: 100;
    letter-spacing: 1pt;
    font-size:50%;
}
#afternoon h2 {
    color:#DBDCDC;
    font-weight:800;
    font-size:200%;
}

#nycu{
    width:100%;
    background-color: #DBDCDC;
    display:flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content:left;
    align-items: center;
}
.texthere{
    margin:3vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%; /* 使容器高度填滿 #afternoon */
    
}
#nycu h4{
    color:#717071;
    font-weight: 100;
    letter-spacing: 1pt;
    font-size:50%;
}
#nycu h2 {
    color:#717071;
    font-weight:800;
    font-size:200%;
    line-height: 0.8;
}
#nycu .imghere {
    display: flex;
    justify-content:right;
    width:70%;
    height:auto;
    margin-left: auto; /* 将图像向右移动 */
    margin: 20px; /* 添加间距 */
}

#nycu .imghere img {
    width: 80%; /* 讓圖像填滿父元素 */
    height: auto; /* 讓高度根據寬度等比例縮放 */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.8); /* 添加陰影效果 */
}

#nycu2{
    width:100%;
    background-color: #DBDCDC;
    display:flex;
    flex-direction: row-reverse;
    flex-wrap: nowrap;
    justify-content:left;
    align-items: center;
}
.texthere{
    margin:1vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%; /* 使容器高度填滿 #afternoon */
    
}
#nycu2 h4{
    color:#717071;
    font-weight: 100;
    letter-spacing: 1pt;
    font-size:50%;
}
#nycu2 h2 {
    color:#717071;
    font-weight:800;
    font-size:200%;
    line-height: 0.8;
}
#nycu2 .imghere {
    display: flex;
    /*justify-content:right;*/
    width:50%;
    height:auto;
    margin-right: auto; /* 将图像向右移动 */
    margin:10px; /* 添加间距 */
}

#nycu2 .imghere img {
    width: 80%; /* 讓圖像填滿父元素 */
    height: auto; /* 讓高度根據寬度等比例縮放 */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.8); /* 添加陰影效果 */
}

article{
    display: flex;
    width:100%;
    display:flex;
    justify-content:center;
    align-items: center;
    flex-direction: column;
    animation: fadeInFromBottom 1s ease 0s 1;
}
.more h2{
    color:#DBDCDC;
    font-weight:800;
    font-size:300%;
    text-align: center;
    letter-spacing:3pt;
}
.more .emos {
    display: flex; /* 使用 Flexbox 布局 */
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-around; /* 水平居中并在图片之间留有空白 */
}
.more .emosimg {
    width: 40%; /* 图片宽度自适应 */
    height: auto; /* 图片高度自适应 */
    margin:10px;
    position: relative;
    cursor: pointer;
}
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85); /* 半透明白色背景 */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0; /* 隱藏 */
    transition: opacity 0.3s ease; /* 給予漸變效果 */
}

.overlay h4 {
    font-size: 12px;
    color: #ed431b;
    font-weight: 400;
	letter-spacing: 2px;
	text-decoration: none;
	text-align: center;
}

.more .emosimg:hover .overlay {
    opacity: 1; /* 游標移至此時才會產生透明度的變化 */
}
.more .emosimg img{
    width:100%;
}
#emotion{
    background-color: #000000;
    text-align: center;
}
#emotion h4{
    color:#DBDCDC;
    font-weight: 100;
    letter-spacing: 1pt;
    font-size:50%;
    text-align: center;
    margin:30px 40px;
}
#others h2{
    color:#717071;
    font-weight:800;
    font-size:300%;
    text-align: center;
    letter-spacing:3pt;
    margin-top:20px ;
    margin-bottom:0px;
}
#others h4{
    text-align: center;
    color:#717071;
    font-weight: 100;
    letter-spacing: 1pt;
    font-size:50%;
    margin-top:0px ;
    margin-bottom:15px;
}
#others .othersimg{
    display: flex; /* 使用 Flexbox 布局 */
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-around; /* 水平居中并在图片之间留有空白 */
}

.othersimg img{
    width: 22%; /* 图片宽度自适应 */
    max-width: 100%; /* 最大宽度为父容器的宽度 */
    height: auto; /* 图片高度自适应 */
}
#others .texthere{
    display: flex; /* 使用 Flexbox 布局 */
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-around; /* 水平居中并在图片之间留有空白 */
}
#others .texthere .text2{
    width:15%;
    height:auto;
    margin:0px;
}

footer{
    width:100%;
    margin:30px 0px;
    text-align: center;
}
footer a{
        text-decoration: none;
        color: inherit;
        color:#595757;
        font-weight: 300;
        font-size: 20px;    
}
footer a:hover{
        font-weight: 800;
        font-size: 28px;
        transition: all 1s ease;
    }
    @keyframes fadeInFromBottom {
        from {
            opacity: 0;
            transform: translateY(50%); /* 從下方開始，將元素移至底部 */
        }
        to {
            opacity: 1;
            transform: translateY(0); /* 達到頂部，元素停止移動 */
        }
    }


/* For tablets */
@media only screen and (min-width: 768px){
    .nameplace h5{
        font-size: 15px;
    }
    nav h1{
        font-size: 50px;
    }
    aside li{
        margin:20px;
    }
    /* 超連結 */
    aside li a {
        padding: 20px;  
        font-size: 17px;
    }

}
