:root {
  --main-background: hsl(209, 53%, 16%);
  --text-color: hsl(0, 0%, 100%);
  --underline-color: hsl(259, 72%, 69%);
  --card-background: hsl(211, 56%, 20%);
  --hover-color: hsl(259, 64%, 44%);
  --font-space-grotesk: "Space Grotesk", sans-serif;
  --font-bold: 700;
  --font-regular: 400;
  --animate-delay: 0.5s;
}

*,*::after,*::before {
  box-sizing: border-box; 
  margin: 0; 
  padding: 0;
  transform-style: preserve-3d;
}
::selection {
  background: rgb(207, 207, 207);
  color: rgb(15, 15, 15);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-space-grotesk);
  background-color: var(--main-background);
  color: var(--text-color);
}

ul {
  list-style-type: none;
}

a {
  text-decoration: none;
  color: var(--text-color);
}

.title {
  margin-bottom: 77px;
  text-align: center;
}
.title h2 {
  font-size: clamp(1.75rem, 1.3546rem + 1.9231vw, 2.125rem);
}
.title p {
  font-size: clamp(1rem, 0.8682rem + 0.641vw, 1.125rem);
}

.animation_delay {
  -webkit-animation-delay: var(--animate-delay);
          animation-delay: var(--animate-delay);
}

.wrapper {
  max-width: 1199px;
  width: 90%;
  margin: 0 auto;
}

/* convert px to rem */
/* header */
.header {
  width: 100%;
  min-height: 100vh;
  height: auto;
  padding-top: 33px;
  /* navigation */
  /* hero section */
}
.header .nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
  /* responsive design */
}
@media screen and (min-width: 600px) {
  .header .nav {
    flex-direction: row;
    justify-content: space-between;
  }
}
.header .nav .logo {
  font-size: 1.625rem;
  color: var(--text-color);
  font-weight: var(--font-bold);
  letter-spacing: 1.3px;
}
.header .nav .social-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 39px;
}
.header .nav .social-links li a i {
  transition: all ease-in-out 0.3s;
}
.header .nav .social-links li a:hover i {
  transition: all ease-in-out 0.3s;
  fill: var(--underline-color);
}
.header .hero-section {
  height: 80vh;
  margin-top: 107px;
  /* responsive design */
}
@media screen and (min-width: 600px) {
  .header .hero-section {
    margin-top: 0;
    display: flex;
    align-items: center;
  }
}
.header .hero-section .hero-container h1 {
  font-size: clamp(2rem, 0.4552rem + 7.47vw, 3.4375rem);
  margin-bottom: 28px;
  /* responsive design */
}
.header .hero-section .hero-container h1 .name {
  position: absolute;
  margin: -95px 0 0 150px;
}
.header .hero-section .hero-container h1 .name::before {
  content: "";
  background-color: var(--underline-color);
  width: 95%;
  height: 6px;
  border-radius: 6px;
  position: absolute;
  left: 0;
  bottom: 0;
}

@keyframes float {
  from, to {
    transform: translateY(-0%);
  }
  
  50% {    
    transform: translateY(-3%);
  }
}

@keyframes background-pan {
  from {
    background-position: 1000% center;
  }
  
  to {
    background-position: 0% center;
  }
}

.header .hero-section .hero-container h1 a {
  display: flex;
}
.name {
  margin: 0rem;
  transition: opacity 250ms ease;
}

a {
  text-decoration: none;
}

.header .hero-section .hero-container h1:has(.fancy:hover) .word:not(.fancy:hover) {
  opacity: 0.2;
}

.fancy span {
  display: inline-block;
}

.fancy > .outer {
  transition: transform 350ms ease;
}

.fancy:hover > .outer {
  transition-duration: 800ms;
}

.fancy:hover > .outer > .inner {
  animation: float 5s ease infinite;
}

.fancy:hover > .outer > .inner > .letter {
  background: linear-gradient(
    to right,
    rgb(84, 72, 250) 0%,
    rgb(199, 72, 250) 0%,
    rgb(84, 72, 250) 0%
  );
  background-size: 1000%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: background-pan 150s linear infinite;
}

