* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: "Roboto", "Geneva" "Tahoma";
}

h1 {
  font-size: 1em;
  color: white;
}

h3 {
  font-size: 1.3em;
  color: white;
  margin-left: 20px;
  margin-bottom: 10px;
}

i {
  font: 1em;
  color: white;
}

a,
p {
  font-size: 0.9em;
}

hr {
  border: 1px solid rgba(225, 225, 225, 0.1);
  margin: 15px 0;
}

/* styling the heder & its contents*/
.header {
  top: 0;
  left: 0;
  position: fixed;
  width: 100%;
  background-color: #0f0f0f;
  justify-content: space-between;
  height: 56px;
  padding: 5px 25px;
}

.ri-youtube-fill,
.red {
  color: red;
  position: relative;
}

#logo-text {
  letter-spacing: 0.5px;
}

.header,
.logo-sec,
.logo,
.microphone,
.profile-sec {
  display: flex;
  align-items: center;
}

.search-sec {
  display: flex;
  align-items: center;
  flex: 0 1 680px;
  margin-left: 50px;
}

.search-sec form {
  position: relative;
  width: 100%;
}

.search-sec input {
  display: flex;
  height: 40px;
  align-items: center;
  width: 100%;
  color: white;
  background-color: #121212;
  border: 1px solid rgba(225, 225, 225, 0.1);
  padding: 12px;
  font-size: 1em;
  border-radius: 25px 0 0 25px;
}

.search {
  min-width: 60px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  background-color: #313131;
  border: none;
  outline: none;
  border-radius: 0 25px 25px 0;
}

.microphone {
  border-radius: 50%;
  height: 40px;
  width: 40px;
  border: none;
  outline: none;
  margin-left: 10px;
  justify-content: center;
  background-color: #181818;
}

.profile img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  align-items: center;
}

.profile,
.profile-sec i {
  margin-left: 25px;
}

/* stylinng the scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: none;
}

::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: 5px;
}

.sidenav:hover ::-webkit-scrollbar-thumb {
  background: #717171;
}

::-webkit-scrollbar-thumb:hover {
  background: #888;
}

/* Styling the sidenav */
.main-container {
  display: flex;
  position: fixed;
  height: calc(100vh - 56px);
  top: 56px;
}

.sidenav {
  background-color: #121212;
  width: 240px;
  overflow-y: scroll;
  padding-top: 10px;
}

.sidenav a {
  color: white;
  text-decoration: none;
  font-size: 0.9em;
}

.sidenav-items {
  display: flex;
  flex-direction: column;
}

.sidenav-item {
  display: flex;
  align-items: center;
  height: 40px;
  padding: 0 25px;
  cursor: pointer;
}

.sidenav-item:hover {
  background-color: #4c4c4c;
}

.sidenav-item i,
.ri-menu-line {
  margin-right: 25px;
  font-size: 1.4em;
}

.sidenav-item,
.others {
  margin-right: 30px;
  margin-bottom: 20px;
  margin-left: 10px;
}

.sidenav-item,
.others a,
p {
  font-size: 0.8em;
  line-height: 1.5em;
  color: gray;
  padding: 0.4em;
}

.sidenav-item img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  align-items: center;
  margin-right: 20px;
}

/* styling the main content */
.content {
  width: calc(100vw - 240px);
}

.tag-container {
  overflow-x: scroll;
  background-color: #181818;
  color: white;
  display: flex;
  padding-left: 14px;
  border-top: 1px solid rgba(225, 225, 225, 0.1);
  border-bottom: 1px solid rgba(225, 225, 225, 0.1);
}

.tag-container::-webkit-scrollbar {
  height: 7px;
}

.tag {
  margin: 10px 16px;
  padding: 4px 12px;
  background-color: #373737;
  border: 1px solid rgba(225, 225, 225, 0.1);
  white-space: nowrap;
  border-radius: 16px;
  cursor: pointer;
  color: white;
  transition: 0.5s;
}

