@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@100;300;400;500;600;700;800;900&family=Poppins:ital,wght@0,100;0,200;0,300;1,300&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins',sans-serif;
}

body{
    line-height: 1.6;
}

h1{
    font-size: 36px;
    font-weight: bold;
    text-align: center;
    margin: 40px 0 60px 0;
    color : wheat;
}

form{
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 60px;
}

#search-input {
    width: 60%;
    max-width: 400px;
    padding: 14px 20px;
    border: none;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.2);
    border-radius: 25px;
    font-size: 18px;
    color: #333;
    outline: none;
    transition: box-shadow 0.3s ease;
}

#search-input:focus {
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
}

#search-button {
    display: inline-block;
    margin-left: 10px;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    background-color: grey;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#search-button:hover {
    background-color: #333;
}

.search-results {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.search-result {
    margin-bottom: 40px;
    width: calc(33.33% - 20px); /* Adjusted to create even spacing between items */
    border-radius: 10px; /* Increased border radius for a softer look */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Added transition for transform */
}

.search-result:hover {
    transform: translateY(-5px); /* Add a slight lift on hover */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* Enhanced shadow on hover */
}

.search-result img {
    width: 100%;
    height: auto; /* Allowing aspect ratio to be maintained */
    display: block;
    border-radius: 10px 10px 0 0; /* Rounded corners only at the top */
}

.search-result a {
    display: block; /* Make the link a block element to cover the entire result */
    text-decoration: none; /* Remove underline from the link */
    color: white; /* Inherit text color from the parent */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Transition properties */
}

.search-result a:hover {
    transform: translateY(-5px); /* Lift effect on hover */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* Enhanced shadow on hover */
    color:wheat;
}

.search-result a:focus {
    outline: none; /* Remove default focus outline */
}


#show-more-button {
    background-color: #333;
    font-size: 18px;
    border :none;
    color : #fff;
    padding: 10px 20px;
    text-align: center;
    display: block;
    margin: 30px auto;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s ease;
    display: none;
}

#show-more-button:hover {
    background-color: #444;
    transform: translateY(-3px); /* Adjusted the lift on hover */
}

@media screen and (max-width : 768px) {
    .search-results{
        padding: 20px;
    }
    .search-result{
        width: 45%;
    }
}

@media screen and (max-width : 480px) {
    .search-result{
        width: 100%;
    }
}

body {
    background-image: url('https://img.freepik.com/free-photo/abstract-luxury-gradient-blue-background-smooth-dark-blue-with-black-vignette-studio-banner_1258-54050.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    animation: pulsateBackground 10s infinite alternate; /* Apply the animation */
}

@keyframes pulsateBackground {
    0% {
        background-color: rgba(0, 0, 0, 0.8); /* Initial background color */
    }
    100% {
        background-color: rgba(0, 0, 0, 0.6); /* Final background color */
    }
}


  