*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    font-family: 'Poppins', sans-serif;
    margin-bottom: 40px;
}


.nav-container{
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-name-container{
    display: flex;
    align-items: center;
    gap: 3rem;
    margin: 2rem 0 2rem 4rem
}

.logo{
    color:white;
    background-color: #f72585;
    padding: 0.3rem 1rem;
    border-radius: 6px;
    cursor: pointer;
}

.extra-container{
    display: flex;
    gap: 3rem;
    justify-content: center;
    align-items: center;
    margin: 2rem 4rem 2rem 0rem
}

header h2{
    font-size: 2rem;
}

header h2,form{
    display: flex;
  
    justify-content: center;
    align-items: center;
}

.search-form{
    min-height: 20vh;
    padding: 2rem;
}

.search-form input{
    padding: 0.8rem;
    font-size: 1rem;
    width: 35%;
    border: none;
    background-color: #F7F7F7;
    border-right: none;
    border-radius: 6px;
    border-bottom-right-radius: 0;
    border-top-right-radius: 0;
}

.search-btn{
    font-size: 1rem;
    border: none;

    border-left: none;
    border-radius: 6px;
    padding: 0.8rem;
    background-color: #F7F7F7;
    cursor: pointer;
    border-bottom-left-radius: 0;
    border-top-left-radius: 0;

}

.extra-container button{
    border: none;
    padding: 0.8rem;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 6px;
    background-color: black;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

.extra-container button:hover{
    background-color: #f72585;
    border: none;
    color:white;
    
}

.download-container{
    display: flex;
}

.gallery{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px,1fr));
    row-gap: 5rem;
    column-gap: 3rem;
    padding: 2rem 0rem;
    width: 80%;
    margin: auto;


}



.fetched-images{
    cursor:zoom-in;
   width: 100%;
   height: 100%;
   object-fit: cover;
}



.search-images{
    width:100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

.gallery-image a{
    text-decoration: none;
    list-style: none;
    color: white
}

.download-container{

    display: flex;
    justify-content: space-between;
    align-items: center;
}


.download-icon{
    background-color: #F7F7F7;
    padding: 0.8rem;
    color: black;
    border-radius: 4px;
}

.gallery-image{
    position: relative;
    width:100%;
    height:100%;

}

.overlay-container{
    position: relative;
    height: 100%;
    width: 100%;
}


.download-container{
    position: absolute;
    top: 0;
    bottom: 38rem;
    left: 0;
    right: 0;
    z-index: 1;
    padding: 14px;
    opacity: 0;
  
    transition: opacity .1s, visibility .2s;
}

.gallery-image:hover .download-container {
    opacity: 1;

  }


.gallery-image::after{
    content:'\A';
    position:absolute;
    width:100%; height:100%;
    top:0; left:0;
    background:linear-gradient(to top, transparent 0%, black 100%);
    opacity:0;
    transition: all 0.5s;
    -webkit-transition: all 0.5s ease-out;
}

.gallery-image:hover:after {
    opacity:1;
}

.scroll-button{
    display: flex;
    width: 20%;
    margin: auto;
    flex-direction: column;
}

.more-button, .more-searched{
    border: none;
    cursor: pointer;
    padding: 1rem 2rem;
    background-color: #f72585;
    border-radius: 6px;
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    color: white
}


