body {
    font-family: Arial, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    margin: 0;
    overflow: hidden;
}
/* Apply fade-in animation to the entire page */
body {
    opacity: 0;
    animation: fadeIn 0.5s ease-in forwards;
}

/* Fade-in keyframes */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Moving background effect */
.background {
    position: absolute;
    left: 0;
    width: 100%;
    height: 110%; /* Slightly increased height to cover gaps */
    background-image: url('../assets/img/bg3.jpg'); /* Replace with your image */
    background-size: cover;
    background-position: center top; /* Moves the image up */
    z-index: -1;
}


/* Background Animation */
@keyframes moveBackground {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}
/* Glassmorphism Search Box */
.search-container {
    display: flex;
    align-items: center; /* Keeps input & button in the same row */
    justify-content: center;
    width: 400px;
    height: 250px;
    padding: 40px;
    background: rgba(245, 245, 245, 0.199);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease-in-out;
    gap: 10px; /* Space between input and button */
}

/* Search Input - Line Style */
.search-input {
    width: 100%;
    padding: 5px;
    border: none;
    border-bottom: 2px solid rgba(216, 152, 216, 0.6);
    outline: none;
    background: transparent;
    color: #333;
    font-size: 16px;
    transition: all 0.3s ease-in-out;
    box-shadow: none; /* Removes box shadow */
}

.search-input:focus {
    border-bottom: 2px solid #c458d9;
    background: transparent;
    box-shadow: none;
}

/* Suggestions Box */
.suggestions {
    position: absolute;
    top: 65%; /* Places it directly below the input box */
    left: 20%; /* Aligns it to the left of the input */
    width: auto; /* Adjusts width based on content */
    min-width: 300px; /* Ensures enough space */
    padding-left: 30px;
    padding-top: 20px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 4;
    animation: fadeIn 0.3s ease-in-out;
    overflow: hidden;
    text-align: left; /* Aligns text to the left */
}

.suggestions div {
    padding: 10px;
    cursor: pointer;
    transition: background 0.3s;
    font-size: 14px;
}

.suggestions div:hover {
    background: rgba(0, 187, 255, 0.532);
    color: white;
}

/* Search Button */
.search-btn {
    padding: 8px 15px;
    border: none;
    border-radius: 15px;
    background: rgba(197, 88, 197, 0.909);
    margin-left: 10px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    box-shadow: 0px 4px 10px rgba(114, 197, 206, 0.614);
    white-space: nowrap;
}

.search-btn:hover {
    background: rgba(183, 35, 209, 0.763);
    transform: scale(1.03);
}

/* Fade-in animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
