@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&family=Tilt+Neon&family=Ubuntu:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Anta&family=Noto+Sans:ital,wght@0,100..900;1,100..900&display=swap');
@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;600;700&display=swap");


/* *************************Body**************************** */
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    list-style: none;
}

/* **************************Navbar*********************** */
nav {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    padding: 10px 0px;
    box-shadow: 0px 0px 5px grey;
}

.logo {
    font-family: "Anta", sans-serif;
    font-weight: 600;
    font-style: normal;
    font-size: 25px;
    color: black;
}

.logo span{
    color: royalblue;
}

nav ul {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
}

nav ul li {
    margin: 0px 15px;
}

nav ul li a{
    color: black;
    font-family: "Noto Sans", sans-serif;
    font-weight: 500;
    font-size: 18px;
    font-weight: 600;
}

nav ul li a:hover{
    text-decoration: underline;
    color: royalblue;
    transition: all ease-in-out 0.2s;
}

body{
    line-height: 1.5;
}


/* *****************************Heading and Search*************************** */
h1{
    font-size: 36px;
    text-align: center;
    margin: 40px 0px;
    font-family: 'Ubuntu', sans-serif;
}

form{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

#search-input{
    width: 60%;
    max-width: 500px;
    font-size: 18px;
    padding: 10px;
    border: none;
    border-radius: 5px 0px 0px 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.333);
}

#search-btn{
    font-size: 18px;
    padding: 10px;
    background-color: #138065;
    color: white;
    border: none;
    border-radius: 0px 5px 5px 0px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.333);
    cursor: pointer;
}

#search-btn:hover{
    background-color: #0e6d55;
    transition: all ease-in-out .3s;
    transform: scale(1.1);
}

/* **************************Image Container************************ */
.container{
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    margin: 30px 70px;
}

.image-box{
    display: flex;
    flex-direction: column;
    width: 30%;
    height: 300px;
    overflow: hidden;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
    border-radius: 5px;
    margin-bottom: 50px;
}

.image-box img{
    width: 100%;
    max-height: 220px;
    object-fit: cover;
}

.image-box:hover img{
    transition: opacity ease-in-out 0.3s;
    opacity: 0.8;
    cursor: pointer;
}

.image-box:hover a{
    text-decoration: underline;
}

.image-box a{
    text-decoration: none;
    color: black;
    cursor: pointer;
    text-align: center;
    padding: 10px;
    display: block;
    text-transform: capitalize;
    font-family: 'Lato', sans-serif;
}

#show-btn{
    font-size: 18px;
    padding: 10px;
    background-color: #008cba;
    color: white;
    border: none;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.333);
    cursor: pointer;
    text-align: center;
    margin: 50px auto;
    display: none;
}

#show-btn:hover{
    background-color: #006c91;
    transition: all ease-in-out 0.3s;
    transform: scale(1.1);
}


/***********************Footer***********************/
footer{
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: baseline;
    padding: 20px 0px;
    box-shadow: 0px 0px 5px grey;
}

footer h3, h4{
    font-family: "Noto Sans", sans-serif;
    color: royalblue;
}

footer p{
    color: rgba(0, 0, 0, 0.9);
    font-family: "Noto Sans", sans-serif;
    margin: 5px 0px;
    padding: 0;
}

footer ul li a{
    color: rgba(0, 0, 0, 0.9);
    font-family: "Noto Sans", sans-serif;
}

footer ul li{
    margin: 5px 0px;
}



/* ************************Responsive************************** */
@media screen and (max-width: 1150px){
    .image-box{
        width: 40%;
    }
}

@media screen and (max-width: 800px){
    .image-box{
        width: 90%;
    }
}

@media screen and (max-width:550px){
    .container{
        margin: 0px;
    }
}

@media screen and (max-width:400px) {
    h1{
        font-size: 30px;
    }
    .image-box{
        width: 100%;
    }
}

@media screen and (max-width: 750px){
    footer{
        flex-wrap: wrap;
    }
    footer ul{
        margin: 0px 10px;
    }
}

@media screen and (max-width: 500px){
    nav{
        flex-direction: column;
    }
    nav .logo{
        margin-bottom: 10px;
    }
    .container a div{
        width: 100%;
        margin: 30px 0px;
    }
    footer{
        flex-direction: column;
        align-items: center;
    }
    footer ul{
        margin: 0;
        padding: 0;
    }
    footer div, ul{
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin: 10px 0px;
    }
}