body {
    margin: 0;
    height: 100vh;
    background: linear-gradient(135deg, #020617, #0f172a);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-image: url(back.jpg);
    background-repeat: no-repeat;
    background-size: cover;
}

.search-page {
    background-color: #15317eef;
    border-radius: 30px;
    width: 500px;
    height: max-content;
    margin: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0px 0px 100px #2f66ff;
}

.search-container {
    width: 400px;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.search-container h1 {
    margin-bottom: 20px;
}

#searchInput {
    width: 100%;
    padding: 12px;
    font-size: 18px;
    border-radius: 8px;
    border: none;
    outline: none;
    box-sizing: border-box;
}

#results {
    list-style: none;
    padding: 0;
    margin-top: 10px;

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;

    max-height: 300px;   /* zamiast height: 100% */
    overflow-y: auto;

    scrollbar-width: none;
}

#results {
    overflow-y: auto;
    scrollbar-width: none;      /* Firefox */
    -ms-overflow-style: none;   /* IE/Edge */
}

#results::-webkit-scrollbar {
    display: none;              /* Chrome/Safari */
}


#results li {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #070f36;
    padding: 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
    text-align: center;
    height: 40px;
}

.results-wrapper {
    position: relative;
    flex: 1;
    overflow: hidden;
}

#results li:hover {
    background-color: #1e293b;
}

.results-wrapper::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;

    pointer-events: none;

    background: linear-gradient(
        to bottom,
        rgba(21, 49, 126, 0) 0%,
        rgba(21, 49, 126, 1) 100%
    );
}
