/** Global style **/

body {
  font-family: 'Montserrat', sans-serif;
  margin: 0;
  background-color: #F0F0DF;
  color: #343d46;
  line-height: 1.5;
  padding: 4em 1em 2rem;
}

body.dark {
  color: #F0F0DF;
  background-color: #343d46;
}

.main {
  margin: 0 auto;
  max-width: 50em;
  padding: 0 0 2rem;
}

.container {
  max-width: 75%;
}

a {
  color: #007BBA;
  text-decoration: none;
}

a.active {
  text-decoration: underline;
}

a.dark {
  color: rgb(153, 221, 255);
}

a:hover {
  text-decoration: underline;
  color: rgb(4, 82, 121);
}

a.dark:hover {
  text-decoration: underline;
  color: rgb(14, 175, 255);
}

h1 {
  font-size: 1.7rem;
  font-family: 'Playfair Display', serif;
}

h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
}

/** Footer and nav style **/

nav {
  display: flex;
  justify-content: center;
  font-weight: 200;
  margin: 0 auto 4rem;
}

footer {
  font-weight: 200;
  margin: 4rem auto 0;
}

.footer-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.nav-item {
  margin-left: 12px;
}

footer a, nav a {
  color: #343d46;
  text-decoration: none;
}

footer.dark a, nav.dark a {
  color: #F0F0DF;
}

nav a:hover, footer a:hover {
  text-decoration: underline;
}

/** Home page **/

.quote-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 13rem);
}

.quote {
  font-family: 'Playfair Display', serif;
  color: #343d46;
  display: flex;
  flex-direction: column;
  opacity: 0;
}

.show {
  animation: appear 1s linear; 
}

@keyframes appear {
  0% { opacity: 0 }
  100% { opacity: 1 }
}
  

.hide-show {
  animation: fade 1s linear;
}

@keyframes fade {
0%, 100% { opacity: 1 }
50% { opacity: 0 }
}

.quote.dark {
  color: #F0F0DF;
}

.quote-content {
  font-size: 2.4rem;
  word-wrap: break-word;
}

.quote-content.medium {
  font-size: 2.2rem;
}

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

.quote-details {
  align-self: flex-end;
  margin-top: 2rem;
  font-size: 1.2rem;
  text-align: end;
}

#refresh {
  height: 18px; 
  margin-right: 1rem;
  padding-top: 2px;
  cursor: pointer;
}

@media all and (max-width: 1023px) {
  .container {
    max-width: 80%;
  }
  .quote-content {
    font-size: 2.2rem;
  }
  .quote-content.medium {
    font-size: 2rem;
  }
  
  .quote-content.long {
    font-size: 1.8rem;
  }
}

@media all and (max-width: 767px) {
  .container {
    max-width: 85%;
  }
  .quote-content {
    font-size: 2rem;
  }
  .quote-content.medium {
    font-size: 1.8rem;
  }
  
  .quote-content.long {
    font-size: 1.6rem;
  }
}

@media all and (max-width: 450px) {
  .nav-item {
    margin-left: 6px;
  }
  .container {
    max-width: 90%;
  }
  .quote-content {
    font-size: 1.8rem;
  }
  .quote-content.medium {
    font-size: 1.5rem;
  }
  .quote-content.long {
    font-size: 1.3rem;
  }
  .quote-details {
    font-size: 1rem;
  }
}

/** About page **/

.about-message {
  margin-top: 4rem;
  font-weight: bold;
  text-align: center;
  font-size: 1.1rem;
  font-family: 'Playfair Display', serif
}

/** All quotes page **/

.all-quote-container {
  margin: 3rem 0; 
  font-family: 'Playfair Display', serif
}

.all-quote-reference {
  text-align: right;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.all-quote-content {
  font-size: 1.2rem;
}

.quotes-filter {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.author-filter-container {
  margin-right: 1rem;
}