body{
  margin: 0;
  padding-top: 80px;
  padding-left: 96px;
  padding-right: 24px;
  background-color: rgb(248, 248, 248);
  font-family: roboto,Arial, Helvetica, sans-serif;
}
p{
  font-family: roboto;
  margin-top: 0;
  margin-bottom: 0;
}


.thumbnail{
  width: 100%;
}
.video-title-link {
  text-decoration: none;
  color: black;
}
.video-title{
  margin-top: 0;
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
  margin-bottom: 10px;

}
.video-info-grid{
  display: grid;
  grid-template-columns: 50px 1fr;
}

.profile-picture{
  width: 36px;
  border-radius: 100px;
}

.thumbnail-row{
  margin-bottom: 8px;
  position: relative;
}

.video-time{
  position: absolute;
  bottom: 8px;
  right: 3px;
  background-color: black;
  color: white;
  padding: 3px;
  font-size: 11px;
  font-weight: 500;
  border-radius: 4px;
}

.video-author{
  font-size: 12px;
  color: rgb(96, 96, 96);
  margin-bottom: 4px;
}
.video-stats{
  color: rgb(96, 96, 96);
  font-size: 12px;
}

.video-grid{
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  column-gap: 16px;
  row-gap: 40px;
}

/* Responsive design */

@media (max-width: 750px){
  .video-grid{
    grid-template-columns: 1fr 1fr;
  }
}


@media (min-width: 751) and (max-width:999)
{
  .video-grid{
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media (min-width: 1000px)
{
  .video-grid{
    grid-template-columns: 1fr 1fr 1fr 1fr;
  }
}

/* HEADER */



.header{
  height: 55px;
  background-color: white;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  border-bottom-style: solid;
  border-bottom-width: 1px;
  border-bottom-color: rgb(214, 214, 214);
  position: fixed;
  top: 0px;
  left: 0px;
  right: 0px;
  z-index: 100;
}

.left-sec{
  display: flex;
  align-items: center;
}

.hamburger-menu{
  height: 24px;
  margin-left: 24px;
  margin-right: 20px;
}

.youtube-logo{
  height: 20px;
}


.mid-sec{
  flex: 1;
  margin-left:70px;
  margin-right: 35px;
  max-width: 500px;
  display: flex;
  align-items: center;
}

.search-bar{
  flex: 1;
  width: 0;
  height: 40px;
  font-size: 16px;
  border-width: 1px;
  border-style: solid;
  border-color: rgb(192, 192, 192);
  border-radius: 2px;
  box-shadow: inset 1px 2px 3px rgba(0, 0, 0, 0.05);
  padding-left: 10px;

}
.search-bar::placeholder{
  font-size: 16px;
}

.search-button{
  height: 40px;
  width: 66px;
  background-color: rgb(240, 240, 240);
  border-width: 1px;
  border-style: solid;
  border-color: rgb(192, 192, 192);
  margin-left: -1px;
  margin-right: 10px;
  cursor: pointer;
}

.search-button,
.voice-button,
.upload-icon-container,
.youtube-apps-container,
.notification-sec{
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.search-button .tooltip,
.voice-button .tooltip,
.upload-icon-container .tooltip,
.youtube-apps-container .tooltip,
.notification-sec  .tooltip
{
  position: absolute;
  background-color: rgb(144, 144, 144);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  bottom: -30px;
  opacity: 0;
  transition: opacity 0.25s;
  pointer-events: none;
  white-space: nowrap;
}

.search-button:hover .tooltip,
.voice-button:hover .tooltip,
.upload-icon-container:hover .tooltip,
.youtube-apps-container:hover .tooltip,
.notification-sec:hover  .tooltip
{
  opacity: 1;
}

.voice-button{
  height: 40px;
  width: 40px;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  background-color: rgb(248, 248, 248);
}

.search-icon{
  height: 25px;
}

.voice-icon{
  height: 24px;
}

.right-sec{
  width: 180px;
  margin-right: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.upload-icon{
  height: 24px;
}

.app-icon{
  height: 24px;
}

.notification-icon{
  height: 24px;
}

.my-channel-logo{
  height: 32px;
  border-radius: 16px;
  cursor: pointer;
}

.youtube-body{
  display: flex;
  flex-direction: row;
}

.notification-sec{
  position: relative;
}
.notification-count{
  background-color: rgb(214, 0, 0);
  color: white;
  font-size: 11px;
  font-weight: 500;
  border-radius: 20px;
  padding: 2px 5px;
  position: absolute;
  top: -2px;
  right: -5px;
}
/* SIDEBAR */

.side-bar{
  position: fixed;
  background-color: white;
  top: 55px;
  left: 0;
  bottom: 0;
  width: 72px;
  z-index: 200px;
  padding-top: 5px;
}

.sidebar-link{
  height: 74px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.sidebar-link:hover{
  background-color: rgb(235, 235, 235);
}

.sidebar-link img {
height: 24px;
margin-bottom: 4px;
}
.sidebar-link div {
  font-size: 10px;
}

