.navigation-container {
    display: flex;
    width: 100%;
    gap: 10px;
    margin-top: 12px;
}

.navigation-container button {
    flex-grow: 1;
    padding: 8px;
    border: none;
    background-color: #f0f0f0;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-radius: 12px;
}

.navigation-container button:hover {
    background-color: hsl(0, 0%, 88%);
    outline: 2px solid rgb(213, 94, 201);
}

.navigation-container button:focus {
    outline: 2px solid rgb(162, 162, 162);
}

.search-container {
    display: flex;
    margin: 15px auto;
}

.search-container input[type="text"] {
    flex-grow: 1;
    width: 70%;
    padding: 10px;
    border: 1px solid #3c3c3c;
    border-radius: 5px;
    font-size: 16px;
}

.search-container button {
    width: 30%;
    padding: 10px 15px;
    background-color: #bebfc0;
    color: rgb(202, 10, 209);
    border: none;
    border-radius: 5px;
    font-size: 20px;
    cursor: pointer;
    margin-left: 10px;
    font-weight: bold;
}

.search-container button:hover {
    outline: 2px solid rgb(213, 94, 201);
}

.results-container {
    margin-top: 20px;
    padding: 10px;
}

/* Updated Popup Styles to make it more generic for multiple popups */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup-content {
    background-color: white;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    max-height: 80vh;
    overflow-y: auto;
    width: 90%;
    max-width: 500px;
    border-radius: 8px;
    position: relative; /* Add this to position the close button */
}

.popup h3 {
    margin-bottom: 10px;
}

.popup ul {
    list-style-type: none;
    padding: 0;
}

.popup li {
    padding: 8px 12px;
    border-bottom: 1px solid #eee;
}

.popup li:last-child {
    border-bottom: none;
}

.popup button.close-button {
    margin-top: 0;
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    background-color: #ddd;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.popup button.close-button:hover {
    background-color: #b8ebc1;
}

/* End Popup Styles */

.app-container {
    font-family: sans-serif;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.app-header {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #2348a6;
    color: rgb(233, 230, 230);
    padding: 6px 0;
    border-radius: 8px 8px 0 0;
}

.app-header h1 {
    font-size: 24px;
    margin: 0;
}

/* --- NEW STYLES for Info Icon and Popup --- */
.app-header .title-wrapper {
    display: flex;
    align-items: center; 
    gap: 10px; 
}

.info-icon {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.3em; 
    color: #4ac7f2;
    padding: 0;
    margin-top: 3px; 
    margin-bottom: 0; 
    transition: color 0.2s;
    float:left
}

.info-icon:hover {
    color: #92e0ff;
}

.info-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); 
    display: flex; 
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.info-popup {
    background: white;
    padding: 25px;
    border-radius: 8px;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    color: #333;
}

.info-popup h3 {
    margin-top: 0;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.info-popup p {
    margin-bottom: 12px;
    line-height: 1.5;
    font-size: 0.95em;
}

.info-popup button {
    display: block;
    margin-top: 20px;
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    background-color: #6c757d; 
    color: white;
    cursor: pointer;
    float: right; 
}

.info-popup button:hover {
    background-color: #5a6268;
}

/* NEW: Styles for the magnifying glass and grammar group */
.gram-group {
    display: flex;
    align-items: center;
    gap: 5px;
}

.grammar-icon {
    background: none;
    border: none;
    color: #007BFF;
    cursor: pointer;
    font-size: 1.2em;
    padding: 0;
}

.grammar-icon:hover {
    color: #0056b3;
}
