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

body {
    background-image: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    display: flex;
    justify-content: center;
    align-items: center;

    flex-direction: column;

}

main {
    width: 80%;
    height: 100%;
    min-height: 100vh;

    display: flex;
    align-items: center;
    flex-direction: column;
}




.container {
    width: 100%;
    height: 100%;
    margin: 50px 0;

    display: flex;
    justify-content: center;
    align-items: center;

    flex-direction: column;
}

.container img {
    width: 50px;
    height: 50px;
}

.container h3 {
    color: #212121;
    margin: 20px 0;
}

.form-input {
    outline: none;
    border: none;
    border-radius: 10px;

    padding: 5px 10px;
}

.form-input:focus {
    border: 2px solid #4169e1;
}

.submit-btn {
    outline: none;
    border: none;

    padding: 5px 10px;
    border-radius: 10px;

    cursor: pointer;
    transition: .4s;
}





.results {
    width: 100%;
    height: 100%;

    display: flex;
    justify-content: center;
    align-items: center;
}

.articles {
    width: 100%;
    height: 100%;
    display: grid;

    grid-gap: 1rem;
    grid-template-columns: repeat(3, 1fr);
}

.articles a {
    display: inline-block;
    padding: 1.5rem 2rem;
    text-decoration: none;

    transition: .4s;
    border-radius: 10px;
}

.articles a h4 {
    color: #212121;
    text-transform: capitalize;
    font-size: 24px;
}

.articles a p {
    color: #64748b;
    margin-top: 20px;
}

.articles a:hover {
    color: #64748b;
    background: #212121;
}

.articles a:hover h4 {
    color: #f5f7fa;
}




.error {
    text-align: center;
}



.loading {
    width: 6rem;
    height: 6rem;
    border: 5px solid #94a3b8;

    border-radius: 50%;
    border-top-color: #645cff;
    animation: spinner 0.6s linear infinite;

    margin: 0 auto;
    margin-top: 4rem;
}


@keyframes spinner {
    to {
        transform: rotate(360deg);
    }
}