
/* lesson.css */

/* Typography and container settings */
body {
    font-family: 'Arial', sans-serif;
    color: #333;
}

.lesson-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #007bff;
    margin-bottom: 30px;
}

/* Lesson card styling */
.lesson-card, .translation-card {
    border: none;
    border-radius: 12px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.lesson-card:hover, .translation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.word-header {
    font-size: 1.8rem;
    color: #444;
    font-weight: 600;
}

.meaning {
    font-size: 1.2rem;
}

.speaker-icon {
    width: 32px;
    height: 32px;
    vertical-align: middle;
    margin-left: 10px;
    cursor: pointer;
}

/* Image styling */
.example-picture {
    max-height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lesson-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Maintains aspect ratio */
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);

}

/* Translation box styling */
.translation-header {
    font-size: 1.5rem;
    color: #444;
    font-weight: 600;
    margin-bottom: 15px;
}

.translation-box {
    background-color: #007bff;
    color: #fff;
    font-size: 1.3rem;
    font-weight: bold;
    text-align: center;
    border-radius: 5px;
    padding: 10px 20px;
    max-width: 250px;
}

/* Navigation button styling */
.nav-button {
    font-size: 1.2rem;
    padding: 12px 30px;
    margin: 10px;
    border-radius: 8px;
    transition: background-color 0.3s, transform 0.2s;
}

.nav-button:hover {
    transform: translateY(-3px);
}

.btn-primary {
    background-color: #007bff;
    color: #fff;
    border: none;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.btn-secondary {
    background-color: #6c757d;
    color: #fff;
    border: none;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

/* Responsive design */
@media (max-width: 768px) {
    .lesson-title {
        font-size: 2rem;
    }

    .word-header,
    .translation-header {
        font-size: 1.4rem;
    }

    .translation-box {
        font-size: 1.2rem;
    }

    .nav-button {
        font-size: 1rem;
        padding: 8px 16px;
    }
}
