body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #fafafa;
    color: #333;
}

.container {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
}

header {
    background: #0066cc;
    color: #ddd;
    padding: 10px 15px;
}

header h1 {
    margin: 0;
    font-size: 1.2rem;
}

nav a {
    color: #ddd;
    margin-right: 10px;
    text-decoration: none;
    font-size: 0.9rem;
}

main {
    padding: 15px;
}

h2 {
    margin-top: 0;
	
}

ul {
    list-style: none;
    padding: 0;
}

li {
    margin: 8px 0;
}

li a {
    text-decoration: none;
    color: #0066cc;
}
/*category*/
.phrases {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.phrase-card {
    background: #fff;
    padding: 15px 18px;
    border-radius: 10px;
    border: 1px solid #ddd;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.phrase-german {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 8px;
}

.phrase-russian {
    font-size: 17px;
    color: #555;
}

.phrase-actions {
    margin-top: 12px;
    font-size: 14px;
}

.phrase-actions a {
    color: #0066cc;
    text-decoration: none;
}

.phrase-actions a:hover {
    text-decoration: underline;
}

nav {
    background: #fff;
    border-bottom: 1px solid #ddd;
    padding: 10px 15px;
}

.nav {
    list-style: none;
    display: flex;
    justify-content: center; /* ВОТ ЭТО ДЕЛАЕТ МЕНЮ ПО ЦЕНТРУ */
    gap: 25px;
    padding: 0;
    margin: 0;
}

.nav a {
    text-decoration: none;
    color: #0066cc;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 6px;
}

.nav a:hover {
    background: #e6f0ff;
}



h1, h2, h3 {
    margin-top: 0;
    font-weight: 600;
	
}
form input[type="text"],
form select {
    width: 100%;
    max-width: 400px; /* Ограничиваем ширину */
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 6px;
    margin-bottom: 15px;
    box-sizing: border-box;
}

form input[type="text"] {
    text-align: center ; /* Текст слева, как в нормальных формах */
}


button {
    padding: 10px 18px;
    font-size: 16px;
    background: #0066cc;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

button:hover {
    background: #0055aa;
}
@media (max-width: 600px) {

    /* Бургер-кнопка */
    .burger {
        display: block;
        font-size: 28px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 10px;
        position: relative;
        z-index: 1001;
    }

    /* Мобильное меню поверх контента */
    #mobileMenu {
        position: fixed;
        top: 0;
        left: 0;
        width: 70%;
        height: 100%;
        background: #fff;
        box-shadow: 2px 0 10px rgba(0,0,0,0.2);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        padding-top: 60px;
        z-index: 1000;
    }

    #mobileMenu.open {
        transform: translateX(0);
    }

    /* Список ссылок */
    .nav {
        flex-direction: column;
        gap: 15px;
        padding: 0 20px;
    }

    .nav a {
        display: block;
        padding: 12px;
        background: #f5f5f5;
        border-radius: 6px;
        font-size: 18px;
    }

    /* Затемнение фона */
    .overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.4);
        display: none;
        z-index: 999;
    }

    .overlay.show {
        display: block;
    }
}
h2 {
    text-align: center;
    margin-bottom: 25px;
    font-size: 26px;
    font-weight: 600;
}
p
{
    text-align: center;
    margin-bottom: 25px;
    font-size: 16px;
    font-weight: 600;
}
.page-title {
    text-align: center;
    margin-bottom: 25px;
    font-size: 26px;
    font-weight: 600;
}

/* Центрируем форму */
.add-wrapper {
    display: flex;
    justify-content: center;
}

/* Ограничиваем ширину формы */
.form-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
}

/* Кнопка Добавить — обычная */
.btn-submit {
    padding: 10px 20px;
    font-size: 18px;
    border-radius: 6px;
}

/* Кнопки микрофона и флага — одинаковые */
.btn-flag, .btn-mic {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f0f0f0;
    padding: 0;
}

/* Флаг растягивается на всю кнопку */
.btn-flag img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

/* Микрофон пропорциональный */
.btn-mic {
    font-size: 26px;
    line-height: 1;
    background: #e0e0e0;
}
a {
    text-decoration: none;
}
/* Контейнер для поля ввода и кнопки */
.input-group {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin-bottom: 15px;
}

/* Корректируем поле, чтобы оно занимало всю ширину и освобождало место справа под иконку */
.input-group input[type="text"] {
    width: 100%;
    margin-bottom: 0; /* Отступ перенесён на .input-group */
    padding-right: 48px; /* Запас места справа, чтобы текст не заходил под иконку */
    box-sizing: border-box;
}

/* Общий стиль для кнопок внутри полей */
.btn-input-icon {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
    padding: 0;
    transition: background-color 0.2s ease;
}

.btn-input-icon:hover {
    background: rgba(0, 0, 0, 0.08);
}

/* Стиль для флага */
.btn-flag img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}

/* Стиль для эмодзи микрофона */
.btn-mic {
    font-size: 18px;
    line-height: 1;
}
textarea {
    width: 100%;
    min-height: 120px;
    padding: 12px;
    font-size: 16px;
    box-sizing: border-box;
    resize: vertical;
}

textarea {
    border: none;
    outline: none;
    box-shadow: none;
    background: transparent;
}