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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: white;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 700px;
    text-align: center;
}

.main-header {
    text-align: center;
    margin-bottom: 20px;
    background-color: white;
    padding: 60px 40px;
}

.main-title {
    font-size: 5rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    margin-bottom: 5px;
    color: black;
}

.wtf {
    font-size: 6rem;
}

.black-box {
    display: inline-block;
    background-color: black;
    width: 1.2em;
    height: 0.82em;
    vertical-align: baseline;
    position: relative;
    margin: 0 2px;
    cursor: pointer;
    transition: width 0.3s ease;
    overflow: hidden;
}

.black-box:hover {
    width: 2.4em;
}

.hidden-text {
    color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-family: inherit;
    font-size: 6rem;
    font-weight: 900;
    letter-spacing: inherit;
    position: absolute;
    left: 50%;
    top: 41%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    white-space: nowrap;
}

.black-box:hover .hidden-text {
    opacity: 1;
}

.tagline {
    font-size: 1rem;
    color: black;
    font-weight: 400;
    letter-spacing: 0.02em;
}

.search-container {
    display: inline-flex;
    gap: 10px;
    margin-bottom: 15px;
    align-items: center;
}

.dropdown {
    margin-bottom: 30px;
    display: inline-block;
    width: 100%;
    max-width: 550px;
}

.view-all-btn {
    padding: 12px 24px;
    font-size: 0.9rem;
    font-weight: 500;
    background-color: white;
    color: #666;
    border: 2px solid #666;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    list-style: none;
    width: 100%;
    text-align: center;
}

.view-all-btn:hover {
    background-color: #666;
    color: white;
}

.view-all-btn::-webkit-details-marker {
    display: none;
}

.terms-list {
    margin-top: 20px;
    background-color: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    max-height: 500px;
    overflow-y: auto;
}

.term-list-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.term-list-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.term-list-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: black;
    margin-bottom: 10px;
    text-align: left;
}

.term-list-definition {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
    text-align: left;
}

#searchInput {
    width: 400px;
    padding: 18px 24px;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 50px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    outline: none;
    transition: box-shadow 0.3s ease;
}

#searchInput:focus {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

#searchButton {
    padding: 18px 36px;
    font-size: 1rem;
    font-weight: 600;
    background-color: black;
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    white-space: nowrap;
}

#searchButton:hover {
    background-color: #333;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

#searchButton:active {
    transform: translateY(0);
}

.results-container {
    background-color: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    min-height: 100px;
    display: none;
}

.results-container.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.result-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.result-term {
    font-size: 1.5rem;
    font-weight: 700;
    color: black;
    margin-bottom: 10px;
    text-align: left;
}

.result-definition {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
    text-align: left;
}

.no-results {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
    padding: 20px;
}

.no-results-icon {
    font-size: 3rem;
    margin-bottom: 10px;
}

.multiple-results-header {
    font-size: 1rem;
    color: #666;
    margin-bottom: 20px;
    text-align: center;
}

.site-footer {
    margin-top: 40px;
    padding: 20px;
    text-align: center;
    font-size: 0.85rem;
    color: #999;
}

@media (max-width: 600px) {
    h1 {
        font-size: 2rem;
    }

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

    #searchButton {
        width: 100%;
    }
}
