/* Base styles - Students don't edit this file */

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

body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    transition: background-color 0.3s ease;
}

.container {
    max-width: 500px;
    width: 100%;
    text-align: center;
}

header {
    margin-bottom: 30px;
}

.title {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.1rem;
}

.card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 25px;
}

.hidden {
    display: none !important;
}

/* Progress indicator */
.progress {
    margin-bottom: 25px;
}

#progress-text {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 8px;
}

.progress-bar {
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #8BC34A);
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 20%;
}

/* Input styling */
.input-label {
    display: block;
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
}

.word-input {
    width: 100%;
    padding: 15px 20px;
    font-size: 1.2rem;
    border: 3px solid #ddd;
    border-radius: 12px;
    margin-bottom: 20px;
    text-align: center;
    transition: border-color 0.2s ease;
}

.word-input:focus {
    outline: none;
    border-color: #4CAF50;
}

/* Story display */
.story {
    line-height: 1.8;
    text-align: left;
    font-size: 1.1rem;
}

.story p {
    margin-bottom: 15px;
}

.story .highlight {
    background: linear-gradient(120deg, #fff3cd 0%, #ffeeba 100%);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: bold;
}

/* Buttons */
.button {
    padding: 15px 40px;
    font-size: 1.1rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.button:active {
    transform: translateY(0);
}

#restart-btn {
    margin-top: 25px;
}

footer {
    margin-top: 30px;
}

/* Mobile responsive */
@media (max-width: 480px) {
    .title {
        font-size: 1.8rem;
    }

    .card {
        padding: 20px;
    }

    .input-label {
        font-size: 1.2rem;
    }

    .word-input {
        font-size: 1rem;
        padding: 12px 15px;
    }

    .button {
        padding: 12px 30px;
        font-size: 1rem;
    }
}
