
body{

    background-color: #f2f2f2;;
}
.container{


    margin-top: 20px;    /* top margin */
    margin-right: 5%;  /* right margin */
    margin-bottom: 20px; /* bottom margin */
    margin-left: 5%;   /* left margin */
    font-family: 'Poppins', sans-serif;
   


    
}

.logo{


    font-weight: bold;

    float: left;

    padding: 10px 0px;

    margin: 0px;

    display: inline-block;

    font-size: 2em;


  
}

nav{

    margin: 0px;
    
}

ul{

    margin:0px;

    list-style-type: none;
    padding-left: 0px;
}

li{


    margin:0px;

   
      display: inline;
      
      
      text-decoration: none;
}

 .search-container {
    position: relative;
    max-width: 300px;
    margin: 0 auto;
  }

  /* Style the input field */
  .search-box {
    width: 30%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    float:right;
  }

  /* Style the search icon */
  .search-icon {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    color: #666;
    cursor: pointer;
  }

  .topics {
    overflow-x: scroll;
    white-space: nowrap;
    padding: 20px;
    scrollbar-width: thin;  /* For Firefox */
    scrollbar-color: transparent transparent;  /* For Firefox */
    -ms-overflow-style: none;  /* For IE and Edge */
  }

  .topic {
    display: inline-block;
    width: 300px;
    height: 50px;
    margin-right: 20px;
    border-radius: 10px;
    background-color: white;
    color: black;
    text-align: center;
    line-height: 50px;
    font-size: 1rem;
    border: 0.5px solid  #4A55A2;

  }
  


  .selected{


    background-color: #4A55A2;
    color:white
  }

  .videos{


    margin-top: 50px;
  }

  .thumbnails {
    display: flex;
    overflow-x: auto;
    overflow: hidden;

  }

  .video-info {
    flex: 0 0 auto;
      margin-right: 10vw;
      box-sizing: border-box;
      position: relative;
      text-align: center;
      padding-bottom: 50px;

  }

  .link{

    margin: 0px;

    padding: 0px;

    text-align: left;
  }

  .image  {
    width: 30vw;
    border-radius: 8px;
  }

  @media (max-width: 600px) {
    .image {
      flex: 0 0 100%;
    }
  }

  .rank {
 

    color:#FFD700;
   

    padding-top: 20px;
    border-radius: 4px;
    font-size: 25px;
    text-align: left;

    
  }

  .playlist-indicator{

    margin-top: 30px;

    border: 1px solid grey;

    width: 80px;

    padding-left: 20px;

    border-radius: 4px;

    text-align: left;
  }

  .custom-input {
    width: 15vw;
    padding: 15px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.3s;
  }

  .custom-input:focus {
    border-color: #3498db;
  }

  .submit-button {
    margin-top: 30px;
    padding: 15px 30px;
    font-size: 18px;
    background-color: #4A55A2; /* Nice background color */
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
  }

  .channel-name{

    text-align: left;
    font-size: 1.5em;
  }

  .text-transition {
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
  }

  .main-body{


    margin-top: 50px;
  }

  @media (max-width: 600px) {
    .thumbnails {
      flex-direction: column; /* Stack items vertically on small screens */
      justify-content: center;
      
      overflow-x: hidden; /* Disable horizontal overflow on small screens */
    }

    .search-container{

   

      width: 100vw; 

      margin: 0 auto;
    }

    .search-box{

      width: 80vw;

      text-align: center;

      margin: 0;
    }

    .logo{

      width: 90%;

      text-align: center;
    }

    .video-info{


      text-align: center;
    }

    .custom-input {
      width: 70vw;
      
    }
  }



  @media (min-width: 601px) and (max-width: 900px) {
  .thumbnails {
    flex-wrap: wrap; /* Allow items to wrap onto the next line */
    justify-content: space-between; /* Add space between items */
  }
}




@keyframes slide {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}

.topics-logos {
  overflow: hidden;
  padding: 60px 0;
  background: #f2f2f2;
  white-space: nowrap;
  position: relative;
}

.topics-logos :before,
.topics-logos :after {
  position: absolute;
  top: 0;
  width: 250px;
  height: 100%;
  content: "";
  z-index: 2;
}

.topics-logos:before {
  left: 0;
  background: linear-gradient(to left, #f2f2f2,#f2f2f2);
}

.topics-logos:after {
  right: 0;
  background: linear-gradient(to right, #f2f2f2,#f2f2f2);
}

.topics-logos:hover .topics {
  animation-play-state: paused;
}

.topics {
  display: inline-block;
  animation: 35s slide infinite linear;
}

.topics .topic {
  height: 50px;
  margin: 0 40px;
}
