body,html{
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  display: flex;
  flex-direction: column;
  background-color: #0e0e0e00;
  z-index: -1;
}

::-webkit-scrollbar {display:none;}
.sec-1{
  position: relative;
  min-height: 100vh;
  margin:0;
  padding: 0;
}
#background-video {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 100%;
  min-height: 100vh;
  object-fit: cover;
  z-index: 0; 
}

#typing-text {
  position: absolute;
  top: 50%; 
  left: 50%; 
  transform: translate(-50%, -50%); 
  font-size: 36px; 
  color: white;
  text-align: center; 
  white-space: nowrap; 
  overflow: hidden; 
  border-right: 3px solid white; 
  font-family: 'Poppins', sans-serif; 
}

#exoplanets-overlay {
  position: absolute;
  top: 50%; 
  left: 50%; 
  transform: translate(-50%, -50%); 
  font-size: 128px; 
  color: rgba(255, 255, 255, 0.15); 
  text-align: center; 
  font-family: 'Poppins', sans-serif; 
  pointer-events: none; 
}

.button-container {
  position: absolute;
  top: 20px; 
  left: 50%; 
  transform: translateX(-50%); 
  display: flex; 
  gap: 20px; 
  z-index: 1; 
  opacity: 0; 
  visibility: hidden; 
  transition: opacity 0.3s ease, visibility 0.3s; 
}

.transparent-button {
  position: relative;
  padding: 10px 20px;
  font-size: 18px;
  color: white;
  text-decoration: none; 
  overflow: hidden; /* Prevent overflow of pseudo-element */
}

.transparent-button:before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0; /* Position at the bottom of the button */
  width: 100%;
  height: 2px; /* Thickness of the underline */
  background: white; /* Color of the underline */
  transform: translateX(-50%) scaleX(0); /* Start as scaled down */
  transition: transform 0.3s ease; /* Smooth transition for the scale */
}

.transparent-button:hover:before {
  transform: translateX(-50%) scaleX(1); /* Expand the underline on hover */
}

/* Hamburger Button Styles */
.nav #hamburger-button {
  position: sticky;
  float: right;
  width: 30px;
  height: 30px;
  background: none;
  border: none;
  right: 10px;
  padding: 2.5px;
  cursor: pointer;
  display: flex;
}

.nav #hamburger-button svg {
  width: 100%;
  height: 100%;
  color: white;
  transition: all 0.3s ease;
}
.nav {
  text-decoration: none;
  width: 100%;
  align-items: center;
  position: fixed;
  background-color: rgba(0, 0, 0, 0.684) ;
  overflow: hidden;
  height: 5rem;
  z-index: 10;
}
.nav-bar-1{
  float: left;
  margin-right: 1rem;
  display: flex;
  position: sticky;
  align-items: center;
}
.nav .nav-bar-1 a svg{
  position:sticky;
  float: right;
  color: white;
  font-weight: 200;
  border: none;
  width: auto;
  height: 20px;
  left: 0;
  fill: none;
}
.nav .nav-bar-1 a{
  top: 1rem;
  float: left;
  position: relative;
  text-decoration: none;
  text-align: center;
  color: white;
  font-family: 'Poppins',sans-serif;

}
.nav .nav-bar-2{
  left: 0.5rem;
  top: 1rem;
  display: flex;
  align-items: center;
  text-align: right;
  margin-left: 1rem;
  left:80%;
  float: right;
}
.nav .nav-bar-2 a{
  top: 1rem;
  float:right;
  color: white;
  padding: 14px 16px;
  position: relative;
  text-decoration: none;
  font-family: 'Poppins',sans-serif;
}
/* Navigation Pane Styles */
#nav-pane {
  position: fixed;
  top: 0;
  right: -100%; /* Fully off-screen */
  width: 25%;
  height: auto;
  background-color: #000000; /* Space black color */
  color: white;
  padding: 20px;
  box-shadow: -2px 0 5px rgba(0, 0, 0, 0.5);
  transition: right 0.9s ease; /* Smooth transition */
  z-index: 11;
}

#nav-pane a {
  display: block;
  color: white;
  text-decoration: none;
  padding: 10px 0;
  position: relative; /* Required for the pseudo-element */
}

#nav-pane a:before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0; /* Position at the bottom of the button */
  width: 100%;
  height: 2px; /* Thickness of the underline */
  background: white; /* Color of the underline */
  transform: translateX(-50%) scaleX(0); /* Start as scaled down */
  transition: transform 0.3s ease; /* Smooth transition for the scale */
}

#nav-pane a:hover:before {
  transform: translateX(-50%); /* Expand the underline on hover */
}

/* Dropdown Styles */
.dropdown {
  position: relative; 
}

