:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #34495e;
    --success-color: #2ecc71;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--primary-color);
    background-color: var(--light-color);
    padding: 20px;
}

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

header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 6px;
}

header h1 {
    margin-bottom: 10px;
}

.game-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background-color: var(--light-color);
    border-radius: 6px;
    align-items: flex-end;
}

.input-group {
    flex: 1;
    min-width: 250px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

input[type="text"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}

button {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

button:hover {
    background-color: var(--dark-color);
}

button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.game-status {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background-color: var(--light-color);
    border-radius: 6px;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: bold;
}

.path-display {
    flex: 1;
    min-width: 250px;
}

#path-list {
    margin-top: 8px;
    list-style-position: inside;
    max-height: 100px;
    overflow-y: auto;
    padding: 8px;
    background-color: white;
    border-radius: 4px;
}

.wiki-frame-container {
    position: relative;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 6px;
    overflow: hidden;
}

.wiki-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background-color: var(--primary-color);
    color: white;
}

.article-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

#wiki-frame {
    width: 100%;
    height: 600px;
    border: none;
}

.instructions {
    background-color: var(--light-color);
    padding: 15px;
    border-radius: 6px;
}

.instructions h2 {
    margin-bottom: 10px;
}

.instructions ol {
    margin-left: 20px;
}

#give-up {
    background-color: var(--accent-color);
}

#game-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.overlay-content {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    max-width: 90%;
    width: 600px;
    max-height: 90vh;
    overflow-y: auto;
}

#result-message {
    margin-bottom: 15px;
    color: var(--primary-color);
}

#game-stats {
    margin-bottom: 20px;
    font-size: 18px;
}

.language-selector {
    margin-bottom: 15px;
    text-align: center;
    padding: 10px;
    background-color: var(--light-color);
    border-radius: 6px;
}

.language-selector select {
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #ccc;
    font-size: 16px;
    min-width: 200px;
}

.hidden {
    display: none;
}

.blur-enabled #wiki-frame {
    filter: blur(5px);
    transition: filter 0.3s ease;
}

.blur-toggle {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    margin: 10px 0;
}

.blur-toggle:hover {
    background-color: var(--dark-color);
}

.high-scores-container {
    background-color: var(--light-color);
    padding: 15px;
    border-radius: 6px;
    margin-top: 20px;
}

.high-scores-container h2 {
    margin-bottom: 10px;
}

.high-scores-list {
    list-style: none;
    padding: 0;
}

.high-scores-list li {
    padding: 8px;
    border-bottom: 1px solid #ddd;
}

.high-scores-list li:last-child {
    border-bottom: none;
}

.score-details {
    display: flex;
    justify-content: space-between;
    font-size: 16px;
}

@media (max-width: 768px) {
    .game-controls, .game-status {
        flex-direction: column;
    }
    
    .wiki-controls {
        flex-direction: column;
        gap: 10px;
    }
    
    #wiki-frame {
        height: 400px;
    }
}