@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=REM:ital,wght@0,100..900;1,100..900&display=swap');
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

body{
    line-height: 1.6;
    background: linear-gradient(to right, #6a85b6 0%, #bac8e0 100%);
}

h1{
    font-size: 46px;
    font-weight: 700;
    text-align: center;
    margin: 40px 0 20px 0;
    font-family: "REM", "Poppins", sans-serif;
    color:#14324e;
    text-shadow: rgba(58, 90, 122, 0.3) 3px 3px;
}



form{
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0px 20px 10px 20px;
}

#search-input{
    width: 60%;
    max-width: 400px;
    padding: 10px 20px;
    border: none;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    font-size: 18px;
    color: #333;
}


.search-results{
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}


  .search-result{
    margin-bottom: 60px;
    width: 30%;
    height: 100%;
    border-radius: 5px;
    box-shadow: 0 10px 20px -8px rgba(0, 0, 0,.7);
    overflow: hidden;
}

.search-result img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.2s ease-in-out;
}

.search-result:hover img{
    opacity: 0.8;
}

.search-result a{
    font-size: 15px;
    text-decoration: none;
    color: #333;
    display: block;
    padding: 7px;
    text-transform: capitalize;
}


#search-button{
    cursor: pointer;
    border-radius: 6px;
    background-color: #5ca1e1;
    border: none;
    color: #fff;
    text-align: center;
    font-size: 16px;
    padding: 13px;
    width: 110px;
    transition: all 0.5s;
    cursor: pointer;
    margin: 20px;
    box-shadow: 0 10px 20px -8px rgba(0, 0, 0,.7);
    display: inline-block;
    position: relative;
    transition: 0.5s;
}


.btn-show{
    display: flex;
    align-self:center;
    align-items: center;
    justify-content: center;
}
#show-more-button{
    cursor: pointer;
    margin-left: 10px;
    border-radius: 6px;
    background-color: #5ca1e1;
    border: none;
    color: #fff;
    text-align: center;
    font-size: 16px;
    padding: 13px;
    width: 170px;
    transition: all 0.5s;
    cursor: pointer;
    margin: 36px;
    box-shadow: 0 10px 20px -8px rgba(0, 0, 0,.7);
    position: relative;
    transition: 0.5s;
    display: none;
}

button:after {
    content: '»';
    position: absolute;
    opacity: 0;  
    top: 14px;
    right: -25px;
    transition: 0.6s;
  }
  
button:hover{
    padding-right: 24px;
    padding-left:8px;
  }
  
button:hover:after {
    opacity: 1;
    right: 13px;
  }



.no-results-message {
    position: absolute; 
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%); 
    text-align: center; 
    font-size: 20px;
    font-weight: 500;
    color: #333;
}

.scaleImg {
    position: fixed;
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%); 
    max-width: 50%; 
    max-height: 50vh; 
    object-fit: contain; 
    opacity: 1 !important; /* Ensure opacity is set to 1 */
    z-index: 10;
    cursor: zoom-out;
}


  @media screen and (max-width: 1400px) {
    .search-results{
        padding: 20px;
    }
    .scaleImg {
        max-width: 90%; 
        max-height: 90vh; 
    }
  }

  @media screen and (max-width: 450px) {
    #search-input{
        font-size: 14px;
    }
    h1{
        font-size: 26px;
    }
    
  }

