@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@500;600;700;800&display=swap");

html,
body {
  height: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  text-transform: uppercase;
}

hr {
  width: 30%;
  border: 10px dotted rgba(124, 254, 189, 1);
  animation: rotateGradient 5s infinite ease-in-out;
}

@keyframes rotateGradient {
  0% {
    opacity: 0.7;
    transform: scale(1);
    transform: rotate(-2deg) scale(0.95);
    box-shadow: 0 0 6px white, 0 0 12px cyan;
    border-color: #83d9f1;
  }
  25% {
    opacity: 0.4;
    transform: scale(1.4);
    transform: rotate(-60deg) scale(0.95);
    box-shadow: 0 0 6px white, 0 0 12px cyan;
    border-color: #df8bfe;
  }

  50% {
    opacity: 0.5;
    transform: scale(1.6);
    transform: rotate(-180deg) scale(0.95);
    box-shadow: 0 0 6px white, 0 0 12px cyan;
    border-color: #83d9f1;
  }
  75% {
    opacity: 0.8;
    transform: scale(1.4);
    transform: rotate(-270deg) scale(0.95);
    box-shadow: 0 0 6px white, 0 0 12px cyan;
    border-color: #fe89d7;
  }
  100% {
    opacity: 1;
    transform: scale(1);
    transform: rotate(-360deg) scale(0.95);
    box-shadow: 0 0 6px white, 0 0 12px cyan;
    border-color: #f1deff;
  }
}

.star {
  fill: white;
  opacity: 0.8;
  animation: twinkle 2s infinite ease-in-out alternate;
}

@keyframes twinkle {
  0% {
    opacity: 0.2;
    transform: scale(1);
  }
  100% {
    opacity: 1;
    transform: scale(1.4);
  }
}

.star {
  position: absolute;
  width: 7px;
  height: 3px;
  background: white;
  box-shadow: 0 0 6px white, 0 0 12px cyan;
  border-radius: 50%;
  opacity: 0;
  transform: translateX(100vw);
  animation: shoot 3s linear forwards infinite;
}

.star::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100px;
  width: 100px;
  height: 2px;
  background: linear-gradient(to left, #0b1d51, #5d3a8a, #f5f3f5, transparent);
}

.star:nth-child(1) {
  top: 20%;
  animation-delay: 0s;
}

.star:nth-child(2) {
  top: 50%;
  animation-delay: 1s;
}

.star:nth-child(3) {
  top: 80%;
  animation-delay: 2s;
}

@keyframes shoot {
  0% {
    opacity: 0;
    transform: translateX(100vw);
  }
  10% {
    opacity: 1;
  }
  100% {
    transform: translateX(-100vw);
    opacity: 0;
  }
}

@keyframes glowFadeSpin {
  0% {
    opacity: 0;
    transform: rotate(-2deg) scale(0.95);
    box-shadow: 0 0 0px rgba(255, 255, 255, 0);
  }
  50% {
    opacity: 1;
    transform: rotate(1deg) scale(1.02);
    box-shadow: 0 0 30px rgba(175, 244, 250, 0.3);
  }
  100% {
    opacity: 1;
    transform: rotate(0deg) scale(1);
    box-shadow: 0 0 12px rgba(175, 244, 250, 0.15);
  }
}

body {
  margin-bottom: 60px;
  padding: 0;
  background-color: #000032;
  color: #aff4fa;
  font-family: "Open Sans", sans-serif;
  font-weight: 500;
  line-height: 1.6em;
  text-align: center;
  animation: glowFadeSpin 1.6s ease-out both;
  height: 100%;
}

.sparkle {
  position: fixed;
  width: 4px;
  height: 4px;
  background: #c8e6dd;
  border-radius: 50%;
  box-shadow: 0 0 6px white;
  animation: twinkle 2s infinite ease-in-out;
  opacity: 0;
}

dt {
  font-size: 1.7em;
  animation: comsic 10s infinite ease-in-out
}

