* {
    padding: 0;
    margin: 0;
}

body {
    font-family: 'Roboto Mono', monospace;
    background-color: rgb(57, 31, 85);

}

.container {
    display: grid;
    justify-content: center;

}

/* -------INPUT--------- */

.nav {
    display: flex;
    background: linear-gradient(45deg, rgb(57, 31, 85), rgb(31, 14, 49));
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    color: white;
    font-size: 1.5rem;
    position: fixed;
    padding: 70px 60px 30px 60px;
    right: 0px;
    left: 0px;
}

form {
    display: flex;
}


/* -------PHOTOS--------- */

main {
    background: linear-gradient(110deg, rgb(67, 112, 167), rgb(37, 46, 34));
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 118px;

}

article {
    padding: .5rem;
    color: white;
    background-size: cover;
    background-position: center;
    text-shadow: 2px 2px 4px #000000;
    width: 20rem;
    height: 15rem;
    align-content: flex-end;
    display: grid;
}

article a {
    color: white;
    text-decoration: none;
}

footer {
    background-color: rgb(53, 50, 45);
    color: white;
    display: flex;
    flex-direction: column;
 
}

.search-box {
    display: flex;
    flex-direction: row;
    align-items: baseline;
}

.search-box input[type="text"] {

    position: relative;
    width: 1000%;
    height: 2rem;
    margin-left: 5rem;
    font-size: 1rem;
    padding: .75rem;
    font-family: inherit;
    font-size: 1.5rem;
    color: #daa520;
    background: none;
    border: 1px solid white;
    border-radius: 7px 0 0 5px;
    outline: none;

}

.search-box input[type="submit"] {

    position: relative;
    width: 20%;
    height: 3.6rem;
    font-size: .5rem;
    font-family: inherit;
    font-size: 1.5rem;
    padding: .5rem;
    color: none;
    background: coral;
    border: none;
    border-radius: 0 7px 7px 0;
    outline: none;
}

input[type="submit"]:hover {
    position: relative;
    width: 20%;
    height: 3.6rem;
    font-size: .5rem;
    font-family: inherit;
    font-size: 1.5rem;
    color: none;
    background: rgb(145, 48, 12);
    border: none;
    border-radius: 0 7px 7px 0;
    outline: none;
}





@media screen and (max-width: 807px) {
    .container {
        max-width: none;
    }

    .nav h2 {

        position: sticky;
    }

    form {
        display: flex;

        padding-right: 50px;
    }

    main {

        margin-top: 100px;

    }

    .nav {
        display: flex;
        background-color: rgb(57, 31, 85);
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        color: white;
        font-size: .8rem;

        margin: 0;
        top: 0;
        left: 0;
        padding: 30px 15px 30px 0;
    }


    .search-box input[type="text"] {

        position: relative;
        width: 300%;
        height: 1rem;
        margin-left: 2rem;
        font-size: .4rem;
        padding: .75rem;
        font-family: inherit;
        font-size: 1.5rem;
    }

    .search-box input[type="submit"] {
        position: relative;
        width: 20%;
        height: 2.6rem;
        font-size: .5rem;
        font-family: inherit;
        font-size: 1rem;
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
    }

    input[type="submit"]:hover {
        position: relative;
        width: 20%;
        height: 2.6rem;
        font-size: .5rem;
        font-family: inherit;
        font-size: 1rem;
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
    }

    footer {
        padding: 10px;
     
    }
}
@media screen and (max-width: 585px) {
    footer {

        padding: 10px;
         }
}