* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 100%;
    overflow: hidden;
}

header {
    text-align: center;
    padding: 30px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 10px;
}

#game-logo {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: contain;
    background: white;
    padding: 5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

header h1 {
    font-size: 2em;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1em;
    opacity: 0.9;
}

.language-switch {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.language-switch button {
    padding: 8px 16px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9em;
}

.language-switch button:hover {
    background: rgba(255, 255, 255, 0.3);
}

.language-switch button.active {
    background: white;
    color: #667eea;
    border-color: white;
    font-weight: bold;
}

.game-area {
    padding: 30px 20px;
}

.image-container {
    position: relative;
    margin-bottom: 30px;
    text-align: center;
}

#celebrity-image {
    max-width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    background: #f0f0f0;
}

.hint-box {
    margin-top: 15px;
    padding: 12px 20px;
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 10px;
    color: #856404;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hint-box.show-hint {
    opacity: 1;
}

.guesses-container {
    margin-bottom: 30px;
    max-height: 200px;
    overflow-y: auto;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 10px;
}

.guess-row {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

.guess-box {
    padding: 10px 20px;
    font-weight: bold;
    font-size: 1em;
    border: 2px solid #d3d3d3;
    border-radius: 8px;
    background: white;
    transition: all 0.3s ease;
}

.guess-box.correct {
    background: #28a745;
    border-color: #28a745;
    color: white;
    animation: fadeIn 0.5s ease;
}

.guess-box.wrong {
    background: #dc3545;
    border-color: #dc3545;
    color: white;
    animation: fadeIn 0.5s ease;
}

@keyframes flip {
    0%, 100% { transform: rotateY(0); }
    50% { transform: rotateY(180deg); }
}

.input-area {
    display: none;
}

#name-input {
    display: none;
}

.submit-btn {
    display: none;
}

.keyboard-area {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 30px;
    padding: 20px;
}

.option-button {
    padding: 20px 30px;
    font-size: 1.1em;
    font-weight: bold;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    text-align: center;
}

.option-button:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.option-button:active:not(:disabled) {
    transform: translateY(0);
}

.option-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.option-button.wrong-option {
    background: linear-gradient(135deg, #dc3545 0%, #e74c3c 100%);
    animation: shake 0.5s ease;
}

.option-button.correct-option {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    animation: pulse 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.stats-area {
    display: flex;
    justify-content: space-around;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 20px;
}

.stat {
    text-align: center;
}

.stat span:first-child {
    display: block;
    font-size: 2em;
    font-weight: bold;
    color: #667eea;
}

.stat-label {
    font-size: 0.9em;
    color: #6c757d;
    margin-top: 5px;
}

footer {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 20px;
    background: #f8f9fa;
    border-top: 1px solid #e0e0e0;
}

footer button {
    padding: 12px 24px;
    font-size: 1em;
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

footer button:hover {
    background: #667eea;
    color: white;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.modal.hidden {
    display: none;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 400px;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-content h2 {
    font-size: 2em;
    margin-bottom: 20px;
    color: #667eea;
}

.modal-content p {
    font-size: 1.1em;
    color: #555;
    margin-bottom: 30px;
    line-height: 1.6;
}

.play-again-btn {
    padding: 15px 40px;
    font-size: 1.2em;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.play-again-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* Responsive design */
@media (max-width: 600px) {
    .container {
        margin: 10px;
    }
    
    .logo-container {
        flex-direction: column;
        gap: 10px;
    }
    
    #game-logo {
        width: 60px;
        height: 60px;
    }
    
    header h1 {
        font-size: 1.5em;
    }
    
    #celebrity-image {
        height: 250px;
    }
    
    .letter-box {
        width: 32px;
        height: 40px;
        font-size: 1em;
    }
    
    .key {
        padding: 10px 12px;
        font-size: 0.8em;
        min-width: 30px;
    }
    
    .stats-area {
        padding: 15px;
    }
    
    .stat span:first-child {
        font-size: 1.5em;
    }
}
