@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600;700&display=swap");

:root {
  --white: #fff;
  --black: #1c2b2d;
  --blue: #31326f;
  --light-blue: #005490;
  --color-primary: #9d0191;
  --color-sec: #db6400;
  --grey: #eee;
  --dark-grey: #222831;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 10px;
}

body {
  font-family: "Open Sans", sans-serif;
}

p {
  font-size: 1.6rem;
  line-height: 1.5;
}

img {
  width: 30%;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Start here */
.main {
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.main h2 {
font-size: 2.5rem;
font-weight: 300;
margin-bottom: 2rem;
}


.slider {
  width: 60%;
  max-width: 60rem;
  height: auto;
  padding: 4rem 5rem;
  position: relative;
  border: 5px solid var(--color-primary);
}

.fa-quote-left {
  font-size: 2.5rem;
  height: 5rem;
  width: 5rem;
  background-color: var(--color-sec);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  top: -3rem;
  left: 2rem;
}



.slide {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  transform: translateX(2rem);
  animation: slide .5s forwards;
}

@keyframes slide {
  to {
    transform: translateX(0);
  }
}

.slide-2 {
  display: none;
}

.testimonial-text {
  font-size: 1.3rem;
  line-height: 1.2;
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: 2rem;
}

.testimonial-text::after {
content: "";
position: absolute;
background-color: var(--color-sec);
left: 50%;
bottom:0;
width: 25%;
height: 1px;
transform: translateX(-50%);
}

.slide-img img {
  width: 6rem;
  height: 6rem;
  border-radius: 50%;
  border: 2px solid var(--grey);
}

.author-text{
 font-size: 1.5rem;
 font-weight: 600;
 color: var(--color-sec);
}

.author-text span {
  display: block;
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--dark-grey);
}

.buttons {
  position: absolute;
  left: 80%;
  bottom: -2rem;
  width: 9rem;
  height: 3.5rem;
  border: 2px solid var(--color-sec);
  border-radius: 50px;
  background-color: var(--white);
  overflow: hidden;
}

.next,
.prev {
  display: inline-block;
  width: 50%;
  height: 100%;
  position: absolute;
  cursor: pointer;
}

.next:hover,
.prev:hover {
background-color: antiquewhite;
}

.next {
  right: 0;
}
.prev {
  left: 0;
}

.next::after,
.prev::after {
  content: "";
  position: absolute;
  height: 100%;
  width: 100%;
  background-repeat: no-repeat;
  background-position: center;
  background-size: auto;
}
.next::after{
  background-image: url("./images/icon-next.svg");
}

.prev::after{
  background-image: url("./images/icon-prev.svg");
}

@media screen and (max-width: 600px) {
  .slider{
    width: 90%;
  }
  .buttons {
    left: 75%;
  }
}