body {
    font-family: 'Inter', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between; 
    min-height: 100vh;
    background-color: #ffffff; 
    color: #374151; 
    margin: 0;
    padding: 2rem;
    box-sizing: border-box;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url('icon-518.png');
    background-repeat: no-repeat;
    background-position: center center; 
    background-size: 60vmin; 
    opacity: 0.04; 
    z-index: -1;   
}

.main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-grow: 1; 
    width: 100%;
    max-width: 500px; 
}

.logo-image {
    display: block; 
    margin-left: auto;
    margin-right: auto; 
    max-width: 200px;
    height: auto;    
    margin-bottom: 2.5rem; 
    mix-blend-mode: multiply;
}

.search-container {
    position: relative;
    width: 100%;
    margin-bottom: 0; 
}

.search-input-wrapper {
    position: relative;
}

.search-input {
    width: 100%;
    padding: 0.875rem 1rem; 
    padding-left: 2.75rem; 
    border: 1px solid #e5e7eb; 
    border-radius: 0.5rem; 
    font-size: 1rem;
    color: #374151; 
    background-color: #fff;
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    caret-color: #00c2ff;
}

.search-input:focus {
    outline: none;
    border-color: #00c2ff;
    box-shadow: 0 0 0 2px rgba(0, 194, 255, 0.2);
}

.search-input.suggestions-visible {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom-color: transparent; 
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #00c2ff; 
    width: 1.125rem; 
    height: 1.125rem; 
}

.search-highlight {
    background-color: #00c2ff;
    color: white;
    padding: 1px 2px;
    border-radius: 2px;
}

.suggestions-list {
    position: absolute;
    top: 100%; 
    left: 0;
    right: 0;
    background-color: white;
    border: 1px solid #e5e7eb; 
    border-top: none; 
    border-radius: 0 0 0.5rem 0.5rem; 
    max-height: 220px; 
    overflow-y: auto;
    z-index: 10;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03); 
}

.suggestion-item {
    padding: 0.75rem 1.25rem; 
    cursor: pointer;
    color: #000000;
    font-size: 0.95rem;
    font-weight: 400; 
}

.suggestion-item:hover, .suggestion-item.active {
    background-color: #f0f9ff; 
}

.suggestion-match {
    font-weight: bold;
    color: #00c2ff; 
}

.words-of-the-day-container { 
    margin-top: 2.5rem; 
    text-align: center;
    width: 100%;
}

.words-of-the-day-label { 
    font-size: 0.875rem; 
    font-weight: 400;
    color: #6b7280; 
    margin-bottom: 0.75rem;
    display: inline; 
}

.words-list { 
    display: inline; 
}

.word-item-link { 
    color: #00c2ff; 
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 400;
    margin-left: 0.25rem; 
    margin-right: 0.25rem; 
}

.word-item-link:hover {
    text-decoration: underline;
}

.word-separator {
    color: #9ca3af; 
    margin: 0 0.2rem;
    font-size: 0.875rem;
}

.results-container {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: #fff; 
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb; 
    width: 100%;
    text-align: left;
}

.results-container h3 {
    font-family: 'Lora', serif;
    font-size: 1.75rem;
    font-weight: 500;
    color: #1f2937; 
    margin-bottom: 0.75rem;
}

.results-container p {
    font-size: 1rem;
    color: #374151; 
    line-height: 1.7; 
    margin-bottom: 0.75rem;
}

.results-container .not-found {
    color: #6b7280; 
    font-style: italic;
}

.secondary-definition {
    font-size: 0.9rem;
    color: #4b5563; 
    margin-top: 0.5rem;
}

.usage-example-text { 
    margin-top: 1rem;
    font-style: italic;
    color: #4b5563;
}

.see-also-container {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
    font-size: 0.9rem;
}

.see-also-container strong {
    color: #374151; 
}

.see-also-link {
    color: #00c2ff; 
    text-decoration: none;
    margin-right: 0.5rem;
}

.see-also-link:hover {
    text-decoration: underline;
}

.footer {
    margin-top: 4rem; 
    padding: 1rem 0;
    font-size: 0.875rem;
    color: #9ca3af; 
    text-align: center;
    width: 100%;
}

.footer-link {
    color: #00c2ff; 
    text-decoration: underline;
}

.footer-link:hover {
    text-decoration: none; 
}

.hidden {
    display: none !important; 
}

.loading-indicator {
    text-align: center;
    padding: 1rem;
    color: #6b7280; 
    font-size: 0.875rem;
}

.install-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #f8f9fa;
    border-top: 1px solid #e5e7eb;
    padding: 1rem;
    padding-right: 2.5rem;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    font-size: 0.85rem;
    color: #4b5563;
    animation: slideUp 0.5s ease-out;
}

.install-banner-content p {
    margin: 0.25rem 0;
    font-size: 0.85rem;
    text-align: left;
    line-height: 1.5;
}

.install-banner strong {
    color: #1f2937;
}

.close-banner-button {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    font-weight: 300;
    color: #9ca3af;
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
}

.loading-message {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.loading-book {
    width: 48px;
    height: 64px;
    position: relative;
    background: #00c2ff;
    border-radius: 4px;
    overflow: hidden;
}

.loading-book::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.4);
    transform: translateX(-100%);
    animation: pageTurn 1.4s ease-in-out infinite;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

@keyframes pageTurn {
    0% { transform: translateX(-100%); }
    50% { transform: translateX(0); }
    100% { transform: translateX(100%); }
}
