body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f7fa;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    color: #333;
}

.game-container {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    padding: 30px;
    width: 100%;
    max-width: 600px;
}

h1 {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 20px;
}

.explanation {
    background-color: #e8f4fc;
    border-left: 4px solid #3498db;
    padding: 15px;
    margin-bottom: 25px;
    border-radius: 4px;
    font-size: 15px;
    color: #2c3e50;
}

.input-section {
    display: flex;
    margin-bottom: 25px;
}

#guess-input {
    flex-grow: 1;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s;
}

#guess-input:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 12px 20px;
    margin-left: 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
}

button:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

#results-container {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 25px;
}

.result-header {
    display: flex;
    background-color: #2c3e50;
    color: white;
    font-weight: bold;
    padding: 12px 15px;
}

.result-header span {
    flex: 1;
    text-align: center;
}

.attempt-item {
    display: flex;
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s;
}

.attempt-item:last-child {
    border-bottom: none;
}

.attempt-item:hover {
    background-color: #f9f9f9;
}

.attempt-item div {
    flex: 1;
    text-align: center;
    padding: 5px;
}

.position-1 {
    background-color: #e8f5e9;
    color: #2e7d32;
    font-weight: bold;
    animation: highlight 1.5s ease;
}

@keyframes highlight {
    0% { background-color: #c8e6c9; }
    100% { background-color: #e8f5e9; }
}

#game-status {
    min-height: 30px;
    text-align: center;
    font-weight: bold;
    font-size: 18px;
    margin: 20px 0;
    color: #27ae60;
}

.actions {
    display: flex;
    justify-content: center;
    gap: 15px;
}

#hint-btn {
    background-color: #9b59b6;
}

#hint-btn:hover {
    background-color: #8e44ad;
}