* {
  font-family: "KoHo", sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* header and menu CSS */
.header {
  width: 100%;
  min-height: 50vh;
  background-image: linear-gradient(
      45deg,
      rgba(0, 0, 0, 0.85),
      rgba(118, 0, 255, 0.85)
    ),
    url("../assets/post/solar.JPG");
  background-size: cover;
  background-position: center;
}

nav {
  position: fixed;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 7%;
  top: 0;
  z-index: 100;
  width: 100%;
  background: linear-gradient(
    45deg,
    rgba(0, 0, 0, 0.85),
    rgba(118, 0, 255, 0.85)
  );
  max-height: 100px;
}

.logo {
  width: 140px;
  height: 80px;
  cursor: pointer;
}

.nav-links li {
  list-style: none;
  display: inline-block;
  margin: 10px 10px;
}

.nav-links li a {
  position: relative;
  color: #fff;
  font-size: 1.2em;
  font-weight: 500;
  text-decoration: none;
  margin-left: 30px;
  transition: 0.3s ease;
}

.nav-links li a::before {
  content: "";
  position: absolute;
  background: #ff6f0f;
  width: 0;
  height: 3px;
  bottom: 0;
  left: 0;
  transition: 0.3s ease;
}

.nav-links li a:hover:before {
  width: 100%;
  transition: 0.3s ease;
}

nav .fa-bars {
  display: none;
}

.search-bar {
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  border-radius: 30px;
  padding: 5px 20px;
}

.search-bar input {
  background: transparent;
  border: 0;
  outline: none;
  padding: 6px 10px 6px 30px;
  font-size: 20px;
  color: #cac7ff;
}

::placeholder {
  color: #cac7ff;
}

.bg-text a {
  text-decoration: none;
  color: #fff;
}

.bg-text h1 {
  font-size: 4vw;
  font-weight: 500;
  color: #ff6f0f;
  padding: 100px 7% 20px 7%;
  text-decoration: underline;
}

.bg-text h4 {
  font-size: 16px;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  padding: 120px 7% 20px 7%;
}

.bg-text p {
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  padding: 20px 7% 20px 7%;
}

/*main content*/
.container {
  padding: 140px 7% 60px 7%;
  height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: black;
  overflow: hidden;
}

.headline h2 {
  color: #fff;
  font-size: 24px;
  text-align: center;
}
.content {
  font-size: 6px;
  width: 40em;
  height: 40em;
  position: relative;
}

.content img {
  height: 130%;
  width: 130%;
}

.sun {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 15em;
  left: 15em;
  width: 10em;
  height: 10em;
  border-radius: 50%;
  box-shadow: 0 0 3em rgb(255, 128, 0);
  animation: orbit 50s linear infinite;
}

.mercury,
.venus,
.earth,
.moon,
.mars,
.jupiter,
.saturn,
.uranus,
.neptune,
.pluto {
  position: absolute;
  border-style: solid;
  border-color: white transparent transparent transparent;
  border-width: 0.1em 0.1em 0 0;
  border-radius: 50%;
}

.mercury {
  top: 12.5em;
  left: 12.5em;
  width: 15em;
  height: 15em;
  animation: orbit 68.7s linear infinite;
}

.venus {
  top: 10em;
  left: 10em;
  width: 20em;
  height: 20em;
  animation: orbit 48.7s linear infinite;
}

.earth {
  top: 6em;
  left: 6em;
  width: 28em;
  height: 28em;
  animation: orbit 36.5s linear infinite;
}

.moon {
  top: 2em;
  right: -1em;
  width: 7em;
  height: 7em;
  animation: orbit 2.7s linear infinite;
}
.mars {
  top: 2em;
  left: 2.5em;
  width: 36em;
  height: 36em;
  animation: orbit 26.5s linear infinite;
}

.jupiter {
  top: -2em;
  left: -2em;
  width: 45em;
  height: 45em;
  animation: orbit 21s linear infinite;
}

.saturn {
  top: -7em;
  left: -7em;
  width: 55em;
  height: 55em;
  animation: orbit 17s linear infinite;
}

.uranus {
  top: -12em;
  left: -12em;
  width: 65em;
  height: 65em;
  animation: orbit 19s linear infinite;
}

.neptune {
  top: -17em;
  left: -17em;
  width: 75em;
  height: 75em;
  animation: orbit 15s linear infinite;
}

.pluto {
  top: -22em;
  left: -22em;
  width: 85em;
  height: 85em;
  animation: orbit 18s linear infinite;
}

.mercury::before,
.venus::before,
.earth::before,
.moon::before,
.mars::before,
.jupiter::before,
.saturn::before,
.uranus::before,
.neptune::before,
.pluto::before {
  content: "";
  position: absolute;
  border-radius: 50%;
  animation: orbit 30s linear infinite;
}

.mercury::before {
  top: 1.5em;
  right: 0.8em;
  width: 2em;
  height: 2em;
  background-image: url("../assets/solar/mercury.jpg");
  background-size: cover;
}

.venus::before {
  top: 2em;
  right: 2em;
  width: 2em;
  height: 2em;
  background-image: url("../assets/solar/venus.png");
  background-size: cover;
}

.earth::before {
  top: 3em;
  right: 0em;
  width: 5em;
  height: 5em;
  background-image: url("../assets/solar/earth.jpg");
  background-size: cover;
}

.moon::before {
  top: 0.8em;
  right: 0.2em;
  width: 1.2em;
  height: 1.2em;
  background-image: url("../assets/solar/moon.png");
  background-size: cover;
}

.mars::before {
  top: 5em;
  right: 3em;
  width: 3em;
  height: 3em;
  background-image: url("../assets/solar/mars.png");
  background-size: cover;
}

.jupiter::before {
  top: 6em;
  right: 3em;
  width: 5em;
  height: 5em;
  background-image: url("../assets/solar/jupiter.png");
  background-size: cover;
}

.saturn::before {
  top: 7.5em;
  right: 5em;
  width: 4.5em;
  height: 4.5em;
  background-image: url("../assets/solar/saturn.png");
  background-size: cover;
}

.uranus::before {
  top: 9em;
  right: 6.5em;
  width: 4em;
  height: 4em;
  background-image: url("./images/uranus.png../assets/solar/uranus");
  background-size: cover;
}

.neptune::before {
  top: 10em;
  right: 8em;
  width: 4em;
  height: 4em;
  background-image: url("../assets/solar/neptune.png");
  background-size: cover;
}

.pluto::before {
  top: 11em;
  right: 10em;
  width: 4em;
  height: 4em;
  background-image: url("../assets/solar/pluto.png");
  background-size: cover;
}

.star {
  position: absolute;
  background-color: white;
  border-radius: 50%;
  z-index: -1;
}

@keyframes orbit {
  to {
    transform: rotate(360deg);
  }
}

/*content container*/
.container-post {
  padding: 14px 7% 60px 7%;
}

.post-row {
  margin-top: 30px;
  display: flex;
  justify-content: space-between;
}

.post-left {
  flex-basis: 65%;
}

.post-left h2 {
  font-weight: bold;
  color: #000;
  font-size: 28px;
  padding-bottom: 24px;
}

.post-left p {
  color: #000;
  font-size: 20px;
}

.post-right {
  flex-basis: 32%;
  background-color: #000;
  color: #fff;
}

.post-content {
  padding: 30px;
}

.post-right h3 {
  padding: 30px 0 0 30px;
  color: #ff6f0f;
}

.post-right p {
  padding-bottom: 18px;
}

.post-right a {
  color: #fff;
  background-color: #ff6f0f;
  padding: 8px;
  text-decoration: none;
  cursor: pointer;
}

.post-right a:hover {
  color: #000;
  background-color: #fff;
}

.iframe-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  margin: 20px 0;
}

