/****** GENERAL  ***********/

header,
h2,
#search_section {
text-align: center; 
}

main {
    width: 90%;
    margin: 0 auto;
}

/*  HEADER   */

body {
    font-family: 'M PLUS Rounded 1c', sans-serif;
    background-image: url(../photos/bk-img.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    padding-bottom: 50px;
}

header {
    background-color: rgb(0, 0, 0);
    color: #fff;
    
}

h1 {
    margin: 0;
    padding: 22px 0;
}

h2 {
    margin-top: 20px;
    margin-bottom: 10px;
}


/****** SEARCH SECTION  ***********/
#search_section label,
#search_section input {
    margin: 20px auto 10px;
    padding: 5px;
}

#search_section {
    display: flex;
    flex-direction: column;
    border-bottom: 3px solid rgb(146, 146, 146);
    padding-bottom: 10px;
}

#search_section label {
    font-size: 1.3rem;
    font-weight: 600;
}

#string_to_search {
    width: 50%;
    border: 3px solid #000;
    margin-bottom: 20px;
}

/****** PHOTO GALLERY  ***********/

#photo_gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    
}

#photo_gallery h2 {
    flex-basis: 100%;
}

#photo_gallery a {
    margin-top: 15px;
    margin-bottom: 15px;
    flex-basis: 40%;
}

#photo_gallery img {
    width: 100%;
    border-radius: 5px;
}

/****** Search text  ***********/

.search_text {
    display: none;
}


/** MEDIA QUERIES **/

@media (min-width: 700px) {

    #photo_gallery a {
        flex-basis: 30%;
    }

}

@media (min-width: 1100px) {

    main {
        display: flex;
        
    }

    #search_section {
        flex-basis: 40%;
        border-bottom: none;
    }

    #string_to_search {
        width: 65%;
    }

    #search_section label {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.7rem;
        margin-bottom: 20px;
    }

    #photo_gallery {
        flex-basis: 56%;
    }

    

}