/* 基本樣式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft JhengHei', '微軟正黑體', Arial, sans-serif;
    background-color: #f0f0f0;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

h1 {
    color: #d4af37;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* 遊戲容器 */
.game-container {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

/* 拉霸機樣式 */
.slot-machine {
    background-color: #800020;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    width: 100%;
    max-width: 500px;
}

/* 轉輪容器 */
.reels-container {
    display: flex;
    justify-content: space-between;
    background-color: #fff;
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 20px;
    height: 300px;
    overflow: hidden;
    position: relative;
}

/* 個別轉輪 */
.reel {
    flex: 1;
    margin: 0 5px;
    overflow: hidden;
    position: relative;
    border: 2px solid #d4af37;
    border-radius: 5px;
    background-color: #f9f9f9;
}

/* 符號容器 */
.symbols-container {
    position: absolute;
    width: 100%;
    transition: transform 3s cubic-bezier(0.21, 0.53, 0.29, 0.99);
}

/* 符號樣式 */
.symbol {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    font-weight: bold;
    border-bottom: 1px dashed #ccc;
    background-color: white;
}

/* 不同符號的顏色 */
.symbol.seven {
    color: #ff0000;
}

.symbol.bar {
    color: #333;
}

.symbol.cherry {
    color: #e91e63;
}

.symbol.lemon {
    color: #ffc107;
}

.symbol.orange {
    color: #ff9800;
}

.symbol.any {
    color: #4caf50;
}

/* 結果線 */
.result-line {
    position: absolute;
    top: 50%;
    left: 30px;
    right: 30px;
    height: 3px;
    background-color: #ff0000;
    transform: translateY(-50%);
    z-index: 10;
    opacity: 0.7;
}

/* 控制面板 */
.controls {
    background-color: #d4af37;
    padding: 15px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 信息面板 */
.info-panel {
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: #333;
    font-weight: bold;
}

.balance-container, .bet-container, .win-container, .auto-spin-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

#balance, #win-amount {
    background-color: #000;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    min-width: 80px;
    text-align: right;
}

#bet-amount, #auto-spin-count {
    width: 80px;
    padding: 5px;
    border: none;
    border-radius: 5px;
    text-align: right;
}

.auto-spin-button {
    background-color: #4caf50;
    color: white;
    border: none;
    padding: 5px 10px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.auto-spin-button:hover {
    background-color: #388e3c;
}

.auto-spin-button.active {
    background-color: #f44336;
}

.auto-spin-button.active:hover {
    background-color: #d32f2f;
}

/* 轉動按鈕 */
.spin-button {
    background-color: #e91e63;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.spin-button:hover {
    background-color: #c2185b;
    transform: scale(1.05);
}

.spin-button:active {
    transform: scale(0.95);
}

.spin-button:disabled {
    background-color: #888;
    cursor: not-allowed;
}

/* 獎金表 */
.paytable {
    background-color: #333;
    color: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.paytable h2 {
    text-align: center;
    margin-bottom: 15px;
    color: #d4af37;
}

.paytable-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.paytable-item {
    display: flex;
    align-items: center;
    background-color: #444;
    padding: 10px;
    border-radius: 5px;
}

.paytable-item .symbol {
    height: 50px;
    width: 50px;
    font-size: 20px;
    border: 1px solid #666;
    margin-right: 5px;
}

.paytable-item span {
    margin-left: auto;
    font-weight: bold;
    color: #d4af37;
}

/* 頁腳 */
footer {
    text-align: center;
    margin-top: 20px;
    color: #666;
    font-size: 14px;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .controls {
        flex-direction: column;
        gap: 15px;
    }
    
    .info-panel {
        width: 100%;
    }
    
    .spin-button {
        width: 100%;
    }
    
    .paytable-items {
        grid-template-columns: 1fr;
    }
} 