.tag:hover {
  background-color: #4d4d4d;
}

/* styling the video section */

.video-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: 18px;
  padding: 20px 25px;
  background-color: #181818;
  overflow-y: scroll;
  height: calc(100vh - 116px);
}

.video-content-container {
  position: relative;
  transition: 0.5s;
  transition-delay: 0.5s;
  width: 100%;
}

.video-content-container:hover .time {
  position: absolute;
  right: 0;
  bottom: 0;
  background-color: rgba(8, 7, 7, 0.6);
  color: #fff;
  padding: 3px 4px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 140px;
  margin-right: 3px;
}

.video-content-container:hover {
  transform: translateY(60px);
  z-index: 10;
  transition: 1s;
}

.video-content-container:hover .video-info {
  padding: 10px;
}

.video-content {
  margin-bottom: 25px;
  position: relative;
  transition: 0.5s;
  width: 100%;
}

.video-content:hover {
  transform: scale(1.5);
  z-index: 2;
  position: absolute;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.3);
  background-color: #202020;
}

.channel-logo img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  align-items: center;
  margin-right: 10px;
}

.video-box img {
  position: relative;
  width: 100%;
  height: 145px;
  display: block;
  border-radius: 10px;
  object-fit: cover;
}

.time {
  position: absolute;
  right: 0;
  bottom: 0;
  background-color: rgba(8, 7, 7, 0.6);
  color: #fff;
  padding: 3px 4px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 70px;
  margin-right: 3px;
}

.video-info {
  display: flex;
  color: white;
  padding-top: 12px;
}

.channel-name,
.views-upload {
  color: rgb(146, 145, 145);
  font-size: 0.8em;
}

.channel-name {
  margin-top: 10px;
}

.views-upload {
  margin-top: 3px;
}

.hidden-info {
  display: none;
}

.video-content-container:hover .hidden-info {
  display: block;
}

.btn {
  color: #aaa;
  padding: 5px 0;
  text-transform: uppercase;
  width: 100%;
  background-color: #373737;
  text-align: center;
  margin: 5px 0;
  font-size: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.btn i {
  font-size: 10px;
  color: #aaa;
  margin-right: 5px;
}

.bottom-nav{
  display: none;
}

/* Responsiveness */
@media (max-width: 1200px) {
  .sidenav {
    background-color: #121212;
    width: 58px;
    overflow-y: scroll;
    overflow-x: hidden;
  }

  .more,
  .explore,
  .subs,
  .others {
    display: none;
  }

  .content {
    width: calc(100vw - 58px);
  }
}

@media (max-width: 1050px) {
  .video-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 820px) {
  .video-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 460px) {

  .content{
    width: 100vw;
  }

  .video-container {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 0;
    margin: 0;
    width: 100vw;
  }


  .search-sec form,
  .microphone,
  .ri-menu-line,
  .ri-video-add-line,
  .profile-sec .fa-bell {
    display: none;
  }

  .search{
    background: none;
    font-size: 20px;
  }

  .bottom-nav{
    margin-bottom: 0;
    padding-bottom: 0;
  }

  .bottomNav-items {
  display: flex;
  flex-direction: row;
  gap: 32px;
  justify-content: space-between;
  text-align: center;
  margin-right: 20px;
  margin-left: 20px;
}

.bottomNav-item {
  display: flex;
  align-items: center;
  flex-direction: column;
  padding: 5px;
 padding-bottom: 10px;
  cursor: pointer;
  font-size: 0.8em;
  line-height: 1.5em;
  color: gray;
  text-decoration: none;
}

.bottomNav-item i{
  margin-right: 25px;
  font-size: 1.4em;
  text-align: center;
  margin: 0 auto;
  
}

.sidenav{
  display: none;
}

.bottom-nav{
  display: block;
  bottom: 0;
  left: 0;
  position: fixed;
  width: 100%;
  background-color: #0f0f0f;
  justify-content: space-between;
  height: 56px;
  padding: 5px 25px;
}
}
