* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Lexend', sans-serif;
}

body {
    background: linear-gradient(135deg, #012169, #ffc72c);
    color: #333;
    min-height: 100vh;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.container {
    max-width: 800px;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    padding: 30px;
    margin-top: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

h1 {
    color: #1a2a6c;
    margin-bottom: 10px;
    font-size: 2.5rem;
}

.subtitle {
    color: #b21f1f;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.flag {
    font-size: 3rem;
    margin: 15px 0;
}

.translator {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group, .output-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

label {
    font-weight: bold;
    color: #1a2a6c;
}

textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    resize: vertical;
    min-height: 100px;
    font-size: 1rem;
}

textarea:focus {
    border-color: #1a2a6c;
    outline: none;
}

.buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

button {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    background: #1a2a6c;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

button:hover {
    background: #b21f1f;
    transform: translateY(-2px);
}

#translateBtn {
    background: #1a2a6c;
}

#clearBtn {
    background: #666;
}

.output {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    min-height: 100px;
    border: 2px solid #ddd;
}

.pronunciation-word {
    border-bottom: 1px dotted grey;
    cursor: help;
    position: relative;
    display: inline-block;
}

.pronunciation-word .tooltip {
    visibility: hidden;
    background-color: #f0f0f0;
    color: grey;
    text-align: center;
    border-radius: 4px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    font-style: italic;
    font-size: 14px;
    white-space: nowrap;
    border: 1px solid #ccc;
}

.pronunciation-word:hover .tooltip {
    visibility: visible;
    opacity: 1;
}

.dictionary-section {
    margin-top: 40px;
}

.dictionary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.dict-item {
    background: #f0f4ff;
    padding: 10px;
    border-radius: 8px;
    border-left: 4px solid #1a2a6c;
}

.english {
    font-weight: bold;
    color: #1a2a6c;
}

.nauruan {
    color: #b21f1f;
}

.pronunciation {
    font-style: italic;
    color: #666;
    font-size: 75%;
}

footer {
    margin-top: 40px;
    text-align: center;
    color: white;
    font-size: 0.9rem;
}

@media (max-width: 600px) {
    .container {
        padding: 20px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .dictionary-grid {
        grid-template-columns: 1fr;
    }
}

ul {
    padding-left: 40px;
}

@keyframes bounce {
    0% { transform: scale(1); }
    25% { transform: scale(1.08); }
    50% { transform: scale(1.12); }
    75% { transform: scale(1.08); }
    100% { transform: scale(1); }
}

.bounce-text {
    animation: bounce 0.3s ease-in-out;
    display: inline-block;
}

summary {
    cursor: pointer;
    font-weight: bold;
    color: #1a2a6c;
    margin-bottom: 15px;
    margin-top: 30px;
    font-size: 1.75rem;
    text-decoration: underline;
}

/* Navbar Styles */
.navbar {
    position: fixed;
    top: 20px;
    left: 20px;
    background: rgba(24, 20, 20, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 8px;
    z-index: 1001;
    display: flex;
    gap: 6px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    transition: background-color 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.nav-link.active {
    background: rgba(255, 255, 255, 0.15);
    color: #4ECDC4;
}

.nav-link i {
    font-size: 16px;
}

