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

body {
    background: linear-gradient(135deg, #ffffff 0%, #ffffff 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

.search-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* height: 30vh; */
    padding: 2rem;
    position: relative;
    z-index: 10;
}

.search-wrapper {
    position: relative;
    width: 100%;
    max-width: 600px;
}

.search-input {
    width: 100%;
    padding: 1.5rem 2rem;
    font-size: 1.2rem;
    border: 2px solid #7d7d7d;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    outline: none;
    transition: all 0.3s ease;
    color: #333;
}


.search-input:focus {
    transform: translateY(-2px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 1);
}

.search-input::placeholder {
    color: #999;
    font-weight: 300;
}


.results-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    margin-top: 0.5rem;
    /* max-height: 400px; */
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 1000;
}

.results-dropdown {
    display: none;
}


.results-dropdown a {
    text-decoration: none;
    color: inherit;
}

.results-dropdown.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
    display: block;
}

.result-item {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.result-item:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: translateX(5px);
}

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

.result-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    flex-shrink: 0;
}

.result-content {
    flex-grow: 1;
}

.result-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.3rem;
}

.result-description {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
}

.loading-indicator {
    display: none;
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: translateY(-50%) rotate(0deg);
    }

    100% {
        transform: translateY(-50%) rotate(360deg);
    }
}

.floating-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.shape {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.shape:nth-child(1) {
    width: 80px;
    height: 80px;
    left: 10%;
    animation-delay: 0s;
}

.shape:nth-child(2) {
    width: 120px;
    height: 120px;
    left: 70%;
    animation-delay: 2s;
}

.shape:nth-child(3) {
    width: 60px;
    height: 60px;
    left: 40%;
    animation-delay: 4s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.7;
    }

    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 1;
    }
}

.no-results {
    padding: 2rem;
    text-align: center;
    color: #666;
}

@media (max-width: 768px) {
    .search-container {
        padding: 1rem;
    }

    .search-input {
        padding: 1.2rem 1.5rem;
        font-size: 1rem;
    }

    .search-icon {
        right: 1.2rem;
    }
}



.search-image img {
    min-width: 400px;
    width: 100%;
    height: auto;
    display: block;
    margin: 2rem auto;
}

.search-image img {
    max-width: 400px;
    width: 100%;
    height: auto;
    display: block;
    margin: 2rem auto;
}

@media (max-width: 768px) {
    .search-image {
        width: 100%;
    }

    .search-image img {
        width: 90%;
        min-width: auto;
        margin: auto;
        object-fit: contain;
        overflow: hidden;
        overflow-y: hidden !important;
        margin-top: 100px;
    }
}

.results-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    margin-top: 0.5rem;
    max-height: calc(100vh - 40px - 100% - 0.5rem); /* viewport height minus space from top of dropdown and bottom margin */
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 1000;
}

.results-dropdown::-webkit-scrollbar {
    display: none;
}


.results-dropdown.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
    display: block;
}
