* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    padding: 20px;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

h1 {
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

.instructions {
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
    text-align: center;
}

.scores {
    margin-bottom: 20px;
}

.scores h2 {
    color: #333;
    font-size: 18px;
    margin-bottom: 10px;
}

.score-grid {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.score-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background-color: #f9f9f9;
    border-radius: 4px;
    font-size: 14px;
}

.strategy-name {
    color: #555;
    font-weight: bold;
}

.score-value {
    color: #2196F3;
    font-weight: bold;
    font-size: 16px;
}

.graph-section {
    margin-bottom: 20px;
}

.explanations-section {
    margin-bottom: 20px;
}

.graph-section h2 {
    color: #333;
    font-size: 18px;
    margin-bottom: 10px;
}

#score-graph {
    width: 100%;
    height: 250px;
    background-color: #f9f9f9;
    border-radius: 4px;
}

.tallies {
    margin-bottom: 30px;
}

.collapsible-header {
    color: #333;
    font-size: 18px;
    margin-bottom: 15px;
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.collapsible-header:hover {
    color: #2196F3;
}

.toggle-icon {
    font-size: 14px;
    transition: transform 0.3s;
}

.toggle-icon.open {
    transform: rotate(90deg);
}

.tallies-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.tallies-content.open {
    max-height: 1000px;
}

.tally-section {
    margin-bottom: 15px;
}

.tally-section h3 {
    color: #555;
    font-size: 14px;
    margin-bottom: 5px;
}

.tally-content {
    font-family: monospace;
    font-size: 13px;
    color: #333;
    padding: 8px;
    background-color: #f9f9f9;
    border-radius: 4px;
    word-wrap: break-word;
}

.history {
    margin-top: 20px;
    margin-bottom: 20px;
}

.history h3 {
    color: #333;
    font-size: 16px;
    margin-bottom: 10px;
}

h2 {
    color: #333;
    margin-bottom: 10px;
}

#move-history {
    font-family: monospace;
    font-size: 18px;
    color: #333;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 4px;
    min-height: 30px;
}
