@import url('https://fonts.googleapis.com/css?family=Lato:wght@400;700;900&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

body {
    align-items: center;
    /* background-color: rgb(10, 177, 219); */
    background-image:
        linear-gradient(21deg,
            rgba(64, 83, 206, 0.3697003234675773) 48%,
            rgba(255, 206, 196, 0.5) 113%),
        linear-gradient(30deg,
            rgba(134, 107, 169, 0.617) 42%,
            rgba(237, 106, 134, 0.5) 89%);
    color: rgb(247, 215, 215);
    flex-flow: column nowrap;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    width: 100vw;
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 450px;
}

.title1 {
    height: 300px;
    font: 20px 'Lato', arial, sans-serif;
}

.note {
    font-size: 0.775rem;
    font-weight: bold;
    text-transform: uppercase;
    color: #6426a7;
}

#search {
    font: 30px 'Lato', arial, sans-serif;
    align-items: center;
    background-color: #9364c5;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    margin: 0.5em 0;
    padding: 0.5em 0.5em 0.5em 1em;
    transition: all 0.5s;
    width: 500px;
}

#search:hover,
#search:focus {
    background-color: #6426a7;
}

#search button,
#search input {
    appearance: none;
    background: transparent;
    border: 0;
    color: inherit;
    font: inherit;
    outline: 0;
}

#search button {
    cursor: pointer;
    padding: 0 0.25em;
}

#search input {
    flex: 1;
}

#search input::placeholder {
    color: rgb(247, 215, 215);
}

#search .spinner {
    animation: spinner 1s infinite linear;
    display: none;
    padding: 0 0.25em;
}

#search.loading button {
    display: none;
}

#search.loading .spinner {
    display: block;
}

@keyframes spinner {
    0% {
        transform: rotate(0deg)
    }

    100% {
        transform: rotate(360deg)
    }
}