:root {
  --fav-color: rgb(167, 31, 0);
}

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

body {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

main {
  padding: 1rem;
  width: 600px;
}

/* Testimonial */

.testimonial {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
  border: 2px solid var(--fav-color);
  background-color: aliceblue;
  position: relative;
  visibility: hidden;
}

img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  position: absolute;
  top: -25px;
  left: calc(50% - 25px);
  /* transform: translateX(-50%); if not using calc */
}

p {
  min-height: 3rem;
}

/* Controls */

.controls {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  gap: 10px;
}

button {
  height: 20px;
  width: 50px;
  border: none;
  cursor: pointer;
}

button.active {
  background-color: var(--fav-color);
}
