body {
    margin: 0px;
    font-family: Arial, Helvetica, sans-serif;
}

 main {
    margin: 25px 50px 75px 50px;
}

/*  navbar   */
#navbar {
  width: 100%;
  /* position: fixed;
  top: 0; */
}

#navbar ul {
    list-style-type: none;
    background: linear-gradient(90deg, #ffffff, #007eed, #522dae, #f40000, #ffffff);
    overflow: hidden;
    padding: 0px;
    margin: 0px;
}

#navbar li {
    float: left;
}

#navbar a {
    text-decoration: none;
    color: black;
    padding: 0.60rem 0.75rem;
    margin: 0.20rem 0.50rem;
    display: block;
    text-align: center;
}

#navbar a:hover {
    background-color: rgba(255, 255, 255, 0.25);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

#navbar-logo {
    border-radius: 75%;      /*  to remove pattened background   */
    width: 50px;
    height: 50px;
    padding-right: 15px;
}


/*  main home page image with welcome text   */
.hero-image {
    background-image: linear-gradient(rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.25)), url("images/bmw-home-page.jpg");
    background-color: #cccccc;
    width: 100vw;
    height: 100vh;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.hero-text {
  text-align: center;
  position: absolute;
  left: 50%;
  top: 35%;
  transform: translate(-50%, -50%);
  color: white;
}

.hero-text h1{
  font-size: 6rem;
  margin-bottom: 0;
}

.hero-text h3{
  font-size: 2rem;
}


/*  about + contact us page form    */
#contact {
    margin-top: 20px;
    width: 40%;
    height: 20%;
    background-color: #C3D7D4;
    margin: 0 auto;
    border-radius: 10px;
}

form {
    width: 80%;
    /* max-width: 500px; */
    /* min-width: 300px; */
    margin: 0 auto;
    padding: 1em 0 2em 0;
}

fieldset {
    border: none;
    padding: 1rem 0;
    border-bottom: 3px solid #91b6b0;
}

label {
    display: block;
    margin: 0.5rem 0;
    font-size: 1rem;
    font-weight: bold;
}

input, textarea {
    margin: 5px 0 10px 0;
    width: 100%;
    min-height: 2rem;
}

textarea {
    margin-bottom: 0px;
    resize: none;
}

#contact-text, #about-text, #catalogue-text {
    text-align: center;
}

#contact-text h1, #about-text h1, #catalogue-text h1 {
    font-size: 3rem;
    margin-bottom: 0;
}

#short-border {
    width: 15%;
    height: 2px;
    background-color: #91b6b0;
    margin: auto;
    margin-bottom: 20px;
}

#contact-text p, #about-text p, #catalogue-text p {
    font-size: 1.15rem;
    margin: 3px;
}


/* Catalogue page */

.car-list {
    width: 100%;
    /* background-color: #1b1b32; */
  }
  /* .car-list {
    height: auto;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    row-gap: 10px;
  } */
  
/*.car-list-item {
    outline-color: #f1be32;
  } */

  #car-list-item {
    width: 90%;
    height: 100%;           
  }

  ul#car-list-item {
    list-style-type: none;
    margin: 0 auto;
    padding: 0;
  }

  .car-item {
    background-color: #C3D7D4;
    display: flex;
    flex-direction: column;
    row-gap: 1rem;
    padding: 1rem 1rem;
    visibility: visible;
    justify-content: start;
    list-style: none;
    color: black;
    border: solid 2px #91b6b0;
    box-shadow: 2.5px 5px #91b6b0;
    border-radius: 10px;
    margin: 1.5rem auto;
  }

  .image-flex {
    display: flex;
  }

  .image-flex img {
    width: 25%;
    height: 10%;
  }

  .image-flex p {
    margin-left: 1rem;
    margin-top: 0;

    font-size: 1.75rem;
    font-weight: bold;
  }

  .image-flex a {
    text-decoration: none;
  }


  /* selected car from catalogue */
  #car-model-info {
    width: 90%;
    height: 100%;                
  }

  ul#car-model-info {
    list-style-type: none;
    margin: 0 auto;
    padding: 0;
  }

  .car-info {
    background-color: #C3D7D4;
    display: flex;
    flex-direction: column;
    row-gap: 1rem;
    padding: 1rem 1rem;
    visibility: visible;
    justify-content: start;
    list-style: none;
    color: black;
    border: solid 2px #91b6b0;
    box-shadow: 2.5px 5px #91b6b0;
    border-radius: 10px;
    margin: 1.5rem auto;
  }

  iframe {
    width: 100%;
    height: 50vh;
  }


  /* Responive web design for mobile devices currently */
  @media screen and (min-width: 320px) and (max-width: 769px) {
    /* navbar */
    #navbar a {
      padding: 0.50rem 0;
      margin: 15px 0.25 15px 0.25;
    }

    #navbar-logo {
      width: 30px;
      height: 30px;
      padding-right: 5px;
    }

    /* index */
    .hero-image {
      background-image: linear-gradient(rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.25)), url("images/bmw-mobile-background.jpg");
      background-position: center;
    }

    .hero-text h1{
      font-size: 3rem;
    }
    
    .hero-text h3{
      font-size: 1rem;
    }

    /* catalogue */
    .car-item {
      padding: 0.5rem 0.5rem;
      margin: 1rem auto;
    }

    .car-info {
      padding: 0.5rem 0.5rem;
      margin: 1rem auto;
    }

    #car-list-item {
      width: 100%;                
    }

    #car-model-info {
      width: 100%;            
    }

    .image-flex p {
      font-size: 1rem;
    }

    /* car info */
    iframe {
      width: 100%;
      height: 30vh;
    }

    /* contact us */
    #contact {
      width: 100%;
    }
  }

  @media screen and (min-width: 770px) and (max-width: 1300px) {
    #contact {
      width: 70%;
    }
  }