@keyframes comsic{
  0%{
    color:aqua;
  }
  50%{
    color:lightpink;
  }
  100%{
    color:#c580ed;
  }
}

dd {
  width: 75%;
  border: 3px double aqua;
}

.sparkle:nth-child(1) {
  top: 10%;
  left: 15%;
  animation-delay: 0s;
}
.sparkle:nth-child(2) {
  top: 25%;
  left: 40%;
  animation-delay: 0.5s;
}
.sparkle:nth-child(3) {
  top: 70%;
  left: 20%;
  animation-delay: 1s;
}
.sparkle:nth-child(4) {
  top: 80%;
  left: 85%;
  animation-delay: 1.5s;
}
.sparkle:nth-child(5) {
  top: 60%;
  left: 65%;
  animation-delay: 2s;
}
.sparkle:nth-child(6) {
  top: 30%;
  left: 75%;
  animation-delay: 2.5s;
}
.sparkle:nth-child(7) {
  top: 50%;
  left: 10%;
  animation-delay: 3s;
}
.sparkle:nth-child(8) {
  top: 15%;
  left: 80%;
  animation-delay: 3.5s;
}
.sparkle:nth-child(9) {
  top: 45%;
  left: 50%;
  animation-delay: 4s;
}
.sparkle:nth-child(10) {
  top: 85%;
  left: 35%;
  animation-delay: 4.5s;
}
.sparkle:nth-child(11) {
  top: 20%;
  left: 60%;
  animation-delay: 5s;
}
.sparkle:nth-child(12) {
  top: 5%;
  left: 30%;
  animation-delay: 5.5s;
}
.sparkle:nth-child(13) {
  top: 55%;
  left: 85%;
  animation-delay: 6s;
}
.sparkle:nth-child(14) {
  top: 35%;
  left: 20%;
  animation-delay: 6.5s;
}
.sparkle:nth-child(15) {
  top: 75%;
  left: 45%;
  animation-delay: 7s;
}
.sparkle:nth-child(16) {
  top: 65%;
  left: 10%;
  animation-delay: 7.5s;
}
.sparkle:nth-child(17) {
  top: 40%;
  left: 90%;
  animation-delay: 8s;
}
.sparkle:nth-child(18) {
  top: 90%;
  left: 55%;
  animation-delay: 8.5s;
}
.sparkle:nth-child(19) {
  top: 12%;
  left: 5%;
  animation-delay: 9s;
}
.sparkle:nth-child(20) {
  top: 38%;
  left: 68%;
  animation-delay: 9.5s;
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0;
    transform: scale(0.5);
  }
  50% {
    opacity: 1;
    transform: scale(1.5);
  }
}

body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 999;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0.2),
    #ffd1dc,
    #ffe7aa,
    #c1fba4,
    #a0e7e5,
    #caa8f5,
    rgba(255, 255, 255, 0.2),
    rgba(255, 255, 255, 0.05)
  );
  background-size: 400% 100%;
  animation: shimmerPulse 10s ease-in-out infinite;
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 0.3s ease;
}

@keyframes shimmerPulse {
  0%,
  95%,
  100% {
    opacity: 0;
    background-position: -200% 0;
  }
  45% {
    opacity: 0.5;
    background-position: 200% 0;
  }
}

img {
  max-width: 100%;
}

nav {
  margin: auto;
  padding: 0;
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  background-color: #000032;
}

h1 {
  font-size: 2em;
}

h2 {
  font-size: 1.8em;
}

h3 {
  font-size: 1.6em;
}

.hero > h1 {
  padding: 25px;
  text-transform: uppercase;
  font-size: 2em;
  font-style: oblique;
  background-color: #000032;
  z-index: 10;
}

p {
  text-align: left;
  max-width: 700px;
  font-size: 1.1em;
}

ul {
  list-style-type: none;
  text-align: left;
  width: fit-content;
  margin: auto;
  padding: 0;
}

