/* 
 * Pattern Board Fix CSS
 * 修復How to Play頁面的棋盤模式顯示問題
 */

/* 修復模式棋盤樣式 */
.patterns-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    margin: 20px 0;
}

.pattern {
    flex: 1;
    min-width: 200px;
    text-align: center;
    margin-bottom: 20px;
}

.pattern h4 {
    margin-bottom: 10px;
    color: var(--secondary-color);
    font-weight: 600;
}

.pattern-board {
    width: 100%;
    max-width: 300px;
    aspect-ratio: 1 / 1;
    background-color: #e6c88e;
    border-radius: 8px;
    position: relative;
    box-shadow: var(--shadow);
    margin: 0 auto;
    overflow: hidden;
}

/* 修復棋盤模式圖片 */
.five-in-row::before,
.open-four::before,
.double-three::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 8px;
}

.five-in-row::before {
    background-image: url('/images/pattern-five.png');
}

.open-four::before {
    background-image: url('/images/pattern-open-four.png');
}

.double-three::before {
    background-image: url('/images/pattern-double-three.png');
}

/* 響應式樣式 */
@media (max-width: 992px) {
    .patterns-container {
        justify-content: center;
    }
    
    .pattern {
        flex-basis: 45%;
        min-width: 250px;
    }
}

@media (max-width: 768px) {
    .patterns-container {
        flex-direction: column;
        align-items: center;
    }
    
    .pattern {
        flex-basis: 100%;
        max-width: 300px;
    }
    
    .pattern-board {
        max-width: 100%;
    }
} 