@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;500;900&display=swap');
*{
    margin:0;
    padding:0;
    position: relative;
    box-sizing: border-box;
}
.wrapper{
    width:100%;
    min-height: 100vh;
    display:flex;
    justify-content: center;
    align-items: center; 
    background-color: cornsilk;
}
.container{
    font-family: 'Montserrat', sans-serif;
    width:100%;
    padding:70px;
    border-radius: 30px;
    text-align: center;
    box-shadow: 0px 0px 61px 10px rgba(0,0,0,0.3);
}
.search{
    position: fixed;
    align-items: center;
    border-bottom:2px solid #bebebe;
    z-index:3;
    width:700px;
    left:250px;
}
.search form{
    margin:10px 0;
}

@media only screen and (max-width:700px){
    .search{
        display:flex;
        flex-direction: column;
        left:0;
    }
    .search h1{
        font-size: 30px;
        left:-150px;
    }
    .search form{
        font-size: 30px;
        left:-150px;
    }
    .gallery{
        grid-gap: 55px;
    }
    .search input{
        font-size: 18px;
    }
    .searchIcon{
        font-size: 18px;
    }
}

img{
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
input{
    width:70%;
    outline: none;
    border-bottom: 2px solid rgba(128, 128, 128, 0.5);
    border:none;
    font-size: 30px;
}
input::placeholder{
    color:gray;
    font-weight: 700;
    opacity: .5;
}
form ion-icon{
    font-size: 30px;
    left:10px;
    top:3px;
    opacity: 0.6;
    color:gray;
    cursor: pointer;
}
.gallery{
    display:grid;
    width:100%;
    margin-top:30px;
    grid-gap:40px;
    grid-template-columns:repeat(auto-fit,minmax(250px,3fr));
    padding:1rem;
    margin-top:50px;
    top:5rem;
}
.items{
    width:100%; 
    text-decoration: none;
    height:300px;
    border-radius: 5px;
    overflow: hidden;
    transition: 0.3s linear;
    animation-name: example;
    animation-duration: 1s;
}
@media only screen and (max-width:700px){
    .items{
        width:200px;
    }
}
@keyframes example{
    0%{right:1000px;top:0,background-color red}
    /* 25%{left:800px;top:25%,background-color yellow}
    50%{left:600px;top:50%,background-color blue}
    75%{left:300px;top:75%,background-color pink} */
    100%{right:0px;top:100%,background-color green}
}
.items:hover{
    box-shadow: 0 0 25px 5px #33f155;
}
.items h3{
    position: absolute;
    bottom:-70px;
    font-size: 30px;
}
.items:hover h3{
    width:100%;
    bottom:0;
    font-weight: 300;
    color:white;
    background-color: rgba(0,0,0,0.3);
}

.showMore{
    text-decoration: none;
    cursor: pointer;
    display:inline-block;
    background-color: black;
    color:white;
    font-size: 20px;
    font-weight: 700;
    padding:20px 10px;
    margin-top:90px;
    border-radius: 10px;
    margin-right:5px;
    margin-left:5px;
}
/* @media only screen and (max-width:700px){
    .btnControl{
        left:-20px;
    }
} */