.fancy:hover > .outer:nth-child(1) {
  transform: translate(-80%, 60%) rotate(8deg);
}

.fancy:hover > .outer:nth-child(2) {
  transform: translate(-40%, 20%) rotate(4deg);
}

.fancy:hover > .outer:nth-child(3) {
  transform: translate(-10%, 60%) rotate(-6deg);
}

.fancy:hover > .outer:nth-child(4) {
  transform: translate(0%, 8%) rotate(-8deg);
}

.fancy:hover > .outer:nth-child(5) {
  transform: translate(0%, -20%) rotate(5deg);
}

.fancy:hover > .outer:nth-child(6) {
  transform: translate(0%, 20%) rotate(-3deg);
}

.fancy:hover > .outer:nth-child(7) {
  transform: translate(0%, -40%) rotate(-5deg);
}

.fancy:hover > .outer:nth-child(8) {
  transform: translate(0%, 15%) rotate(10deg);
}

.fancy:hover > .outer:nth-child(9) {
  transform: translate(0%, -50%) rotate(8deg);
}

.fancy:hover > .outer:nth-child(10) {
  transform: translate(0%, 15%) rotate(-6deg);
}

@media screen and (min-width: 600px) {
  .header .hero-section .hero-container h1 {
    font-size: clamp(3.4375rem, 1.8685rem + 3.93vw, 4.8125rem);
    max-width: 748px;
    margin-bottom: 46px;
  }
}
.header .hero-section .hero-container p {
  font-size: clamp(1rem, 0.873rem + 0.6309vw, 1.125rem);
  letter-spacing: 1.5px;
  font-weight: var(--font-regular);
  line-height: 23px;
  margin-bottom: 25px;
  /* responsive design */
}
@media screen and (min-width: 600px) {
  .header .hero-section .hero-container p {
    max-width: 450px;
    margin-bottom: 40px;
  }
}
.header .hero-section .hero-container .link {
  color: var(--text-color);
  font-size: clamp(1rem, 0.873rem + 0.6309vw, 1.125rem);
  letter-spacing: 1.5px;
  font-weight: var(--font-bold);
  position: relative;
  margin-right: 2%;
}
.header .hero-section .hero-container .link:hover::before {
  background-color: var(--hover-color);
  transition: all ease-in-out 0.3s;
}
.header .hero-section .hero-container .link::before {
  content: "";
  background-color: var(--underline-color);
  transition: all ease-in-out 0.3s;
  width: 95%;
  height: 2px;
  border-radius: 6px;
  position: absolute;
  left: 0;
  bottom: -4px;
}

/* Galaxy section */

.galaxy-comtainer {
  background-color: rgb(10, 10, 10);
  height: 100vh;  
  margin: 0px;
  overflow: hidden;
}

#galaxy {
  background-image: url(../img/galaxy-bg.jpg);
  background-size: cover;
  transform-style: flat;
  height: 140vmax;
  width: 140vmax;  
  position: absolute;
  background-color: rgb(10, 10, 10);
  height: 100vh;  
  margin: 0px;
  overflow: hidden;
}

.tile {
  border-radius: 1vmax;
  position: absolute;
  transition: transform 800ms ease;
}

.tile:hover {
  transform: scale(1.1);
}

.tile:hover > img {
  opacity: 1;
  transform: scale(1.01);
}

.tile > img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 800ms ease,
    transform 800ms ease;
}

.tile:nth-child(1) {
  background-color: rgb(171, 71, 188);
  height: 30%;
  width: 15%;
  left: 5%;
  top: 5%;
}

.tile:nth-child(2) {
  background-color: rgb(36, 56, 151);
  height: 24%;
  width: 27%;
  left: 35%;
  top: 10%;
}

.tile:nth-child(3) {
  background-color: rgb(224, 63, 60);
  height: 38%;
  width: 12%;
  left: 12%;
  top: 50%;
}

