body {
  background-image: url("starsbg.jpg");
  margin: 0;
  background-color: #000814;
  color: white;
}

h1 {
  color: white;
  text-align: center;
  border: 2px white solid;
  font-family: "Orbitron", sans-serif;
  font-optical-sizing: auto;
  font-weight: <weight>;
  font-style: normal;
  font-size: 80px;
  width: 100%;
  box-sizing: border-box;
}
h2 {
  color: #cfd8ff;
  font-size: 1.4rem;
  font-family: "Space Mono", monospace;
  font-weight: 400;
  font-style: normal;
  margin-left: 60px;
  margin-top: 40px;
}
h3 {
  color: white;
  font-size: 18px;
  font-family: "Space Mono", monospace;
  font-weight: 350;
  font-style: normal;
}
h4 {
  color: white;
  font-size: 18px;
  font-family: "Space Mono", monospace;
  font-weight: 350;
  font-style: normal;
}
.main {
  display: flex;
  text-align: center;
}
a {
  color: white;
}
ul {
  color: white;
  font-family: "Space Mono", monospace;
  font-weight: 350;
  font-style: normal;
}
.image-container {
  display: flex;
  justify-content: flex-center;
  align-items: center;
  margin-top: 20px;
  gap: 50px;
  flex-wrap: wrap;
  max-width: 100%;
  overflow-x: hidden;
  overflow: visible;
}
#sun-mercury-container {
  position: relative; 
  display: block;
  margin-left: -50px;
  align-items: center;
  width: 290px;
  flex-shrink: 0;
  
}
.mercury-overlay {
  position: absolute;
  top: -95px;   
  left: 280px;
  transform: none;
  z-index: 10;
  cursor: pointer;
  margin-left: -20px
}


.tooltip-container {
  position: relative;
  display: inline-block;
  overflow: visible;
}
.tooltip-text {
  visibility: hidden;
  width:160px;
  text-align: center;
  border: 1px solid rgba(180, 200, 255, 0.3);
  position: absolute;
  z-index: 999; /* How the element is positioned relative to the other elements(on top) */
  bottom: 125%;
  left: 50%;
  margin-left: -80px;
  opacity:0;
  transition: opacity 0.3s;
  background: rgba(15, 20, 60, 0.95);
  color: #fff;
  font-family: "Space Mono", monospace;
  font-size: 0.7rem;
  padding: 8px 10px;
  box-shadow: 0 0 12px rgba(120, 160, 255, 0.4); /* horizontal and vertical outset is 0. 12px is the width and the color is the rgba value. */
}
.tooltip-container:hover .tooltip-text { /* When you hover over the planet, then the text becomes visible */
  visibility: visible; 
  opacity:1;
}
.mercury-overlay img {
  position: static; 
  transform: none;
}
.main-content{
  display: flex;
  justify-content: space-between;
  width: 100%;
  gap: 70px;
}
.left-container .right-container{
  flex: 1 1 400px; /*(flex-shrink and flex-grow is 1 and then 400px shows the intial size) */
  border: 1px solid rgba(255, 255, 255, 0.1); 
  padding: 30px;
  border-radius: 18px; 
  box-shadow: 0 15px 30px rgba(0,0,0,0.4);
  background: rgba(1,9,38,0.85);
  
}
.left-container p{
  font-family: "Space Mono", monospace;
  color: #dbe2ff;
  font-size: 1rem; /* 1rem = 16px */
  max-width: 700px;
  margin:0 auto;
  
}
.right-container p{
  font-family: "Space Mono", monospace;
  color: #dbe2ff;
  font-size: 1rem;
  max-width: 700px;
  margin:0 auto;
  
}
.left-container {
  background-color: rgba(1,9,38,0.85);
  padding: 20px;
  animation: floatSlow 8s ease-in-out infinite; /* Connects to float @keyFrames animation*/
}

