/* styles.css */
@font-face {
    font-family: 'ChenYuluoyan';
    src: url('font/ChenYuluoyan-Thin.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}


html, body {
    height: 100%;
    margin: 0;
    touch-action: manipulation; /* 禁用双击缩放 */
}

body {
    font-family: 'ChenYuluoyan', Arial, sans-serif;
    background-color: #f5d0f4;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 96%;
    background-color: #f7cfeb;
    padding: 10px 40px;
    color: #c6b3e2;
    font-family: 'ChenYuluoyan', Arial, sans-serif;
    z-index: 1000; /* 确保 header 在最上层 */
    border-bottom: 2px solid #e4b3fa; /* 边框 */
}

footer {
    border: 2px solid #e4b3fa; /* 邊框 */
    background-color: #f7cfeb;
    padding: 0px;
    text-align: center;
}
.arrow {
    position: absolute;
    top: -20px; /* 箭頭位於輪盤正上方 */
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 15px solid transparent; /* 左邊透明 */
    border-right: 15px solid transparent; /* 右邊透明 */
    border-top: 20px solid #333; /* 底邊填充箭頭顏色 */
    z-index: 10; /* 保證箭頭在輪盤上層 */
}
.display {
    font-size: 40px;
    font-weight: bold;
    color: black;
    position: absolute; /* 使用相对定位 */
    top: 180px; /* 箭頭位於輪盤正上方 */
    left: 50%;
}
.wheel-container {
    position: relative;
    width: 400px;
    height: 400px;
    margin: 150px auto;
}

.wheel {
    position: relative;
    width: 100%;
    height: 100%;
    transform: rotate(0deg);
    transition: transform 2s cubic-bezier(0.25, 1, 0.5, 1);
}

.slice {
    border-radius:  999em;
    
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--color);
    clip-path: polygon(100% 0, 0 0, 50% 50%);
    transform-origin: 50% 50%;
    transform: rotate(var(--rotation));
    display: flex;
    justify-content: center;
   
    font-size: 40px;
    font-weight: bold;
    color: black;
}



.center-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: 50%;
    width: 120px;
    height: 40px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

.center-button:hover {
    background-color: rgba(0, 0, 0, 0.8);
}
.footertype{
    text-align: center;
    font-size: 20px
}
.main-content {
    
    flex: 1; /* 使內容區域填滿剩餘空間 */
    background-color: #f5d0f4;
    padding: 20px; /* 增加內邊距 */
}

h1 {
    text-align: center;
    font-size: 50px;
    font-weight: bold;
}
p {
    text-align: center;
    font-size: 35px;
    
}
.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px 0;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-weight: bold;
    font-size: 40px;
    color: #875ec9;
}

.logo {
    height: 40px; /* 根據 LOGO 的實際大小調整 */
    margin-right: 10px;
}

.site-name {
    font-size: 40px;
    font-weight: bold;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav ul li {
    margin-left: 20px;
    position: relative; /* 讓下拉選單能夠定位 */
}

nav ul li a {
    text-decoration: none;
    color: #db8dee;
    font-size: 24px;
    font-weight: bold;
}

nav ul li a:hover {
    text-decoration: underline;
}

/* 下拉選單的樣式 */
/* 确保父容器样式正确 */
.dropdown {
    display: inline-block; /* 确保父容器能够包裹按钮 */
    position: relative;
}

/* 样式化按钮 */
.dropbtn {
    background-color: #f7cfeb;
    color: #da7ef1;
    font-weight: bold;
    font-size: 24px;
    border: none;
    cursor: pointer;
    font-family: 'ChenYuluoyan', Arial, sans-serif;
    padding: 10px 20px; /* 调整按钮内边距 */
    text-align: center; /* 按钮内文本居中对齐 */
    display: inline-block; /* 确保按钮在父容器中对齐 */
    margin: 0; /* 确保没有多余的外边距 */
}


.dropbtn:hover {
    background-color: #d2a5d7; /* 下拉按鈕的懸停顏色 */
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f7cfeb;
    min-width: 120px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.dropdown-content a {
    color: #da7ef1;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
}

/* 顯示下拉內容 */
.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown:hover .dropbtn {
    background-color: #d2a5d7;
}
/* 整个滚动条 */
::-webkit-scrollbar {
    width: 5px; /* 滚动条宽度 */
}

/* 滚动条的轨道 */
::-webkit-scrollbar-track {
    background: #f8a3a3; /* 轨道颜色 */
    border-radius: 10px; /* 轨道的圆角 */
}

/* 滚动条的滑块 */
::-webkit-scrollbar-thumb {
    background: #fdc7ff; /* 滑块颜色 */
    border-radius: 10px; /* 滑块的圆角 */
}

/* 滑块在悬停时的颜色 */
::-webkit-scrollbar-thumb:hover {
    background: #555; /* 悬停时的滑块颜色 */
}