button {
  border: none;
  padding: 15px 20px;
  text-transform: uppercase;
  background-color: #aff4fa;
  border-radius: 5px;
  font-size: 1.3em;
  font-weight: 800;
  color: #000032;
  border: solid 2px #6194ff;
  z-index: 10;
}

header {
  width: 94%;
  padding: 2% 3%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#logo {
  margin: 0px;
  padding-top: 0px;
  width: 30%;
}

nav > ul {
  margin: 0;
  padding: 0;
  width: auto;
  list-style-type: none;
  text-align: center;
}

nav > ul > li {
  display: inline-block;
  margin-left: 15px;
}

nav > ul > li > a {
  display: block;
  padding: 15px;
  text-transform: uppercase;
  color: #aff4fa;
  text-decoration: none;
  font-size: 1.1em;
}

a:hover i {
  background-color: rgba(111, 205, 255, 1);
}

i {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 3px cyan ridge;
  display: block;
  margin: auto;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.guards {
  background-image: url("images/guard-blue-icon.png");
}
.dragons {
  background-image: url("images/dragon-green-icon.png");
}
.levels {
  background-image: url("images/level-6.png");
}
.planets {
  background-image: url("3295ed9f-0ca3-4af1-8f17-d1d08f36a00f.jpeg");
}

a.shooting-star {
  position: relative;
  display: inline-block;
  padding: 14px 28px;
  color: #aff4fa;
  background: #000032;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.2em;
  font-weight: 700;
  border: 2px solid #6194ff;
  overflow: hidden;
  transition: background 0.3s, box-shadow 0.3s;
  z-index: 1;
}

a.shooting-star {
  position: relative;
  display: inline-block;
  padding: 14px 28px;
  color: #aff4fa;
  background: #000032;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.2em;
  font-weight: 700;
  border: 2px solid #6194ff;
  overflow: hidden;
  transition: background 0.3s, box-shadow 0.3s;
  z-index: 1;
}

a.shooting-star:hover {
  background: #111c44;
  box-shadow: 0 0 12px 4px rgba(175, 244, 250, 0.5);
}

a.shooting-star::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -100px;
  width: 100px;
  height: 5px;
  background: linear-gradient(
    90deg,
    #ffd1dc,
    #ffe7aa,
    #c1fba4,
    #a0e7e5,
    #caa8f5
  );
  border-radius: 4px;
  transform: translateY(-50%) rotate(45deg);
  opacity: 0;
  pointer-events: none;
  z-index: -1;
}

a.shooting-star:hover::before {
  animation: pastel-shooting 0.8s ease-out forwards;
}

@keyframes pastel-shooting {
  0% {
    left: -100px;
    opacity: 0;
  }
  30% {
    opacity: 1;
  }
  100% {
    left: 150%;
    opacity: 0;
  }
}

