@import url("https://fonts.googleapis.com/css2?family=Montserrat&display=swap");

* {
  margin: 0;
  padding: 0;
  list-style: none;
  vertical-align: baseline;
}

div {
  position: relative;
  z-index: 2;
}

body {
  background-color: #333;
  color: #333;
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.footer {
  width: 450px;
  text-align: center;
  display: block;
  margin: 15px auto 30px auto;
  font-size: 0.8em;
  color: #fff;
}
.footer a {
  font-weight: 500;
  text-decoration: none;
  color: #fff;
}

#quote-box {
  border-radius: 20px;
  position: relative;
  width: 450px;
  padding: 40px 50px;
  display: table;
  background-color: #fff;
}
#quote-box .quote-text {
  text-align: center;
  width: 450px;
  height: auto;
  clear: both;
  font-weight: 500;
  font-size: 1.75em;
}
#quote-box .quote-text i {
  font-size: 1em;
  margin-right: 0.4em;
}
#quote-box .quote-author {
  width: 450px;
  height: auto;
  clear: both;
  padding-top: 20px;
  font-size: 1em;
  text-align: right;
}
#quote-box .buttons {
  width: 450px;
  margin: auto;
  display: block;
}
#quote-box .buttons .button {
  height: 38px;
  border: none;
  border-radius: 15px;
  font-family: "Montserrat", sans-serif;
  color: #fff;
  background-color: #333;
  outline: none;
  font-size: 0.9em;
  padding: 8px 18px 6px 18px;
  margin-top: 30px;
  opacity: 1;
  cursor: pointer;
  transition: all 0.2s ease;
}
#quote-box .buttons .button:hover {
  transform: scale(1.05);
}
#quote-box .buttons .button:active {
  transform: scale(0.95);
}
#quote-box .buttons .button#tweet-quote,
#quote-box .buttons .button#tumblr-quote {
  float: left;
  padding: 0px;
  padding-top: 8px;
  text-align: center;
  font-size: 1.25em;
  margin-right: 10px;
  height: 30px;
  width: 40px;
}
#quote-box .buttons .button#new-quote {
  float: right;
}

/* Media Queries for Tablets (768px and below) */
@media screen and (max-width: 768px) {
  body {
    padding: 20px;
  }
  #quote-box {
    width: 90%;
    padding: 30px;
  }
  #quote-box .quote-text {
    width: 100%;
    font-size: 1.5em;
  }
  #quote-box .quote-author {
    width: 100%;
    font-size: 0.9em;
    padding-top: 15px;
  }
  #quote-box .buttons {
    width: 100%;
  }
  .footer {
    width: 90%;
    font-size: 0.75em;
  }
}

/* Media Queries for Mobile Devices (480px and below) */
@media screen and (max-width: 480px) {
  body {
    padding: 15px;
  }
  #quote-box {
    width: 90%;
    padding: 20px;
  }
  #quote-box .quote-text {
    font-size: 1.2em;
  }
  #quote-box .quote-author {
    font-size: 0.85em;
    padding-top: 10px;
  }
  #quote-box .buttons .button#tweet-quote,
  #quote-box .buttons .button#tumblr-quote {
    font-size: 1.1em;
    margin-right: 5px;
  }
  #quote-box .buttons .button#new-quote {
    float: none;
    padding: 8px 15px;
    font-size: 0.85em;
  }
  .footer {
    width: 100%;
    font-size: 0.7em;
    margin: 10px auto 20px auto;
  }
}
