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

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.game-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    padding: 40px;
    max-width: 600px;
    width: 100%;
    text-align: center;
}

.game-title {
    font-size: 2.5em;
    color: #333;
    margin-bottom: 30px;
    font-weight: bold;
}

/* Language Selection Styles */
.language-selection {
    margin-bottom: 30px;
}

.lang-btn {
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    color: #6c757d;
    padding: 10px 20px;
    margin: 0 10px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
}

.lang-btn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.lang-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
}

/* Welcome Screen Styles */
.welcome-screen {
    display: block;
}

.welcome-screen h1 {
    font-size: 3em;
    color: #667eea;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.welcome-screen .subtitle {
    font-size: 1.3em;
    color: #666;
    margin-bottom: 30px;
    font-style: italic;
}

.rules-section {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    text-align: left;
    border-left: 5px solid #667eea;
}

.rules-section h2 {
    color: #333;
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.8em;
}

.rules-list {
    list-style: none;
}

.rules-list li {
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
    color: #555;
    line-height: 1.6;
}

.rules-list li:before {
    content: "🎯";
    position: absolute;
    left: 0;
    top: 0;
}

.start-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 18px 40px;
    font-size: 1.3em;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.start-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(102, 126, 234, 0.4);
}

.start-btn:active {
    transform: translateY(-1px);
}

/* Game Screen Styles */
.game-screen {
    display: none;
}

.game-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    font-size: 1.2em;
}

.score, .timer {
    background: #f8f9fa;
    padding: 15px 25px;
    border-radius: 10px;
    font-weight: bold;
    color: #333;
}

.timer.warning {
    background: #ff6b6b;
    color: white;
}

.previous-word {
    background: #e3f2fd;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 30px;
    border-left: 5px solid #2196f3;
}

.previous-word h3 {
    color: #1976d2;
    margin-bottom: 10px;
}

.previous-word .word {
    font-size: 2em;
    font-weight: bold;
    color: #333;
    text-transform: uppercase;
}

.input-section {
    margin-bottom: 30px;
}

.word-input {
    width: 100%;
    padding: 15px;
    font-size: 1.2em;
    border: 2px solid #ddd;
    border-radius: 10px;
    text-align: center;
    text-transform: uppercase;
    transition: border-color 0.3s;
}

.word-input:focus {
    outline: none;
    border-color: #2196f3;
}

.word-input:disabled {
    background: #f5f5f5;
    cursor: not-allowed;
}

.submit-btn {
    background: #4caf50;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.1em;
    border-radius: 10px;
    cursor: pointer;
    margin-top: 15px;
    transition: background 0.3s;
}

.submit-btn:hover:not(:disabled) {
    background: #45a049;
}

.submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 10px;
    font-weight: bold;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.message.info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.game-over {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
}

.share-section {
    margin-top: 30px;
    display: none;
}

.share-section.show {
    display: block;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.share-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    text-decoration: none;
    color: white;
    transition: transform 0.3s;
}

.share-btn:hover {
    transform: translateY(-2px);
}

.share-btn.linkedin {
    background: #0077b5;
}

.share-btn.facebook {
    background: #1877f2;
}

.share-btn.twitter {
    background: #1da1f2;
}

.restart-btn {
    background: #ff6b6b;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.1em;
    border-radius: 10px;
    cursor: pointer;
    margin-top: 20px;
    transition: background 0.3s;
}

.restart-btn:hover {
    background: #ff5252;
}

.used-words {
    margin-top: 20px;
    text-align: left;
    max-height: 150px;
    overflow-y: auto;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
}

.used-words h4 {
    margin-bottom: 10px;
    color: #333;
}

.used-words-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.used-word {
    background: #e9ecef;
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 0.9em;
    color: #495057;
}

.back-to-menu-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 1em;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 15px;
    transition: background 0.3s;
}

.back-to-menu-btn:hover {
    background: #5a6268;
}