* {
    box-sizing: border-box;

    margin: 0px;
    padding: 0px;
    
    /* border: solid 1px black; */

    font-family: "Lato", sans-serif;
    font-weight: 400;
    font-style: normal;
}

body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;

    min-height: 100vh;

    background: linear-gradient(0.25turn, #974bc4, #d7ceda, #974bc4);
}

.header {
    display: flex;
    justify-content: center;
}

.header-container {
    display: flex;  
    justify-content: space-between;

    width: 600px;

    margin: 20px auto;
}

.title {
    font-size: 18px;

    border: 1px solid black;
    color: #000;
    border-radius: 15px;

    width: 20%;
    height: 40px;

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

    text-decoration: none;
    transition: 0.5s;
}

.title:hover {
    color: #fff;
    border-color: #fff;
}

.title:active {
    transform: translateY(2px);
}



form {
    width: 75%;
    height: 40px;

    display: flex;
    justify-content: space-between;
    align-items: center;
    
    padding: 0px 10px;

    border: 1px solid black;
    border-radius: 15px;
}

form input{
    border: 0;
    outline: 0;
    color: #000;
    background: none;

    font-size: 14px;
}

::placeholder {
    color: #000;
}

.my-search {
    border: 0;
    outline: 0;
    background: transparent;

    cursor: pointer;

    transition: 0.5s;

    display: block;
}

.my-search:hover {
    color: #fff;
}

.my-search:active {
    transform: translateY(2px);
}

.cross {
    display: none;

    cursor: pointer;
    transition: 0.5s;
}

.cross:hover {
    color: #fff;
}

.cross:active {
    transform: translateY(2px);
}

.result {
    width: 80%;
    margin: 50px auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-gap: 40px;
}

.result img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    border-radius: 5px;
}

#show-more-btn {
    background: #cd29ff;
    color: #fff;
    border: 0;
    outline: 0;
    padding: 10px 20px;
    border-radius: 4px;
    margin: 10px auto 50px;
    cursor: pointer;

    display: none;
}


.footer {
    margin-top: 20px;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

footer div{
    width: 64px;
    height: 64px;

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

    font-size: 20px;
}

.footer-img {
    width: 64px;
    transition: 0.5s;
}

.footer-img:hover {
    transform: translateY(5px);
}

.github {
    color: #000;
    font-size: 64px;
    transition: color 0.5s;
}

.github:hover {
    color: #fff;
}


@media (max-width: 500px) {

    .title {
        font-size: 12px;
    }

    .result {
        width: 80%;
        margin: 10px auto;
        display: grid;
        grid-template-columns: 1fr;
        grid-gap: 10px;
    }
}