.writing-container {
    width: 100%;
    max-width: 420px;
    padding: 20px;
    text-align: center;
}

.writing-container input {
    width: 100%;
    max-width: 420px;
    padding: 12px;
    margin: 10px 0;
    font-size: 1.1rem;
}

.uza-underline {
    text-decoration: underline;
    color: red;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.page-center {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.back-button {
    display: inline-block;
    margin-bottom: 15px;
    text-decoration: none;
    font-size: 0.9rem;
    color: #555;
}

.back-button:hover {
    text-decoration: underline;
}

.quiz-container {
    width: 100%;
    max-width: 420px;
    padding: 20px;
    text-align: center;
}


#options button {
    width: 100%;
    height: 2rem;
    padding: var(--lwc-varSpacingSmall);
    margin: var(--lwc-varSpacingXSmall);
    font-size: var(--lwc-fontSize5, 1rem);
}

#options button.correct {
    background-color: #c8f7c5;
}

#options button.wrong {
    background-color: #f7c5c5;
}

.audio-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    margin-left: 8px;
}

.audio-btn:hover {
    transform: scale(1.1);
}

.audio-btn {
    padding: 10px;
}

.app-footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: #f8f8f8;
    border-top: 1px solid #ddd;
    padding: 8px 12px;
    z-index: 1000;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #555;
}

.footer-logo {
    height: 24px;
    width: auto;
}


.dictionary-container {
    display: flex;
    justify-content: center;
    padding: 1rem;
}

.dictionary-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-width: 600px; /* ancho cómodo */
    width: 100%;
}

.dictionary-list li {
    text-align: center;
    font-size: 1.2rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid #eee;
}

.dictionary-list li:hover {
    background-color: #f9f9f9;
}

.dictionary-controls {
    margin-bottom: 16px;
}

.btn {
    padding: 6px 12px;
    background: #eee;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
}

.reading-container {
    max-width: 700px;
    margin: auto;
    padding: 1.5rem;
}

.uza-text {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.spanish-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #444;
}

.uza-text,
.spanish-text {
    white-space: pre-line;
}

.home-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

.home-button {
    display: inline-flex;      /* 🔑 clave */
    width: auto;               /* 🔑 clave */
    padding: 0.8rem 1.4rem;
    background-color: #58cc02;
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: bold;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.home-button:hover {
    background-color: #eea621;
}

.reading-list {
    max-width: 700px;
    margin: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.reading-card {
    padding: 1rem;
    border-radius: 14px;
    background-color: #f5f5f5;
    text-decoration: none;
    color: inherit;
}

.reading-card:hover {
    background-color: #eaeaea;
}

h1 {
            margin-bottom: 25px;
        }

        /* Selector idioma */
        .lang-selector {
            margin-bottom: 20px;
        }

        select {
            padding: 6px 10px;
            font-size: 14px;
        }

        /* Letras */
        .letters {
            margin-bottom: 30px;
            font-size: 18px;
        }

        .letters a {
            margin-right: 8px;
            text-decoration: none;
            font-weight: bold;
            color: #444;
        }

        .letters a:hover {
            color: #0077cc;
        }

        .active-letter {
            color: #0077cc;
            text-decoration: underline;
        }

        /* Entradas */
        .entry {
            margin-bottom: 18px;
        }

        .entry h3 {
            margin: 0;
        }

        .entry p {
            margin: 4px 0;
            color: #555;
        }

        hr {
            border: none;
            border-top: 1px solid #ddd;
            margin-top: 10px;
        }

        /* Responsive */
        @media (max-width: 600px) {
            body {
                margin: 20px;
            }

            .letters {
                font-size: 16px;
            }
        }

        body {
    background-image: url('/images/backgrounds/fondouza.png');
    background-repeat: repeat;
    background-size: 600px;
    padding-bottom: 50px; /* altura del footer */
    font-family: Arial, sans-serif;
    margin: 40px;
}

.credit-card{
    border-radius: 15px;
    transition: transform 0.2s;
}

.credit-card:hover{
    transform: scale(1.05);
}

.the-button {
        background-color: #ccc;
        color: black;
        padding: 12px 24px;
        font-size: 16px;
        border: 2px solid #046a1b;
        border-radius: 8px;
        cursor: pointer;
        transition: background-color 0.3s ease, transform 0.2s ease;
    }

    button:hover {
        background-color: #046a1b;
        color: white;
        transform: scale(1.05);
    }

    button:active {
        background-color: #a50916;
        transform: scale(0.98);
    }

.dictionary-container,
#uzaWord,
#feedback,
#correctAnswer,
#spanishWord,
.reading-container,
.home-container{
    background: rgba(255,255,255,0.85);
    padding: 20px;
    border-radius: 10px;
}

.titleBackground {
    background: rgba(255,255,255,0.85);
    padding: 10px;
    border-radius: 10px;
}

/*.image-size {
    height: 150px;
    width: 150px;
}*/

.negrita {
    font-weight: bold;
}

.center-image {
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
    height: auto;
}

.boton-negrita {
    font-weight: bold;
    padding: 12px 24px;
    font-size: 16px;
    height: 25px;
}

.flip-container {
    width: 100%;
    max-width: 400px;
    height: 350px;
    perspective: 1000px;
    cursor: pointer;
}

.flip-card {
    width: 100%;
    height: 100%;
    position: relative;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.flip-card.flipped {
    transform: rotateY(180deg);
}

.flip-front, .flip-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
}

.flip-front {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flip-back {
    transform: rotateY(180deg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.word-image {
    max-width: 100%;
    max-height: 180px;
    margin-bottom: 12px;
    border-radius: 12px;
    text-align: center;
}

.word-image2 {
    max-width: 100%;
    max-height: 180px;
    margin-bottom: 12px;
    border-radius: 12px;
    object-fit: contain;
}

.uza-underline {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}