.right-container {
  background-color: rgba(1,9,38,0.85);
  padding: 20px;
  animation: floatSlow 8s ease-in-out infinite;
}
.hero {
  min-height: 60vh; 
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: linear-gradient(
    rgba(0,0,0,0.6),
    rgba(0,0,0,0.9)
  ), /* 60% transparent top to 90% transparent bottom */
  url("spacebg2.jpg"); 
  background-size: cover;
  background-position: center;
  padding: 60px 20px;
}
.hero h1{
  font-size: 4.5rem;
  border: none;
  margin-bottom: 20px;
  text-shadow: 0 0 20px rgba(150,180,255,0.4); /*Makes the text have a nice shadow, very similar to box-shadow*/
  animation: glowPulse 6s ease-in-out infinite; /*Connects to the glowPulse @keyframes animation */
}
.hero p{
  color: white;
  font-family: "Space Mono", monospace;
  max-width: 600px;
  font-size: 1.1rem;
}
.topics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  padding: 60px;
}
.card {
  background : rgba(1, 9, 38, 0.85);
  padding: 30px;
  border-radius: 14px;
  text-decoration: none;
  color: white;
  font-family: "Space Mono", monospace;
  font-size: 1.05rem;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}
html {
  scroll-behavior: smooth;
}
.timeline {
  max-width: 900px;
  margin: 80px auto;
  padding: 0 20px; /* Top and bottom padding to 0px and right and left padding is 20px. */
  position: relative; 
}
.timeline::before {
  content:"";
  position: absolute;
  left:50%;
  top:0;
  width:2px;
  height:100%;
  background: rgba(255, 255, 255, 0.2);
  transform: translateX(-50%); /*Moves it to the left by an amount 50% of its own width */
}
.event{
  display: flex;
  justify-content: flex-start;
  margin: 50px 0; 
  position: relative;
}
.event:nth-child(even){ /* Alternates between different sides of the timeline by changing the justify-content to a different thin */
  justify-content: flex-end;
}
.date{
  position: absolute;
  left:50%;
  transform: translateX(-50%);
  background: #0b102b; 
  padding: 6px 14px;
  border-radius: 20px;
  font-family: "Space Mono", mon ospace;
  font-size: 0.85rem;
  color: #cfd8ff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  z-index: 2;
}
.content {
  width: 42%; 
  background: rgba(1, 9, 38, 0.85);
  padding: 20px 25px; 
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
.content h2{
  font-family: "Orbitron", sans-serif;
  font-size: 1.2rem;
  margin-bottom: 10px;
}
.content p{
  font-family: "Space Mono", monospace;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #dbe2ff;
}
.content figure.image {
  flex: 1;  
  margin: 0;
  text-align: center;
}
.content figure.image img{
  width: 100%;
  border:10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

figcaption {
  font-style: italic;
  margin-top: 8px;
  font-family: "Space Mono", monospace;
  font-size: 0.75rem;
  color: #b8c1ff;
  opacity: 0.85;
}
.hamburger { /* Makes the hamburger icon for the navigation bar */
  position: fixed;
  top: 20px;
  left: 20px;
  width: 36px;
  height:28px;
  display:flex;
  flex-direction: column;
  justify-content: space-between;
  background:none;
  z-index: 1001; /* Makes it above all other elements */
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 100%;
  height: 4px;
  margin: 6x 0;
  background-color: white;
  border-radius: 2px;
}
.side-menu{
  position: fixed;
  left:-260px;
  top:0;
  width: 260px;
  height: 100%;
  background-color: #010926;
  padding-top: 80px;
  transition: left 0.3s ease; 
  z-index: 1000;
}
.side-menu a{
  display: block;
  padding: 15px 30px;
  color:white;
  text-decoration: none;
  font-family: "Space Mono", monospace;
  font-size: 0.95rem;
}
.side-menu a:hover{
  background-color: rgba(255, 255, 255, 0.1); /* Changes the background when hovering over the side menu buttons */
}
.side-menu.open{
  left:0; 
}
.page-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 40px;
}
.page-header {
  text-align: center;
  margin: 60px;
}
.page-header h1{
  font-size: 4rem;
  border:none;
  text-shadow: 0 0 25px rgba(150, 180, 255, 0.45);
  animation: glowPulse 6s ease-in-out infinite;
}
.page-header p{
  font-family: "Space Mono", monospace;
  color: #dbe2ff;
  max-width: 700px;
  margin: 20px auto 0;
  font-size: 1.05rem;
  line-height: 1.7;
}
.orbit-label{
  text-align: center;
  font-family: "Space Mono", monospace;
  font-size: 0.9rem;
  color: #b8c1ff;
  letter-spacing: 0.05em; 
  margin-bottom: 50px;
  opacity: 0.85;
}
.solar-visual{
  background: rbga(1, 9, 38, 0.85);
  padding: 40px 30px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}
.galaxy-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px
}
figure.image {
  margin: 20px 0 0;
  text-align: center;
}
figure.image img{
  width: 100%;
  max-width: 350 px;
  border-radius: 12px;
  border:1px solid rgba(255, 255, 255, 0.15);
}
.advancements-timeline{
  overflow-x: auto;  
  padding: 40px 20px;
  scroll-behavior: smooth;
}
.timeline-scroll{
  display: flex; 
  gap: 30px;
}
.milestone-card {
  flex: 0 0 250px;
  background: rgba(1, 9, 38, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding:20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  text-align: center;
  transition: tranform 0.25s ease,box-shadow 0.25s ease;
}
.milestone-card:hover{ /* When hovering over the milestone card, it pops up 8 px the shadow changes */
  transform:translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}
.milestone-card img{
  width: 100%;
  border-radius: 12px;
  margin-bottom: 12px;
}
.milestone-card h2{
  font-family: "Orbitron", sans-serif;
  font-size: 1.1rem;
  margin-bottom: 8px;
  color:#8cf;
}
.milestone-card p{
  font-family: "Space Mono", monospace;
  font-size: 0.85rem;
  line-height: 1.5;
  color:#dbe2ff;
}
.future-vision{
  text-align: center; 
  margin: 80px 20px;
  padding:40px;
  background: rgba(1, 9, 38, 0.85);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
.future-vision h2{
  font-family: "Orbitron", sans-serif;
  color: #8cf;
  font-size: 2rem;
  margin-bottom: 20px;
}
.future-vision p{
  font-family: "Space Mono", monospace;
  color: #dbe2ff;
  font-size: 1rem;
  max-width: 700px;
  margin:0 auto;
}
.three-column{
  display:grid;
  grid-template-columns: 1fr 0.8fr 1fr; /* Takes 1 share of available space, 0.8 of the available space, and 1 share of available space*/
  gap:40px;
  align-items: center;
  padding: 60px 80px;
  max-width: 1200px;
  margin: 0 auto;
}
.center-image{
  text-align:center;
}
.center-image img{
  width:100%;
  max-width:300px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 40px rgba(120, 160, 255, 0.25);
}
.center-image figcaption{
  margin-top: 10px;
  font-family: "Space Mono", monospace;
  font-size:0.75rem;
  color:grid-template-columns: 1fr 0.8fr 1fr;;
}
@keyframes glowPulse{ /*Makes it glow gently by changing its text-shadow from 0.2-0.95 from 0%-50%-100%. */
  0%{
    text-shadow: 0 0 10px rgba(140, 180, 255, 0.2);
  }
  50%{
    text-shadow: 0 0 22px rgba(140, 180, 255, 0.95);
  }
  100%{
    text-shadow: 0 0 10px rgba(140, 180, 255, 0.2);
  }
}
@keyframes floatSlow{ /*Makes it go up 8px from 9%-50%-100% */
  0%{
    transform: translateY(0);
  }
  50%{
    transform: translateY(-8px);
  }
  100%{
    transform: translateY(0);
  }
}
.credits-wrapper { 
  height: 100vh;
  width: 100%;
  overflow: hidden; /*Hides the elements that are out the visibility*/
  background: black;
  color:white;
  position:relative;
}
.credits-content{
  position:absolute;
  top:100%;
  width: 100%;
  text-align: center;
  animation: movieScroll 15s linear forwards;  /*Connects to @keyFrames animation which makes the credits come up*/
}
@keyframes movieScroll{ /*Makes the credits come up automatically*/
  0%{
    top: 100%;
  }
  100%{
    top:-150%;
  }
}
.credits-content a{
  color: #dbe2ff;
}

/* All for the minigame. Disclaimer: I used gemini to debug much of this code */
#ui {
  margin-top: 20px;
  text-align: center;
} 
#score {
  font-size: 3rem; 
  font-weight: bold;
  color: #00d4ff; 
} 
#game-board{
  position: relative;
  width: 90vw; /* 90% of brower's width*/
  height: 70vh; /* 70% of browser's height*/
  margin-top: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid #333;
  border-radius: 15px;
  cursor: cross-hair; /* Changes the cursor to a cross-hair when hovering around the game-board */
}
@keyframes popIn {
    from { transform: scale(0); }
    to { transform: scale(1); }
} 
.asteroid{
  position: absolute;
  background: radial-gradient(circle, #888, #444); /* Makes a gradient for all the asteroids created */
  width: 60px; 
  height: 60px;
  border-radius: 50%;
  border: 3px solid #666;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
  cursor: pointer;
  animation: popIn 0.2s ease-out; /* connects to the popIn @keyFrame */
}
