@import url('https://fonts.googleapis.com/css2?family=Gentium+Basic&display=swap');

html {
  box-sizing: border-box; /*prevent padding from adding extra width and extra height to the page*/
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: #b6ffc5;
  /* background-color: #cdcccf;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='105' viewBox='0 0 80 105'%3E%3Cg fill-rule='evenodd'%3E%3Cg id='death-star' fill='%23868700' fill-opacity='0.23'%3E%3Cpath d='M20 10a5 5 0 0 1 10 0v50a5 5 0 0 1-10 0V10zm15 35a5 5 0 0 1 10 0v50a5 5 0 0 1-10 0V45zM20 75a5 5 0 0 1 10 0v20a5 5 0 0 1-10 0V75zm30-65a5 5 0 0 1 10 0v50a5 5 0 0 1-10 0V10zm0 65a5 5 0 0 1 10 0v20a5 5 0 0 1-10 0V75zM35 10a5 5 0 0 1 10 0v20a5 5 0 0 1-10 0V10zM5 45a5 5 0 0 1 10 0v50a5 5 0 0 1-10 0V45zm0-35a5 5 0 0 1 10 0v20a5 5 0 0 1-10 0V10zm60 35a5 5 0 0 1 10 0v50a5 5 0 0 1-10 0V45zm0-35a5 5 0 0 1 10 0v20a5 5 0 0 1-10 0V10z' /%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 900'%3E%3Cpolygon fill='%2340cc78' points='957 450 539 900 1396 900'/%3E%3Cpolygon fill='%2367597a' points='957 450 872.9 900 1396 900'/%3E%3Cpolygon fill='%2356c57c' points='-60 900 398 662 816 900'/%3E%3Cpolygon fill='%23516788' points='337 900 398 662 816 900'/%3E%3Cpolygon fill='%2366bf81' points='1203 546 1552 900 876 900'/%3E%3Cpolygon fill='%233c738a' points='1203 546 1552 900 1162 900'/%3E%3Cpolygon fill='%2373b885' points='641 695 886 900 367 900'/%3E%3Cpolygon fill='%233b7d81' points='587 900 641 695 886 900'/%3E%3Cpolygon fill='%237eb18a' points='1710 900 1401 632 1096 900'/%3E%3Cpolygon fill='%23518473' points='1710 900 1401 632 1365 900'/%3E%3Cpolygon fill='%2387aa8e' points='1210 900 971 687 725 900'/%3E%3Cpolygon fill='%23708866' points='943 900 1210 900 971 687'/%3E%3C/svg%3E");
  background-attachment: fixed;
  background-size: cover;
  /* background by SVGBackgrounds.com */
  color: #111111;
  font-family: 'Gentium Basic', serif, Helvetica, sans-serif;
  font-weight: 700;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quote-container {
  width: auto;
  max-width: 900px;
  padding: 20px 30px;
  border-radius: 10px;
  background-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 10px 10px 10px rgba(0, 0, 0, 0.2);
}

.quote-text {
  font-size: 2.5rem;
}

.long-quote {
  font-size: 2rem;
}

.fa-quote-left {
  font-size: 3.5rem;
}

.quote-author {
  margin-top: 10px;
  font-size: 1.8rem;
  font-weight: 400;
  font-style: italic;
  font-family: Garamond, Serif;
}

.button-container {
  margin-top: 15px;
  display: flex;
  justify-content: space-between;
}

button {
  cursor: pointer;
  font-size: 1.2rem;
  height: 2.5rem;
  border: none;
  border-radius: 10px;
  color: #fff;
  background: #333;
  outline: none;
  padding: 0.5rem 1.8rem;
  box-shadow: 0 0.3rem rgba(121, 121, 121, 0.65);
}

button:hover {
  filter: brightness(110%);
}

button:active {
  transform: translate(0, 0.3rem);
  box-shadow: 0 0.1rem rgba(255, 255, 255, 0.65);
}

.twitter-button:hover {
  color: #38A1F3;
}

#new-quote:hover {
  color: #b6ffc5;
}

.fa-twitter {
  font-size: 1.5rem;
}

#credit-container {
  position: absolute;
  bottom: 30px;
}

#credit {
  font-size: 0.8rem;
  color: #ffffff;  
}
div > a {
  text-decoration: none;
  color: #ffffff;
}

/* loader */
.loader {
  border: 16px solid #f3f3f3; 
  border-top: 16px solid #333; 
  border-radius: 50%;
  width: 120px;
  height: 120px;
  animation: spin 2s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* media query: tablet or smaller */
@media screen and (max-width: 1000px) {
  .quote-container {
    margin: auto 10px;
  }
  .quote-text {
    font-size: 2.2rem ;
  }
}