@import url("https://fonts.googleapis.com/css?family=Raleway:400,500");
* {
  margin: 0;
  padding: 0;
}

div {
  position: relative;
  z-index: 2;
}

body {
  background-color: #333;
  color: #333;
  font-family: "Raleway", sans-serif;
  font-weigth: 400;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.footer {
  width: 450px;
  text-align: center;
  margin: 15px auto 30px auto;
  color: #fff;
}
.footer a {
  font-weight: 500;
  text-decoration: none;
  color: #fff;
}

#quote-box {
  border-radius: 3px;
  position: relative;
  width: 500px;
  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: 2em;
}
#quote-box .quote-text i {
  margin-right: 0.4em;
  margin-left: 0.4em;
}
#quote-box .quote-author {
  width: 450px;
  height: auto;
  clear: both;
  padding-top: 20px;
  font-size: 1.2em;
  text-align: right;
}
#quote-box .buttons {
  width: 450px;
  margin: auto;
  display: block;
}
#quote-box .buttons .button {
  height: 38px;
  border: none;
  border-radius: 5%;
  color: #fff;
  background-color: #333;
  outline: none;
  font-size: 0.85em;
  padding: 8px 18px 6px 18px;
  margin-top: 20px;
  opacity: 1;
  cursor: pointer;
}
#quote-box .buttons .button:hover {
  opacity: 0.9;
}
#quote-box .buttons .button#tweet-quote, #quote-box .buttons .button#tumblr-quote {
  float: left;
  padding: 0;
  padding-top: 9px;
  padding-bottom: 1px;
  height: 30px;
  width: 40px;
  margin-right: 5px;
  text-align: center;
  align-items: center;
  border-radius: 15%;
  font-size: 1.2em;
}
#quote-box .buttons .button#new-quote {
  float: right;
}

@media (max-width: 600px) {
  .footer {
    width: 100vw;
  }

  #quote-box {
    width: 100vw;
    padding: 40px 0;
  }
  #quote-box .quote-text {
    width: 100vw;
  }
  #quote-box .quote-author {
    width: 100vw;
  }
  #quote-box .buttons {
    width: 100vw;
  }
}
@media (max-width: 300px) {
  body {
    height: auto;
  }

  .footer {
    margin: 0;
    padding: 0;
  }

  #quote-box {
    height: auto;
    margin: 0;
    padding: 0;
  }
  #quote-box .quote-text {
    margin: 0;
    padding: 0;
  }
  #quote-box .quote-author {
    margin: 0;
    padding: 0;
  }
  #quote-box .buttons {
    margin: 0;
    padding: 0;
  }
  #quote-box .buttons .button#tweet-quote {
    margin-right: 1px;
  }
  #quote-box .buttons .button#tumblr-quote {
    margin-right: 0;
  }
  #quote-box .buttons .button#new-quote {
    padding: 8px 14px 6px 14px;
  }
}