
.carousel {
  height: 100%;
  height: 300px;
}
.carousel img{
  width: 80%;
  height: 300px;
  border: 1px solid red;
}
.fixed {
    border: 1px solid red;
  width: 100%;
  position: fixed;
  z-index: 999;
  text-align: center;
}
.bg-level{
    border: 1px solid red;
    width: 100%;
    height: 500px;
}





  .heros {
  width: 100%;
  background-position: center;
  background-size: cover; 
  animation: image 6s infinite alternate;
  background-size: cover;
}
@keyframes image {
  0% {
    background-image: url('../images/bg-slider.png');
  }
  100% {
    background-image: url('../images/CosmoCoverbg.png');
  }
  
 
}


.heros:before {
  content: "";

  
  bottom: 0;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1;
}

.heros .hero-container {
  position: relative;
  z-index: 2;
  min-width: 300px;
  text-align: center;
  width: 50%;
}

.heros h1 {
  padding-left: 6%;
  padding-top: 5%;
  margin: 0 0 10px 0;
  font-size: 65px;
  font-weight: 700;
  font-style: italic;
  color: #fff;
}
.heros h2 {
  padding-left: 6%;
  margin: 0 0 -20px 0;
  font-size: 45px;
  color: #fff;
}
.heros span{
  margin-bottom: -10px;
  font-size: 40px;
  font-weight: 700;
  color: #ffffff;
}
.heros p {
  color: #fff;
  margin-bottom: 50px;
  font-size: 26px;
  font-family: "Poppins", sans-serif;
}

.heros p span {
  color: #fff;
  padding-bottom: 4px;
  letter-spacing: 1px;
  border-bottom: 3px solid #149ddd;
}
.heros button{
  
 background-color:#f9bb1f;
  border: none;
  padding: 12px 25px;
  border-radius: 25px;
  text-decoration: none;
 margin-bottom: 50px;
 margin-top: 44px;
}
.estimated-btn{
  text-decoration: none;
  font-size: 20px;
  font-weight: bold;
  color: black;
}
.heros button:hover{
  background-color:blue;
   border: none;
   padding: 16px 30px;
   border-radius: 25px;
   text-decoration: none;
  margin-bottom: 50px;
 }
 .estimated-btn:hover {
  text-decoration: none;
  font-size: 20px;
  font-weight: bold;
  color: white;
}

@media (min-width: 1024px) {
  .heros {
    background-attachment: fixed;
  }
}

@media (max-width: 768px) {
  .heros h1 {
    font-size: 28px;
    line-height: 36px;
  }

  .heros h2 {
    font-size: 18px;
    line-height: 24px;
    margin-bottom: 1px;
  }
}
