/* Universal Styles */

html {
  font-size: 18px;
}

body {
  font-family: "Helvetica", sans-serif;
  line-height: 1.4;
}

h1,
h4 {
  font-weight: bold;
}

.container {
  max-width: 960px;
  margin: 0 auto;
}

/* Company Header */

.company {
  background-color: black;
  color: white;
}

.company .container {
  display: flex;
  align-items: center;
  padding: .66rem 0 .66rem 0.5rem;
}

.company img {
  height: 1.5rem;
  padding-right: 1rem;
}

/* Main Banner */

.main-banner {
  background: url("https://s3.amazonaws.com/codecademy-content/courses/freelance-1/unit-5/moto.jpeg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  height: 25rem;
}

.headline {
  position: relative;
  top: 9rem;
  width: 20rem;
  padding: 2rem 3rem;
  background-color: black;
  color: white;
}

.headline h1 {
  margin: 0.25rem 0;
  font-size: 2rem;
  line-height: 1.2;
}

@media only screen and (max-width: 470px) {
  .main-banner {
    height: 15rem;
  }

  .headline {
    width: 100%;
    padding: 1rem 2rem;
    top: 10rem;
  }

  .headline h4 {
    font-size: .77rem;
  }

  .headline h1 {
    font-size: 1rem;
  }
}

/* Navigation Bar */

nav {
  background-color: firebrick;
  color: white;
}

nav ul {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}

.mobile-nav {
  display: none;
}

@media only screen and (max-width: 1024px) {
  nav ul {
    display: none;
  }

  .mobile-nav {
    display: block;
    text-align: center;
  }
}

/* Products and Business Information Section */

.products,
.business-info {
  display: flex;
  justify-content: space-between;
  margin-top: 3rem;
}

.product {
  width: 30%;
}

.product-image {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 9rem;
  padding: 2rem 0;
  border: 4px solid black;
}

.product-image img {
  max-width: 8rem;
}

.description {
  display: block;
  padding: 0.5rem;
  background-color: black;
  text-align: center;
  color: white;
}

.info {
  width: 35%;
}

.info .title {
  display: block;
  padding: 1rem 2rem;
  background-color: black;
  color: white;
}

@media only screen and (max-width: 1024px) {
  .product {
    width: 47%;
  }

  .product.glasses {
    display: none;
  }
}

@media only screen and (max-width: 470px) {
  .products,
  .business-info {
    flex-wrap: wrap;
  }

  .product {
    width: 90%;
    margin: auto;
  }

  .product.watch {
    display: none;
  }

  .info {
    width: 90%;
    margin: 0.5rem auto;
  }
}

/* Footer */

footer {
  padding: 5rem 0;
  margin-top: 4rem;
  background-color: black;
  color: white;
}


@media only screen and (max-width: 470px) {
  footer {
    text-align: center;
  }
}



/*
                                      incorect css


html {
  margin: auto;
  font-size: 18px;
  font-family: Helvetica;
  align-content: center;
}

.company .container{
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background-color: black;
  width: 100%;
  height: 2.32rem;
}

.company img {
  display: inline-block;
  height: 1.5rem;
  padding-left: .5rem;
}

.company span {
  color: white;
  padding: .66rem 1rem;
  font-size: 1rem;
}


                                    banner image with bike & text

.main-banner{
  background-image: url('https://s3.amazonaws.com/codecademy-content/courses/freelance-1/unit-5/moto.jpeg');
  height: 25rem;
  padding-top:.66rem;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.main-banner .container{
  height: 100%;
  padding-top: 9rem;
}

.container .headline{
  color: white;
  font-weight: bold;
  width: 20rem;
  padding: 2rem 3rem;
  background-color: black;
}

h4 {
  color: white;
  font-size: 1rem;
  padding-bottom: .25rem;
}

h1 {
  color: white;
  font-size: 2rem;
  padding-top: .25rem;
}

                                     navagation section


nav .container{
  color: white;
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  justify-content: space-between;
  background-color: firebrick;
  width: 100%;
  height: 2.50rem;
}

li {
  padding: .75rem;
}

.mobile-nav.container{
 display: none;
}

                                 product section start


.container .products {
  display: flex;
  flex-wrap: wrap;
  flex-basis: 30%;
  justify-content: center;
  justify-content: space-around;
}

.container .product{
  display: block;
  max-width: auto;
  height: 15rem;
  margin: 3rem auto;
  border: 4px solid black;
}

.product-image img {
  display: flex;
  height: 9rem;
  padding: 2rem 2rem;
}

.container .description{
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: black;
  padding: .50rem;
}

                                   business-info

.container .business-info{
  display:  flex;
  justify-content: center;
  justify-content: space-between;
}

.business-info .info {
  width: 35%;
  padding: 3rem 0 4rem 0;
}

.info .tittle {
  margin: 0;
  color: white;
  display: flex;
  padding: 1rem 2rem;
  background-color: black;
}

                                  footer


footer {
  height: 5rem;
  color: white;
  display: inline-flex;
  align-items: center;
  width: 100%;
  background-color: black;
}
