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

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

.container {
    width: 100%;
    max-width: 800px;
    position: relative;
}

.feedback-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.feedback-overlay.show {
    opacity: 1;
    transform: scale(1);
}

.feedback-image {
    width: 180px;
    height: 180px;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.25));
}

.feedback-overlay.correct .feedback-image {
    filter: drop-shadow(0 10px 20px rgba(17, 153, 142, 0.4));
}

.feedback-overlay.wrong .feedback-image {
    filter: drop-shadow(0 10px 20px rgba(235, 51, 73, 0.4));
}

.screen {
    display: none;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 30px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.5s ease-out;
}

.screen.active {
    display: block;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Main Menu Styles */
.title {
    font-size: 3rem;
    color: #ff6b6b;
    text-align: center;
    margin-bottom: 10px;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.2);
}

.subtitle {
    font-size: 1.5rem;
    color: #4ecdc4;
    text-align: center;
    margin-bottom: 40px;
}

.lang-selector {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 30px;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid #ff6b6b;
    border-radius: 999px;
    padding: 8px 18px;
    font-size: 1rem;
    font-weight: bold;
    color: #ff6b6b;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lang-btn.active,
.lang-btn:hover {
    background: #ff6b6b;
    color: white;
}

.ai-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    font-size: 1.05rem;
    font-weight: bold;
    color: #2c3e50;
}

.ai-toggle input {
    width: 20px;
    height: 20px;
}

.menu-buttons {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.menu-btn {
    background: linear-gradient(135deg, #ffa500, #ff6347);
    border: none;
    border-radius: 20px;
    padding: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.menu-btn:nth-child(1) {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.menu-btn:nth-child(2) {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.menu-btn:nth-child(3) {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.menu-btn:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.menu-btn:active {
    transform: translateY(0) scale(0.98);
}

.menu-btn .icon {
    font-size: 3rem;
}

.menu-btn .btn-text {
    font-size: 1.8rem;
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.menu-btn .btn-desc {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Game Screen Styles */
.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.back-btn {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border: none;
    border-radius: 15px;
    padding: 12px 25px;
    font-size: 1.2rem;
    color: white;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.back-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(0, 0, 0, 0.3);
}

.score-display {
    background: linear-gradient(135deg, #ffd89b 0%, #19547b 100%);
    padding: 12px 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.score-label {
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    margin-right: 10px;
}

.score-value {
    color: #ffeb3b;
    font-size: 1.8rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Game Content */
.game-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.question-box {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.question-text {
    font-size: 2.5rem;
    color: #2c3e50;
    text-align: center;
    font-weight: bold;
}

.answer-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    width: 100%;
}

.answer-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 15px;
    padding: 25px;
    font-size: 1.8rem;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.answer-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.answer-btn:active {
    transform: translateY(0);
}

.answer-btn.correct {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    animation: pulse 0.5s ease;
}

.answer-btn.wrong {
    background: linear-gradient(135deg, #eb3349 0%, #f45c43 100%);
    animation: shake 0.5s ease;
}

.answer-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-10px);
    }
    75% {
        transform: translateX(10px);
    }
}

.feedback {
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    padding: 20px;
    border-radius: 15px;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feedback.correct {
    color: #11998e;
    background: rgba(56, 239, 125, 0.2);
}

.feedback.wrong {
    color: #eb3349;
    background: rgba(244, 92, 67, 0.2);
}

/* Clock Styles */
.clock-container {
    margin: 20px 0;
}

.clock {
    width: 300px;
    height: 300px;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.2));
}

.clock-face {
    fill: white;
    stroke: #2c3e50;
    stroke-width: 3;
}

.hour-tick {
    stroke: #2c3e50;
    stroke-width: 3;
    stroke-linecap: round;
}

.minute-tick {
    stroke: #2c3e50;
    stroke-width: 1.5;
    stroke-linecap: round;
    opacity: 0.7;
}

.hour-hand {
    stroke: #e74c3c;
    stroke-width: 6;
    stroke-linecap: round;
}

.minute-hand {
    stroke: #3498db;
    stroke-width: 4;
    stroke-linecap: round;
}

.center-dot {
    fill: #2c3e50;
}

.clock-number {
    font-size: 20px;
    font-weight: bold;
    fill: #2c3e50;
    text-anchor: middle;
    dominant-baseline: middle;
}

/* Responsive Design */
@media (max-width: 600px) {
    .title {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1.2rem;
    }
    
    .menu-btn .icon {
        font-size: 2rem;
    }
    
    .menu-btn .btn-text {
        font-size: 1.5rem;
    }
    
    .menu-btn .btn-desc {
        font-size: 1rem;
    }
    
    .question-text {
        font-size: 1.8rem;
    }
    
    .answer-btn {
        font-size: 1.4rem;
        padding: 20px;
    }
    
    .answer-buttons {
        grid-template-columns: 1fr;
    }
    
    .clock {
        width: 250px;
        height: 250px;
    }
}