.tile:nth-child(4) {
  background-color: rgb(86 156 193);
  height: 24%;
  width: 14%;
  left: 30%;
  top: 70%;
}

.tile:nth-child(5) {
  background-color: rgb(229 167 240);
  height: 24%;
  width: 14%;
  left: 26%;
  top: 41%;
}

.tile:nth-child(6) {
  background-color: rgb(185 38 255);
  height: 24%;
  width: 24%;
  left: 70%;
  top: 8%;
}

.tile:nth-child(7) {
  background-color: rgb(63, 81, 181);
  height: 14%;
  width: 18%;
  left: 50%;
  top: 53%;
}

.tile:nth-child(8) {
  background-color: rgb(19 33 69);
  height: 24%;
  width: 18%;
  left: 72%;
  top: 42%;
}

.tile:nth-child(9) {
  background-color: rgb(250, 250, 250);
  height: 19%;
  width: 14%;
  left: 49%;
  top: 76%;
}

.tile:nth-child(10) {
  background-color: rgb(219 97 65);
  height: 19%;
  width: 17%;
  left: 68%;
  top: 73%;
}

/* Solar System section */
.solar-system-container {
  background-image: url(../img/bg.jpg);
  background-size: cover;
  transform-style: flat;
  background-color: rgba(0,0,0,.5);
  background-blend-mode: multiply;
}

input {
  visibility: hidden;
  position: absolute;
  transform: translateZ(10px);
}

main {
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flexdiv {
  display: flex;
  justify-content: center;
  align-items: center;
}

.fullscreen {
  width: 100%;
  height: 100vh;
}

.SolarSystemContainer {
  width: 100%;
  height: 100vh;
  position: relative;
  perspective: 1000px;
  overflow: hidden;
  z-index: 0;
  animation: solarFadein 5s 10s;
}

.tutorial {
  border: solid rgba(255, 255, 255, 0.192) 3px;
  border-radius: 5px;
  width: 30%;height: 80vh;
  position: absolute;
  right: 7%;
  flex-direction: column;
  justify-content: space-around;
  color: rgb(240, 240, 240);
  padding: 45px;
  visibility: hidden;
  opacity: 0;
  transition: 1s;
  font-family: 'Oxygen', sans-serif;
  backdrop-filter: blur(2px);
  background: rgba(42, 52, 59, 0.397);
  background: linear-gradient(326deg, rgba(42, 52, 59, 0.158) 0%, rgba(255, 255, 255, 0.096) 100%);
  
}

.tutorial>label {
  border: solid white 2px;
  padding: 10px;
  border-radius: 20px;
  transition: 0.4s;
}

.tutorial>label:hover {
  border: solid rgba(255, 255, 255, 0) 2px;
  background: whitesmoke;
  color: rgb(6, 6, 27);
}

#loading:checked~main .tutorial {
  visibility: visible;
  opacity: 1;
}
#loading:checked~main .zenmode {
  visibility: hidden;
  opacity: 0;
}

.tutorial h2 {
  font-size: 35px;
  text-align: center;

}

.tutorial :is(h2,p,h1,span) {
  cursor: default;
}

.zenmode {
  position: absolute;
  top: 1.5vh;
  right: calc(3vw + 300px);
  width: 100px;
  height: 40px;
  border: solid rgb(255, 255, 255) 2px;
  opacity: 1;
  background: rgba(255, 255, 255, 0);
  color: white;
  border-radius: 20px;
  font-family: oxygen;
  transition: 0.4s;
}

.zenmode:hover {
  background: white;
  color: black;
}

#fullscreen:checked~main .zenmode {
  background: white;
  color: black;
  right: 2vh;
  opacity: 0.3;
}

#fullscreen:checked~main .afterLoad {
  right: -100%;
}#fullscreen:checked~main .SolarSystem {
  top: 10%; 
  left: 55%;
  transform: translate(-50%,-50%) translateZ(-1500px) rotateX(60deg);
}

