body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: sans-serif;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column; 
    background-color: #354E56;
  }
  #header {
    margin-top: 30px;
    margin-bottom: 30px;
    color: white;
    font-size: 26px;
  }
  #quote-box {
    display: flex;
    flex-direction: column;
    width: 680px;
    min-height: 350px;
    background-color: white;
    border-radius: 16px;
  }
  #text-and-author-wrapper {
    min-height: 270px;
  }
  #text {
    padding: 40px 40px 10px 40px;
    font-size: 28px; 
    display: inline-block;
  }
  #author {  
    font-size: 22px;
    text-align: right;
    padding: 15px 40px 15px 0;
  }
  #buttons-row {
    display: flex;
    justify-content: space-between;
    padding: 20px 40px; 
    align-items: center;
  }
  button {
    font-size: 17px;
    padding: 6px;
    border: 1px solid transparent;
    border-radius: 5px;
    height: 40px;
    width: 110px;
    color: white;
    background-color: #354E56;
  }
  #tweet-btn, #tumblr {
    width: 40px;
    height: 40px;
    color: white;
  }
  #tweet-btn i, #tumblr i {
    font-size: 26px;
  }
  .bg-blue {
    background-color: #0077B6;
    animation: redToBlue;
    animation-duration: 1s;
    animation-iteration-count: 1;
  }
  .bg-red {
    background-color: #B85042;
    animation: grayToRed;
    animation-duration: 1s;
    animation-iteration-count: 1;
  }
  .bg-green {
    background-color: #20948B;
    animation: blueToGreen;
    animation-duration: 1s;
    animation-iteration-count: 1;
  }
  .bg-orange {
    background-color: #CB997E;
    animation: greenToOrange;
    animation-duration: 1s;
    animation-iteration-count: 1;
  }
  .bg-gray {
    background-color: #354E56;
    animation: violetToGray;
    animation-duration: 1s;
    animation-iteration-count: 1;
  }
  .bg-original {
    background-color: #354E56;
  }
  .bg-violet {
    background-color: #474787;
    animation: orangeToViolet;
    animation-duration: 1s;
    animation-iteration-count: 1;
  }
  .text-blue {
    color: #0077B6;
  }
  .text-red {
    color: #B85042;
  }
  .text-green {
    color: #20948B;
  }
  .text-orange {
    color: #CB997E;
  }
  .text-gray {
    color: #354E56;
  }
  .text-violet {
    color: #474787;
  }
  .btn-bg-green {
    background-color: #20948B;
  }
  a {
    text-decoration: none;
  }
  button:hover {
    cursor: pointer;
  }
  span {
    margin: 0 5px;
  }
  @keyframes grayToRed {
    from {background-color: #354E56}
    to {background-color: #B85042}
  }
  @keyframes violetToGray {
    from {background-color: #474787}
    to {background-color: #354E56}
  }
  @keyframes blueToGreen {
    from {background-color: #0077B6}
    to {background-color: #20948B}
  }
  @keyframes redToBlue {
    from {background-color: #B85042}
    to {background-color: #0077B6}
  }
  @keyframes greenToOrange {
    from {background-color: #20948B}
    to {background-color: #CB997E}
  }
  @keyframes orangeToViolet {
    from {background-color: #CB997E}
    to {background-color: #474787}
  }
  .fadeIn {
    animation: fadeInAnimation ease 2s; 
    animation-fill-mode: forwards;
  }
  @keyframes fadeInAnimation {
    0% {
      opacity:0;
    }
    100% {
      opacity: 1;
    }
  }
  .fadeOut {
    animation: fadeOutAnimation ease 1s;  
    animation-fill-mode: forwards;
  }
  @keyframes fadeOutAnimation {
    0% {
      opacity: 1;
    }
    100% {
      opacity: 0;
    }
  }
  @media screen and (min-width: 770px) {
    #quote-box {
      width: 780px;
    }
  }
  @media screen and (min-width: 640px) and (max-width: 770px) {
    #quote-box {
      width: 630px;
    }
  }
  @media screen and (min-width: 540px) and (max-width: 640px) {
    #quote-box {
      width: 510px;
    }
  }
  @media screen and (min-width: 400px) and (max-width: 539px) {
    #quote-box {
      width: 390px;
    }
  }

  @media screen and (max-width: 400px) {
    #quote-box {
      width: 300px;
    }
  }

