@import url('https://fonts.googleapis.com/css2?family=Open+Sans&display=swap');



/* adding fonts */

*
{
    font-family: 'Open Sans', sans-serif;
}


/* Box sizing rules */
*,
*::before,
*::after {
  box-sizing: border-box;
}
*{
    box-sizing: border-box;
}
/* Remove default margin */
body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role='list'],
ol[role='list'] {
  list-style: none;
}

/* Set core root defaults */
html:focus-within {
  scroll-behavior: smooth;
}

/* Set core body defaults */
body {
  min-height: 100vh;
  text-rendering: optimizeSpeed;
  line-height: 1.5;
  text-align: center;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
  text-decoration-skip-ink: auto;
}

/* Make images easier to work with */
img,
picture
{
  max-width: 100%;
  display: block;
}

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
  font: inherit;
}
input{
    width: 100%;
    margin-bottom: 0.2em;
}
/* having padding from wright and left to avoid touching the text on the sides */ 
.container{
    /* margin-right: 0.5em;
    margin-left: 0.5em; */
}
/* Remove all animations, transitions and smooth scroll for people that prefer not to see them */
@media (prefers-reduced-motion: reduce) {
  html:focus-within {
   scroll-behavior: auto;
  }
  
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* navigation layout  */
.nav-container{
    background-color: #282828;
    color: white;
    padding:0.3em 0 0.3em 0.3em;
}
ul{
    list-style: none;
    display: flex;
    gap:10px;
    margin: 0;
    padding: 0;
}
/* intro section layout */
.intro-container{
background-image: url("images/pexels-sheila-731217.jpg");
background-size: cover;
background-repeat: no-repeat;
color: white;
padding: 0.5em 0.5em 0.5em 0.5em;
}
.intro-container span{
    color: #5FFF45D4;
}
.intro-container button{
    background-color: #5FFF45D4;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.3s;
}

.intro-container button:hover
{
    background: #4ba13ed4;
}

/* main-section layout */
.main-container{
    background-color:whitesmoke;
    padding: 0.5em 1.8em 3.5em 1.8em;
}
.main-container input::placeholder{
    font-weight:400;
    color: black;
    padding-left: 2em;
}
form{
    position:relative
}
.location-btn-from,
.location-btn-to
{
    position: absolute;
    top:0;
    background: none;
    border: none;
}
.location-btn-from
{
    left:10px;
}
.location-btn-to{
    left: 10px;
    top:33px;
}
.date-economy{
    display: flex;
    gap:10px;
}
.date-economy select{
    height: 1.8em;
}
select{
    width: 100%;
}
.main-container input{
    background: #FFFFFF;
    border-radius: 10px;
    outline: none;
    border: 1px solid black;
}
.search-btn{
    background: #4fd439;
    border-radius: 10px;
    border:none;
    width: 100%;
    margin-top: 0.2em;
    padding: 0.2em 0 0.2em 0;
    transition: 0.3s;
    color: white;
    cursor: pointer;    
}

.search-btn:hover
{
    background: #559668;
}

.main-section-card{
margin-bottom:1em;
box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
border-radius: 10px;
padding:0.3em;
background-color:whitesmoke;
text-align: left;
cursor: pointer;
transition: 0.3s;
}

.main-section-card:hover
{
    background: rgb(234, 234, 234);
}

.more-searches-btn
{
    background: #4fd439;
    color: white;
    width: 150px;
    height: 50px;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.3s;
    border: none;
    outline: none;
    font-size: 20px;
}

.more-searches-btn:hover
{
    background: #559668;
}

/*  footer section layout   */
footer{
    background-color:#3E3E3E;
    color: white;
    padding: 0.3em 0.5em 4em 0.5em;
}
.footer-cards{
text-align: left;
background: #4A8059;
border-radius: 10px;
padding:0.3em 0.3em 0.7em 0.5em;
margin-bottom: 0.5em;
}
footer h2{
    margin-bottom: 0.5em;
    font-weight: 200;
}
.line{
    border-bottom: 1px solid whitesmoke;
    width: 90%;
    /* margin:2em 1em 0 1em; */
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-top: 20px;
}


#NavOpenBtn
{
    background: transparent;
    border: none;
    outline: none;
    cursor: pointer;
    color: white;
}

#YourRecentSearches
{
    margin-top: 5vh;
}

/* making responsive css for desktop */

@media only screen and (min-width:640px)
{
    .intro-container
    {
        height: 80vh;
        background-position: center center;   
        padding: 30px;
    }

    .intro-container > h2
    {
        font-size: 80px;
        text-align: left;
    }

    .intro-container > p
    {
        font-size: 20px;
        text-align: left;
    }

    .intro-container > button
    {
        width: 200px;
        height: 50px;
        font-size: 20px;
        float: left;
        margin-top: 5vh;
    }

    .nav-container
    {
        height: 60px;
        padding: 20px;
    }

    nav > ul > li:nth-child(2)
    {
        margin-left: 20px;
    }


    .main-container > h3
    {
        font-size: 50px;
    }

    .main-container > form > input
    {
        width: 50%;
        height: 40px;
        margin-top: 10px;
    }

    .date-economy > input
    {
        width: 25%;
        display: block;
        margin-left: auto;
        margin-right: 1px;
        height: 40px;
        margin-top: 10px;
    }

    .date-economy > select
    {
        width: 25%;
        margin-left: 1px;
        margin-right: auto;
        height: 40px;
        margin-top: 10px;
        border-radius: 10px;
        border: 1px solid black;
    }

    .passengers
    {
        width: 50%;
        height: 40px;
        margin-top: 10px;
    }

    .search-btn
    {
        width: 50%;
        height: 40px;
        margin-top: 10px;
    }

    .location-btn-from,.location-btn-to
    {
        display: none;
    }

    #YourRecentSearches
    {
        font-size: 30px;
        text-align: left;
        margin-top: 5vh;
        margin-left: 10%;
    }

    .main-section-card
    {
        width: 25%;
        margin-top: 5vh;
        display: inline-block;
        margin-left: 20px;
    }

    footer > h2
    {
        font-size: 40px;
    }

    .footer-cards
    {
        width: 30%;
        display: inline-block;
    }

    
}