.cc-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  background-image: linear-gradient(rgba(8, 1, 20, 0.8), rgba(42, 8, 94, 0.6));
  background-position: center;
  background-size: cover;
  padding: 0.2rem;
  position: relative;
}

.cc-header::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../images/header-img.png");
  opacity: 0.6;
  z-index: -1;
}



#logo {
  width: 90%;
  max-width: 160px;
  height: 9vh;
  max-height: 68px;
  opacity: 0.80;
}

h1 {
  font-size: 2.8rem;
  margin-bottom: 5%;
  color: rgb(179, 187, 199);
}

.nav-cc ul {
  display: flex;
  justify-content: flex-end;
  list-style: none;
  margin: auto;
  align-items: center;
  position: relative;
}

.nav-logo-container {
  margin: 0.2rem 0.5rem 0.2rem 1.3rem;
}

.nav-cc ul li {
  margin: 0px 12px;
  text-align: center;
  display: flex;
}

.nav-cc ul li .nav-btns {
  position: relative;
  text-decoration: none;
  font-size: 0.8em;
  color: #cfcdf3;
  letter-spacing: 0.5px;
  padding: 0.4em;
  transition: all 0.3s ease;
  font-weight: bold;
}

.nav-cc ul li a:after {
  content: "";
  position: absolute;
  background-color: white;
  height: 3px;
  width: 0%;
  left: 0;
  bottom: -6px;
  transition: 0.3s;
}

.nav-cc ul li a:hover:after {
  width: 100%;
}

.nav-cc ul li a:hover {
  color: white;
}

::selection {
  color: #cfcdf3;
  background: #664AFF;
}

.search-form {
  margin: 0 auto;
  border-radius: 10px;
  border: 2px solid rgb(206, 195, 195);
  color: #cfcdf3;
  position: relative;
  width: 232px;
}

input[type="text"]::placeholder {
  color: #d3d1f3;
}

.search-input {
  display: flex;
  padding: 2.3% 3.2%;
  color: #d3d1f3;
  width: 100%;
  border-radius: 4px;
  position: relative;
  box-shadow: 0px 1px 5px 3px rgba(0, 0, 0, 0.12);
}

.search-input input {
  background-color: transparent;
  width: 100%;
  color: #cfcdf3;
  outline: none;
  border: none;
  border-radius: 5px;
  padding: 0% 4%;
  font-size: 0.9em;
  box-shadow: 0px 1px 5px rgba(0, 0, 0, 0.1);
}

.search-input.active-suggestions input {
  border-radius: 4px 4px 0 0;
}

.search-input .autocom-box {
  width: 280px;
  position: absolute;
  top: 108%;
  left: -7%;
  max-height: 400px;
  z-index: 5;
  background-color: #f9f9f9;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  padding: 6px;

}

.autocom-box {
  display: none;
}

.search-input.active-suggestions .autocom-box {
  opacity: 1;
  pointer-events: auto;
}

.search-input.active .autocom-box li {
  display: block;
}

.autocom-box li:hover {
  background: #efefef;
}

/* .search-input .icon {
  position: absolute;
  right: 1%;
  top: -5%;
  text-align: center;
  font-size: 20px;
  cursor: pointer;
  padding: 4px;
} */

#subMenu,
#subMenuOptions{
  text-align: initial;
  display: block;
}

#burger-btn{
  display: none;
}

.icon i {
  color: #cfcdf3da;
}

.icon:hover i {
  font-size: 1.05rem;
  color: #dddcf7;
}

.suggestion {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: transform 0.2s ease-in-out;
  margin: 4px 0 4px 2px;
  font-weight: bold;
}

.suggestion:hover {
  cursor: pointer;
  transform: scale(1.03);
}

#s-image {
  width: 46px;
  height: 60px;
  border-radius: 6px;
  margin-right: 6px;
  margin-left: 4px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

#s-image img {
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: revert;
}

#s-name,
#no-matches-text-span {
  flex: 1;
  font-size: 14px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: #73727c;
}

#no-matches-text-span {
  padding: 4px 12px;
}


@media only screen and (max-width:1200px) {
  .nav-cc ul {
    flex-wrap: nowrap;
  }

  .nav-cc ul li:first-of-type {
    width: 45%;
  }

  .nav-cc ul li {
    margin: 0px 0.5%;
  }

  .search-form {
    width: 200px;
  }


  #logo{
    max-width: 140px;
    max-height: 58px;
  }

  #navMoviesSeries{
    min-width: 86px;
  }

  #user-photo-wrapper{
    margin: 0 1% 0 1.6%;
  }
}


@media only screen and (max-width: 830px) {
  #burger-btn {
    background-color: #7126e0;
    min-height: 40px;
    min-width: 40px;
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center !important;
  }

  .user-pic{
    margin-left: 0;
  }

  .nav-logo-container {
    margin: 0.2rem 0rem 0.2rem 1.3rem;
}

  .search-form {
    width: 360px;
    margin-right: 2.7%;
  }
  
  .nav-btns{
    display: none;
  }

  footer p{
    font-size: 0.9rem;
  }

  #logo{
    max-width: 124px;
    max-height: 48px;
  }

  #navMoviesSeries{
    min-width: 0;
  }

  .nav-cc{
    width: 400px;
  }
}

@media only screen and (max-width: 580px){
  .search-form{
    display: none;
  }

  .sub-menu-wrap, .sub-menu-options-wrap{
    right: -76px;
    top: 44px;
  }

  .nav-cc{
    margin-right: 1.6%;
  }

  footer p{
    font-size: 0.75rem;
    text-align: center;
  }

  footer{
    padding: 1rem;
  }

  .nav-cc{
    width: auto;
  }

}