#fullscreen:checked~main .planet>figure {
  transform: translate(-50%,-50%) rotateZ(0deg) rotateX(-65deg);
}

nav {
  position: absolute;
  top: 1.5vh;
  right: 2vw;
  width: 300px;
  height: 94vh;
  border: rgba(255, 255, 255, 0.418) 2px solid;
  border-radius: 10px;
  background: rgb(42,52,59);
  background: linear-gradient(326deg, rgba(42, 52, 59, 0.158) 0%, rgba(255, 255, 255, 0.151) 100%);
  backdrop-filter: blur(2px);
  transition: 1s;
  opacity: 1;
  display: flex;
  justify-content: center;
}

::-webkit-scrollbar {
  display: none;
}

#loading:checked~main .afterLoad {
  opacity: 0;
  visibility: hidden;
}

nav>ul {
  width: 90%;
  overflow-x: scroll;

}
nav>ul>li:nth-last-child(1) {
  margin-bottom: 15px;
}

nav>ul>li {
  width: 100%;
  height: 70px;
  border-radius: 13px;
  overflow: hidden;
  margin-top: 15px;
  transform: scale(1);
  transition: 0.4s;
  opacity: 0.9;
}

nav>ul>li:hover {
  transform: scale(0.95);
}

nav>ul>li>label {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  font-size: 25px;
  font-family: 'Montserrat', sans-serif;
  color: rgb(255, 255, 255);
  position: relative;
}

nav>ul>li>label>h3 {
  transform: translate(10px);
}

nav>ul>li>label>figure {
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translate(-50%,-50%);
  height: 150%;
  z-index: -1;
}

nav figure>img {
  height: 120%;
}

nav li:nth-child(1) {background: rgb(255,85,0);
  background: linear-gradient(53deg, rgba(255,85,0,1) 0%, rgba(255,218,0,1) 100%);}
nav li:nth-child(2) {background: rgb(0,61,255);
  background: linear-gradient(53deg, rgba(0,61,255,1) 0%, rgba(193,122,255,1) 100%);}
nav li:nth-child(3) {background: rgb(168,73,0);
  background: linear-gradient(53deg, rgba(168,73,0,1) 0%, rgba(255,226,0,1) 100%);}
nav li:nth-child(4) {background: rgb(0,150,255);
  background: linear-gradient(53deg, rgba(0,150,255,1) 0%, rgba(224,255,239,1) 100%);}
nav li:nth-child(5) {background: rgb(99,99,99);
  background: linear-gradient(53deg, rgba(99,99,99,1) 0%, rgba(255,255,255,1) 100%);}
nav li:nth-child(6) {background: rgb(133,33,0);
  background: linear-gradient(53deg, rgba(133,33,0,1) 0%, rgba(255,102,0,1) 100%);}
nav li:nth-child(7) {background: rgb(173,67,0);
  background: linear-gradient(53deg, rgba(173,67,0,1) 0%, rgba(255,230,140,1) 100%);}
nav li:nth-child(8) {background: rgb(194,143,0);
  background: linear-gradient(53deg, rgba(194,143,0,1) 0%, rgba(255,252,142,1) 100%);}
nav li:nth-child(9) {background: rgb(0,172,255);
  background: linear-gradient(53deg, rgba(0,172,255,1) 0%, rgba(255,255,255,1) 100%);}
nav li:nth-child(10) {background: rgb(22,0,113);
  background: linear-gradient(53deg, rgba(22,0,113,1) 0%, rgba(0,74,255,1) 100%);}
nav li:nth-child(11) {background: black;}

.infoDisplay {
  position: absolute;
  width: 100%;
  height: 100vh;
  top: 100%;left: 0;
  overflow: hidden
  wdwhdouihdw;
}

