body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f4f4f9;
}

header {
    text-align: center;
    padding: 40px 0;
    background-color: #2c3e50;
    color: white;
    border-radius: 8px;
    margin-bottom: 30px;
}

h1 {
    margin: 0;
}

h2 {
    color: #2c3e50;
    border-bottom: 2px solid #2c3e50;
    padding-bottom: 10px;
    margin-top: 40px;
}

.rules-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    margin: 20px 0;
}

.rule-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    flex: 1;
    min-width: 200px;
    text-align: center;
    transition: transform 0.3s ease;
}

.rule-card:hover {
    transform: translateY(-5px);
}

.rule-card h3 {
    margin-top: 0;
    color: #e67e22;
}

#game {
    background: #ecf0f1;
    padding: 20px;
    border-radius: 8px;
    margin-top: 40px;
}

.game-container {
    text-align: center;
}

.score-board {
    display: flex;
    justify-content: center;
    gap: 40px;
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 20px;
}

.choices {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.choice-btn {
    padding: 10px 25px;
    font-size: 1em;
    cursor: pointer;
    border: none;
    border-radius: 5px;
    background-color: #3498db;
    color: white;
    transition: background-color 0.2s, transform 0.1s;
}

.choice-btn:hover {
    background-color: #2980b9;
}

.choice-btn:active {
    transform: scale(0.95);
}

.result-display {
    font-size: 1.1em;
    min-height: 1.5em;
    padding: 10px;
    background: white;
    border-radius: 5px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

footer {
    text-align: center;
    margin-top: 60px;
    padding: 20px 0;
    font-size: 0.9em;
    color: #777;
}

@media (max-width: 600px) {
    .rules-container {
        flex-direction: column;
    }
}
