*,
*::before,
*::after {
  box-sizing: border-box;
}

/* ============
    GENERAL
  ============*/

body {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.4;
  font-family: "Inter", sans-serif;
}

img {
  max-width: 100%;
}

.testinomial-summary {
  font-size: 1.2rem;
}

.display-none {
  display: none;
}

.attribution {
  font-size: 1rem;
  text-align: right;
  position: relative;
  bottom: 0;
}

/* ============
    LAYOUT
  ============*/

.wrapper {
  min-height: 100vh;
}

.curve {
  background-image: url(../images/pattern-curve.svg);
  background-repeat: no-repeat;
  background-size: 80%;
  background-position: left bottom;
}

.container {
  width: 85%;
  max-width: 1200px;
  margin: 0 auto;
}

.flex {
  display: flex;
  flex-direction: column;
  padding: 3em 0;
  text-align: center;
  min-height: 100vh;
}

.testinomial-img-cont {
  order: -1;
}

.testinomial-img {
  width: 85%;
  border-radius: 5px;
  box-shadow: 0 20px 50px hsla(240, 38%, 20%, 0.3);
}

/* For bold font */
.bold {
  font-weight: 700;
  margin-bottom: 0;
  color: hsl(240, 38%, 20%);
}

/* For lighter color */
.light {
  color: hsl(240, 18%, 77%);
  margin-top: 0;
}

.testinomial-info-cont {
  margin-top: 2.5em;
  color: #63616f;
}

.testinomial-info {
  position: relative;
}

/* ============
    SVG Layout
  ============*/

.quote {
  position: absolute;
  bottom: 95%;
  left: 50%;
  transform: translate(-50%, 45%) scale(0.5);
}

.testinomial-img-cont {
  position: relative;
}

.pattern {
  position: absolute;
  left: 0;
  top: -5%;
  z-index: -1;
  transform: scale(1.1);
}

/* ============
    BUTTON
  ============*/

.switch {
  position: absolute;
  bottom: -5%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: space-around;
  align-items: center;
  box-shadow: 0 10px 20px hsla(240, 38%, 20%, 0.3);
  background: #fff;
  border: none;
  border-radius: 50px;
  padding: 0;
  width: 100px;
  height: 50px;
}

.switch:hover {
  box-shadow: 0 20px 30px hsla(240, 38%, 20%, 0.3);
}

/* ============
  MEDIA QUERIES
  ============*/

@media (min-width: 400px) {
  .curve {
    background-size: 70%;
  }
}

@media (min-width: 800px) {
  .wrapper {
    display: flex;
    align-items: center;
    flex-direction: column;
  }

  .flex {
    flex-direction: row;
    text-align: left;
    align-items: center;
  }

  .testinomial-img-cont {
    order: initial;
    margin-left: -5%;
  }

  .container {
    width: 90%;
  }

  .testinomial-info-cont {
    max-width: 700px;
    margin: 0;
    z-index: 1;
  }

  .testinomial-summary {
    display: flex;
  }

  .testinomial-summary > * {
    margin: 0 1em 0 0;
  }

  .pattern {
    position: absolute;
    left: -6%;
    top: -5%;
  }

  .quote {
    left: 20%;
    transform: translate(-50%, 45%) scale(0.5);
  }

  .switch {
    left: 30%;
  }

  .curve {
    background-size: 50%;
  }
}

@media (min-width: 1024px) {
  body {
    font-size: 2rem;
  }

  .testinomial-summary {
    font-size: 1.5rem;
  }

  .quote {
    left: 20%;
    bottom: 100%;
    transform: translate(-50%, 35%) scale(1);
  }

  .switch {
    left: 20%;
    bottom: -2%;
  }

  .curve {
    background-size: 40%;
  }
}
