body {
    margin: 0;
    background-color: rgba(255, 255, 255, 0.9);
    font-family: Arial, sans-serif;
}

#carousel-container {
    width: 100%;
    height: calc(100vh - 180px);
}

.fbgimg {
    width: 100%;
    height: 100%;
}

.contents,
.relatedLinks {
    position: relative;
    text-align: center;
    width: 60%;
    margin: 0 auto;
}

.contents {
    min-height: 650px;
}

.relatedLinks {
    padding: 100px 0;
}

.floating-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    padding: 10px 10px;
    display: flex;
    align-items: center;
    border-bottom: 2px solid #de1c65;
}

.floatingBarPlaceholder {
    height: 120px;
    background-color: #e5d8ec;
}

.logo {
    width: 280px;
    height: auto;
}

.top-menu {
    margin-left: auto;
    height: 100%;
    margin-right: 1em;;
}

.quickMenu-space {
    position: relative;
    text-align: center;
    height: 100px;
    width: 100%;
    margin-top: -50px;
}

.quickMenu {
    width: 80%;
    max-width: 850px;
    position: relative;
    z-index: 10;
    background-color: #fff;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    margin: 0 auto;
}

.quickMenu button {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: calc(20% - 10px);
    margin: 5px;
    padding: 12px;
    background: linear-gradient(to bottom, #df598c, #c22e63);
    color: #fff;
    border: none;
    border-radius: 8px;
    transition: background-color 0.3s, transform 0.3s;
    cursor: pointer;
}

.quickMenu button:hover {
    background: linear-gradient(to bottom, #de1c65, #aa1647);
    transform: translateY(-2px);
}

.quickMenu button .icon {
    font-size: 2em;
}

.quickMenu button span {
    margin-top: 0.5em;
}

.quickMenu.row {
    display: none;
}

.quickMenu.row.active {
    display:flex;
}

.quickMenu.row.active button {
    animation: objfadeIn 0.7s ease;
}

.pagefoot {
    width: 100%;
    margin: 0 auto;
}

.logo-link {
    height: 100%;
    align-items: center;
    display: inline-flex;
    color: #000;
}

.logo-link:hover {
    color: #000;
}

#header {
    margin-bottom: 100px;
}

.font-size-controls {
    display: flex;
    align-items: center;
    justify-content: space-around;
    margin-left: auto;
    font-size: 18px;
}

.font-size-button button {
    padding: 5px 10px;
    margin: 0 3px;
    border: 1px solid #ccc;
    background-color: #f8f8f8;
    cursor: pointer;
    font-size: 14px;
}

.font-size-button button:hover {
    background-color: #a3a3a3;
    color: #fff;
}

.font-size-button button.selected {
    background-color: #a3a3a3;
    color: #fff;
}

.scrollToTop {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 60px;
    height: 60px;
    line-height: 50px;
    background-color: #df598c;
    color: #ffffff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: opacity 0.3s, background-color 0.3s, transform 0.3s;
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    pointer-events: none;
}

.scrollToTop.show {
    opacity: 0.8;
    pointer-events: auto;
}

.scrollToTop:hover {
    background-color: #c22e63;
    transform: scale(1.1);
    opacity: 1;
}

/*書籤式快捷選單*/
.expandMenu {
    position: fixed;
    top: 19px;
    z-index: 100;
    width: 100%;
    transition: top 0.3s ease;
    opacity: 0;
    pointer-events: none;
}

.expandMenu.show {
    top: 100px
}

.expand-area {
    display: flex;
    justify-content: center;
    width: 100%;
    height: 80px;
    background-color: #ce3e7a;
    border-bottom: 3px solid #ccc;
}

.expand-button {
    position: absolute;
    right: 20px;
    font-size: 2em;
    width: 50px;
    height: 60px;
    background-color: #de1c65;
    color: #fff;
    border: none;
    padding: 10px;
    cursor: pointer;
    transition: opacity 0.3s ease;
    opacity: 0.8;
}

.expand-button.show {
    opacity: 1;
}

.expand-area button {
    display: flex;
    flex-direction: column;
    background-color: #00000000;
    color: #fff;
    width: 20%;
    height: 100%;
    cursor: pointer;
    border: none;
    align-items: center;
    font-weight: bold;
    padding: 10px 10px;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
}

.expand-area>button>i {
    font-size: 1.5em;
    margin-bottom: 5px;
    margin-top: 5px;
}

.expand-area button:hover {
    color: rgb(250, 228, 228);
    background-color: rgb(190, 27, 76);
}

.expand-area button:last-child {
    margin-right: 10px;
}

@media (max-width: 1350px) {

    .top-menu {
        margin-right: 8%;
    }
}

@media (max-width: 1000px) {

    .floatingBarPlaceholder {
        height: 100px;
    }

    .contents,
    .relatedLinks {
        width: 90%;
    }

    .pagefoot {
        width: 100%;
    }

    #header {
        margin-bottom: 120px;
    }
    
    #carousel-container {
        height: 600px;
    }

    .floating-bar {
        height: 80px;
    }

    .logo {
        height: 100%;
        width: auto;
    }

    .top-menu {
        margin-right: 12%;
        height: 100%;
    }

    .quickMenu {
        width: 80%;
        margin-top: -100px;
    }

}

@media (max-width: 600px) {
    .quickMenu {
        width: 90%;
        flex-wrap: wrap;
        margin-top: -100px;
    }

    .quickMenu button {
        width: calc(50% - 10px);
    }

    .font-size-controls {
        flex-direction: column;
        align-items: flex-start;
    }

    #header {
        margin-bottom: 200px;
    }

    #carousel-container {
        height: 350px;
    }

    .expandMenu {
        opacity: 1;
        pointer-events: all;
    }

    .contents {
        min-height: 420px;
        width: 100%;
    }

    .expand-area button {
        padding: 5px;
        font-size: 18px;
    }
}


@media (max-width: 500px) {
    .floating-bar {
        height: 60px;
    }

    .font-size-controls {
        visibility: hidden;
    }

    .top-menu {
        margin-right: 55px;
    }

    .expandMenu {
        top: 1px;
    }

    .expandMenu.show {
        top: 80px
    }

    .expand-area button {
        align-items: center;
        font-size: 15px;
        padding: 5px 10px;
    }

    #header{
        margin-top: -20px;
    }

    .scrollToTop {
        bottom: 25px;
        right: 25px;
        font-size: 24px;
    }

    .scrollToTop:hover {
        background-color: #df598c;
        transform: scale(1);
        opacity: 0.8;
    }

    .floatingBarPlaceholder {
        height: 80px;
    }
    
}

/* 過渡動畫 */
@keyframes objfadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

/* 介面設計調試用 */
.contents {
    background-color: rgba(250, 235, 215, 0.75);
}

.contentsArea{
    width: 100%;
    min-height: 650px;
}

.relatedLinksArea{
    background-color: #fff;
}