* {
  margin: 0;
  box-sizing: border-box;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  margin: 10px 10px 0 0;
  padding-bottom: 0.714em !important;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 400;
  color: white;
  font-weight: bold;
  text-align: center;
}

p {
  margin: 10px 10px 0 0;
}

body {
  height: 100%;
  width: 100%;
  position: absolute;
  background: url("background.jpg");
  background-repeat: no-repeat;
  background-position: center center;
  background-attachment: fixed;
  background-size: cover;
  font-family: 'Raleway', sans-serif;
  text-align: center;
}

.noselect {
  user-select: none;
}

.outline {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.card {
  background-color: transparent;
  width: 500px;
  height: 300px;
  perspective: 5000px;
}

.card:hover .inner {
  transform: rotateY(180deg) translateZ(5px);
  backface-visibility: visible;
}

.inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: 1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-align: center;
  background: url("background.jpg");
  background-repeat: no-repeat;
  background-size: cover;
}

.inner:after {
  content: "";
  background: inherit;
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  filter: blur(8px);
}

.front, .back {
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: 10;
  padding: 20px;
  backface-visibility: hidden;
  transform: rotateY(0deg) translateZ(0px);
}

.front {
  text-align: center;
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
}

.front h1 {
  text-align: center;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.back {
  background-color: rgba(255, 255, 255, 0.3);
  color: white;
  transform: rotateY(-180deg);
}

.back h1 {
  padding-bottom: 0 !important;
  padding-top: 0.714em !important;
}

.back p {
  padding-top: 0 !important;
}

.back img {
  top: 10px;
  position: relative;
  width: 110px;
  height: 110px;
  border-radius: 100%;
}

.info-grid {
  z-index: 2;
  width: 100%;
  height: 100%;
  box-shadow: 0px 2px 15px rgba(0, 0, 0, 0.432);
  border-radius: 6px;
  font-size: 0.7rem; /*12px;*/
  display: grid;
  grid-template-columns: 15px repeat(3, 1fr) 15px;
  grid-template-rows: repeat(3, 1fr);
  line-height: 1px;
}

.info-grid svg {
  margin-top: 10px;
}

.info-grid p {
  padding-top: 5px;
}

.info-grid .name {
  grid-column: 1 / span 4;
  grid-row: 1 / span 1;
  font-size: 1.2em;
  letter-spacing: .1rem;
  margin-top: 8px;
}

.info-grid .name h2, .info-grid .name h4 {
  font-weight: unset;
  text-align: left;
}

.info-grid .addr {
  grid-column: 3 / span 2;
  grid-row: 2;
  text-align: end;
}

.info-grid .numbers {
  grid-column: 1 / span 4;
  grid-row: 3;
}

.info-grid .eaddr {
  grid-column: 2 / span 5;
  grid-row: 4;
  text-align: end;
  font-size: 1.1em;
}

.info-grid .numbers svg {
  float: left;
}

.info-grid .numbers p {
  margin-left: 45px;
  text-align: left;
  white-space: pre;
}

.info-grid .addr svg, .info-grid .eaddr svg {
  float: right;
}

.info-grid .addr p, .info-grid .eaddr p {
  margin-right: 45px;
}

@media only screen and (max-width: 300px) and (orientation: portrait) {
  html {
    transform: rotate(-90deg);
    transform-origin: left top;
    width: 100vh;
    height: 100vw;
    position: absolute;
    top: 100%;
  }
}

@media print {
  html, body, .outline, .card, .inner {
    all: unset;
  }

  html {
    background: url("background.jpg");
    background-repeat: no-repeat;
    background-position: right top;
    background-attachment: fixed;
  }

  body {
    font-family: 'Raleway', sans-serif;
    text-align: center;
  }


  .front, .back {
    width: 500px;
    height: 300px;
    display: block;
    position: relative;
    transform: rotateY(0deg);
  }

  .inner {
    margin-top: 300px;
  }

  .back {
    clear: both;
    display: block;
  }
}
