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

body {
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

h1 {
    text-align: center;
    color: #2E75B6;
    margin-bottom: 10px;
    font-size: 2.5em;
}

h2 {
    color: #2E75B6;
    margin: 20px 0;
}

.subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
    font-size: 1.1em;
}

.controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

button {
    padding: 12px 30px;
    font-size: 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: bold;
}

.reset-btn {
    background: #e74c3c;
    color: white;
}

.reset-btn:hover {
    background: #c0392b;
    transform: translateY(-2px);
}

.check-all-btn {
    background: #2ecc71;
    color: white;
}

.check-all-btn:hover {
    background: #27ae60;
    transform: translateY(-2px);
}

.verb-section {
    margin-bottom: 40px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    background: #f9f9f9;
}

.verb-category {
    font-size: 1.8em;
    color: #2E75B6;
    margin-bottom: 15px;
    font-weight: bold;
}

.verb-header {
    font-size: 1.3em;
    color: #555;
    margin-bottom: 15px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.verb-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.verb-table th {
    background: #4472C4;
    color: white;
    padding: 12px;
    text-align: left;
    font-weight: bold;
}

.verb-table td {
    padding: 12px;
    border-bottom: 1px solid #e0e0e0;
}

.verb-table tr:last-child td {
    border-bottom: none;
}

.verb-table tr:hover {
    background: #f5f5f5;
}

.spanish-text {
    font-weight: bold;
    color: #2E75B6;
}

.input-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

input[type="text"] {
    padding: 10px 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    flex: 1;
    transition: all 0.3s;
}

input[type="text"]:focus {
    outline: none;
    border-color: #4472C4;
}

input[type="text"].correct {
    border-color: #2ecc71;
    background: #e8f8f5;
}

input[type="text"].incorrect {
    border-color: #e74c3c;
    background: #fadbd8;
}

.feedback {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 150px;
}

.correct-icon {
    color: #2ecc71;
    font-size: 24px;
    font-weight: bold;
}

.speaker-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 20px;
    padding: 4px 8px;
    color: #666;
    transition: all 0.2s;
}

.speaker-btn:hover {
    color: #2E75B6;
    transform: scale(1.1);
}

.speaker-btn:active {
    transform: scale(0.95);
}

.check-btn {
    padding: 8px 16px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s;
    white-space: nowrap;
    flex-shrink: 0;
}

.check-btn:hover {
    background: #2980b9;
}

.check-btn:active {
    transform: scale(0.95);
}

.incorrect-text {
    color: #e74c3c;
    font-size: 14px;
}

.correct-answer {
    color: #2ecc71;
    font-weight: bold;
    font-size: 14px;
}

.progress {
    text-align: center;
    margin-bottom: 20px;
    padding: 15px;
    background: #e8f4f8;
    border-radius: 8px;
    font-size: 1.1em;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #2ecc71 0%, #27ae60 100%);
    transition: width 0.5s;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 12px;
}

/* Landing page specific styles */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.menu-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.menu-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.menu-card h2 {
    color: white;
    margin-bottom: 15px;
}

.menu-card p {
    font-size: 1.1em;
    line-height: 1.6;
}

.menu-card .icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.back-btn {
    display: inline-block;
    margin-bottom: 20px;
    padding: 10px 20px;
    background: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s;
}

.back-btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
        max-width: 100vw;
        overflow-x: hidden;
    }

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

    .subtitle {
        font-size: 0.9em;
        margin-bottom: 15px;
    }

    .progress {
        padding: 10px;
        font-size: 0.9em;
    }

    .controls {
        flex-direction: column;
        gap: 8px;
        margin-bottom: 20px;
    }

    .controls button {
        width: 100%;
        font-size: 14px;
        padding: 12px;
    }

    .verb-section {
        padding: 12px;
        margin-bottom: 25px;
    }

    .verb-category {
        font-size: 1.3em;
        margin-bottom: 10px;
    }

    .verb-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        font-size: 1em;
        margin-bottom: 10px;
    }

    .verb-header > div {
        width: 100% !important;
        max-width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
        box-sizing: border-box !important;
    }

    .verb-header input[type="text"] {
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
        box-sizing: border-box;
    }

    .verb-header .check-btn {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }

    .verb-header .feedback {
        width: 100%;
    }

    .verb-header span[style*="font-size: 1.2em"] {
        font-size: 1.1em !important;
    }

    /* Make table mobile-friendly */
    .verb-table {
        font-size: 13px;
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .verb-table thead {
        display: none; /* Hide headers on mobile */
    }

    .verb-table tbody {
        display: block;
    }

    .verb-table tr {
        display: block;
        margin-bottom: 15px;
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        padding: 10px;
        background: white;
    }

    .verb-table td {
        display: block;
        padding: 8px 0;
        border: none;
        text-align: left !important;
        width: 100%;
        max-width: 100%;
        overflow: visible;
    }

    /* Hide Swedish column on mobile to save space - only if it exists */
    /* Swedish column is the 2nd column when there are 4 columns total */
    .verb-table tr:has(td:nth-child(4)) td:nth-child(2) {
        display: none;
    }

    /* Person column - make it a header for each card */
    .verb-table td:first-child {
        font-weight: bold;
        font-size: 14px;
        margin-bottom: 8px;
        color: #2E75B6;
        border-bottom: 1px solid #e0e0e0;
        padding-bottom: 8px;
    }

    /* Input container - full width */
    .input-container {
        flex-direction: column;
        gap: 8px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .input-container input[type="text"] {
        width: 100%;
        font-size: 16px;
        padding: 12px;
    }

    .check-btn {
        width: 100%;
        max-width: 100%;
        padding: 12px;
        font-size: 14px;
        box-sizing: border-box;
    }

    /* Speaker button - make smaller */
    .speaker-btn {
        font-size: 16px;
        padding: 2px 6px;
    }

    /* Feedback column */
    .feedback {
        font-size: 12px;
        min-width: auto;
        margin-top: 4px;
    }

    .menu-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .menu-card {
        padding: 20px;
    }

    .back-btn {
        font-size: 14px;
        padding: 8px 16px;
        margin-bottom: 15px;
    }
}
