@import "https://fonts.googleapis.com/css?family=Open+Sans";
html {
  min-height: 100%;
  position: relative;
}

body {
  font-family: 'Lato', sans-serif;
  margin-bottom: 241px;
}

.card {
  margin-left: auto;
  margin-right: auto;
  margin-top: 100px;
  margin-bottom: 99px;
  height: 550px;
  width: 65%;
  perspective: 1110px;
  position: relative;
  transform-style: preserve-3d;
}
.card .face {
  -moz-box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2);
  -webkit-box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2);
  box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2);
  backface-visibility: hidden;
  background: #BCD8C1;
  transform-style: preserve-3d;
  position: relative;
  height: 100%;
  transition: all 0.5s ease-out;
  border-radius: 20px;
}
.card .front {
  z-index: 1;
  transform: rotateY(0deg);
}
.card .front .start-menu h1 {
  margin-top: 0;
  padding-top: 50px;
  text-align: center;
}
.card .front .start-menu .button {
  margin-bottom: 20px;
  margin-left: 15%;
  width: 70%;
}
.card .front .start-menu #start {
  margin-left: 15%;
  width: 70%;
  margin-top: 88px;
  height: 80px;
  font-size: 30px;
}
.card .front .trivia {
  display: none;
}
.card .front .trivia .title {
  margin-top: 0;
  padding-top: 50px;
  text-align: center;
}
.card .front .trivia .timer {
  text-align: center;
}
.card .front .trivia .question {
  margin: 30px 100px 5px;
  width: 70%;
}
.card .front .trivia .choices {
  margin: 20px 100px 0;
}
.card .front .trivia .choice {
  padding: 15px 5px;
}
.card .front .trivia .choice:hover {
  box-shadow: 0 0 6px #000;
  border-radius: 10px;
}
.card .front .result {
  display: none;
}
.card .front .result h1 {
  margin-top: 0;
  padding-top: 50px;
  text-align: center;
}
.card .front .result .score {
  text-align: center;
}
.card .front .result .play-again {
  margin-top: 50px;
}
.card .back {
  background: #eceeef;
  z-index: 0;
  transform: rotateY(-180deg);
  display: none;
}
.card .back h1 {
  text-align: center;
}
.card .back .content {
  padding-left: 20%;
  padding-right: 20%;
  padding-top: 200px;
  text-align: center;
}
.card .back .correct-content, .card .back .incorrect-content, .card .back .no-time-content {
  display: none;
}

/*! Footer */
footer {
  background: #222222;
  color: #fff;
  margin: 0;
  font-family: 'Open Sans', sans-serif;
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 241px;
}
footer h3 {
  color: #9d9d9d;
  font-weight: lighter;
  font-style: italic;
  margin-bottom: 0;
  margin-top: 40px;
}
footer p, footer li {
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 10px 0;
}
footer a {
  color: #fff;
  text-decoration: none;
  -webkit-transition: color .5s, background .5s;
  transition: color .5s, background .5s;
}
footer a:hover {
  color: #65c2ed;
}
footer .centered {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
}
footer .centered:before, footer .centered:after {
  content: '\0020';
  display: block;
  overflow: hidden;
  visibility: hidden;
  width: 0;
  height: 0;
  clear: both;
}
footer .centered .footer-contact {
  width: 35%;
}
footer .centered .footer-contact .fa {
  width: 20px;
  padding-right: 10px;
}
footer .centered .footer-connect {
  width: 35%;
}
footer .centered .footer-navigation {
  width: 30%;
}
footer .centered .footer-navigation ul {
  width: 50%;
  float: left;
}
footer .centered .footer-navigation .fa {
  padding-right: 10px;
}
footer .bottom-bar {
  position: relative;
  text-align: center;
  font-size: .8em;
  text-transform: uppercase;
  background: #000;
  padding: 15px 0;
}
footer ul {
  list-style-type: none;
}

.social li {
  float: left;
}
.social a {
  display: inline-block;
  padding: 0 7px;
  margin: 3px 10px 10px 0;
  vertical-align: middle;
}

* {
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

/*! Footer */
@media only screen and (max-width: 769px) {
  .card {
    margin-bottom: 99px;
    padding-bottom: 50px;
  }
  .card .front .start-menu .col-md-6 {
    float: left;
    margin-left: 5%;
    margin-right: 5%;
    width: 40%;
  }
  .card .front .start-menu h1 {
    padding-top: 30px;
  }
  .card .front .start-menu .button {
    margin-left: 0;
    width: 100%;
  }
  .card .front .start-menu #start {
    width: 100%;
    margin-left: 0;
    height: 60px;
  }
  .card .front .trivia .question {
    margin: 30px 50px 5px;
  }
  .card .front .trivia .choices {
    margin: 20px 50px 0;
  }
  .card .back .content {
    margin-top: -30px;
  }
}
@media only screen and (max-width: 749px) {
  body {
    margin-bottom: 397px;
  }

  footer {
    height: 397px;
  }
  footer .centered {
    flex-wrap: wrap;
  }
  footer .centered .footer-contact {
    width: 50%;
    margin: 0 auto;
  }
  footer .centered .footer-connect {
    width: 50%;
    margin: 0 auto;
  }
  footer .centered .footer-navigation {
    width: 100%;
  }
}
@media only screen and (max-width: 500px) {
  body {
    margin-bottom: 600px !important;
  }

  .card {
    margin-left: auto;
    margin-right: auto;
    margin-top: 50px;
    height: 650px;
    margin-bottom: 60px;
    width: 100%;
  }
  .card .face {
    border-radius: 20px;
  }
  .card .front .start-menu .col-md-6 {
    margin-left: 2.5%;
    margin-right: 2.5%;
    width: 45%;
  }
  .card .front .start-menu h1 {
    font-size: 24px;
  }
  .card .front .start-menu .button {
    padding-left: 8px;
    padding-right: 8px;
  }
  .card .front .start-menu #start {
    margin-top: 30px;
  }
  .card .front .trivia .question {
    margin: 30px 33px 5px;
  }
  .card .front .trivia .choices {
    margin: 20px 33px 0;
  }
  .card .back .content {
    margin-top: 0;
  }
  .card .back .correct-content h1 {
    margin-left: -25px;
  }

  footer {
    height: 505px;
  }
  footer .centered {
    margin-right: 0;
    margin-left: 0;
  }
  footer .centered .footer-contact {
    width: 100%;
    margin: 0 auto;
  }
  footer .centered .footer-connect {
    width: 100%;
    margin: 0 auto;
  }
}