.PlanetCard {
  color: rgb(224, 224, 224);
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;left: 0;
  background-size: cover;
  padding: 150px;
  font-family: 'Montserrat', sans-serif;
  transform: translateZ(0px);
}
.PlanetCard>label {
  border: solid rgba(255, 0, 0, 0) 1px;
  width: 42px;height: 42px;
  position: absolute;
  border-radius: 50%;
  top: 15%;left: 10%;
  font-size: 25px;
  transition: 0.4s;
  display: flex;
  justify-content: center;
  align-items: center;
}
.PlanetCard>label:hover {
  border: solid white 1px;
}
.PlanetCard>div:nth-child(1) {
  transform: translate(0,-70px);
}
.PlanetCard>div>h2 {
  font-size: 60px;
  cursor: default;
}
.PlanetCard>div>p {
  font-size: 20px;
  width: 500px;
  margin-top: 20px;
  font-weight: bolder;
  cursor: default;
}

.card11>div>div {
  font-size: 20px;
  width: 500px;
  height: 30vh;
  margin-top: 20px;
  font-weight: bolder;
  cursor: default;
  flex-direction: column;
  justify-content: space-evenly;
  transform: translate(0,50px);
}
.links {
  display: flex;
  justify-content: space-between;
  transform: translate(0,20px);
  width: 40%;
  height: 100%;
}

.links>div:nth-child(2) {
  width: 40%;
  display: flex;
  justify-content: space-evenly;
}

.links a {
  margin-left: 10px;
}

.PlanetCard>figure {
  position: absolute;
  top: 50%;left: 100%;
  transform: translate(-120%,-50%);
  border-radius: 50%;
}
.PlanetCard>figure>img {
  height: 65vh;
  animation: bounce 5s infinite;
}   
.card1 {
  background-image: url(../img/mesh1.png);
  color: rgb(37, 7, 0);
}
.card2 {
  background-image: url(../img/mesh2.png);
  color: rgb(2, 26, 71);
}
.card3 {
  background-image: url(../img/mesh3.png);
  color: rgb(255, 255, 255);
}
.card4 {
  background-image: url(../img/mesh4.png);
  color: rgb(0, 0, 0);
}
.card5 {
  background-image: url(../img/mesh5.png);
  color: rgb(63, 63, 63);
}
.card6 {
  background-image: url(../img/mesh6.png);
}
.card7 {
  background-image: url(../img/mesh7.png);
}
.card8 {
  background-image: url(../img/mesh8.png);
  color: rgb(73, 62, 0);
}
.card9 {
  background-image: url(../img/mesh9.png);
  color: rgb(0, 78, 92);
}
.card10 {
  background-image: url(../img/mesh10.png);
}
.card11 {
  background: #000;
}

#sun_card:checked~main .card1 {
  transform: translateZ(10px);
}
#mercury_card:checked~main .card2 {
  transform: translateZ(10px);
}
#venus_card:checked~main .card3 {
  transform: translateZ(10px);
}
#earth_card:checked~main .card4 {
  transform: translateZ(10px);
}
#moon_card:checked~main .card5 {
  transform: translateZ(10px);
}
#mars_card:checked~main .card6 {
  transform: translateZ(10px);
}
#jupiter_card:checked~main .card7 {
  transform: translateZ(10px);
}
#saturn_card:checked~main .card8 {
  transform: translateZ(10px);
}
#uranus_card:checked~main .card9 {
  transform: translateZ(10px);
}
#neptun_card:checked~main .card10 {
  transform: translateZ(10px);
}

.navarr {
  width: 50%;
  height: 10px;
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translate(-50%);
  display: flex;
  justify-content: space-around;
  align-items: center;
  font-size: 20px;
}

#plinfo {
  color: white;
  position: absolute;
  bottom: 4.5vh;
  right: calc(3vw + 300px);
  text-decoration: none;
  font-family: oxygen;
  border-radius: 20px;
  border: solid 2px white;
  padding: 5px;
  transition: 1s;
}

#loading:checked~main #plinfo {
  opacity: 0;
  visibility: hidden;
}

#fullscreen:checked~main #plinfo {
  opacity: 0;
  visibility: hidden;
}

