/* Start: CSS reset */
/* https://www.joshwcomeau.com/css/custom-css-reset/ */
/* Use a more-intuitive box-sizing model.*/
*,
*::before,
*::after {
  box-sizing: border-box;
  font-family: 'Raleway', sans-serif;
  background-color: whitesmoke;
}
/* Remove default margin */
* {
  margin: 0;
}
/* Change default font-size from 16px to 10px, so 1rem = 10px */
:root {
  font-size: 62.5%;
}
body {
  font-size: 1.6rem;
}
/* Improve media defaults and make images responsive */
img,
picture,
video,
canvas,
svg {
  background-color: grey;
  display: block;
  width: 100%;
  height: auto;
}
/* Remove built-in form typograph styles */
input,
button,
textarea,
select {
  font: inherit;
}
/* Avoid text overflow */
p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}
a {
  color: inherit;
  text-decoration: none;
}
/* End: CSS reset */

/* Entire page */
body {
  min-height: 100vh;

  display: flex;
  flex-direction: column;
}

/* Header */
header {
  padding: 4rem;

  display: flex;
  justify-content: flex-end;
}

header button {
  padding: 1rem 2rem;
  border: 1px solid #cccccc;
  border-radius: 1.2rem;
  box-shadow: 0px 0px 13px -1px #cccccc;

  color: #333333;
  font-weight: 500;
  font-size: 1.8rem;

  display: flex;
  align-items: center;

  cursor: pointer;
}

header button span {
  margin-left: 1rem;
}

@media only screen and (max-width: 600px) {
  header {
    padding: 2rem;
  }

  header button {
    font-size: 1.2rem;
  }
}

.icon-animation {
  animation-name: icon-animation-keyframes;
  animation-duration: 2s;
  animation-iteration-count: 1;
  animation-timing-function: cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

@keyframes icon-animation-keyframes {
  0% {
    transform: scale(1) rotate(0deg);
  }

  50% {
    transform: scale(1.4) rotate(180deg);
  }

  100% {
    transform: scale(1) rotate(360deg);
  }
}

/* Main */
main {
  flex-grow: 1;
  padding: 4vh 20vw;

  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media only screen and (max-width: 600px) {
  main {
    padding: 0vh 4vw;
  }
}

main .quotes-author {
  display: none;
}

main .quote {
  border-left: 8px solid #f7df94;
  padding-left: 2rem;
  margin: 2rem 0;
}

main .quote p {
  font-weight: 500;
  font-size: 3.6rem;
  line-height: 120%;
}

main .quote-navigator {
  margin-top: 2rem;
  padding: 2rem;
  border-radius: 1.2rem;

  display: flex;
  align-items: center;
  justify-content: space-between;

  cursor: pointer;
}

main .quote-navigator .material-icons {
  color: #f2f2f2;
}

main .quote-navigator:hover {
  background-color: #333333;
}

main .quote-navigator:hover > * {
  background-color: #333333;
  color: #f2f2f2;
}

main .quote-navigator:hover .quote-metadata > * {
  background-color: #333333;
  color: #f2f2f2;
}

main .author,
main .quotes-author {
  font-weight: 700;
  font-size: 2.4rem;
  line-height: 2.8rem;
  color: #4f4f4f;
}

main .genre {
  font-weight: 500;
  font-size: 1.4rem;
  line-height: 1.6rem;
  color: #828282;
}

@media only screen and (max-width: 600px) {
  main .quote p {
    font-size: 1.8rem;
  }

  main .author,
  main .quotes-author {
    font-size: 2rem;
    line-height: 2.4rem;
  }
}

/* Footer */
footer {
  padding: 1rem;

  font-weight: 500;
  font-size: 1.4rem;
  line-height: 1.7rem;
  text-align: center;
  color: #828282;
}

footer .developer {
  font-weight: 700;
  text-decoration: underline;
}
