@import url(https://fonts.googleapis.com/css?family=Lato);

/* PAGE */
body {
  margin: 0;
  min-height: 100vh;
  background: #111 url(assets/bg.jpg) center / cover no-repeat fixed;
}

/* CENTERING */
.centered {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* THE FRONT (card cover with XO logo) */
.front {
  background-color: #fff;
  background-image: url(assets/logo.png);
  background-size: 75%;
  background-repeat: no-repeat;
  background-position: center;
}

/* THE BACK (contact info) */
.back {
  background-color: #fff;
}

/* Black bar on the left of the back, with the XO logo */
.back::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 30%;
  background-color: #000;
}

.back::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 30%;
  background-image: url(assets/logo.png);
  background-size: 75%;
  background-repeat: no-repeat;
  background-position: center 20px;
  filter: invert(1);
  pointer-events: none;
}

.back h1,
.back p,
.back .font-a-icons {
  color: #000;
  font-family: "Lato", sans-serif;
  margin-left: 35%;
  line-height: 90%;
}

.back h1 {
  margin-top: 5%;
}

.back p {
  font-size: 16px;
  padding-bottom: 15px;
  width: 60%;
  border-bottom: 2px solid #000;
}

.back .bold {
  font-weight: bold;
}

.back .font-a-icons {
  margin-top: 25px;
}

.back .font-a-icons .icon-group {
  margin-top: 8px;
}

.back .font-a-icons span,
.back .font-a-icons .fa,
.back .font-a-icons a {
  color: #000;
}

.back .font-a-icons .fa {
  font-size: 18px;
}

.back .font-a-icons span,
.back .font-a-icons a {
  font-size: 16px;
}

.back .font-a-icons a {
  text-decoration: none;
}

.back .font-a-icons a:hover {
  color: #3f3f3f;
}

.back .icon-box {
  position: relative;
  color: #000;
  font-size: 24px;
  height: 45px;
  width: 45px;
  line-height: 45px;
  top: 75px;
  left: 35%;
  display: inline-block;
  border: 2px solid #000;
  margin: 5px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: all ease 0.5s;
}

.back .icon-box:hover {
  box-shadow: inset 0 50px 0 0 #000;
  color: #fff;
}

/* THE FLIP EFFECT */
.flip-container {
  perspective: 1000px;
}

.flip-container.hover .flipper {
  transform: rotateY(180deg);
  cursor: pointer;
}

@media (hover: hover) {
  .flip-container:hover .flipper {
    transform: rotateY(180deg);
    cursor: pointer;
  }
}

.flip-container,
.front,
.back {
  height: 350px;
  width: 600px;
}

.flipper {
  transition: 0.5s;
  transform-style: preserve-3d;
  position: relative;
}

.front,
.back {
  backface-visibility: hidden;
  position: absolute;
}

.front {
  z-index: 2;
  transform: rotateY(0deg);
}

.back {
  transform: rotateY(180deg);
}

/* Responsive — same card shape on mobile, just scale content down to fit */
@media (max-width: 650px) {
  .flip-container,
  .front,
  .back {
    width: 90vw;
    height: 52vw;
  }

  .back h1 {
    font-size: 4.5vw;
  }

  .back p {
    font-size: 2.8vw;
    padding-bottom: 1.2vw;
  }

  .back .font-a-icons {
    margin-top: 1.5vw;
  }

  .back .font-a-icons .icon-group {
    margin-top: 0.6vw;
  }

  .back .font-a-icons span,
  .back .font-a-icons a {
    font-size: 2.8vw;
  }

  .back .icon-box {
    height: 5.5vw;
    width: 5.5vw;
    line-height: 5.5vw;
    font-size: 3vw;
    margin: 0.4vw;
    top: 2vw;
    border-width: 1px;
  }
}
