* {
    color: #3d3d3d;
}

h3 {
    font-size: 1rem;
    margin-top: 2rem;
}

body {
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100vh;
    margin: 0;
}

.head {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    align-items: center;
}

.profile {
    padding: 1rem;
}

.head .logo {
    padding: 1rem;
    width: 6rem;
    height: 1.7rem;
}

.profile img {
    width: 2.5rem;
}

.wrap {
    /* padding: 1rem 2rem; */
    text-align: center;
    /* width: 50rem; */
}

.search-section {
    background-color: rgb(239, 249, 255);
    width: 100vw;
    padding: 5rem 0;
}

.search-container {
    display: flex;
    gap: 8px;
    width: 50%;
    margin: 20px auto auto auto;
}

#search-input {
    padding: 1rem;
    width: 100%;
    font-size: 16px;
    border: 1px solid #3d3d3d30;
    border-radius: 30px;
}
#search-input:focus {
    outline: none;
}

button {
    padding: 8px 16px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 30px;
    border: 1px solid transparent;
}

#results-container {
    display: none;
    margin: 20px auto auto auto;
    width: 50rem;
    border: 1px solid #ccc;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    border: none;
    border-radius: 4px;
    box-sizing: border-box;
}

.result {
    margin-bottom: 1rem;
    text-align: left;
    padding: 1rem;
    border: 1px solid #3d3d3d20;
    border-radius: 4px;
}

.result:last-of-type {
    margin-bottom: 0;
}

.title {
    font-weight: bold;
    width: fit-content;
    padding: 0.1rem 0.5rem;
    border-radius: 30px;
    border: 2px solid rgb(39, 193, 142);
    font-size: 0.8rem;
    color: rgb(39, 193, 142);
}

.citation {
    font-size: 0.8em;
    color: #666;
    line-height: 2.5;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 1rem
}

.citation a {
    font-size: 1rem;
}

.citation-item {
    padding: 0 0.6rem;
    border: 1px solid #3d3d3d30;
    border-radius: 4px;
    word-break: keep-all;
}

.citation-detail {
    line-height: 1.2;
    /* white-space: nowrap; */
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 0;
}

.ai-summary {
    font-size: 0.9rem;
}

@keyframes ellipsis {
    0% {
        content: '...';
    }
    33% {
        content: '.';
    }
    66% {
        content: '..';
    }
    100% {
        content: '...';
    }
}

.search-status {
    display: none; /* Initially hidden */
    color: #555;
    font-style: italic;
}

.searching-text {
    animation: ellipsis 1.5s infinite;
}