.iframe-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/*to top btn css */
.to-top {
  background: white;
  position: fixed;
  bottom: 16px;
  right: 32px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: #1f1f1f;
  text-decoration: none;
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s;
}

.to-top.active {
  bottom: 32px;
  pointer-events: auto;
  opacity: 1;
}

html {
  scroll-behavior: smooth;
}

/*Footer*/
footer {
  width: 100%;
  bottom: 0;
  color: #fff;
  padding: 10px 0 30px;
  font-size: 17px;
  line-height: 20px;
  background: linear-gradient(#1f0073, #000000);
}

.row {
  padding: 0 7%;
  display: flex;
  margin: auto;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
}

.col {
  flex-basis: 25%;
  padding: 10px;
}

.col:nth-child(2),
.col:nth-child(3) {
  flex-basis: 15%;
}

.col h3 {
  width: fit-content;
  margin-bottom: 20px;
  border-bottom: 2px solid #fff;
}

.email-id {
  width: fit-content;
  border-bottom: 1px solid #ccc;
  margin: 20px 0;
}

.col ul li {
  list-style: none;
  margin-bottom: 12px;
}

.col ul li a {
  text-decoration: none;
  color: #fff;
  cursor: pointer;
}

.col form {
  display: flex;
  padding-bottom: 15px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #ccc;
  margin-bottom: 50px;
}

.col form .far {
  font-size: 18px;
  margin-right: 10px;
}

.col form input {
  width: 100%;
  background: transparent;
  color: #ece0e0;
  outline: none;
  border: 0;
}

.col form button {
  background: transparent;
  border: 0;
  outline: none;
  cursor: pointer;
}

.col button .fa-solid {
  font-size: 16px;
  color: #fff;
}

.col::placeholder {
  color: #fff;
}

.social-icons .fab {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  text-align: center;
  line-height: 40px;
  font-size: 20px;
  color: #000;
  background: #fff;
  margin-right: 15px;
  cursor: pointer;
}

.copyright {
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}

/*main content Css*/
.container {
  padding: 140px 7% 60px 7%;
}

/* Media queary for header and menu */
@media (max-width: 700px) {
  .logo {
    position: fixed;
    top: 1%;
    left: 7%;
  }

  nav {
    position: fixed;
    top: 0;
    z-index: 100;
    display: inline-block;
    width: 100%;
    padding: 100px 7% 0;
    background: linear-gradient(
      45deg,
      rgba(0, 0, 0, 0.85),
      rgba(118, 0, 255, 0.85)
    );
    text-align: right;
    max-height: 100px;
    overflow: hidden;
    transition: max-height 0.5s;
  }

  nav .nav-links li {
    margin: 10px 0;
    display: block;
  }

  .hero-btn {
    margin: 15px 0 30px;
    display: inline-block;
  }

  nav .fa-bars {
    display: block;
    position: fixed;
    top: 4%;
    right: 7%;
    color: #fff;
    font-size: 28px;
  }

  .active::after {
    left: -40px;
    transform: translate(0, 50%);
    bottom: 50%;
  }

  .hidemenu {
    max-height: 350px;
    padding-bottom: 15px;
  }

  /*footer media query*/
  footer {
    bottom: unset;
  }

  .col {
    flex-basis: 100%;
  }

  .col:nth-child(2),
  .col:nth-child(3) {
    flex-basis: 100%;
  }

  footer .logo {
    width: 140px;
    cursor: pointer;
  }

  .social-icons {
    padding-bottom: 30px;
    text-align: center;
  }
}

@media (max-width: 1000px) {
  .search-bar {
    display: none;
  }

  .card {
    flex-direction: column;
    max-width: 350px;
  }

  .card-img {
    width: 100%;
    height: 250px;
    left: 0;
  }

  .card-content {
    width: 100%;
    height: auto;
    right: -25px;
    padding: 30px;
    text-align: center;
  }

  .card-content::before {
    top: 0;
    bottom: 0;
  }

  .search-bar {
    display: none;
  }

  .bg-text h1 {
    font-size: 32px;
  }

  .post-row {
    flex-direction: column;
    margin-top: 20px;
  }

  .iframe-container {
    margin: 20px 0;
  }
}
