.list-container,
.sidebar {
  transition: var(--smooth3);
}

.subscribed-list h3,
.vid-info {
  color: #5a5a5a;
  font-size: 13px;
}

* {
  margin: 0;
  padding: 0;
  font-family: poppins, sans-serif;
  box-sizing: border-box;
}

a {
  text-decoration: none;
  color: #5a5a5a;
}

img {
  cursor: pointer;
}

:root {
  --smooth3: 0.3s ease;
}

::-webkit-scrollbar {
  -webkit-appearance: none;
  width: 4px;
  height: 5px;
}

.preloader,
.sidebar {
  position: fixed;
  height: 100vh;
}

::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.15);
  border-radius: 10px;
}

::-webkit-scrollbar-track {
  background-color: transparent;
}

.sidebar,
nav {
  background: #fff;
  top: 0;
}

::-webkit-scrollbar-thumb:hover {
  background-color: rgba(0, 0, 0, 0.45);
}

::-webkit-scrollbar-thumb:active {
  background-color: rgba(0, 0, 0, 0.45);
}

svg .line,
svg.line {
  fill: none;
  stroke: #242423;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1;
}

svg {
  width: 20px;
  height: 24px;
}

.flex-div {
  display: flex;
  align-items: center;
}

.noResult {
  text-align: center;
}

nav {
  padding: 10px 20px;
  justify-content: space-between;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  position: sticky;
  z-index: 10;
}

.nav-right img {
  width: 25px;
  margin-right: 25px;
}

.nav-right .user-icon {
  width: 35px;
  border-radius: 50%;
  margin-right: 0;
}

.nav-left .menu-icon {
  width: 22px;
  margin-right: 25px;
}

.nav-left .logo {
  width: 130px;
}

.nav-middle .search-box {
  border: 1px solid #ccc;
  margin-right: 15px;
  padding: 8px 12px;
  border-radius: 25px;
}

.nav-middle .search-box input {
  width: 400px;
  border: 0;
  outline: 0;
  background: 0 0;
  padding: 2px 23px;
}

.nav-middle .search-box img {
  width: 15px;
}

.sidebar {
  width: 200px;
  left: 0;
  padding: 60px 10px 0;
  visibility: visible;
}

.y-scroll {
  overflow-y: scroll;
  overflow-x: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
}

.shortcut-links a img {
  width: 20px;
  margin-right: 20px;
}

.shortcut-links a:first-child {
  color: #ed3833;
}

.sidebar hr {
  border: 0;
  height: 1px;
  background: #ccc;
  width: 85%;
}

.subscribed-list h3 {
  margin: 20px 13px;
}

.shortcut-links a,
.subscribed-list a,
.vid-list .flex-div a {
  text-decoration-line: none;
  color: #595858;
}

.shortcut-links a,
.subscribed-list a {
  display: flex;
  align-items: center;
  white-space: nowrap;
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 5px;
}

.shortcut-links a:hover {
  background: #f9f9fb;
}

.subscribed-list a img {
  width: 25px;
  border-radius: 50%;
  margin-right: 20px;
}

.small-sidebar hr {
  width: 50%;
  margin-bottom: 25px;
}

.container {
  background: #f9f9f9;
  padding: 20px 2% 20px 17%;
}

.large-container {
  padding-left: 7%;
}

.banner {
  width: 100%;
}

.banner img {
  width: 100%;
  border-radius: 8px;
}

.list-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  grid-column-gap: 16px;
  grid-row-gap: 30px;
  margin-block: 15px;
  width: calc(100% - (260px - 20px) + 40px);
  margin-left: auto;
  padding-inline: 20px;
}

.short-list {
  width: calc(100% - (120px - 20px) + 40px);
}

.vid-list .thumbnail {
  width: 100%;
  border-radius: 5px;
}

.vid-list .flex-div {
  align-items: flex-start;
  margin-top: 7px;
}

.vid-list .flex-div img {
  width: 35px;
  margin-right: 10px;
  border-radius: 50%;
}

.vid-info a {
  color: #000;
  font-weight: 600;
  display: block;
  margin-bottom: 5px;
}

.small-sidebar {
  width: 65px;
  visibility: visible;
}

.navSearch,
.small-sidebar h3 {
  display: none;
}

.list:not(:last-child):after {
  content: "";
  display: block;
  margin-block: 12px;
  border-bottom: 1px solid #e4e3e1;
}

@media (max-width: 900px) {
  .sidebar {
    width: 0;
    visibility: hidden;
  }

  .small-sidebar {
    width: 240px;
    visibility: visible;
  }

  .small-sidebar h3 {
    display: block;
  }

  .menu-icone,
  .nav-right img {
    display: none;
  }

  .list-container {
    width: 100%;
  }

  .container .large-container {
    padding-left: 5%;
    padding-right: 5%;
  }

  .nav-right .user-icon {
    display: block;
    width: 30px;
  }

  .nav-middle .search-box input {
    width: 300px;
  }

  .logo {
    width: 90px;
  }
}

@media (max-width: 599px) {
  nav {
    justify-content: unset;
  }

  .nav-middle.flex-div {
    margin: 0 20px 0 auto;
  }

  .navSearch {
    display: block;
  }

  .navSearch svg {
    height: 20px;
    vertical-align: middle;
  }

  .nav-middle .search-box {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 0 20px;
    max-width: none;
    background: #fefefe;
    border: 0;
    margin-right: 0;
    border-radius: 0;
  }

  .nav-middle .search-box input {
    display: block;
    width: 100%;
    padding: 20px 40px;
    position: relative;
    margin-top: -100%;
    transition: var(--smooth3);
  }

  .search-box input[type="text"]:focus {
    background: #fefefe;
    margin-top: 0;
  }

  button.close,
  button.searchButton {
    display: flex;
    align-items: center;
    transition: var(--smooth3);
    margin-top: -100%;
  }

  .search-box input[type="text"]:focus ~ .close,
  .search-box input[type="text"]:focus ~ .searchButton {
    opacity: 1;
    visibility: visible;
    margin-top: 0;
  }

  button.close {
    right: 12px;
    left: auto;
    opacity: 0;
    visibility: hidden;
  }
}

form.searchForm {
  position: relative;
  width: 100%;
  height: 100%;
  font-size: 95%;
}

button.close,
button.searchButton {
  background: 0 0;
  border: 0;
  outline: 0;
  padding: 0;
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
}

button.close {
  right: 12px;
  left: auto;
}

.preloader {
  width: 100%;
  background: #0f0f0f;
  left: 0;
  top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: 0.4s;
  z-index: 2000;
}

.preloader.hide {
  opacity: 0;
  pointer-events: none;
}

.preloader .preloader-text {
  color: #838383;
  text-transform: uppercase;
  letter-spacing: 8px;
  font-size: 15px;
}

.preloader .dots-container {
  display: flex;
  margin-bottom: 48px;
}

.preloader .dot {
  background: red;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  margin: 0 5px;
}

.preloader .dot.red {
  background: #ef476f;
  animation: 1s infinite bounce;
}

.preloader .dot.green {
  background: #06d6a0;
  animation: 1s 0.2s infinite bounce;
}

.preloader .dot.yellow {
  background: #ffd166;
  animation: 1s 0.4s infinite bounce;
}

.noresult-found {
  text-align: center;
  text-decoration: none;
  margin-top: 12rem;
  margin-left: -6rem;
  padding-left: 7rem;
  padding-top: 8rem;
  padding-right: 1rem;
  padding-bottom: 1rem;
}

@keyframes bounce {
  50% {
    transform: translateY(16px);
  }

  100% {
    transform: translateY(0);
  }
}
