/* Game Container Styles */
.kmp-game-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    font-family: 'Comic Sans MS', 'Comic Sans', cursive, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    position: relative;
    overflow: hidden;
}

.kmp-game-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
    background: linear-gradient(90deg, #FF6B6B, #4ECDC4, #45B7D1, #96CEB4);
}

/* Screen Styles */
.kmp-screen {
    text-align: center;
    padding: 2rem;
    animation: fadeIn 0.5s ease-out;
}

.kmp-screen h2 {
    color: #2C3E50;
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    background: linear-gradient(45deg, #FF6B6B, #4ECDC4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Game Info Styles */
.kmp-game-info {
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    border: 2px solid #E9ECEF;
    transition: transform 0.3s ease;
}

.kmp-game-info:hover {
    transform: translateY(-2px);
}

.kmp-game-info p {
    margin: 0.75rem 0;
    color: #495057;
    font-size: 1.1rem;
}

/* Player Setup Styles */
.kmp-player-setup {
    margin-top: 2rem;
}

.kmp-player-setup input {
    width: 100%;
    max-width: 300px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border: 3px solid #E9ECEF;
    border-radius: 12px;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    background: #FFFFFF;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.kmp-player-setup input:focus {
    outline: none;
    border-color: #4ECDC4;
    box-shadow: 0 0 0 4px rgba(78, 205, 196, 0.2);
    transform: translateY(-2px);
}

/* Button Styles */
.kmp-button {
    display: inline-block;
    padding: 1rem 2rem;
    margin: 0.75rem;
    background: linear-gradient(45deg, #FF6B6B, #FF8E53);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    position: relative;
    overflow: hidden;
}

.kmp-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255,255,255,0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.kmp-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.kmp-button:hover::after {
    transform: translateX(100%);
}

.kmp-button:active {
    transform: translateY(-1px);
}

/* Game Play Screen Styles */
.kmp-game-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    border: 2px solid #E9ECEF;
}

.kmp-score, .kmp-timer {
    font-size: 1.4rem;
    font-weight: bold;
    color: #2C3E50;
    padding: 0.5rem 1rem;
    background: #F8F9FA;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.kmp-question-container {
    margin: 2rem 0;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border: 3px solid #E9ECEF;
    animation: bounceIn 0.5s ease-out;
}

.kmp-question {
    font-size: 3rem;
    color: #2C3E50;
    margin-bottom: 2rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.kmp-answer-input {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
}

.kmp-answer-input input {
    width: 200px;
    padding: 1.2rem;
    border: 3px solid #E9ECEF;
    border-radius: 12px;
    font-size: 1.8rem;
    text-align: center;
    transition: all 0.3s ease;
    background: #FFFFFF;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.kmp-answer-input input:focus {
    outline: none;
    border-color: #4ECDC4;
    box-shadow: 0 0 0 4px rgba(78, 205, 196, 0.2);
    transform: translateY(-2px);
}

/* Feedback Styles */
.kmp-feedback {
    margin-top: 2rem;
    padding: 1.5rem;
    border-radius: 16px;
    font-size: 1.4rem;
    font-weight: bold;
    animation: slideIn 0.5s ease-out;
}

.kmp-feedback.correct {
    background: linear-gradient(45deg, #4ECDC4, #45B7D1);
    color: white;
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.3);
}

.kmp-feedback.incorrect {
    background: linear-gradient(45deg, #FF6B6B, #FF8E53);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

/* Game Over Screen Styles */
.kmp-final-score {
    font-size: 2.5rem;
    margin: 2rem 0;
    color: #2C3E50;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    animation: bounceIn 0.5s ease-out;
}

.kmp-game-actions {
    margin-top: 2rem;
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Progress Bar */
.kmp-progress-bar {
    width: 100%;
    height: 8px;
    background: #E9ECEF;
    border-radius: 4px;
    margin: 1rem 0;
    overflow: hidden;
}

.kmp-progress {
    height: 100%;
    background: linear-gradient(90deg, #4ECDC4, #45B7D1);
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* Badge Styles */
.kmp-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin: 0.5rem;
    background: #F8F9FA;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    color: #2C3E50;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    animation: fadeIn 0.5s ease-out;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .kmp-game-container {
        margin: 1rem;
        padding: 1.5rem;
        border-radius: 20px;
    }

    .kmp-question {
        font-size: 2.5rem;
    }

    .kmp-answer-input {
        flex-direction: column;
    }

    .kmp-answer-input input {
        width: 100%;
        max-width: 250px;
    }

    .kmp-game-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .kmp-button {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .kmp-game-container {
        padding: 1rem;
        margin: 0.5rem;
        border-radius: 16px;
    }

    .kmp-question {
        font-size: 2rem;
    }

    .kmp-screen h2 {
        font-size: 2rem;
    }

    .kmp-game-actions {
        flex-direction: column;
    }
}

/* Accessibility Styles */
.kmp-button:focus,
.kmp-answer-input input:focus {
    outline: 3px solid #4ECDC4;
    outline-offset: 2px;
}

/* High Contrast Mode */
@media (forced-colors: active) {
    .kmp-button {
        border: 2px solid currentColor;
    }

    .kmp-feedback {
        border: 2px solid currentColor;
    }
}

/* Print Styles */
@media print {
    .kmp-game-container {
        box-shadow: none;
        border: 1px solid #ddd;
    }

    .kmp-button {
        display: none;
    }
}

/* Loading Animation */
.kmp-loading {
    display: inline-block;
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #4ECDC4;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Leaderboard Styles */
.kmp-leaderboard {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.kmp-leaderboard h3 {
    color: #2C3E50;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.kmp-leaderboard-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.kmp-leaderboard-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    border-bottom: 1px solid #E9ECEF;
    animation: fadeIn 0.5s ease-out;
}

.kmp-leaderboard-item:last-child {
    border-bottom: none;
}

.kmp-leaderboard-rank {
    font-weight: bold;
    color: #4ECDC4;
    margin-right: 1rem;
}

.kmp-leaderboard-name {
    flex-grow: 1;
    color: #2C3E50;
}

.kmp-leaderboard-score {
    font-weight: bold;
    color: #FF6B6B;
} 