* {
    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%);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    overflow: hidden;
}

.container {
    width: 100%;
    max-width: 600px;
    padding: 20px;
}

.game-area {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    text-align: center;
}

h1 {
    color: #667eea;
    font-size: 2em;
    margin-bottom: 25px;
}

.stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    gap: 20px;
}

.score-display {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 1.1em;
    font-weight: bold;
    flex: 1;
}

.score-display span {
    font-size: 1.4em;
}

.timer {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 2em;
    font-weight: bold;
    min-width: 80px;
}

.timer.warning {
    animation: pulse 0.5s infinite;
}

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

.question-card {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 20px;
}

.verb-type {
    background: rgba(255, 255, 255, 0.3);
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    color: white;
    font-weight: bold;
    margin-bottom: 15px;
}

.base-form {
    font-size: 3em;
    font-weight: bold;
    color: white;
    margin-bottom: 25px;
}

.answer-form {
    width: 100%;
}

.form-group {
    margin-bottom: 15px;
    text-align: left;
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: white;
    font-size: 1em;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    background: rgba(255, 255, 255, 0.95);
}

.form-group input:focus {
    outline: 3px solid white;
}

.form-group input:disabled {
    background: rgba(255, 255, 255, 0.5);
    cursor: not-allowed;
}

.submit-btn,
.start-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.submit-btn:hover,
.start-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.submit-btn:disabled,
.start-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.result {
    font-size: 1.3em;
    font-weight: bold;
    min-height: 50px;
    padding: 15px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.result.correct {
    background: #4caf50;
    color: white;
    animation: celebration 0.5s ease;
}

.result.incorrect {
    background: #f44336;
    color: white;
}

.result.game-over {
    background: #ff9800;
    color: white;
}

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

.controls {
    margin-top: 15px;
}

.start-btn {
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
}

@media (max-width: 600px) {
    .container {
        padding: 10px;
    }

    h1 {
        font-size: 1.5em;
        margin-bottom: 20px;
    }

    .game-area {
        padding: 20px;
    }

    .base-form {
        font-size: 2em;
    }

    .stats {
        gap: 10px;
    }

    .score-display,
    .timer {
        padding: 10px 15px;
        font-size: 0.9em;
    }

    .timer {
        font-size: 1.5em;
        min-width: 60px;
    }

    .result {
        font-size: 1.1em;
    }
}
