@import "https://fonts.googleapis.com/css?family=Noto+Sans+TC:400,700&display=swap";
@import "https://fonts.googleapis.com/css?family=Open+Sans:400,700&display=swap";

* {
    font-family: open sans, noto sans tc, sans-serif;
}

/* html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

footer {
    margin-top: auto;
} */


body {
    margin: 0;
    /* background-color: #fdddc7; */
    /* background: linear-gradient(135deg, #6e8efb, #a777e3); */
    background: linear-gradient(135deg, #fdcfc7, #e3e177); /* 漸層背景 */
}

.menu {
    /* background-color: #ddd; */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1em;
}

.menu h1 {
    margin: 0;
}

.list {
    display: flex;
    justify-content: center;
    align-items: center;
    /* height: 100vh; */
    height: calc(100vh - 160px); /* 假設你的頭部和底部菜單欄的總高度為120px */
    padding: 10px;
    box-sizing: border-box;
}

.div1 {
    background-color: #fff;
    flex: 1;
    /* margin: 20px 20px; */
    margin: 0 20px 0 20px;
    padding: 20px;
    border-radius: 10px;
    /* box-shadow: 0px 10px 20px 0px rgba(0,0,0,0.1); */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* 添加陰影 */
    height: -webkit-fill-available;
}

.textarea {
    /* width: 100%; */
    width: -webkit-fill-available;
    /* height: 91%; */
    height: -webkit-fill-available;
    font-size: 1.2em;
    border: none;
    outline: none;
}

#btn {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    padding: 10px;
}

#home-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 26px;
    height: 26px;
    /* border-radius: 50%; */
    padding: 10px;
    font-size: 1.2em;
    background-color: #fff;
    text-decoration: none;
    border: 2px solid #5B5B5B;
    border-radius: 50%;
    /* border-radius: 50px; */
    transition: background-color 0.3s, color 0.3s;
}

.author {
    font-size: 0.6em;
    color: #888;
}

.btn, .btn2 {
    font-size: 1.5em;
    /* background-color: #f38181; */
    color: white;
    padding: 10px 20px;
    /* border: none; */
    border: 2px solid rgba(255, 255, 255, 0.5); /* 精緻的邊框 */
    border-radius: 50px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ff9a9e, #ffa958); /* 漸層背景 */
    transition: all 0.3s ease; /* 過渡效果 */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2), 0 0 10px rgba(255, 255, 255, 0.6);
}

.btn2 {
    /* background-color: #74c69d; */
    background: linear-gradient(135deg, #4df171, #5dc6e6); /* 漸層背景 */
}

path {
    fill: #5B5B5B;  /* 這裡是 SVG 的默認顏色 */
    transition: fill 0.3s;
}

.author a {
    color: #888;
    text-decoration: none;
}

/* .btn:hover {
    background-color: #f5a6a6;
}

.btn2:hover {
    background-color: #95d5b2;
} */

.btn:hover, .btn2:hover{
    background: linear-gradient(135deg, #ffa958, #ff9a9e); /* 反向漸層 */
    transform: translateY(-2px); /* 微微上移 */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3); /* 強化陰影 */
}

.btn2:hover{
    background: linear-gradient(135deg, #5dc6e6, #4df171); /* 反向漸層 */
}

.btn:active, .btn2:active{
    transform: translateY(0); /* 點擊時恢復位置 */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* 陰影回到初始 */
}

#home-icon:hover {
    background-color: #f38181;
    color: white;
}

#home-icon:hover path {
    fill: #fff;  /* 這裡是滑鼠懸停時 SVG 的顏色 */
}

.author a:hover {
    color: #666;
}

footer {
    text-align: center;
    padding: 10px;
    /* background-color: #ddd; */
}

footer p {
    margin: 0;
}

.mobile-footer {
    display: none;
}

footer a {
    /* color: white; */
    text-decoration: none;
    position: relative;
    /* display: inline-block; */
    /* padding: 5px 10px; */
    /* background: linear-gradient(to right, #007BFF, #FF5733); */
    border-radius: 5px;
    transition: all 0.3s ease;
    overflow: hidden;
}

footer a:hover {
    background: linear-gradient(to right, #FF5733, #007BFF);
    color: white;
}

footer a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: white;
    transition: width 0.3s ease, left 0.3s ease;
}

footer a:hover::before {
    width: 100%;
    left: 0;
}
@media (max-width: 750px) {
    .div1 {
        margin: 10px 20px 10px 20px;
    }
    .btn, .btn2 {
        font-size: 0.6em;
        padding: 12px 6px;
        margin-bottom: 0;
        border-radius: 20%;
    }

    #home-icon {
        font-size: 1em;
    }

    .list {
        flex-wrap: wrap;
        height: 300px;
    }
    
    .div1{
        width: 95%;
    }

    #btn {
        padding: 0;
        width: 80%;
        flex-direction: row;
    }

    .menu h1 {
        font-size: 1.7em;
    }

    footer {
        display: none;
    }

    .mobile-footer {
        display: block;
    }
}
