.poppins-thin {
    font-family: "Poppins", serif;
    font-weight: 100;
    font-style: normal;
}
  
* {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
}

body {
    background: #39297b;
    color: #fff;
}

h1 {
    text-align: center;
    margin: 100px auto 50px;
    font-weight: 600;
    font-size: 2rem; /* Scalable font size */
}

h6 {
    text-align: center;
    margin: 10px;
    font-weight: lighter;
    color: rgb(8, 234, 23);
    font-size: 0.9rem; /* Adjust font size */
}

form {
    width: 90%;
    max-width: 600px;
    margin: auto;
    height: 80px;
    background: #434989;
    display: flex;
    align-items: center;
    border-radius: 50px;
}

form input {
    flex: 1;
    height: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: #fff;
    font-size: 18px;
    padding: 0 30px;
    font-weight: 300;
}

form button {
    padding: 0 40px;
    height: 100%;
    background: #ff3929;
    color: #fff;
    font-size: 18px;
    border: 0;
    outline: 0;
    border-top-right-radius: 50px;
    border-bottom-right-radius: 50px;
    cursor: pointer;
}

::placeholder {
    color: #fff;
    font-size: 18px;
}

#show-more-btn {
    background: #ff3929;
    color: #fff;
    border: 0;
    outline: 0;
    padding: 10px 20px;
    border-radius: 50px;
    margin: 10px auto 100px;
    cursor: pointer;
    display: none;
}

#search-result {
    width: 80%;
    margin: 100px auto 50px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    grid-gap: 20px; /* Adjust grid gap for smaller screens */
}

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

/* Responsive Styles */
@media (max-width: 768px) {
    h1 {
        font-size: 1.8rem;
        margin: 50px auto 20px;
    }

    form {
        height: 70px;
    }

    form input {
        font-size: 16px;
        padding: 0 20px;
    }

    form button {
        padding: 0 30px;
        font-size: 16px;
    }

    #search-result {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        grid-gap: 15px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.5rem;
        margin: 40px auto 15px;
    }

    form {
        height: 60px;
        border-radius: 30px;
    }

    form input {
        font-size: 14px;
        padding: 0 15px;
    }

    form button {
        padding: 0 20px;
        font-size: 14px;
    }

    #search-result {
        grid-template-columns: 1fr; /* Single column on small devices */
        grid-gap: 10px;
    }

    #search-result img {
        height: 180px; /* Smaller height for images */
    }
}
