@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;500;900&display=swap');
@import 'mediaqueries.css';

* {
  margin: 0; 
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Roboto', sans-serif;
}

.hero {
  width: 100vw;
  height: 100vh;
  background-image: url(https://res.cloudinary.com/michaelxk-com/image/upload/v1632803252/img%20headphone/vector-1_i0da0y.png);
  max-width: 100%;
}

.navbar {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  padding: 30px;
}

.navbar .brand {
  color: #f7b733;
}

.navbar .menu {
  grid-column: 6 / 9;
  display: flex;
  margin-top: 12px;
}

.menu li {
  list-style: none;
}

.menu li a {
  text-decoration: none;
  margin-right: 3em;
  font-size: 1.3em;
  color: #fff;
  font-weight: 200;
  padding: 10px 20px;
}
.menu li a:hover {
  background-color: #f7b733;
  transition: all .5s;
  color: #000;
}

.menu-bar {
  display: none;
}

/* MAIN SECTION */

.main {
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.content-info {
  margin-top: 5em;
  color: #fff;
}

button {
  cursor: pointer;
  color: #fff;
  box-shadow: 0px 3px 14px -8px rgba(0,0,0,0.78);
}
button:hover {
  box-shadow: none;
}

.btn-toBuy, .read-more {
  background-color: #ca4172;
  padding: 8px 40px;
  font-size: 1.2em;
  border-radius: 20px;
  border: none;
}

.read-more {
  background: none;
  border: 1px solid #fff;
  margin: 20px;
}

.main img {
  margin-top: 3em;
}

/* ABOUT SECTION */

.about h2 {
  text-align: center;
  font-size: 2em;
  font-weight: bold;
  margin-bottom: .3em;
}

.about .divider, .products .divider {
  background-color: #ca4172;
  width: 50px;
  height: 3px;
  margin: 0 auto;
}

.about .about-content {
  width: 90%;
  margin: 0 auto;
  display: grid;
  display: flex;
  align-items: center;
}

.about .about-info {
  margin: 4em;
}

.about .about-info h3 {
  text-transform: uppercase;
  margin-bottom: 1em;
}

/* PRODUCTS SECTION */

.products h2 {
  text-align: center;
  font-weight: bold;
}

.products .divider {
  margin-bottom: 8em;
}

.products .container-products {
  display: flex;
  justify-content: space-around;
  align-items: center;
}
.content-products-info,
.content-price,
.btn-content {
  display: flex;
  justify-content: center;
}

.content-product-info {
  display: flex;
  justify-content: center;
}

.content-product-info .stars {
  margin-right: 20px;
  text-align: center;

}
.content-product-info h4 {
  text-transform: uppercase;
  text-align: center;
}

.products .content-price .last-price {
  text-decoration: line-through;
  font-weight: lighter;
  margin-right: 20px;
}

.products .content-price .new-price {
  background-color: #ca4172;
  padding: 5px 10px;
  color: #fff;
}

.products .btn-product {
  margin: 20px;
  padding: 10px 20px;
  border-radius: 20px;
  border: none;
  color: #000;
}


/* SUPPORT SECTION */

.support {
  margin-top: 5em;
  background-color: #ca4172;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding-top: 50px;
}

.support h2 {
  color: #fff;
  font-size: 3em;
  font-weight: 300;
}

/*  BANNER SECTION */

.banner {
  background-image: url(https://res.cloudinary.com/michaelxk-com/image/upload/v1632803224/img%20headphone/banner_cmqvzm.jpg);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: auto;
  width: 100vw;
  max-width: 100%;
  align-items: center;
  display: grid;
  grid-template-columns: repeat(11, 1fr);
  height: 100vh;
}

.banner .rating {
  grid-column: 3 / 4;
}
.banner .rating {
  text-align: center;
}

.banner .secundary-info {
  grid-column: 8 / 11;
}

.banner h2 {
  font-size: 3em;
}

.secundary-info h2,
.secundary-info h3 {
  margin-bottom: 10px;
}

/*  FOOTER SECTION */

.footer {
  background-color: #8c50f1;
  color: #fff;
  padding: 30px;
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.footer .menu li {
  margin-top: 20px;
}

.footer .social-network .fab {
  font-size: 1.8em;
  margin: 10px;
}

.footer .social-network .fab:hover {
  color: #f7b733;
}


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


  .hero {
    overflow-x: hidden;
  }

  .navbar {
    background-color: #ca4172;
    height: 80px;
    box-shadow: 2px 2px 15px 0px  rgba(0, 0, 0, .42);
    align-items: center;
  }
  .navbar h2 {
    font-size: 2em;
  }
  .navbar .menu {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 60px;
    background-color: #ca4172;
    height: 50vh;
    left: -1em;
    transform: translateY(-120%);
    transition: all 1.4s;
    z-index: 1;
  }
  .navbar .menu-toggle {
    transform: translateY(0%);
  }
  .menu li {
    margin-top: 3em;
  }
  .navbar .menu-bar {
    display: block;
    font-size: 2em;
    color: #fff;
    cursor: pointer;
  }

  /* MAIN SECTION */

  .main {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-align: center;
    height: 70vh;
  }
  .main img {
    width: 12em;
  }
  .main h1 {
    margin-top: -80px;
  }
  .main .button-content {
    display: flex;
    flex-direction: column;
    margin: 30px;
  }
  
 /* ABOUT SECTION */


  .about .about-content img {
    width: 300px;
    margin-top: 50px;
  }

  .about .about-content {
    flex-direction: column;
  }
  
  .about .about-content .about-info {
    margin-top: -10px;
    text-align: center;
  }
 
   /* PRODUCTS SECTION */

   .products .container-products {
     display: flex;
     flex-direction: column;
   }
   .products h2 {
     font-size: 2em;
     margin-top: 2em;
   }

   .products .container-products .btn-product {
     margin-bottom: 3em;
   }

    /* SUPPORT SECTION */

  .support {
    flex-direction: column;
    align-items: center;
  }

  .support .support-info h2 {
    font-size: 2em;
    font-weight: 500;
  }

  .support .support-info {
    text-align: center;
  }
    
  .support img {
    margin-top: 50px;
  }

    /* BANNER SECTION */


    #banner {
      height: 50vh;
      background-position: center;
    }

    .banner .rating img {
      width: 50px;

    }
    .banner .rating h2 {
      font-size: 2em;
    }

    .banner .secundary-info {
      display: none;
    }

  /* FOOTER SECTION */

    .footer {
      flex-direction: column-reverse;
    }

    .footer .quicklinks .menu {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      align-items: center;
    } 

    .footer .social-network {
      margin: 2em;
    }
    .footer h3 {
      font-weight: lighter;
      margin-top: 1em;
      color: #f7b733;;
    }



}