/*  */
/* FONT */
/*  */

@font-face {
 font-family: "Futura";
 font-weight: bold;
 src: url("fonts/futuralt-bold.woff2") format("woff2"),
      url("/fonts/futuralt-bold.woff") format("woff"),
      url("/fonts/futuralt-bold.eot") format("eot"),
      url("/fonts/futuralt-bold.ttf") format("ttf"),
      url("/fonts/futuralt-bold.svg") format("svg");
}

@font-face {
 font-family: "Futura";
 font-weight: normal;
 src: url("fonts/futuralt-book.woff2") format("woff2"),
      url("/fonts/futuralt-book.woff") format("woff"),
      url("/fonts/futuralt-book.eot") format("eot"),
      url("/fonts/futuralt-book.ttf") format("ttf"),
      url("/fonts/futuralt-book.svg") format("svg");
}

/*  */
/* GLOBAL */
/*  */

* {
  font-family: "Futura";
}

body {
  width: 90%;
  max-width: 900px;
  margin: 25px auto;
}

img {
  width: 150px;
  margin-bottom: 25px;
}

div.clear {
  width: 100%;
  clear: both;
}

div#infos {
  width: 100%;
}
div#infos h4 {
  margin: 0;
  color: #231f20;
}

p {
  display: block;
  clear: both;
  margin: 20px auto;
}
p:first-of-type {
  margin-top: 50px;
}

div#payment {
  clear: both;
  width: 100%;
  margin-top: 50px;
  display: inline-block;
}

div#payment > div {
  width: 50%;
  float: left;
  padding: 0 10px;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  border: 1px solid #CEE9E3;
}
div#payment > div:first-child {
  border-right: 0;
}

div#payment h5 {
  text-transform: uppercase;
}
div#payment h5, div#payment h3 {
  margin: 10px 0 10px;
  color: #231f20;
}

button {
  margin: 25px auto;
  color: #fff;
  background: #231f20;
  font-weight: bold;
  font-size: 10px;
  text-transform: uppercase;
  text-decoration: none;
  padding: 15px 50px;
  display: block;
  letter-spacing: 3px;
  line-height: 1.4;
  cursor: pointer;
  border: none;
  height: 44px;
}

button:active, button:focus {
  outline: none;
}

button.loading {
  font-size: 0;
  min-width: 200px;
  background-image: url('../images/spinner.svg');
  background-position: center;
  background-repeat: no-repeat;
}
button.done {
  font-size: 0;
  min-width: 200px;
  background-image: url('../images/check.svg');
  background-position: center;
  background-repeat: no-repeat;
  background-size: 20px;
}

main > p {
  display: none;
}
main.waiting > p {
  display: block;
}

main #waiting,
main #processing,
main #paid {
  display: none;
  text-align: center;
  width: 100%;
}
main.waiting #waiting {
  display: inline-block;
}
main.processing #processing {
  display: inline-block;
}
main.paid #paid {
  display: inline-block;
}

#waiting {
  width: 100%;
  text-align: center;
}

#processing h2,
#paid h2 {
  display: inline-block;
  width: 100%;
  text-align: center;
  color: #231f20;
  margin-top: 25px;
}

#processing svg,
#paid svg {
  height: 50px;
  max-width: 100%;
  margin-top: 10px;
}
#processing svg,
#paid svg,
#processing svg path,
#paid svg path {
  fill: #231f20;
}

#popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.75);
  display: -webkit-flex;
  display: -ms-flex;
  display: flex;
  opacity: 0;
  justify-content: center;
  -ms-align-items: center;
  align-items: center;
  -webkit-transition: 0.5s all;
  -o-transition: 0.5s all;
  transition: 0.5s all;
  visibility: hidden;
}
#popup.on {
  opacity: 1;
  visibility: visible;
}

#popup > div {
  text-align: center;
  width: 90%;
  max-width: 500px;
  padding: 25px 0;
  -webkit-box-shadow: 0 0 50px #000;
  box-shadow: 0 0 50px #000;
  background: #fff;
}

#popup #card {
  width: 80%;
  padding: 25px;
  margin:50px auto;
  border: 1px solid #CEE9E3;
}

#popup #card-errors {
  margin-top: -25px;
}

div#copyright {
  font-size: 12px;
  width: 100%;
  text-align: center;
  margin: 150px 0 50px;
}


/*  */
/* RESPONSIVE */
/*  */

@media screen and (min-width: 40em) {

  body { margin-top: 50px; }

  img {
    float: left;
    width: 200px;
  }

  p {
    max-width: 70%;
  }

  div#infos {
    max-width: 50%;
    width: calc(100% - 250px);
    float: right;
  }

  div#payment > div { padding: 20px 25px 25px; }

}
