body {
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fffde8;
    padding: 20px;
    margin: 0;
}

h1 {
    color: #333;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.game-info {
    background-color: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    width: 200px;
    text-align: center;
}

.player-turn {
    font-weight: bold;
    font-size: 18px;
    color: #333;
    margin: 10px 0;
}

.game-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

#game-canvas {
    display: block;
    background: white;
    border-radius: 8px;
}

button {
    padding: 10px 20px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 10px;
    transition: background-color 0.3s;
}

button:hover {
    background: #45a049;
}

.rules {
    background-color: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
    width: 100%;
    max-width: 500px;
}

.rules h2 {
    color: #333;
    margin-top: 0;
}

.rules ul {
    padding-left: 20px;
}

.rules-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #4CAF50;
    color: white;
    border: none;
    padding: 10px 14px;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

.rules-panel {
    position: fixed;
    top: 70px;
    right: 20px;
    width: 260px;
    max-height: 300px;
    overflow-y: auto;
    background: white;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    z-index: 999;
    transition: all 0.3s ease;
}

.rules-panel.hidden {
    display: none;
}

.rules-panel h2 {
    margin-top: 0;
    font-size: 18px;
    color: #333;
}

.rules-panel ul {
    padding-left: 20px;
    font-size: 14px;
    color: #444;
}