@import url('https://fonts.googleapis.com/css2?family=Russo+One&display=swap');
*{
    margin:0;
    padding:0;
    box-sizing: border-box;
}

body{
    font-family: 'Montserrat',Arial,sans-serif;
    margin: 0;
    padding: 0;
    color: #fff;
     background-image: linear-gradient(rgba(0,0,0,0.5)),url("https://i.pinimg.com/736x/b8/60/d3/b860d3b9a548cee0452aeea927a0c003.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: top;
    min-height: 100vh;
}
#main{
    width: 100%;
    height: auto;
}
.navbar{
    width: 100%;
    height: 5%;
    display:flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 35px;
    padding-bottom: 35px;
    background: #0808086b;
    position: fixed;
    backdrop-filter: blur(10px);
    z-index: 999;
    transform: translateY(-70px);
}
.hamburger{
    list-style: none;
}
.hamburger a{
    text-decoration: none;
    color: #fff;
    display: none;
}
.ri-menu-3-line::before{
    font-size: x-large;
}
.closebtn{
    text-align: left;
    margin-left: 20px;
    list-style: none;
    margin-bottom: 20px;
}
.closebtn a{
    text-decoration: none;
    color: #fff;
}
.comb{
    display: flex;
    gap: 20px;
}
.sidebar{
    width: 100%;
    height: 5%;
    display:flex;
    align-items: center;
    padding-top: 20px;
    padding-bottom: 20px;
    position: fixed;
    top:0;
    right: 0;
    height: 100vh;
    width: 250px;
    z-index: 999;
    background-color: #000000a2;
    box-shadow: -10px 0 10px #0b1d46;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    backdrop-filter: blur(10px);
}
.sidebar ul{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.sidebar .logo a{
    margin: 20px;
    font-size: 24px;
}
.sidebar .logo{
    margin-bottom: 20px;
}
.navbar ul{
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
}
.sidebar ul{
    list-style: none;
    display: flex;
    justify-content: center;
    margin-left: 20px;
    gap: 32px;
}
.navbar ul li a,.logo a{
    text-decoration: none;
    color: #fff;
    font-family: 'Roboto';
    font-size: 0.9rem;
    cursor: pointer;
}
.sidebar ul li a,.logo a{
    align-items: flex-start;
    text-decoration: none;
    color: #fff;
    font-family: 'Roboto';
    font-size: 16px;
    cursor: pointer;
}
.navbar ul li a:hover{
    color:  #8eabf0;
}
.sidebar ul li a:hover{
    color:  #8eabf0;
}
.logo a{
    margin-left: 60px;
    font-size: 2rem;
    font-family: "Russo One", sans-serif;
    word-spacing: 5px;
}
.signup:hover{
    background-color: #8eabf0;
    transform: scale(1.02);
    transition: transform 0.3s ease-in-out;
}
.signup{
    margin-right: 60px;
    background-color: transparent;
    color: #fff;
    padding: 5px 15px;
    border: 1px solid #fff;
    font-family: 'Roboto';
    cursor: pointer;
}
.main-header{
    margin-top: 70px;
    background-color: #000000a2;
    backdrop-filter: blur(7px);
}
@media(max-width: 950px){
    .logo a{
        margin-left: 30px;
    }
    .signup{
        margin-right: 30px;
    }
    .navbar ul{
        gap: 28px;
    }
}
@media(max-width: 880px){
    .logo a{
        margin-left: 20px;
        font-size: 1.5rem;
    }
    .signup{
        margin-right: 20px;
    }
    .navbar ul{
        gap: 20px;
    }
}
@media(max-width:700px){
   .footer div h3{
        font-size: 15px;
    }
    .footer div p{
        font-size: 11px;
    }
    .end{
        font-size: 11px;
    }
    .ex p{
        font-size: 12px;
    }
    .end{
        margin-left: 40px;
    }
    .terms{
        margin-right: 40px;
        gap: 20px;
    }
}
@media(max-width: 520px){
    .comb{
        gap: 10px;
    }
}
@media(max-width: 420px){
    .logo a{
    font-size: 18px;
   } 
   .signup{
    padding: 3px 12px;
   }
}
@media(max-width: 390px){
    .logo a{
        font-size: 17px;
    }
    .signup{
        padding: 1.5px 8px;
        font-size: 12px;
    }
}
@media(max-width: 372px){
    .logo a{
        font-size: 14px;
    }
    .signup{
        padding: 1.3px 6px;
        font-size: 11px;
    }
}
@media(max-width: 361px){
    .logo a{
        font-size: 12px;
    }
    .signup{
        padding: 1.1px 6px;
        font-size: 8px;
    }
}
.main-header{
    text-align:center;
    /* margin-top: 80px; */
    padding:20px 8vw 30px 8vw;
    background:rgba(20,20,40,0.35);
    padding-bottom:30px ;
}

.main-header h1{
    font-weight:bold;
    font-size: 3.1 rem;
    margin: 0;
    color:white;
    text-shadow: 4px 4px 12px #000a, 0 0 14px #fff;
    padding-top: 1px;
}

.container{
    max-width: 1160px;
    margin: 0 auto;
    padding: 40px 12px;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.search-bar{
    padding: 12px;
    margin-bottom: 28px;
    border-radius: 6px;
    border: none;
    width: 320px;
    font-size: 1.07 rem;
    background: #191c2b;
    color:white;
    box-shadow: 0 2px 10px #0002;
    
}

#planets-info{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap:50px;
    padding: 20px;
}

.loading{
    width:100%;
    font-size: 2 rem;
    color:#fff;
    font-weight: bold;
    text-align: center;
    margin-top: 50px;
    animation:blink 1.2s infinite;
}

@keyframes blink{
    0%,100%{opacity:1;}
    50%{opacity:0.70;}
    
}

.planets-card{
    background: rgba(256,256,256,0.05);
    border-radius: 18px;
    padding: 24px 20px;
    width:240px;
    box-shadow: 0 0 14px #0007,0 0 14px #ffffff7c;
    transition: transform 0.2s, background 0.2s;
    backdrop-filter: blur(4px);
    cursor: pointer;

}

.planets-card:hover {
  transform: scale(1.12);
  background: rgba(255,255,255,0.18);
}


.planets-card h2 {
  margin-top: 0;
  font-size: 1.6rem;
  color: #fff;
  font-weight: bold;
  text-align: center;
}

.planets-card p{
    font-size: 1 rem;
    line-height: 1.5;
    color:#e5e5e5;
    text-align: left;
}

.footer{
    width: 100%;
    height: 40%;
    background-color:#0000005d;
    backdrop-filter: blur(10px);
}
.foot{
    color: #fff;
    display: flex;
    justify-content:space-evenly;
    align-items: center;
    line-height: 1.5rem;
    padding-top: 2.5rem;
}
.footer div h3{
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    word-spacing: 5px;
}
.footer div p{
    font-family: 'Roboto';
    font-size: 12px;
}
.footer div p:hover{
    color: #8eabf0;
}
.res{
     color: #fff;
    margin-top: 2.5rem;
    font-family: 'Roboto';
    display: flex;
    justify-content: space-between;
    
}
.follow p a{
    text-decoration: none;
    color:#fff;
}
.follow p a:hover{
    color:#8eabf0;
}

.end{
    margin-left: 80px;
    font-size: 12px;
    margin-bottom: 20px;
}
.terms{
    margin-right: 80px;
    display: flex;
    gap: 40px;
    margin-bottom: 20px;
}
.terms p a{
    text-decoration: none;
    color: #fff;
}
.terms p a:hover{
    cursor: pointer;
    color:#8eabf0;
}
.foot div h3{
        letter-spacing: 1px;
    }

    @media(max-width: 1200px){
    #main{
        height: auto;
    }
}
@media(max-width: 950px){
    .logo a{
        margin-left: 30px;
    }
    .signup{
        margin-right: 30px;
    }
    .head h1{
        margin-right: 100px;
    }
    .navbar ul{
        gap: 28px;
    }
}
@media(max-width: 880px){
    .logo a{
        margin-left: 20px;
        font-size: 1.5rem;
    }
    .signup{
        margin-right: 20px;
    }
    .navbar ul{
        gap: 20px;
    }
}
@media(max-width: 768px){
    .logo a{
        font-size: 1.3rem;
        word-spacing: normal;
         white-space: nowrap;
    }
          #main{
        text-align:  center;
    }
    .hamburger a{
        display:flex;
    }
    .navbar .nav-links li a{
        display: none;
    }

      .end{
        margin-left: 60px;
    }
    .terms{
        margin-right: 60px;
        gap: 30px;
    }
    .follow,.teammem,.creators,.contactus{
        text-align: start;
    } 
}

@media(max-width: 592px){
 .foot{
        display: block;
        padding: 50px 30px 0;
    }
    .res{
        display: flex;
        flex-direction: column;
        margin-top: 20px;
    }
    .end{
        
        display: flex;
        justify-content: flex-start;
        margin: 0 0 15px 0;
        padding: 0 30px 0;
    }
    .terms{
        display: flex;
        justify-content: flex-start;
        margin: 0 0 20px 0;
        padding: 0 30px 0;
    }
}

@media only screen and (max-width:768px){
    body{
        background-attachment: scroll;
        background-size: cover;
        background-position: center;
    }
}

.planet-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  margin: 10px 0;
  transition: transform 0.3s ease-in-out;
}

.planet-img:hover {
  transform: scale(1.05);
}


.details-btn {
  background-color: transparent;
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: 50px;
  border: 2px solid #fff;
  margin-top: 8px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.details-btn:hover {
  background: #0b1d46;
}

.planet-details {
  display: none;
  text-align: left;
  margin-top: 10px;
  font-size: 1.1rem;
  color: #f1f1f1;
  animation: fadeIn 0.4s ease;
  line-height: 1.6;
}

.planet-details.show {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}
