html,
/* beginning of css with homepage */
/* === Global Reset === */
* {
  box-sizing: border-box;
}
.main-header {
  position: absolute;
  top: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  padding: 1rem 0;
}


/* === Navigation Bar === */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.75); /* semi-transparent */
  backdrop-filter: blur(8px); /* frosted glass effect */
  padding: 1em 0;
  z-index: 1000;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  transition: background 0.3s ease;
}

.nav-links {
  display: flex;
  list-style: none;
  justify-content: center;
  gap: 2.5em;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: #ffffff;
  text-decoration: none;
  font-family: 'Adamina', serif;
  font-size: 1.1rem;
  padding: 8px 16px;
  border-radius: 8px;
  transition: background 0.3s, color 0.3s;
}

.nav-links a:hover {
  background-color: #a35bbb;
  color: #1c1c1c;
  text-shadow: none;
}







html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
}





/* I want to add a transparent box for my homepage */
.welcome-box {
  background-color: rgba(0, 0, 0, 0.5);
  padding: 40px;
  max-width: 500px;
  width: 100%;
  color: white;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;  /* centers button + text horizontally */
  text-align: center;   /* centers text content */
}
.welcome-box h1 {
  color: white;
  font-size: 3rem;
  text-shadow: 0 0 10px #ebe5e3, 0 0 20px #36253d, 0 0 40px #dadede;
  animation: pulseGlow 2s infinite ease-in-out;
}

.home-body {
  width: 100vw;
  height: 100vh;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url("images/City.jpg") no-repeat center center;
  background-size: cover;
  background-color: black; /* fallback */
  overflow: hidden;
}


/* Start button hover glow */
.start-button:hover {
  background-color: #8b62a9;
  color: black;
  box-shadow: 0 0 20px #d1d4d4, 0 0 40px #e6ebeb;
  transition: all 0.3s ease;
}




.start-button {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 24px;
  font-size: 20px;
  border-radius: 10px;
  background: transparent;
  color: white;
  text-decoration: none;
  
  border: 2px solid white;
  font-weight: bold;
}

.start-button:hover{
  transform: scale(1.03);  /* make the card hover /responsive */
}


/*This will be the end of my css for my home page */
.catalog-body {
  background: url("images/shooting-star.gif") no-repeat center center fixed;
  background-size: cover;
  min-height: 100vh;
  margin: 0;
  padding-top: 100px; /* pushes below navbar */
}

.search-bar-container {
  margin-top: 15px;
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  width: 100%;
}

.search-bar {
  padding: 10px;
  font-size: 1rem;
  width: 80%;
  max-width: 400px;
  border-radius: 8px;
  border: none;
  outline: none;
}
.main-header {
  background-color: rgba(0, 0, 0, 0.3);
  padding-bottom: 10px;
}

.title {
  text-align: center;
  margin: 0;
  font-size: 5ch;
  font-family: "Bookman";
  font-weight: normal;
  color: black;
}



.container{
  display:flex;
  flex-wrap:wrap;
}
.item{
  flex-grow:1;



}


/*
My goal is to make the card icons responsive and appear on the top of the website page
my goal is to keep the center of the website for the background a search
I want to have some planets and starts on top of the catalog with a option that filters them 
closest to fartherst from earth, younger ot olderst. 
*/


#card-container {
  align-items: stretch ;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  width: 90%;
  max-width: 1200px;
  margin: 40px auto;
  padding: 10px;
}

.card {
  display: flex;
  flex-direction: column;
  border: 1px solid #151414;
  border-radius: 8px;
  background-color: #121111;
  overflow: hidden;
  height: 100%; /* 🔑 important */
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover; /* 🔑 keeps images from stretching */
}

.card-content {
  padding: 12px;
  font-family: "Verdana";
  color: #ddd;
  flex-grow: 1;
}

.card-content ul li em {
  color: #ccc;
  font-size: 0.95em;
  line-height: 1.4;
}

.footer {
  display: flex;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.3);
  padding: 10px;
}

button {
  text-align: center;
  background-color: #666;
  border: none;
  padding-left: 10px;
  padding-right: 10px;
  height: 40px;
  border-radius: 10px;
  color: white;
  font-size: 22px;
  cursor: pointer;
  margin: 5px;
}

.glow-text {
  animation: pulseGlow 2s infinite ease-in-out;
  color: white;
  text-shadow: 0 0 10px #f9ffff, 0 0 20px #dce7e7;
}



/* Pulse animation */
@keyframes pulseGlow {
  0% {
    text-shadow: 0 0 10px #f9ffff, 0 0 20px #dce7e7;
  }
  50% {
    text-shadow: 0 0 20px #d1dbdb, 0 0 40px #dbe6e6;
  }
  100% {
    text-shadow: 0 0 10px #f1fafa, 0 0 20px #f1f5f5;
  }

  
}


/* Styling the sort filter button */
.filters {
  display: flex;
  justify-content: center;
  margin: 20px 0;
  font-size: 1rem;
  color: white;
}

.filters select {
  margin-left: 10px;
  padding: 6px 12px;
  font-size: 1em;
  border-radius: 6px;
}




/* About me section */
/* About me section */
/* About me section */
.about-section {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 60px 20px;
}

.about-section {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 60px 20px;
}

.about-box {
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  max-width: 700px;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
  text-align: center;
}

.about-box h1 {
  font-size: 2.5em;
  margin-bottom: 20px;
  animation: pulseGlow 2s infinite ease-in-out;
}

.about-box p {
  line-height: 1.6;
  font-size: 1.1em;
  margin-bottom: 15px;
}
.profile-pic {
  width: 100%;
  max-width: 400px; /* Set a nice max width */
  height: auto;     /* Maintain aspect ratio */
  border-radius: 12px; /* Soft rounded corners ( */
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
  margin-bottom: 5px;
}