﻿* {
    margin: 0;
    padding: 0;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}


body, html {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
}


body {
    background: linear-gradient(135deg, #003399, #66ccff);
}

header, footer {
    flex: 0 0 5%; /* 使header和footer各佔15%的高度，且不會縮放 */
    background-color: #007bff; /* 藍色背景色調 */
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
}

.content {
    flex: 1; /* 使content填滿剩餘的高度 */
    background-color: #f0f0f0; /* content的背景色 */
}

.container {
    display: flex;
    overflow-y: hidden;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 10%;
    height: 80vh;
    width: 90vw;
    z-index: 10;
}

h1 {
    color: #fff;
    font-size: xx-large;
    text-align: center;
}

.bottom-links {
    margin-top: 10%;
}

.error-message {
    background-color: #ffcccc;
    color: #ff0000;
    border-radius: 5px;
    padding: 10px;
    text-align: center;
    margin-bottom: 20px;
    width: 300px;
    display: none;
}

.menu-btn {
    min-width: 180px;
    min-height: 50px;
    width: 15%;
    height: 5%;
    margin: 10px;
    background-color: #2196F3;
    color: white;
    border: none;
    border-radius: 15px;
    text-decoration: none; /* 移除連結底線 */
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #607D8B;
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 20px;
    width: 250px;
}

.home-btn {
    position: fixed;
    top: 5%;
    right: 35%;
    width: 100px;
    height: 100px;
    background-color: transparent;
    color: darkblue;
    border: none;
    font-size: 40px;
    text-decoration: none; /* 移除連結底線 */
    display: flex;
    align-items: center;
    justify-content: center;
}

.settings-btn {
    position: fixed;
    bottom: 5%;
    right: 35%;
    width: 100px;
    height: 100px;
    background-color: transparent;
    color: darkblue;
    border: none;
    font-size: 40px;
    text-decoration: none; /* 移除連結底線 */
    display: flex;
    align-items: center;
    justify-content: center;
}

.message {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    font-size: 25px;
    font-weight: bold;
    margin-top: 20px;
    max-width: 400px;
    max-height: 400px;
    border-radius: 10px;
    opacity: 0.8;
}

.marquee-container {
    overflow: hidden;
    position: relative;
    background-color: orangered;
}

.marquee-content {
    font-size: xx-large;
    animation: marquee 30s linear infinite;
    color: white;
    position: relative; /* 添加相对定位 */
}

@keyframes marquee {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-10%);
    }
}


/* 共用樣式 */
header ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex; /* 將MenuItem水平排列 */
}

header li {
    margin-right: 20px; /* 調整MenuItem之間的間距 */
}

    /* MenuItem樣式 */
    header li a {
        display: block;
        padding: 10px;
        text-decoration: none;
        color: #fff;
        background-color: #007bff; /* 藍色背景 */
    }

        /* 滑鼠移過時的高亮效果 */
        header li a:hover {
            background-color: #0056b3; /* 深藍色背景 */
        }


.btn {
    background-color: #b9a77d;
    color: #fff;
    text-align: center;
    border: none;
    border-radius: 0.5em;
    font-weight: 800;
    transition-duration: 2ms;
    height: 50px;
}

    .btn:hover {
        background-color: #9f885a;
        color: #fff;
    }

.a-btn {
    /* Add styles for the button appearance */
    display: inline-block;
    padding: 10px 20px; /* Adjust the padding to control the size of the button */
    height: 50px; /* Set the height to 50px */
    line-height: 30px; /* Set the line-height to vertically center the text */
    background-color: #b9a77d;
    color: #fff;
    border: none; /* Remove the border */
    border-radius: 5px; /* Add some rounded corners */
    text-decoration: none; /* Remove underline from the link */
}

    /* Style for when the button is hovered */
    .a-btn:hover {
        background-color: #9f885a; /* Change the background color on hover */
        cursor: pointer; /* Show a pointer cursor on hover */
    }

.complementary {
    color: #ffA500; /* Orange text color */
    background-color: #007bff; /* Blue background color */
    /* Add additional styles for padding, border, etc. */
}

    .complementary:hover {
        background-color: #0056b3; /* Darker blue on hover */
    }

.dark-blue {
    color: #000080; /* Dark blue text color */
    background-color: #007bff; /* Blue background color */
    /* Add additional styles for padding, border, etc. */
}

    .dark-blue:hover {
        background-color: #0056b3; /* Darker blue on hover */
    }

.orange {
    color: #ffA500; /* Orange text color */
    background-color: #007bff; /* Blue background color */
    /* Add additional styles for padding, border, etc. */
}

    .orange:hover {
        background-color: #0056b3; /* Darker blue on hover */
    }
