* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    padding: 20px;
    flex: 1;
}

.search-container {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    width: 100%;
}

#searchInput {
    flex: 1;
    padding: 0.8rem 1rem;
    font-size: 1rem;
    border: 2px solid #ddd;
    border-radius: 4px;
    outline: none;
    transition: border-color 0.3s;
}

#searchInput:focus {
    border-color: #4a90e2;
}

button {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    color: white;
    background-color: #4a90e2;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #357abd;
}

.result-container {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.word-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.word-header h2 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.phonetics {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #666;
}

.phonetics span {
    font-size: 1rem;
}

.play-btn {
    padding: 0.4rem 0.8rem;
    font-size: 1.2rem;
    background: none;
    border: 1px solid #4a90e2;
    color: #4a90e2;
}

.play-btn:hover {
    background-color: #f0f7ff;
}

.meanings {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.meaning-item {
    padding-left: 1rem;
    border-left: 3px solid #4a90e2;
}

.pos {
    font-weight: bold;
    color: #4a90e2;
    margin-right: 1rem;
}

.definition {
    color: #2c3e50;
    font-weight: bold;
    font-size: 1.1rem;
}

.example {
    margin-top: 0.5rem;
    padding: 0.5rem;
    background-color: #f8f9fa;
    border-radius: 4px;
}

.example p {
    color: #666;
    font-size: 0.9rem;
}

.example p:first-child {
    color: #2c3e50;
    margin-bottom: 0.3rem;
}

.error-container {
    margin-bottom: 2rem;
    display: none;
}

.error {
    color: #dc3545;
    text-align: center;
    padding: 1rem;
    font-size: 1.1rem;
}

.footer {
    text-align: center;
    padding: 20px 0;
    color: #666;
    font-size: 0.9rem;
    background-color: #f5f5f5;
    width: 100%;
    margin-top: auto;
}

.footer a {
    color: #666;
    text-decoration: none;
}

.footer a:hover {
    color: #4a90e2;
}

@media (max-width: 600px) {
    .container {
        margin: 1rem auto;
    }

    .search-container {
        flex-direction: column;
    }

    .word-header h2 {
        font-size: 1.5rem;
    }

    .phonetics {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

.site-title {
    text-align: center;
    color: #4a90e2;
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 2rem;
    padding-top: 1rem;
} 