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

.top-panel {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 20px;
    max-width: 600px; /* Adjust max-width for the alphabet buttons */
}

.alphabet-buttons, .diacritic-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 10px;
    max-width: 600px; 
}

.top-panel button {
    margin: 5px;
    padding: 10px;
    font-size: 16px;
}

button.diacritic {
    background-color: #d0e0f0; /* Different background color for diacritic buttons */
    color: #000;
    border: 1px solid #ccc;
    margin: 5px; /* Consistent margin with alphabet buttons */
    padding: 10px; /* Consistent padding with alphabet buttons */
    font-size: 16px;
}

.text-box-container {
    display: flex;
    align-items: center;
    position: relative;
    margin-bottom: 40px;
}

.text-box-container input {
    width: 300px;
    padding: 10px 70px 10px 10px; /* Adjust padding to make room for the buttons */
    font-size: 16px;
}

.delete-button {
    position: absolute;
    right: 45px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 20px;
    color: #000;
    display: flex;
    align-items: center;
    height: 100%;
}

.delete-button i {
    font-size: 20px;
    color: #000;
}

.play-button {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 24px;
    color: #000;
    display: flex;
    align-items: center;
    height: 100%;
}

.play-button i {
    font-size: 24px;
    color: #000;
}

.sentences-box {
    border: 1px solid #ccc;
    padding: 20px;
    border-radius: 10px;a.tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.tab-button {
    padding: 10px 20px;
    background-color: #007BFF;
    color: white;
    border: none;
    cursor: pointer;
    margin: 0 5px;
    border-radius: 5px;
}

.tab-button:hover {
    background-color: #0056b3;
}

.full-text-box {
    width: 100%;
    max-width: 600px;
    margin: 20px 0;
    padding: 20px;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.full-text-box h3 {
    margin-top: 0;
}

.sentence-container div {
    width: calc(100% - 50px); /* Adjust width of sentence text */
    padding: 10px;
    font-size: 16px;
    margin-right: 10px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    word-wrap: break-word; /* Ensure long words break into new lines */
    white-space: normal; /* Ensure text wraps into new lines */
}
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    width: 100%; /* Default to full width */
    max-width: 600px; /* Max width for larger screens */
}

.sentence-container {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.sentence-container div {
    width: calc(100% - 50px); /* Adjust width of sentence text */
    padding: 10px;
    font-size: 16px;
    margin-right: 10px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    word-wrap: break-word; /* Ensure long words break into new lines */
    white-space: normal; /* Ensure text wraps into new lines */
}

.sentence-play-button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 24px;
    color: #000;
    margin-left: auto; /* Ensure the play button aligns to the right */
    display: flex;
    align-items: center;
}

.large-play-button {
    background: #007BFF;
    border: none;
    cursor: pointer;
    padding: 10px 20px;
    font-size: 24px;
    color: #fff;
    margin-top: 20px;
    margin-bottom: 20px;
    border-radius: 5px;
}

.large-play-button i {
    font-size: 24px;
    color: #fff;
}

/* Media Queries for Responsive Design */
@media (min-width: 768px) {
    .sentences-box {
        width: 50%; /* Adjust width for larger screens */
    }
}

/* Additional styles for tabs */
.tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.tab-button {
    padding: 10px 20px;
    background-color: #007BFF;
    color: white;
    border: none;
    cursor: pointer;
    margin: 0 5px;
    border-radius: 5px;
}

.tab-button:hover, .tab-button.active {
    background-color: #0056b3;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.sentences-box {
    border: 1px solid #ccc;
    padding: 20px;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    width: 100%; /* Adjust width */
}

.sentence-container {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.sentence-container div {
    flex: 1; /* Allow sentence text to take available space */
    padding: 10px;
    font-size: 16px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
}

.sentence-play-button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 24px;
    color: #000;
    margin-left: 10px; /* Space between text and button */
}

.large-play-button {
    background: #007BFF;
    border: none;
    cursor: pointer;
    padding: 10px 20px;
    font-size: 24px;
    color: #fff;
    margin-top: 20px;
    border-radius: 5px;
}

.large-play-button i {
    font-size: 24px;
    color: #fff;
}