.SolarSystem {
  width: 3000px;
  height: 3000px;
  position: absolute;
  top: 0%; 
  left: 15%;
  transform-style: preserve-3d;
  transform: translate(-50%,-50%) translateZ(-2000px) rotateX(50deg);
  transition: 1s;
}

.planet {
  position: absolute;
  border-radius: 50%;
  border: solid rgba(255, 255, 255, 0.13) 2px;
  top: 50%; 
  left: 50%;
  transform:translate(-50%,-50%) rotateY(+15deg) rotateZ(0deg);
}

.planet>figure {
  border-radius: 50%;
  transform: translate(-50%,-50%) rotateZ(0deg) rotateX(-50deg);
  position: relative;
  border-radius: 50%;
  position: absolute;
  top: 100%;
  left: 50%;
  transition: 1s;
}

.planet>figure::after {
  content: '';
  position: absolute;
      top: 50%;
  left: 50%;
  transform: translate(-50%,-50%) scale(1);
  width: 85%;height: 85%;
  border-radius: 50%;
}

.shadow {
  width: 100%; height: 100%;
  border-radius: 50%;
  position: absolute;
      top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  z-index: 11;
  overflow: hidden;
}

.shadow>div {
  width: 95%; height: 95%;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-origin: 50% 300%;
  transform:translate(0%,10%) rotate(0deg);
}

.shadow>div>div {
  width: 100%;height: 100%;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.781);
  filter: blur(4px);
  transform: scaleY(1);
}

.sun {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: solid rgba(255, 255, 255, 0) 2px;
}

.sun>figure {
  width: 180 ;height: 180 ;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%) rotateX(-45deg) rotateZ(0deg);
  animation: sunRotation 150s linear infinite;
}

.sun>figure>label {
  opacity: 0;
  visibility: hidden;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  position: absolute;
  top: 0;left: 0;
  transform: translateZ(2px);
}

#loading:checked~main .sun>figure>label {
  opacity: 1;
  visibility: visible;
}.sun>figure::after {
  box-shadow: 0px 0px 100px rgb(255, 161, 53);
  animation: glow 5s linear infinite;
}
.sun>figure>img {
  width: 180px;
}

/*----Mercury-----*/

.mercury {
  width: 18%;
  height: 18%;
  animation: orbitRotation linear 5s infinite;
}
.mercury>figure {
  width: 50px;height: 50px;
  animation: planetRotation linear 5s infinite;
}
.mercury>figure::after {
  box-shadow: 0px 0px 10px rgba(98, 192, 255, 0.473);
}
.mercury>figure>.shadow>div {
  animation: shadowRotation 5s cubic-bezier(1,.07,0,.92) infinite;
}
.mercury>figure>.shadow>div>div {
  animation: shadowScale 5s cubic-bezier(1,.07,0,.92) infinite;
}
.mercury>figure>img {
  width: 50px;
}

/*----venus-----*/

.venus {
  width: 23%;
  height: 23%;
  animation: orbitRotation linear 10s infinite;
}
.venus>figure {
  width: 60px;height: 60px;
  animation: planetRotation linear 10s infinite;
}
.venus>figure::after {
  box-shadow: 0px 0px 10px rgba(224, 172, 0, 0.473);
}
.venus>figure>.shadow>div {
  animation: shadowRotation 10s cubic-bezier(1,.07,0,.92) infinite;
}
.venus>figure>.shadow>div>div {
  animation: shadowScale 10s cubic-bezier(1,.07,0,.92) infinite;
}
.venus>figure>img {
  width: 60px;
}

/*----earth-----*/

.earth {
  width: 30%;
  height: 30%;
  animation: orbitRotation linear 20s infinite;
}
.earth>figure {
  width: 60px;height: 60px;
  animation: planetRotation linear 20s infinite;
}
.earth>figure::after {
  box-shadow: 0px 0px 10px rgba(0, 174, 255, 0.473);
}
.earth>figure>.shadow>div {
  animation: shadowRotation 20s cubic-bezier(1,.07,0,.92) infinite;
}
.earth>figure>.shadow>div>div {
  animation: shadowScale 20s cubic-bezier(1,.07,0,.92) infinite;
}
.earth>figure>img {
  width: 60px;
}

