/* Обёртка приложения */
body {
    margin: 0;
    padding: 0;
}

/* Центрируем контент, ограничиваем ширину */
/* Контейнер внутри main — колонка */
main .container {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
    box-shadow: var(--shadow);
}

.max-w-500 {
    max-width: 500px;
}

/*
На мобильных: ширина 100%
На более широких экранах: максимум 500px, по центру
*/
.app-wrapper {
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
    background-color: #fff;
    min-height: 100vh;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/** Header */
.rating-circle {
    width: 3rem;
    height: 3rem;
    min-width: 3rem;
}

#current-all-block {
    width: 2.2rem;
    height: 2.2rem;
    min-width: 2.2rem;
}

#current-error-block {
    width: 2.2rem;
    height: 2.2rem;
    min-width: 2.2rem;
}

.menu-btn {
    width: 3rem;
    height: 3rem;
    min-width: 3rem;
}


/** test.twig */
.min-height-100
{
    min-height:100%;
    display: flex;
    flex-direction: column;
}

.card-2 {
    border: none;
    border-radius: 1rem;
    background-color: #dee2e6;
    width: 12rem;
    justify-content: center;
}

#user-input {
    min-height: 40px;
}

/* phrase.twig Progress bar */
#progress-bar {
    display: grid;
    grid-template-columns: repeat(20, 1fr);
    gap: 0.25rem;
    width: 100%;
}

#retry-btn {
    height: 60px;
    font-size: 20px;
    width: 160px;
}

#next-btn {
    height: 60px;
    font-size: 20px;
    width: 160px;
}

.word-btn {
    height: 60px;
    font-size: 20px;
}

/** lesson.twig **/
.lesson-card {
    border: none;
    border-bottom: 1px solid #e0e0e0;
    border-radius: 0;
    transition: background-color 0.2s;
}

.lesson-card:hover {
    background-color: #f8f9fa;
}

.lesson-link {
    text-decoration: none;
    color: inherit;
}


/*** login.twig, register.twig ***/
/* Карточка формы */
.card {
    border: none;
    border-radius: 0rem;
}

/* Чтобы поля выглядели аккуратно */
.form-control {
    height: 2.8rem;
    font-size: 1rem;
}
/********/
