* {
    padding:0;
    margin:0;
}

/* Basic styles */
h1, h2, h3, h4, h5, h6, p {
    margin-top: 0;
}
h1 {
    font-size: 2.5em; /* 40px/16=2.5em */
}
h2 {
    font-size: 1.875em; /* 30px/16=1.875em */
}
h3 {
    font-size: 1.56em; /* 25px/16=1.56em */
}
h4 {
    font-size: 1.25em; /* 20px/16=1.25em */
}
h5 {
    font-size: 1.12em;
    color: #096A26; /* 18px/16=1.25em */
}   
a {
    color: #2244EE;
    text-decoration: none;
}
a:hover, a:active, a:focus {
    text-decoration: underline;
}

body {
    background-color: white;
}
header {
    background-color: rgba(249, 247, 246, 0.999);
    height: 80px;
    width: 100%;
    position: fixed;    
}

.slogan {
    background-color: #485652;
    color: white;
    width: 100%;
    height: 450px;
    display: flex;
    font-size: 15px;
    line-height: 1.3em;  
    padding: 50px 50px 0px 50px;
    margin-inline: auto;
    align-items: center;
}
a:link, a:visited, a:hover, a:active {
    color: #000000;
    text-decoration: none;
}

/* 響應式設計語法 */
@media screen and (max-width: 768px) {
    header ul {
        display: none;
    }
    header h1 {
        left: 50%;
        transform: translateX(-50%);
    }
    .news h2 {
        font-size: 40px;
    }
    .menu {
        display: block;
        background-color: transparent;
        color: white;
        font-size: 35px;
        position: absolute;
        top: 15px;
        left: 10px;
        border: none;
        cursor: pointer;
    }
    .shop {
        flex-direction: column;
    }
    .shop img {
        width: 100%;
    }
    .info {
        width: 100%;
        padding: 20px 0;
    }
    .info h2 {
        font-size: 30px;
    }
    .product {
        flex-direction: column;
        padding: 20px 0;
    }
    .product div {
        margin-bottom: 20px;
    }
}

#submit {
    background: #F4A6F0;
} 

.my-button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    cursor: pointer;
    border-radius: 4px;
}

.my-button:hover {
    background-color: #45a049;
}

-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;

/* Content containers */
#content1, #aside, #freeleft, #freeright, #free {
    margin: 10px;
    padding: 2px;
    font-size: medium;
}
#content1 {
    float: left;
}
.linklisthead {
    font-weight: bold;
    display: block;
    border-bottom: 1px solid #888;
}
.linklist {
    margin-bottom: 20px;
}
#yearSearch, #publishinfo {
    color: #004C7A;
    font-weight: bold;
}
#publishinfo {
    margin: 0;
    padding: 0;
    margin-top: -2em;
}

.carousel-item img {
    max-width: 100%;
    max-height: 100%;
}

.pic {
    text-align: center;
    margin-bottom: 1.2em;
}

.picture {
    max-width: 100%;
    height: auto;
}

.caption {
    font-size: 12pt;
    color: rebeccapurple;
    font-family: 'STKaiti', serif;
    display: inline-block;
    margin-top: 0.5em;
    max-width: 576px;
    text-align: left;
}

.caption > span {
    display: block;
    text-align: center;
}

/* 翻譯按鍵樣式 */
.language-btn {
    padding: 8px 16px;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    background-color: #a3d9c9; /* 淡綠色背景，符合吉卜力風格 */
    border: 2px solid #6b9c8e;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.language-btn:hover {
    background-color: #8cc7b5;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.language-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* 導航欄中的翻譯按鍵樣式（更高特異性） */
.navbar .navbar-collapse .language-btn {
    padding: 8px 16px;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    background-color: #DDDDDD; /* 淡綠色背景 */
    border: 0px solid #6b9c8e; /* 手繪風邊框 */
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.navbar .navbar-collapse .language-btn:hover {
    background-color: #8cc7b5; /* 懸停時改為更深的淡綠色 */
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.navbar .navbar-collapse .language-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}