@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap");

:root {
    --first-hue: 187;
    --sat: 73%;
    --lig: 39%;
    --second-hue: 219;
    --first-color: hsl(var(--first-hue), var(--sat), var(--lig));
    --first-color-alt: hsl(var(--first-hue), var(--sat), 71%);
    --second-hue: 219;
    --title-color: hsl(var(--second-hue), 15%, 15%);
    --text-color: hsl(var(--second-hue), 8%, 35%);
    --body-color: hsl(206, 100%, 96%);
    --container-color: #fff;
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 1.2rem;
    background-color: var(--body-color);
    padding: 2rem;
}

.quote-wrapper {
    background-color: var(--container-color);
    border-radius: 20px;
    padding: 4rem 1.5rem;
    box-shadow: 0px 2px 15px -5px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    width: 100%;
}

.swipe {
    font-size: 13px;
    margin-top: 10px;
    color: #666;
}

.quote-wrapper h2 {
    color: var(--first-color);
    margin-bottom: 0.5rem;
}

.quote-wrapper blockquote {
    padding: 1.5rem 0;
    font-weight: 300;
}

.quote-wrapper cite {
    display: block;
    margin-bottom: 1rem;
    font-size: medium;
}

.search {
    margin-top: 1rem;
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 400px;
}

#search-author {
    padding: 10px 20px;
    border: 1px solid #ccc;
    border-radius: 20px;
    padding-right: 60px;
    outline: none;
    font-size: 16px;
    width: 100%;
    box-sizing: border-box;
}

#search {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 100%;
    border: none;
    background-color: transparent;
    border: 2px solid var(--first-color);
    border-radius: 20px;
    padding: 0 20px;
    cursor: pointer;
    outline: none;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#search:hover {
    background-color: var(--first-color-alt);
}

#search img {
    width: 30px;
    height: 30px;
}

@media (max-width: 768px) {
    .quote-wrapper {
        padding: 3rem 1rem;
    }

    body {
        font-size: 1rem;
        padding: 1.5rem;
    }

    .search {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .quote-wrapper {
        padding: 2rem 1rem;
    }

    body {
        font-size: 0.9rem;
        padding: 1rem;
    }

    .search {
        max-width: 90%;
    }

    #search-author {
        padding-right: 50px;
        font-size: 14px;
    }

    #search {
        font-size: 14px;
        padding: 0 15px;
    }

    #search img {
        width: 25px;
        height: 25px;
    }
}
