@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Serif:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700&family=Josefin+Sans:ital,wght@0,100..700;1,100..700&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

* {
    font-family: "Josefin Sans";
}

body {
    background-color: #f7f7fa;
    margin: 0;
}

#heading {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: sticky;
    padding: 20px;
    background-color: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    top: 0;
    z-index: 10;
}

.title {
    font-size: 3rem;
    color: rgb(53, 53, 153);
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: "IBM Plex Serif";
    margin-top: 0;
}

.title span {
    font-size: 1.25rem;
    margin-top: 10px;
    font-weight: 600;
    color: black;
}

.searchBar {
    width: 350px;
    font-size: 1.15rem;
    padding: 13px;
    border-radius: 40px;
    border: 1px solid #d1d1e0;
    outline: none;
    transition: border 0.2s;
    background-color: #f9f9ff;
}

.searchBar:focus {
    border: 1.5px solid #2d2d6a;
}   

.searchBar::placeholder {
    user-select: none;
}

#suggestions {
    width: 350px;
    padding: 0;
    position: absolute;
    background-color: white;
    padding: 0 10px 0 10px;
}

#suggestions li {
    height: 40px;
    width: 95%;
    font-size: 105%;
    list-style-type: none;
    background-image: linear-gradient(90deg, #e0c3fc 0%, #8ec5fc 100%);
    margin-bottom: 2px;
    border-radius: 10px;
    padding: 5px 10px 5px 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background-image 0.3s;
}

#suggestions li:hover {
  background-image: linear-gradient(90deg, #c2b5ec 0%, #6ca8f1 100%);
}

main {
    display: grid;
    grid-template-columns:repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin: 40px 20px 40px 20px;
}

main * {
    user-select: none;
}

main div {
    height: 150px;
    background-image: linear-gradient(90deg, #ffe29f 0%, #ffa99f 100%);;
    border-radius: 20px;
    padding: 20px;
    transition: all 0.1s;
    box-shadow: 1px 1px 10px black;
}

main div h1 {
    margin: 0;
    font-family: "IBM Plex Serif";
    font-size: 1.75rem;
    line-height: 95%;
}

main div p {
    font-size: 1.25rem;
}

main div p span {
    color: transparent;
    background-image: linear-gradient(90deg, #7361ae 0%, #0e20e0 100%);
    background-clip: text;
    user-select: pointer;
}

main div:hover {
    transform: scale(1.05);
    box-shadow: 0px 0px 0px black;
}
