* {
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
}

body {
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
  background-image: url("https://s3-us-west-2.amazonaws.com/s.cdpn.io/85486/stars-min.png"), radial-gradient(circle at center, #351215 10%, #07131E 100%);
}

h1 {
  font-size: 9em;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding-bottom: 0em;
  margin: 2em 0 -0.05em -0.025em;
  text-shadow: 10px 10px 40px rgba(32, 18, 26, 0.5);
}

p {
  font-size: 1.1em;
  letter-spacing: 0.04em;
  line-height: 1.55;
}

.space {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  /* Added items-center to center horizontally */
  align-items: center;
}


.card {
  position: absolute;
  width: 100%;
  max-width: 600px;
  color: #FFF;
  padding: 2em 1em;
  margin-left: 6em;
  z-index: 0;
}

.info {
  font-size: 0.95em;
  line-height: 1.8;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  list-style-type: none;
  padding: 0;
  margin-top: 0px;
}

.info span {
  color: #E46039;
}

.planet {
  width: 1500px;
  height: 1500px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate3d(0, 0, 1, -25deg) scale3d(0.23, 0.23, 1);
  z-index: -9; /* Keep the planet behind the main content */
}

.planet:after {
  content: "";
  width: 1500px;
  height: 1500px;
  position: absolute;
  border-radius: 100%;
  top: 0;
  left: 0;
  box-shadow: inset 25px 40px 100px 0px rgba(255, 255, 255, 0.45), -50px -50px 150px 0px rgba(225, 69, 38, 0.35), -25px -55px 150px 0px rgba(226, 108, 66, 0.2), 0 0 150px 100px rgba(58, 2, 0, 0.4);
}
.planet:before {
  content: "";
  width: 1500px;
  height: 1500px;
  position: absolute;
  border-radius: 100%;
  background: #E26C42;
  mix-blend-mode: overlay;
  opacity: 0.35;
  z-index: 100;
}

.space:active .planet {
  transform: rotate3d(0, 0, 1, -25deg) scale3d(0.5, 0.5, 1);
  transition: transform 1s ease;
}

.space:active .img-map {
  -webkit-animation-play-state: paused;
          animation-play-state: paused;
}

.mars {
  width: 1500px;
  height: 1500px;
  border-radius: 100%;
  position: relative;
  overflow: hidden;
  -webkit-clip-path: content-box;
          clip-path: content-box;
  background-image: radial-gradient(circle farthest-side at 0% 0%, rgba(255, 255, 255, 0.25) 0%, rgba(0, 0, 0, 0.35) 100%), radial-gradient(circle farthest-side at 0% 0%, #ffbd9d 25%, transparent 80%), radial-gradient(circle farthest-side at 0% 0%, #da200d 0%, transparent 100%), radial-gradient(circle farthest-side at 50% 0%, #f05748 0%, #270300 85%);
}

.mars .img-map {
  width: 6000px;
  height: 1500px;
  position: absolute;
  mix-blend-mode: soft-light;
  opacity: 0.4;
  background: url("https://s3-us-west-2.amazonaws.com/s.cdpn.io/85486/mars-bg-min.jpg") 0% 0%/auto 100% repeat-x;
  -webkit-animation: rotate 20s linear infinite;
          animation: rotate 20s linear infinite;
}

@-webkit-keyframes rotate {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

@keyframes rotate {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}