*,
*::before,
*::after {
  box-sizing: border-box;
  font-family: Roboto, Arial, Helvetica, sans-serif;
}

body {
  margin: 0;
  background-color: #111;
  overflow: hidden;
}
.align {
  display: flex;
}

#side-section {
  margin: 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  height: 500px;
  width: 250px;
  background-color: none;
  cursor: pointer;
  overflow: hidden;
}
.side {
  display: flex;
  align-items: center;
  margin: 2px;
  padding: 4px 4px;
  color: whitesmoke;
}
.side:hover {
  background-color: #333;
  border-radius: 10px;
}
.main-section {
  flex: 5;
  height: 100vh;
  overflow: hidden;
}
.videos {
  flex: 10;
  overflow: scroll;
  height: 100vh;
  background-color: #131313;
}
.videos::-webkit-scrollbar {
  width: 10px;
  border-radius: 10px;
  background-color: #0e0e0e;
}
.videos::-webkit-scrollbar-thumb {
  -webkit-box-shadow: inset 0 0 6px rgba(134, 134, 134, 0.3);
  border-radius: 10px;
  background-color: #818181;
}
.video-section {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 3rem 1rem;
  grid: row 3px;
  padding: 3rem 0;
  margin: 0 1.5rem;
  border-top: 4px solid #4b4b4b;
  background-color: #111;
}
.short-video-section {
  display: flex;
  flex-grow: 2;
  overflow-x: hidden;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 3rem 1rem;
  padding: 3rem 0;
  margin: 0 1.5rem;
  border-top: 4px solid #4b4b4b;
  background-color: #111;
}

.video-section:first-child {
  border-top: none;
}

.video-container {
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  justify-self: flex-start;
}

.thumbnail {
  position: relative;
  display: flex;
}

.thumbnail::before {
  content: attr(data-duration);
  position: absolute;
  background-color: rgba(0, 0, 0, 0.75);
  color: whitesmoke;
  right: 5px;
  bottom: 5px;
  padding: 0.1em 0.3em;
  border-radius: 0.3em;
  font-size: 0.8rem;
}
.thumbnail-image {
  width: 100%;
  height: 100%;
  min-width: 350px;
  min-height: 200px;
  background-color: #444;
  border-radius: 10px;
}
.thumbnail-image:hover {
  background-color: #333;
}
.short-thumbnail-image {
  width: 100%;
  height: 100%;
  min-width: 170px;
  min-height: 300px;
  background-color: #444;
  border-radius: 10px;
}
a {
  text-decoration: none;
  color: #9a9a9a;
}
.video-bottom-section {
  display: flex;
  align-items: flex-start;
  margin-top: 1rem;
}

.channel-icon {
  margin-right: 0.75rem;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  background-color: #444;
}

.video-details {
  display: flex;
  flex-direction: column;
}

.video-title {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  text-decoration: none;
  color: whitesmoke;
}

.video-channel-name {
  margin-bottom: 0.1rem;
  text-decoration: none;
  transition: color 150ms;
}

.video-channel-name:hover {
  color: #dfdfdf;
}

.video-channel-name,
.video-metadata {
  color: #a1a1a1;
}

.video-section-title {
  grid-column: 1 / -1;
  margin: -0.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 0.5rem;
  color: white;
}

.video-section-title-close {
  border: none;
  border-radius: 100px;
  background: none;
  padding: 0 15px;
  font-size: 3rem;
  color: #999;
  cursor: pointer;
}
.video-section-title-close:hover {
  background: #333;
}

.categories {
  padding: 1rem 2rem;
  overflow: hidden;
}

.category-section {
  display: flex;
  overflow-x: scroll;
}
.category-section::-webkit-scrollbar {
  height: 10px;
  border-radius: 10px;
  background-color: #0e0e0e;
}
.category-section::-webkit-scrollbar-thumb {
  -webkit-box-shadow: inset 0 0 6px rgba(134, 134, 134, 0.3);
  border-radius: 10px;
  background-color: #818181;
}
.category {
  margin-right: 3rem;
  word-wrap: none;
  white-space: nowrap;
  border: none;
  border-radius: 10px;
  background-color: #333;
  padding: 0.5rem 1rem;
  font-size: inherit;
  cursor: pointer;
  transition: background-color 150ms;
  color: #dfdfdf;
  font-weight: bold;
  font-size: 16px;
}

.category:hover {
  background-color: #555;
}

.category.active {
  background-color: whitesmoke;
  color: #2b2b2b;
  border-color: #eee;
}

.category:last-child {
  margin-right: 0;
}

.header {
  display: flex;
  justify-content: space-between;
  padding: 1rem;
  margin-top: 5px;
  overflow: hidden;
}

.youtube-logo {
  height: 27px;
}

.search-bar {
  display: flex;
  justify-content: center;
  flex-grow: 1;
  margin: 0 auto;
}

.search-input {
  width: 50%;
  font-size: inherit;
  padding: 0.4em 1.5em;
  border: 1px solid #444;
  border-top-right-radius: 0;
  border-top-left-radius: 20px;
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 20px;
  background: none;
  color: whitesmoke;
}

.search-btn {
  display: flex;
  align-items: center;
  padding: 0 1.25rem;
  border: 1px solid #333;
  background-color: #222;
  border-left: none;
  border-top-left-radius: 0;
  border-top-right-radius: 20px;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 20px;
  cursor: pointer;
}

.search-btn:hover {
  background-color: #2e2e2e;
}

.menu-icons {
  display: grid;
  grid-template-columns: repeat(3, auto);
  align-items: center;
  gap: 1.5rem;
}

.menu-channel-icon {
  border-radius: 100%;
  width: 36px;
  height: 36px;
  background-color: #444;
}
.sandwitch {
  display: flex;
  margin-top: -0.8rem;
  margin-right: 30px;
  margin-left: 10px;
  height: 50px;
  border-radius: 50%;
  padding: 7px;
}
.sandwitch:hover {
  background-color: #333;
}
.side-icons {
  height: 35px;
}
