@import url('https://fonts.googleapis.com/css2?family=Cairo&family=Open+Sans:wght@300;400;500;600;700&family=Smooch+Sans:wght@100;200;300;400;500;600;700;800;900&display=swap');

* {
  box-sizing: border-box;
}

body {
  font-family: 'Open Sans', sans-serif;
  background-color: #f4f3ed;
  margin: 0;
  padding: 0;
}

a {
  color: #f4f3ed;
  text-decoration: none;
}

h1,
h2,
h3,
footer {
  font-family: 'Smooch Sans', sans-serif;
  font-weight: 300;
}


/* NavBar styles */
.navbar {
  background-color: #526367;
  padding: 1rem 3rem;
}

nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  color: #f4f3ed;
}

nav h1 {
  font-size: 45px;
  margin: 0;
}

nav ul li {
  display: inline;
  margin: 0 1rem;
}

nav ul li:hover {
  color: #f4afa8;
  border-bottom: 2px solid #f4afa8;
}

#active {
  color: #f4afa8;
}

#dots {
  display: none;
}

/* Hero Styles */
.hero {
  background-color: #F4AFA8;
  height: 90vh;
  background-size: contain;
  background-position: right center;
  background-repeat: no-repeat;
  padding: 6rem;
}

.hero .hero-desc {
  width: 50%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-desc h1 {
  font-size: 70px;
  margin: 1rem 0;
  color: #f4f3ed;
  font-weight: 500;
}

/* main styles */
main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

main h2 {
  font-size: 60px;
  color: #526367;
}

/* elements styles */
p {
  font-size: 20px;
  line-height: 35px;
  font-weight: 400;
  color: #526367;
}

video, img {
  width: 100%;
  height: 100%;
  object-position: center;
}

video{
  object-fit: cover;
}

img {
  object-fit: contain;
}


/* footer styles */
footer {
  padding: 2rem 0;
  background-color: #F4AFA8;
  text-align: center;
  color: #526367;
  font-size: 25px;
}

/* skin details styles */
.skin-details {
  margin-top: 6rem;
  width: 100%;
  height: 70vh;
  padding: 1rem 6rem;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
}

.skin-details .desc-table {
  width: 60%;
}

.skin-details .video-container {
  width: 35%;
  height: 100%;
  outline: 1px solid #f4afa8;
  outline-offset: 20px;
}

.desc-table h2 {
  margin: 1.5rem 0;
}

table {
  width: 95%;
  border-collapse: collapse;
  color: #526367;
  text-align: left;
}

table,
th,
td {
  padding: 1.5rem;
  border: 1px solid #f4afa8;
}

thead {
  background-color: #f4afa8;
}

tbody tr:nth-child(even) {
  background-color: #f4b0a85e;
}


/* skin tips styles */
.skin-tips {
  width: 100%;
  height: max-content;
  background-color: #526367e1;
  margin: 6rem 0 2rem 0;
  padding: 3rem 6rem;
  text-align: center;
}

.skin-tips h2,
.skin-tips p {
  color: #f4f3ed;
}

.skin-tips .tips {
  display: grid;
  grid-template-columns: auto auto auto auto auto;
  column-gap: 1rem;
  place-items: center;
}

.tips .tip {
  width: 14rem;
  height: 20rem;
}

.tip .image {
  width: 100%;
  height: 14rem;
  border-radius: 50%;
}

.tip img {
  border-radius: 50%;
  object-fit: cover;
  box-shadow: rgba(255, 255, 255, 0.1) 0px 1px 1px 0px inset, rgba(50, 50, 93, 0.25) 0px 50px 100px -20px, rgba(0, 0, 0, 0.3) 0px 30px 60px -30px;
}


/* skin products styles */
.skin-products{
  width: 100%;
  height: max-content;
  padding: 2rem 6rem;
  margin-bottom: 10rem;
}

.skin-products h2{
  text-align: center;
}

.products{
  display: grid;
  grid-template-columns: auto auto auto auto;
  column-gap: 1rem;
  place-items: center;
}

.product{
  width: 18rem;
  height: 26rem;
  text-transform: capitalize;
  box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
}

.product .image{
  height: 50%;
  padding: 1rem;
  background-color: #f4afa8;
}

.product .description{
  padding: 0 1rem ;
}
.product .description  h3{
  font-size: 23px;
  font-weight: 400;
}

.product .description  h4{
  font-weight: 300;
}

.product .description h4.type{
  color: #526367;
}

.product .description h4.usage{
  color: #c28680;
}

.product .description h3.price{
  text-align: right;
}


/*###### Responsive Styles ######*/

/* Medium Devices */
@media (max-width: 992px) {


  nav h1 {
    font-size: 40px;
  }

  nav ul li {
    margin: 0 1rem;
  }

  .hero {
    height: max-content;
    padding: 2rem;
    background-size: cover;
    background-position: bottom center;
  }

  .hero-desc h1 {
    font-size: 40px;
  }

  p {
    font-size: 18px;
  }

  main h2 {
    font-size: 38px;
  }

  .skin-details {
    height: 45vh;
    padding: 1rem 3rem;
  }

  .skin-tips{
    margin: 5rem 0;
  }

  .skin-tips .tips {
    grid-template-columns: auto auto;
  }

  .products{
    grid-template-columns: auto auto;
    row-gap: 3rem;
  }

  .skin-products{
    margin-bottom: 6rem;
  }
}

/* Small Devices */
@media (max-width: 576px) {

  #dots {
    display: block;
  }

  nav ul#menu {
    display: none;
    padding-inline-start: 0;
  }

  nav ul li {
    display: block;
    margin: 1rem 0;
  }

  .hero .hero-desc {
    width: 70%;
  }

  p {
    font-size: 15px;
  }

  .skin-details {
    height: max-content;
    flex-direction: column;
    align-items: center;
    margin-top: 4rem;
    text-align: center;
  }
  .skin-details .desc-table {
    width: 100%;
    margin-bottom: 4rem;
  }

  table{
    width: 100%;
    text-align: center;
  }

  .skin-details .video-container {
    width: 80%;
    height: 20rem;
  }

  .skin-tips , .skin-products{
    padding: 2rem 2rem;
  }

  .skin-tips .tips {
    grid-template-columns: auto;
  }

  .products{
    grid-template-columns: auto ;
  }

}