body {
    margin:0;
}

html {
    scroll-behavior: smooth;

}

.fakeBody{
    font-family: 'Raleway';
    font-size : 16px;
    display: flex;
    max-width: 1400px;
    flex-wrap: wrap;
    margin: auto;
    justify-content: space-around;
}

 /* Here we manage the header */

header{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    flex-basis: 100%;
}

#header{
    flex-basis: 80%;
}

#header img{
    width: 61px;
    height:  19px;
    margin-left: 20px;
    margin-top: 44px;
}

nav{
    display: flex;
    flex-basis: 20%;
}

nav a{
    display: flex;
    flex-direction: row;
    flex-basis: 50%;
    list-style-type : none;
    color: black;
    text-decoration: none;
    padding-top: 48px;
    padding-bottom: 48px;
    justify-content: center;
}

nav a:hover{
    color: #0065FC;
    box-shadow: inset 0 2px #0065FC;
}

 /* Search engine management */

#search{
    display: flex;
    flex-direction: column;
    flex-basis: 100%;
    margin-left: 20px;
    margin-bottom: 20px;
}

h2{
    font-size: 22px;
}

h3{
    font-size: 16px;
}

h4{
    font-size: 14px;
}

#search_location{
    flex-basis: 50%;
    padding: 0.75rem;
    border : none;
    font-size: 18px;
    font-weight: bold;
}

#search_logo{
    margin: 13px;
    margin-top: 13px;
}

#search form{
    display: flex;
}

#search_tool{
    display: flex;
    flex-direction: row;
    font-size: 18px;
    margin-top: 20px;
    background-color: #F2F2F2;
    height: 49px ;
    border-radius: 15px;
    flex-basis: 24%;
}

#button_normal{
    background-color: #0065FC;
    border: 0;
    color: white;
    font-size: 18px;
    padding: 0.8rem;
    flex-basis: 30%;
    border-radius: 0 15px 15px 0;
    font-weight: bold;
}

#button_mobile{
    display: none; 
}

 /* Here we manage the filters of the search engine */

#search ul{
    list-style-type : none;
    margin-left: -35px;
    display : flex;
    font-size: 17px;
}

#search li{
    margin-right:4%;
    font-weight : bold;
    font-size: 18px;
    display: block;
    padding: 0.4rem 0rem;
}

#search li+li{
    padding: 0.4rem 1rem;
    text-decoration: none;
    border: 2px solid #F2F2F2;
    border-radius: 18px;
}

#search li+li:hover{
    background-color: #DEEBFF;   
}

#search a{
    text-align: center;
    color: black;
    text-decoration: none;
}

.button_filter i{
    color: #0065FC;
}

.logo-info{
    vertical-align: middle;
    font-size: 0.7em;
}

.color-blue{
    color: #0065FC;
}

.color-grey{
    color: #F2F2F2;
}

.logo-information{
    display: inline;
}

/* Management of search results */

#search_results{
    flex-basis: 60%;
    display: flex;
    background-color: #F2F2F2;
    border-radius: 20px;
    flex-direction: row;
    padding :0.2em 1.5em;
    flex-wrap: wrap;
    justify-content: space-around;
}


#search_results h2, h4{
    flex-basis: 100%;
    padding-left: 20px;
}

#search_results a{
    Color: black;
    text-decoration: none;
}

#results{
    display: flex;
    flex-basis: 100%;
    justify-content: space-around;
    flex-wrap: wrap;
}

#results a{
    flex-basis: 30%;
    margin-bottom: 20px;
    background-color: white;
    border-radius: 20px;
}

.description_results{
    margin-left: 16px;
    line-height: 29px;
}

.search_proposal h3{
    display: inline;
}

.search_proposal img{
    width : 100%;
    height: 124px;
    border-radius: 20px 20px 0px 0px;
    border: 5px solid #FFFFFF;
    object-fit: cover;
    box-sizing: border-box;
}

.blue_star{
    display: inline;
    color: #0065FC; 
}

.grey_star{
    display: inline;
    color: #F2F2F2; 
    margin-left: -5px;
}

/* Management of popular panel*/

#popular{

    flex-basis: 27%;
    background-color: #F2F2F2;
    border-radius: 20px;
    padding :0.2em 1.5em;
    display: flex;
    flex-direction: column;
}

#popular_results{
    display: flex;
    flex-basis: 100%;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
}

#popular_results a{
    flex-basis: 95%;
    background-color: #FFFFFF;
    border-radius: 20px;
    margin-bottom: 33px;
}

#popular a{
    color: black;
    text-decoration: none;
}

#popular_title{
    flex-basis: 100%;
    display: flex;
    margin-left: 15px;
    justify-content: space-between;
}

#popular_title i{
    color:#0065FC;
    font-size: 20px;
    flex-basis: 10%;
    margin-top: 25px;
}

#popular_title h2{
    flex-basis: 90%;
}

.popular_price{
    margin-top: 7px;
}

#popular img{
    width: 40%;
    height: 134px;
    border-radius: 20px 0px 0px 20px;
    border: 5px solid white;
    object-fit: cover;
}

