/* General Styles */
body {
    margin: 0;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(45deg, #1a1a1a, #3a2b1f, #5a3a2f);
    font-family: 'Roboto', sans-serif;
    color: #fff;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
    overflow: hidden;
    position: relative;
}

.container {
    text-align: center;
    width: 100%;
    max-width: 500px;
    position: relative;
    z-index: 10;
}

/* Rain Effect */
.rain-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.raindrop {
    position: absolute;
    width: 2px;
    height: 10px;
    background: rgba(255, 255, 255, 0.3);
    opacity: 0.6;
    animation: fall linear infinite;
}

@keyframes fall {
    from {
        transform: translateY(-10px);
        opacity: 0.6;
    }
    to {
        transform: translateY(100vh);
        opacity: 0;
    }
}

/* Heading */
h1 {
    font-size: 2rem;
    font-weight: 700;
    opacity: 0.8;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    word-wrap: break-word;
    max-width: 100%;
}

/* Search Bar */
.search-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    width: 100%;
    position: relative;
}

input {
    padding: 0.8rem;
    font-size: 1rem;
    border: none;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    outline: none;
    width: 90%;
    max-width: 300px;
    text-align: center;
}

input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Buttons */
button {
    padding: 0.8rem;
    font-size: 1rem;
    border: none;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease-in-out;
    width: 90%;
    max-width: 250px;
    font-weight: bold;
}

button:hover {
    background: rgba(255, 255, 255, 0.3);
}

button:active {
    transform: scale(0.95);
}

.button-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    width: 100%;
    margin-top: 0.5rem;
}


/* Results */
.results {
    margin-top: 1.5rem;
    font-size: 1.2rem;
    opacity: 0.9;
    font-weight: bold;
    word-wrap: break-word;
    max-width: 90%;
    text-align: center;
    padding: 15px 20px;
    background: rgba(50, 50, 50, 0.2);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    line-height: 1.6;
    display: none;
}

/* Suggestions */
.suggestions {
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(50, 50, 50, 0.9);
    border-radius: 10px;
    max-height: 150px;
    overflow-y: auto;
    width: 90%;
    max-width: 300px;
    display: none;
    z-index: 1000;
    text-align: center;
    padding: 5px 0;
}

.suggestion-item {
    padding: 0.8rem;
    font-size: 1rem;
    color: #fff;
    cursor: pointer;
    transition: background 0.3s ease;
}

.suggestion-item:hover {
    background: rgba(255, 255, 255, 0.2);
}

.search-bar {
    position: relative;
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 1.8rem;
    }

    input {
        font-size: 1rem;
        padding: 0.7rem;
        max-width: 280px;
    }

    .button-container {
        flex-direction: column;
        gap: 0.5rem;
    }

    button {
        font-size: 1rem;
        padding: 0.7rem;
        max-width: 280px;
    }

    .results {
        font-size: 1rem;
    }
}