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

:root {
  /* Colors */
  --primary-dark-color: hsl(240, 38%, 20%);
  --primary-light-color: hsl(240, 18%, 77%);
}

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

html {
  font-size: 62.5%;
}

p {
  font-size: 1.8rem;
  font-weight: 500;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  font-family: 'Inter', sans-serif;
}

img {
  max-width: 100%
}

.testimonials-slider {
  position: relative;
  overflow: hidden;
}

.container {
  width: 90%;
  margin-top: 2.5em;
  text-align: center;
}

.disabled {
  pointer-events: none;
  opacity: 0.5;
}

.slider-container {
  display: flex;
  width: 375px;
  margin: 0 auto;
  position: relative;
  transition: transform 0.5s;
}

.slide {
  display: flex;
  flex-direction: column;
  height: 665px;
}

.slide-image {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 1em;
  height: 50%;
  background: url('../images/pattern-bg.svg') no-repeat center;
  background-size: 92% 93%;
  & img {
    display: block;
    width: 255px;
    margin: 0 auto;
    border-radius: 5px;
    box-shadow: 0px 70px 60px -55px rgba(0,0,0,0.62);
  }
}

.slide-content {
  display: flex;
  justify-content: center;
  flex-grow: 1;
  margin: 1em 1em 0;
  background-image: url('../images/pattern-curve.svg'), url('../images/pattern-quotes.svg');
  background-repeat: no-repeat, no-repeat;
  background-size: 75% 25%, 60px 48px;
  background-position: left bottom, top center;
  & .quote {
    line-height: 1.3em;
    margin-bottom: 1.2em;
    font-weight: 300;
  }
  & .author {
    gap: 10px;
    & .name {
      margin-bottom: 0.2em;
      font-size: 1.5rem;
      font-weight: 700;
      color: var(--primary-dark-color);
    }
    & .job-title {
      font-size: 1.5rem;
      font-weight: 300;
      color: var(--primary-light-color);
    }
  }
}

.slider-controls {
  display: flex;
  align-items: center;
  justify-content: space-around;
  position: absolute;
  background-color: white;
  height: 45px;
  width: 80px;
  top: 284px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 25px;
  & button {
    position: relative;
    cursor: pointer;
    width: 20px;
    height: 20px;
    border: 1px solid transparent;
    background-color: transparent;
  }
  & .previous::before {
      content: url('../images/icon-prev.svg');
  }
  & .next::before {
      content: url('../images/icon-next.svg');
  }
}

.attribution {
  font-size: 11px;
  text-align: center;
  margin-top: 15px;
}
.attribution a {
  color: hsl(228, 45%, 44%);
}