.popular_proposal{
    height: 144px;
    display: flex;
}

.popular_misc{
    margin-right: 10px;
    margin-top: 15px;
}

.popular_description{
    margin-left:10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-bottom: 5px;
}

.popular_description h4{
    display: inline;
    margin-left: -20px;
}

/* Processing the activities section*/

#activities{
    flex-basis: 97%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    flex-direction: row;
}

#activities a{
    text-decoration: none;
    color: black;
    border-radius: 15px;
    box-shadow: 5px 10px 10px #F2F2F2;
    flex-basis: 20%;
    align-items: stretch;
}

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

#activities h3{
    padding-left: 15px;
    margin-right: 15px;
    margin-top: 10px;
}

#activities img{
    width: 100%;
    height: 339px;
    border-radius: 20px 20px 0px 0px;
    object-fit: cover;
}

/* Ending with footer management*/

footer{
    margin-top:60px;
    flex-basis: 97%;
    display: flex;
    background-color: #F2F2F2;
}

footer h3{
    font-size: 18px;
}

footer a{
    text-decoration: none;
    color: black;
}

footer ul{
    list-style-type : none;
    margin-left: 10%;
    margin-top: 45px;
    margin-right: 10%;
}

footer li{
    margin-bottom:10px;
}

@media screen and (max-width: 992px){

    #header{
        flex-basis: 70%;
    }

    header{
        flex-basis: 90%;
    }

    #header img{
        margin-left: 0px;
    }
    
    nav{
        flex-basis: 30%;
    
    }
    
    #search_tool{
        flex-basis: 24%;
    }

    #search{
        flex-basis: 92%;
    }

    #search li{
        margin-right:1%;
    }
    
    #search_results{
        flex-basis: 86%;
        margin:auto;
        font-size: 15px;
    }

    #popular{
        flex-basis: 86%;
        margin:auto;
        margin-top:56px;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-around;
    }

    .popular_misc{
        font-size: 14px;
    }

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

    #activities{
        flex-basis: 92%;
    }

    #activities img{
        height: 211px;
    }

    footer{
        flex-basis: 92%;
    }

    footer ul{
        margin-top: 15px;
        margin-left: 2%;
        margin-right: 1%;
    }

}

@media screen and (max-width: 812px){
    #search li{
        font-size: 16px;
    }
}

@media screen and (max-width: 768px){

    header{
        flex-direction: column;
        justify-content: center;
        order:1;
        flex-basis: 100%;
    }

    #header{
        display: flex;
        flex-basis: 100%;
        justify-content: center;
    }

    nav{
        flex-basis: 100%;
    }

    nav a{
        flex-basis: 50%;
        padding-bottom: 25px;
        box-shadow: inset 0 -2px #DEEBFF;
    }

    nav a:hover{
        color: #0065FC;
        box-shadow: inset 0 -2px #0065FC;
    }

    #search{
        order:2;
        margin-right: 20px;
    }

    #button_mobile{
        display: flex;
        background-color: #0065FC;
        border: 0;
        color: white;
        padding: 1.1rem;
        width: 20px;
        justify-content: center;
        border-radius: 0 15px 15px 0;
        font-weight: bold;
    }

    #search_logo{
        width: 15px;
    }

    #button_normal{
        display: none;
    }

    #search_location{
        flex: 1;
    }

    #search_tool{
        flex-basis: 100%;
    }

    #search li{
        flex-basis: 100%;
    }
    
    #search li+li{
        font-size: 11px;
        text-align: center;
        flex-basis: 38%;
        margin-top:10px;
    }

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

    #filters{
        flex-basis: 100%;
    }

    #search_results{
        flex-basis: 100%;
        background-color: #FFFFFF;
        order: 4;
    }

    #results a{
        flex-basis: 90%;
        box-shadow: 5px 10px 10px #F2F2F2;
    }


    #popular{
        flex-basis: 100%;
        border-radius: 0;
        order: 3;
        margin-top: 0px;
        justify-content: center;
    }


    #popular_results a{
        flex-basis: 90%;
    }

    #activities{
        order:5;
    }

    .activity_porposal{
        flex-basis: 100%;
        height: 190px;
        margin-bottom: 30px;
    }
    
    #activities{
        flex-basis: 80%;
    }

    #activities a{
        flex-basis: 100%;
        margin-top: 25px;
    }
    
    #activities img{
        height: 134px;
    }


    footer{
        order:6;
        flex-basis: 100%;
        flex-direction: column;
    }

    footer ul{
        margin-left: 15px;
    }

}

.backNavBar {
    position: sticky;
    position: -webkit-sticky;
    z-index: 2;
    margin: 0;
    padding: 0;
    top: 0;
    height: 50px;
    width: 100%;
    background: #191825;
}

.backNavBar img {
    height: 45px;
    position: absolute;
    top: 3px;
    right: 10%;
}

.backButton {
    position: absolute;
    top: 15px;
    left: 10%;
    width: 15px;
    height: 15px;
    transform: rotate(-45deg);
    border-top: 4px solid #865DFF;
    border-left: 4px solid #865DFF;
}