@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;500;700&display=swap');

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


body {
  font-family: 'Inter', sans-serif;
  background-image: 
    url("images/pattern-bg.svg"),
    url("images/pattern-quotes.svg"),
    url("images/pattern-curve.svg");
  background-position:
    top 8% right 16%,
    top 20% left 18%,
    bottom 15% left;
  background-repeat: no-repeat;
  overflow: hidden;
}


.container {
  display: grid;
  grid-template-columns: repeat(2, 100vw);
}
/* Classes for carousel btn effect */
/* Next */
.second .per1 {
  transform: translateX(-100vw);
  transition: all 0.4s ease-in;
}
.second .per2 {
  transform: translateX(-100vw);
  transition: all 0.4s ease-in;
}

.first .per1 {
  transform: translateX(0);
  transition: all 0.4s ease-in;
}
.first .per2 {
  transform: translateX(0);
  transition: all 0.4s ease-in;
}
/* Prev */
/* End of scroll */
.person {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  grid-template-rows: 1fr 2fr 1fr;
  grid-template-areas: 
    ". image"
    "quote image"
    "detail image";
  padding: 5% 10% 15% 10%;
}


.person-image {
  grid-area: image;
  background-color: transparent;
}


.person-image img {
  object-fit: fill;
  box-shadow: 2px 25px 18px rgba(0, 0, 0, 0.10);
  filter: brightness(105%) saturate(140%) contrast(105%) ;
}

.person-image .btn-container {
  background-color: #fff;
  z-index: 10;
  padding: 2% 0;
  display: grid;
  grid-template-rows: 1fr;
  grid-template-columns: repeat(2, 1fr);
  width: 15%;
  border-radius: 40%;
  transform: translateY(-55%) translateX(50%);
  box-shadow: 
    2px 10px 12px rgba(0, 0, 0, 0.05),
    2px 10px 12px rgba(0, 0, 0, 0.05);
}

button {
  background-color: transparent;
  border: transparent;
  font-size: 1.5rem;
  font-weight: 300;
  cursor: pointer;
  color: hsl(240, 18%, 77%);
}

.first #btnnext:active,
.first #btnnext:hover {
  color: hsl(240, 38%, 20%);
}

.second #btnprev:active,
.second #btnprev:hover {
  color: hsl(240, 38%, 20%);
}


.person-quote {
  grid-area: quote;
  width: 115%;
  z-index: 2;
  font-size: 2.15rem;
  font-weight: 300;
  color: hsl(240, 38%, 20%);
}

.person-detail {
  grid-area: detail;
  display: flex;
}

.person-detail h2 {
  color: hsl(240, 38%, 20%);
  font-size: 1.2rem;
  font-weight: 700;
}

.person-detail h5 {
  padding-left: 2%;
  font-weight: 500;
  color: hsl(240, 18%, 77%);
  font-size: 1.2rem;
}

@media (max-width: 900px) {
  body {
    background-image: 
      url("images/pattern-bg.svg"),
      url("images/pattern-quotes.svg"),
      url("images/pattern-curve.svg");
    background-position:
      top 1% left 40%,
      top 25% left 50%,
      bottom 60% left;
    background-repeat: no-repeat;
    background-size: 
      85%,
      14%;
    overflow-y: visible;
  }
  
  .person {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-template-rows: repeat(3, minmax(10vh, 1fr));
    grid-template-areas: 
      "image"
      "quote"
      "detail";
    margin: 5% 2.5%;
  }
  
  .person-image {
    grid-area: image;
    padding: 0 8%;
  }
  
  .person-image img {
    height: 60%;
    object-fit: fill;
  }
  
  .person-quote {
    grid-area: quote;
    width: 110%;
    z-index: 2;
    font-size: 1.45rem;
    font-weight: 300;
    color: hsla(240, 37%, 20%, 0.85);
    text-align: center;
    margin-left: -5%;
    margin-top: -35%;
    line-height: 110%;
  }
  
  .person-detail {
    margin-top: -135%;
    grid-area: detail;
    display: block;
    text-align: center;
  }
  
  .person-detail h2 {
    color: hsl(240, 38%, 20%);
    font-size: 1.1rem;
    font-weight: 700;
  }
  
  .person-detail h5 {
    padding-left: 2%;
    font-weight: 500;
    color: hsl(240, 18%, 77%);
    font-size: 1rem;
  }
}
