@import url("https://fonts.googleapis.com/css2?family=Poppins&display=swap");

@keyframes orbit {
  0% {
    transform: rotateZ(0deg);
  }
  100% {
    transform: rotateZ(360deg);
  }
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background-image: linear-gradient(135deg, #1e1e20, #0e0e11 32%);
  font-family: "Poppins", sans-serif;
  position: relative;
  margin: 0;
}

section {
  height: 100vh;
}

#moon {
  display: grid;
  place-content: center;
}

#solar-system {
  z-index: 0;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-bottom: 0;
  display: flex;
}

.star-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  z-index: -1;
  background-image: url("./Stars.png");
}

.orbits-div {
  z-index: 0;
  height: 100vh;
  width: 100%;
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-left: auto;
  margin-right: auto;
  position: absolute;
  top: 0%;
  bottom: 0%;
  left: 0%;
  right: 0%;
}

.sun {
  z-index: 100;
  width: 190px;
  height: 190px;
  margin-left: auto;
  margin-right: auto;
  display: block;
  position: relative;
  top: -4px;
  background-image: linear-gradient(
    11deg,
    rgba(255, 36, 36, 1) 0%,
    rgba(251, 129, 11, 1) 50%,
    rgba(241, 236, 2, 1) 100%
  );
  border-radius: 50%;
}

.orbits-div img {
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  display: inline-block;
  position: static;
  border: 0;
}

.orbit {
  position: absolute;
  background-image: url(https://uploads-ssl.webflow.com/6408bea3de5aef58b7e197d4/6408d31fe77edc25e03ef3ee_orbit-01.svg);
  background-position: 50%;
  background-repeat: no-repeat;
  background-size: contain;
}

#orbit-1 {
  z-index: 2;
  width: 266px;
  height: 266px;
}

#orbit-2 {
  z-index: 3;
  width: 366px;
  height: 366px;
}

#orbit-3 {
  z-index: 4;
  width: 500px;
  height: 500px;
}

#orbit-4 {
  z-index: 5;
  width: 650px;
  height: 650px;
}
#orbit-5 {
  z-index: 6;
  width: 820px;
  height: 820px;
}

.planet-div {
  transform: translate3d(0px, 0px, 0px) scale3d(1, 1, 1) rotateX(0deg)
    rotateY(0deg) rotateY(0deg) skew(0deg);
  transform-style: preserve-3d;
  z-index: 1;
  position: absolute;
  top: 0%;
  bottom: 0%;
  left: 0%;
  right: 0%;
  animation-name: orbit;
  animation-iteration-count: infinite;
  animation-timing-function: linear;
}

#planet-div-1 {
  animation-duration: 5.76s;
}

#planet-div-2 {
  animation-duration: 14.88s;
}
#planet-div-3 {
  animation-duration: 24s;
}
#planet-div-4 {
  animation-duration: 45.12s;
}
#planet-div-5 {
  animation-duration: 284s;
}

.planet {
  opacity: 1;
  transform: translate3d(0px, 0px, 0px) scale3d(1, 1, 1) rotateX(0deg)
    rotateY(0deg) rotateZ(-73deg) skew(0deg);
  transform-style: preserve-3d;
  box-shadow: none;
  border-radius: 100%;
  position: absolute;
  top: auto;
  left: auto;
}

#planet-1 {
  width: 24px;
  height: 24px;
  bottom: -7px;
  right: 143px;
}

#planet-2 {
  width: 36px;
  height: 36px;
  bottom: 141px;
  right: 347px;
}

#planet-3 {
  width: 110px;
  height: 110px;
  bottom: 355px;
  right: 387px;
}

#planet-4 {
  width: 120px;
  height: 120px;
  bottom: 33px;
  right: 487px;
}

#planet-5 {
  width: 140px;
  height: 140px;

  bottom: 317px;
  right: 752px;
}

.container {
  background-color: #1d1c20;
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  border-radius: 1.6em;
  padding: 5em 3em;
}

.container > h1 {
  font-size: 3.5rem;
  line-height: 1.5rem;
  letter-spacing: -0.6%;
  margin-bottom: 0.5em;
  color: #fff;
}

.container > p {
  color: #a9a9a9;
  margin: 0 auto;
  max-width: 50ch;
  margin-bottom: 2em;
}

.card-container {
  display: flex;
}

.card {
  height: 30vmin;
  width: 30vmin;
  background-color: #353238;
  border-radius: 3em;
  margin: 0 -1em;
  cursor: pointer;
  border: 1px solid rgba(243, 245, 247, 0.15);
  box-shadow: 0 20px 25px rgba(0, 0, 0, 0.5), inset 0 2px 2px #525154;
  transition: transform ease-in-out 0.2s;
  overflow: hidden;
  position: relative;
  background-image: linear-gradient(#343236, #38343f);
}

.card > img {
  object-fit: cover;
  object-position: 50% 50%;
  height: 100%;
  opacity: 0;
  filter: blur(calc(1 * 10px));
  transition: all ease-in 0.2s;
}

.card::before {
  content: "\f03e";
  font-family: "Font Awesome\ 5 free";
  font-weight: 900;
  font-size: 5em;
  color: #504e53;
  position: absolute;
  height: 100%;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.card:hover > img {
  opacity: 1;
  filter: blur(0px);
}

.card:first-child {
  transform: rotate(2deg);
  z-index: 3;
}

.card:nth-child(2) {
  transform: rotate(-3deg);
  z-index: 2;
}

.card:last-child {
  transform: rotate(5deg);
  z-index: 1;
}

.card:hover {
  transform: scale(1.05) rotate(0deg);
  z-index: 4;
}