/*----moon-----*/
.moon {
  position: absolute;
  border-radius: 50%;
  border: solid rgba(255, 255, 255, 0.329) 2px;
  top: 50%; left: 50%;
  transform:translate(-50%,-50%) rotateX(70deg) rotateZ(0deg) ;
  width: 200%;
  height: 200%;
  animation: moonOrbitRotation linear 3s infinite;
}

.moon>img {
  border-radius: 50%;
  transform: translate(-50%,-50%) rotateZ(0deg) rotateX(90deg);
  position: relative;
  border-radius: 50%;
  position: absolute;
  top: 100%;
  left: 50%;
  width: 20px;height: 20px;
  animation: moonRotation linear 3s infinite;
}

.moon>img {
  box-shadow: white 0px 0px 100px;
}

/*----mars-----*/

.mars {
  width: 38%;
  height: 38%;
  animation: orbitRotation linear 40s infinite;
}

.mars>figure {
  width: 60px;height: 60px;
  animation: planetRotation linear 40s infinite;
}

.mars>figure::after {
  box-shadow: 0px 0px 10px rgba(255, 94, 0, 0.473);
}

.mars>figure>.shadow>div {
  animation: shadowRotation 40s cubic-bezier(1,.07,0,.92) infinite;
}
.mars>figure>.shadow>div>div {
  animation: shadowScale 40s cubic-bezier(1,.07,0,.92) infinite;
}
.mars>figure>img {
  width: 60px;
}

/*----belt-----*/

.belt {
  width: 50%;
  height: 50%;
  animation: orbitRotation linear 100s infinite;
  position: absolute;
  border-radius: 50%;
  border: dashed rgba(92, 92, 92, 0.329) 20px;
  top: 50%; left: 50%;
  transform:translate(-50%,-50%) rotateY(15deg) rotateZ(0deg);
}/*----jupiter-----*/

.jupiter {
  width: 60%;
  height: 60%;
  animation: orbitRotation linear 240s infinite;
}

.jupiter>figure {
  width: 120px;height: 120px;
  animation: planetRotation linear 240s infinite;
}

.jupiter>figure::after {
  box-shadow: 0px 0px 10px rgba(255, 170, 121, 0.281);
}

.jupiter>figure>.shadow>div {
  animation: shadowRotation 240s cubic-bezier(1,.07,0,.92) infinite;
}
.jupiter>figure>.shadow>div>div {
  animation: shadowScale 240s cubic-bezier(1,.07,0,.92) infinite;
}
.jupiter>figure>img {
  width: 120px;
}/*----saturn-----*/

.saturn {
  width: 70%;
  height: 70%;
  animation: orbitRotation linear 540s infinite;
}

.saturn>figure {
  width: 110px;height: 110px;
  animation: planetRotation linear 540s infinite;
}

.saturn>figure::after {
  box-shadow: 0px 0px 10px rgba(255, 170, 121, 0.281);
}

.saturn>figure>.shadow>div {
  animation: shadowRotation 540s cubic-bezier(1,.07,0,.92) infinite;
}
.saturn>figure>.shadow>div>div {
  animation: shadowScale 540s cubic-bezier(1,.07,0,.92) infinite;
}

.saturn>figure>img:nth-child(1) {
  width: 110px;
}
.saturn>figure>img:nth-child(3) {
  position: absolute;
  top: 50%;
  bottom: 50%;
  transform: translate(-72.5%,-50%) rotateX(80deg) rotateY(15deg);
  width: 250px;
  transition: 1s;
}/*----uranus-----*/

.uranus {
  width: 80%;
  height: 80%;
  animation: orbitRotation linear 1620s infinite;
}

.uranus>figure {
  width: 95px;height: 95px;
  animation: planetRotation linear 1620s infinite;
}

.uranus>figure::after {
  box-shadow: 0px 0px 10px rgba(255, 170, 121, 0.281);
}