.dropdown-content {
  display: none;
  position: absolute; 
  background-color: #000; 
  min-width: 200px; 
  z-index: 1; 
}

.dropdown-content a {
  padding: 10px;
  text-decoration: none; 
  color: white; 
  display: block; 
}

.dropdown-content a:hover {
  background-color: #444; 
}

.dropdown:hover .dropdown-content {
  display: block; 
}


.sec-2{
width: 100%;
max-height: 100%;
margin:0;
  padding: 0;
  margin-top: 10%;
top: 10%;
background-color: #0e0e0ee7;
position: relative;
}

.exoplanet-info-container {
  padding: 20px;
  max-width: 100%;
  height: auto;
}

.info-block {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.image-container {
  width: 45%;
  margin: 10px;
}

.image-container img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
}


.info-text {
  width: 45%;
  margin: 10px;
}

.info-text h2 {
  font-size: 24px;
  margin-bottom: 10px;
  color: #a8a7a7;
}

.info-text p {
  font-size: 17px;
  text-align: justify;
  color: #f7f2f2;
}

.reverse {
  flex-direction: row;
}
.sec-3{
  margin: 0;
  padding: 0;
  width: 100%;
  top: 0;
  max-height: 100vh;
  background-color: rgb(0, 0, 0);
  position: relative;
  z-index: -2;
}

footer {
z-index: 0;
font-family: 'Courier New', Courier, monospace;
padding: 50px 50px;
top: 10px;
bottom: 0;
max-height: 100%;
color: #c5c6c7;
background-color: rgba(0, 0, 0, 0);
position: relative;
overflow: hidden;
}

.footer-container {
display: flex;
justify-content: space-between;
padding: 20px;
flex-wrap: wrap;
}

.footer-section {
flex: 1;
min-width: 250px;
margin: 10px;
}

.footer-section h2 {
color: #66fcf1;
margin-bottom: 15px;
font-size: 20px;
}

.footer-section p {
line-height: 1.8;
font-size: 16px;
}

.footer-section ul {
list-style-type: none;
padding: 0;
}

.footer-section ul li a {
text-decoration: none;
color: #66fcf1;
font-size: 16px;
transition: color 0.3s ease-in-out;
}

.footer-section ul li a:hover {
color: #45a29e;
text-decoration: underline;
}

.footer-bottom {
text-align: center;
margin-top: 30px;
padding-top: 10px;
border-top: 1px;
color: #c5c6c7;
font-size: 14px;
}

.floating-planet {
position: absolute;
width: 200px;
height: 200px;
background: radial-gradient(circle, #45a29e, #0b0c10);
border-radius: 50%;
box-shadow:  0 0 50px rgba(69, 162, 158, 0.5);

animation: movePlanet 15s linear infinite, orbit 30s infinite linear;
overflow: hidden;
position: relative;
z-index: -1;
}


@keyframes orbit {
0% {
    transform: translateX(-100vh) ;
}
50% {
    transform: translateX(100vh);
}
100% {
    transform: translateX(-100vh);
}
}

@media (max-width: 768px) {
  .nav #hamburger-button {
    float: right;
    display: flex;
    top: 1.5rem;
    position: relative;
    align-items: center;
  }
  .nav{
    text-align: center;
    background-color: rgba(10, 9, 9, 0.55) ;
    overflow: hidden;
    height: 5rem;
  }
  .nav .nav-bar-2 {
    top: 1.5rem;
    display: none;
  }
  .nav .nav-bar-1{
    top: 1rem;
    left: 1rem;
  }
  #nav-pane {
    display: block;
  }
  #typing-text {
    font-size: 1.4rem;
    top: 50%;
    width: 90%;
    border: none;
    background:none;
}
#exoplanets-overlay {
  position: absolute;
  top: 50%; 
  left: 50%; 
  transform: translate(-50%, -50%); 
  font-size: 4rem; 
  color: rgba(255, 255, 255, 0.15); 
  text-align: center; 
  font-family: 'Poppins', sans-serif; 
  pointer-events: none; 
} 
.info-block{
  flex-direction: column;
}
.info-text {
  width: 100%;
  margin: 10px;
}

.info-text h2 {
  font-size: 24px;
  margin-bottom: 10px;
  max-width: 100%;
  color: #a8a7a7;
}

.info-text p {
  font-size: 17px;
  text-align: justify;
  color: #7d7d7d;
}
.image-container {
  width: 100%;
  margin: 10px;
}

.reverse{
  flex-direction: column-reverse;
}
}

@media (min-width: 769px) {
  .nav #hamburger-button{
    display: none;
  }
  #nav-pane {
    display: none;
  }
  .nav .nav-bar-1{
    left: 0.5rem;
    top:1rem;
  }

  .nav .nav-bar-2 {
    top:1rem;
    display:block;
  }
}