/* 
  The quote component displays a quote and the author of the quote.
  It can display multiple quotes and authors.
*/

quote-component {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-left: 0;
}

quote-component hr {
  width: 100%;
  border: 1px solid var(--light-gray);
  margin: var(--small-margin) 0;
}

.quote-item-selector {
  display: flex;
}

.quote-item-selector button {
  width: 4rem;
  height: 4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 0 solid var(--black);
  margin: 0 var(--small-margin);
  transition: background-color var(--animation-time);
}

.quote-item-selector button img {
  width: 75%;
  height: auto;
}

.quote-item-selector button:hover {
  background-color: var(--light-gray);
}

quote-item-component {
  display: flex;
  width: 100%;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  animation: fade-in var(--long-animation-time);
}

quote-item-component.hidden {
  display: none;
}

quote-item-component .quote {
  font-size: 1.5rem;
  margin: 0;
  padding: 0;
  margin-right: var(--margin);
  font-style: italic;
}

quote-item-component .quote::before {
  content: '“';
}

quote-item-component .quote::after {
  content: '”';
}

quote-item-component .name {
  font-weight: bold;
}

quote-item-component > a {
  min-width: 20%;
  width: 20%;
  height: auto;
  margin-right: var(--margin);
}

quote-item-component > a > img {
  width: 100%;
  height: auto;
}

/* Responsive design */
/* Desktop */
@media (min-width: 1101px) {
  quote-item-component {
    height: 15rem;
  }
}

/* Tablet */
@media (min-width: 651px) and (max-width: 1100px) {
}

/* Phone */
@media (max-width: 650px) {
  quote-item-component .quote {
    font-size: 1rem;
  }

  quote-item-component {
    flex-direction: column;
    height: 25rem;
  }

  quote-item-component > a {
    width: 50%;
    margin-right: 0;
    margin-bottom: var(--margin);
  }
}
