body {
    font-family: sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #f0f0f0;
}

.page {
    display: none;
    flex-direction: column;
    align-items: center;
    width: 90%;
    max-width: 400px; /* Максимальная ширина для телефона */
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.page.active {
    display: flex;
}

.navigation {
    width: 100%;
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.nav-btn {
    font-size: 24px;
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
}

.nav-btn:hover {
    background-color: #45a049;
}

.buttons-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}

.phonetics-btn {
    width: 30%;
    margin: 5px;
    padding: 10px;
    text-align: center;
    border: 1px solid #ddd;
    background-color: #f9f9f9;
    cursor: pointer;
    border-radius: 5px;
    box-sizing: border-box; /* Включаем box-sizing */
}

.phonetics-btn:hover {
    background-color: #eee;
}


.phonetic-symbol {
    font-size: 24px;
    font-weight: bold;
    display: block;
}

.word {
    font-size: 16px;
    display: block;
    margin-top: 5px;
}

.transcription {
    font-size: 14px;
    color: #888;
    display: block;
    margin-top: 5px;
}