main {
  padding: 3%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: stretch;
  flex-direction: column;
  background: radial-gradient(circle at center, #d11563, #4719bd, #6d15d1);
  background-size: 300% 300%;
  background-position: center;
  animation: gradientShift 20s ease-in-out infinite;
}
article {
  margin: 30px auto;
  width: 92%;
  padding: 3%;
  text-align: center;
  border-radius: 20px;
  border: solid 1px #6194ff;
  background: radial-gradient(
    circle,
    #e0c3fc,
    #8ec5fc,
    #a0e3f0,
    rgba(192, 192, 192, 0.6),
    #d5aaff,
    #fbc2eb,
    #fad0c4
  );
  background-size: 200% 200%;
  animation: radialPulse 10s ease-in-out infinite,
    glowEffect 4s ease-in-out infinite;
  box-shadow: 0 0 15px rgba(97, 148, 255, 0.3);
}

@keyframes radialPulse {
  0% {
    background-position: 50% 50%;
  }
  50% {
    background-position: 100% 100%;
  }
  100% {
    background-position: 50% 50%;
  }
}

@keyframes glowEffect {
  0%,
  100% {
    box-shadow: 0 0 15px rgba(97, 148, 255, 0.3);
  }
  50% {
    box-shadow: 0 0 30px rgba(97, 148, 255, 0.7);
  }
}

@keyframes sparkleDrift {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes glow {
  0% {
    border-color: rgb(179, 66, 245);
  }
  25% {
    border-color: #4ddbc1;
  }
  75% {
    border-color: #db4da7;
  }
  100% {
    border-color: #91eced;
  }
}
.character,
.weapon {
  margin: auto;
  width: 90%;
  height: auto;
  max-width: 400px;
  max-height: 400px;
  border-radius: 50%;
  background: #192d8e;
  background: linear-gradient(
    140deg,
    rgba(111, 205, 255, 1) 0%,
    rgba(22, 33, 123, 1) 100%
  );
  overflow: hidden;
}

.hero {
  height: auto;
  padding: 5%;
  background-image: url("");
}

.weapon {
  background: rgb(22, 33, 123);
  background: linear-gradient(
    140deg,
    rgba(22, 33, 123, 1) 0%,
    rgba(0, 0, 50, 1) 100%
  );
}

footer {
  padding: 2%;
  font-size: 0.9em;
}

footer p {
  margin: auto;
  text-align: center;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.chase {
  display: none;
}

@media (min-width: 900px) {
  #magic-star {
    width: 80px;
    left: -999px;
    transform: rotate(0deg);
    animation-name: star;
    animation-duration: 2s;
    animation-direction: alternate;
    animation-iteration-count: infinite;
  }
  @keyframes star {
    from {
      top: 0;
      left: -999px;
      transform: rotate(0deg);
    }
    to {
      top: 400px;
      left: 1999px;
      transform: rotate(360deg);
    }
  }
  .chase {
    display: block;
    position: absolute;
    top: 0px;
  }
  #dragon-flying {
    width: 700px;
    left: 1999px;
    animation-name: dragon;
    animation-duration: 5s;
    animation-iteration-count: 5;
  }

  @keyframes dragon {
    from {
      left: 1999px;
    }

    to {
      left: -999px;
    }
  }
  main {
    flex-direction: row;
  }
  article {
    width: 26%;
  }

  .home main {
    display: block;
  }
  .home article {
    width: 94%;
    max-width: 1000px;
    display: flex;
    align-items: center;
  }
  .home .character,
  .home .weapon {
    width: 26%;
    margin-right: 4%;
  }
  .story .home {
    width: 70%;
    text-align: left;
  }
  .hero {
    height: 500px;
    padding: 0;
    background-image: url("7338b843-93e9-404d-a716-6103c4b2bd51.jpeg");
    background-size: cover;
    background-position: top center;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
  }

  #planets {
    background-image: url("9fdd71f5-12a8-4eda-b92b-a3a5a364ede5.jpeg");
  }
  #levels {
    background-image: url("68ce05df-cdbc-4e3b-a9b3-68baad25c436.jpeg");
  }
  #guards {
    background-image: url("78f0fabd-7372-4458-9066-c0716f08449b.jpeg");
  }
  #dragons {
    background-image: url("ed5ee99c-c261-49e9-b681-0772ffbc0206.jpeg");
  }
}

@media (min-width: 600px) and (max-width: 900px) {
  main {
    flex-direction: row;
  }
  article {
    width: 40%;
    margin: 1%;
  }
}

@media (min-width: 600px) {
  nav {
    margin: 0;
    padding: 0;
     /* 800 lines! */
    width: fit-content;
    background-color: #000032;
    position: relative;
    z-index: 20;
  }
}

.menu-toggle {
  display: none;
  background: none;
  color: #aff4fa;
  font-size: 2em;
  border: none;
  padding: 10px;
  cursor: pointer;
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 30;
}

@media (max-width: 600px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    background-color: #000032;
    position: absolute;
    top: 60px;
    right: 0;
    width: 100%;
    text-align: center;
    z-index: 25;
  }

  .nav-links.open {
    display: flex;
  }

  nav > ul > li {
    display: block;
    margin: 10px 0;
  }

  nav {
    position: relative;
    width: 100%;
  }
}
