/*google fonts */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap");

@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600&family=Poppins:wght@400;500;600;700&display=swap");

/*  base css */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: rgb(128, 194, 238);
  height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

a {
  text-decoration: none;
}

li {
  list-style-type: none;
}

button {
  cursor: pointer;
  outline: none;
  border: none;
  text-transform: uppercase;
  letter-spacing: 3px;
}

/* ............................................... */

.container {
  height: 100vh;
  max-width: 1100px;
  margin-inline: auto;
  padding: 1rem;
  /* border: 1px solid white; */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.heading {
  position: absolute;
  top: calc(50% - 16rem);
  text-transform: uppercase;
  font-weight: 800;
  font-size: 1.5rem;
  color: rgb(15, 15, 80);
  letter-spacing: 5px;
  /* color: rgb(255, 255, 255); */
  /* text-shadow: 3px 3px 12px rgba(0, 0, 0, 0.2); */
}

.quotes__icon__big {
  font-size: 20rem;
  position: absolute;
  color: rgba(113, 186, 255, 0.904);
  background-color: red;
  padding: 0;
}

.quotes__container {
  min-width: 360px;
  min-height: 360px;
  max-width: 440px;
  max-height: 520px;
  background-color: #fcfcfc;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  box-shadow: 0px 5px 20px rgba(0, 0, 0, 0.4);
}

.quote__box {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.quotes__icon__small {
  font-size: 13rem;
  position: absolute;
  color: rgb(217, 237, 250);
  z-index: 1;
}

.quote {
  z-index: 2;
  font-size: 1.75rem;
  font-weight: 500;
  font-family: "Playfair Display", serif;
}

.quote__small {
  font-size: 1.5rem;
}

.quote__very__small {
  font-size: 1.15rem;
}

.author {
  font-size: 0.8rem;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 4px;
  margin-top: 0.75rem;
}

.buttons__container {
  margin-top: 2rem;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.twitter__btn {
  border-radius: 50%;
  background-color: rgb(175, 215, 228);
  padding: 0.5rem;
  transition: all 0.3s;
}

.twitter__btn:hover {
  background-color: rgb(154, 196, 209);
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
}

.twitter__icon {
  color: rgb(25, 25, 102);
  font-size: 1.25rem;
  /* background-color: rgb(106, 190, 218); */
}

.twitter__btn:hover .twitter__icon {
  color: rgb(15, 15, 80);
}

.next__btn {
  padding: 0.75rem 1.25rem;
  background-color: rgb(24, 36, 105);
  color: #fcfcfc;
  font-size: 0.65rem;
  font-weight: 600;
  transition: all 0.3s;
}

.next__btn:hover {
  background-color: rgb(13, 23, 83);
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
}

/* loader */

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

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

/* ............................................... */

/* attribution */

.attribution {
  position: absolute;
  bottom: 1rem;
  text-align: center;
  font-size: 0.85rem;
  color: #111;
}

.attribution a {
  color: #111;
  font-weight: 600;
}

/* responsiveness for very small devices */
@media screen and (max-width: 390px) {
  html,
  body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

  .quotes__container {
    min-width: 300px;
    min-height: 320px;
  }

  .quote {
    font-size: 1.5rem;
  }

  .quote__small {
    font-size: 0.9rem;
  }

  .quote__very__small {
    font-size: 0.8rem;
  }

  .author {
    font-size: 0.7rem;
    width: 80%;
  }
}
