:root {
    --primary: #4f46e5;
    --primary-light: #818cf8;
    --text: #1f2937;
    --text-light: #6b7280;
    --bg: #f9fafb;
    --card-bg: #ffffff;
    --border: #e5e7eb;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    background-color: var(--primary);
    color: white;
    padding: 1.5rem 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

h1 {
    font-weight: 600;
    font-size: 1.5rem;
}

.controls {
    display: flex;
    gap: 1rem;
}

select {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background-color: var(--card-bg);
    font-size: 0.9rem;
    color: var(--text);
}

main {
    flex: 1;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.content-container {
    display: flex;
    gap: 2rem;
    background-color: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    overflow: hidden;
    height: 400px;
}

.image-container {
    flex: 1;
    min-width: 0;
}

.noun-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.content {
    flex: 1;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.word-display {
    font-size: 3rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.article {
    color: var(--primary);
}

.translation {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    font-style: italic;
}

.audio-player {
    margin: 1.5rem 0;
}

audio {
    width: 100%;
}

.navigation {
    display: flex;
    justify-content: space-between;
    margin-top: auto;
}

button {
    padding: 0.75rem 1.5rem;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

button:hover {
    background-color: var(--primary-light);
}

button:disabled {
    background-color: #d1d5db;
    cursor: not-allowed;
}

.progress-container {
    width: 100%;
    background-color: #e5e7eb;
    border-radius: 6px;
    height: 8px;
    margin: 1.5rem 0;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 6px;
    transition: width 0.4s ease;
}

.counter {
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
}

footer {
    background-color: var(--primary);
    color: white;
    text-align: center;
    padding: 1rem;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .content-container {
        flex-direction: column;
        height: auto;
    }
    
    .image-container {
        height: 200px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .controls {
        width: 100%;
        flex-direction: column;
    }
}


.footer-link {
    color: inherit;          /* Keeps the text color same as surrounding text */
    text-decoration: none;   /* Removes underline */
    font-weight: bold;       /* Ensures it stays bold */
}

.footer-link:hover {
    text-decoration: underline; /* Optional: adds underline on hover */
}