.uranus>figure>.shadow>div {
  animation: shadowRotation 1620s cubic-bezier(1,.07,0,.92) infinite;
}
.uranus>figure>.shadow>div>div {
  animation: shadowScale 1620s cubic-bezier(1,.07,0,.92) infinite;
}
.uranus>figure>img {
  width: 95px;
}

/*----neptun-----*/
.neptun {
  width: 90%;
  height: 90%;
  animation: orbitRotation linear 3240s infinite;
}

.neptun>figure {
  width: 95px;height: 95px;
  animation: planetRotation linear 3240s infinite;
}

.neptun>figure::after {
  box-shadow: 0px 0px 10px rgba(255, 170, 121, 0.281);
}

.neptun>figure>.shadow>div {
  animation: shadowRotation 3240s cubic-bezier(1,.07,0,.92) infinite;
}
.neptun>figure>.shadow>div>div {
  animation: shadowScale 3240s cubic-bezier(1,.07,0,.92) infinite;
}
.neptun>figure>img {
  width: 95px;
}@keyframes shadowRotation {
  to {transform: translate(0%,10%) rotate(360deg);}
}

@keyframes shadowScale {
  0% {transform:scaleY(1);}
  30% {transform:scaleY(3);}
  70% {transform:scaleY(3);}
  100% {transform:scaleY(1);}
}

@keyframes orbitRotation {
  to {
      transform: translate(-50%,-50%) rotateY(+15deg) rotateZ(-360deg);
  }
}

@keyframes planetRotation {
  to {
      transform: translate(-50%,-50%) rotateZ(360deg) rotateX(-45deg);
  }
}

@keyframes sunRotation {
  to {
      transform: translate(-50%,-50%) rotateX(-45deg) rotateZ(-360deg);
  }
}

@keyframes glow {
  0% {
      box-shadow: 0px 0px 100px rgb(255, 161, 53);
  }
  50% {
      box-shadow: 0px 0px 200px rgb(255, 161, 53);
  }
  100% {
      box-shadow: 0px 0px 100px rgb(255, 161, 53);
  }
}

@keyframes moonOrbitRotation {
  to {
      transform: translate(-50%,-50%) rotateX(70deg) rotateZ(-360deg);
  }
}

@keyframes moonRotation {
  to {
      transform: translate(-50%,-50%) rotateZ(360deg) rotateX(90deg);
  }
}

/*--------------------------------------------------------------*/

@keyframes stage1Welcome {
  0%  {opacity: 0;}
  10% {opacity: 0;}    
  30% {opacity: 1;}
  50% {transform:translate(0px,0px) scale(1);}
  100% {transform:translate(0px,-50px) scale(0.7);}
}

@keyframes stage1fadein1 {
  0%  {opacity: 0;}
  100% {opacity: 1; transform: translate(-50%,-20px);}
}

@keyframes stage1fadein2 {
  0%  {opacity: 0;}
  100% {opacity: 1; transform: translate(-50%,40px)}
}

@keyframes playbutton {
  0%  {opacity: 0;}
  20% {opacity: 1;}
  80% {opacity: 1;}
  100% {opacity: 0; width:200px}
}

@keyframes spin {
  to {
      transform: rotate(540deg);
  }
}

@keyframes ballgrow {
  to {
      transform: scale(2759%);
  }
}

@keyframes loadingfadeIn {
  0%  {opacity: 0;}
  100% {opacity: 1; visibility: visible;}
}

@keyframes welcomefadeOut {
  0%  {opacity: 1; visibility: visible;}
  50% {transform: translateZ(0px); opacity: 0;visibility: hidden;}
  100% {transform: translateZ(-100px); opacity: 0;visibility: hidden;}
}

@keyframes solarFadein {
  0%  {opacity: 0;}
  50%  {opacity: 0;}
  100%  {opacity: 100;}
}

@keyframes bounce {
  0%  {transform: translate(0px,-15px);}
  50%  {transform: translate(0px,15px);}
  100%  {transform: translate(0px,-15px);}
}
