@import url("https://fonts.googleapis.com/css2?family=Poppins&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@300&display=swap");
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Roboto", Arial, sans-serif;
  font-size: 10px;
}
:root {
  --white: #ffffff;
  --black: #000000;
  --teal: #09a7a1;
  --orange: #ff8000;
  --raspbarry: #ff007a;
  --neon-pink: #ff14bd;
  --cream-brown: #31202b;
  --cyan: #00ffff;
  --midnight-voilet: #1f242d;
  --groung-green: #07252d;
  --youTubeDarkMode: #202020;
}

.container {
  background-color: var(--youTubeDarkMode);
  height: 100vh;
  width: 100vw;
  overflow-x: hidden;
}
#header {
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 1000;
}
/* top-nav 👿👿 */
#top-nav {
  background-color: var(--youTubeDarkMode);
  flex-grow: 1;
}
#top-nav ul {
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  list-style: none;
}
#top-nav ul li {
  padding: 1.2rem;
}
#top-nav ul li a {
  display: flex;
  font-size: 2rem;
  color: var(--white);
  text-decoration: none;
}
#top-nav ul li a h1 {
  font-size: 2rem;
  font-weight: bolder;
}

.youTubeIconImg {
  height: 2.5rem;
}
a h1 {
  color: #ffffff;
}
#searchBar {
  display: flex;
  margin-left: 20rem;
}
#search {
  background-color: #121212;
  border: none;
  padding: 0.5rem;
  width: 37vw;
  color: #ffffff;
  font-size: 1.5rem;
}
.searchIcon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 6rem;
  background-color: #323232;
  cursor: pointer;
}
input:focus {
  outline: 0.1rem solid #267ab3;
}
.audioSearch {
  padding-left: 1.5rem;
  cursor: pointer;
}
#top-nav ul li a span {
  text-align: center;
  width: 4rem;
  border-radius: 50%;
  background-color: var(--raspbarry);
  padding: 0.5rem;
}
#account {
  margin-right: 3rem;
}
#top-nav ul li:nth-of-type(4) {
  margin-left: auto;
}

/* Bottom 👿👿*/

.bottom {
  display: flex;
  flex-direction: column;
}

/* Main 👿👿 */

#main {
  display: flex;

  color: white;
}

/* #top-nav-left-close 👿👿*/

.nav-left-close {
  display: none;
  width: 10rem;
  position: sticky;
  top: 0;
  z-index: 900;
}
.nav-left-close-display {
  display: block;
}
.nav-left-close ul {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.nav-left-close ul li {
  margin-bottom: 1.5rem;
  padding: 1rem 0rem 1rem 0rem;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.nav-left-close a {
  color: #aaaaaa;
  text-align: center;
}
.nav-left-close .svg,
.nav-left-open .svg {
  height: 3rem;
  width: 3rem;
}
.nav-left-close .home,
.nav-left-open .home {
  color: #ffffff;
}
.nav-left-close .subscription {
  margin-left: 1.6rem;
}

/* left-nav 👿👿*/


/* #top-nav-left-open👿👿 */

.nav-left-open {
  display: block;
  width: 15vw;
  position: sticky;
  top: 0;
  z-index: 900;
}

.nav-left-open-display {
  display: none;
}
.nav-left-open ul {
  width: 14vw;
}
.nav-left-open li {
  padding: 1rem 0.5rem 0.5rem 2rem;
  margin-bottom: 2rem;
}
.nav-left-open li a {
  display: flex;
  justify-content: center;
  align-items: center;
}
.nav-left-open li a .svgDiv,
#youtuberName .youTuberImgDiv {
  width: 30%;
}
.nav-left-open li a .h2Div,
#youtuberName .youTuberNameDiv {
  width: 70%;
}
.nav-left-open li a .svg {
  margin-right: 1rem;
}
.nav-left-open h2 {
  font-size: 1.4rem;
  font-weight: bold;
}
.subscribedChannels > h2 {
  text-align: center;
  margin-right: 7rem;
  padding-top: 1rem;
}
#youtuberName li {
  display: flex;
  justify-content: center;
  align-items: center;
}
.youTuberImgDiv img {
  height: 27px;
  width: 27px;
  border-radius: 50%;
}
.youTuberImgDiv svg {
  margin-right: 6rem;
}

/* rightRecAndVideos 👿👿👿 */

.rightRecAndVideos{
  width: 130rem;
}

/* recommandation 👿👿` */
.recommandation {
  padding: 1rem;
}
.recommandation ul {
  display: flex;
}
.recommandation ul li {
  margin-right: 1rem;
}
.recommandation ul li a {
  font-size: 1.5rem;
  padding: 1rem;
  background-color: #363636;
  border-radius: 1.6rem;
}

#recOne {
  color: #000000;
  background-color: var(--white);
}

/* Videos 👿👿 */

.videosGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(31rem,1fr));
  background-color: #181818;
  padding-left: 1.5rem;
  padding-top: 1rem;
}
.video {
  margin-bottom: 3rem;
}
.thumbnail {
  position: relative;
  cursor: pointer;
  width: max-content;
}
.thumbnail img {
  width: 297px;
  height: 166.383px;
}
.profilePic img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
}
.info {
  display: flex;
  cursor: pointer;
}
.profilePic {
  width: 10%;
}
.titleAndInfo {
  width: 90%;
  margin-left: 1rem;
}
.titleAndInfo > div {
  margin-bottom: 0.5rem;
}
.title {
  font-size: 1.5rem;
  font-weight: bold;
}
.channelName {
  font-size: 1.3rem;
  color: #9e9e9e;
}
.channelName:hover {
  color: #ffffff;
}
.videoLikeAndDate {
  font-size: 1.3rem;
  color: #9e9e9e;
}
.time {
  position: absolute;
  bottom: 14px;
  right: 15px;
  color: white;
  background-color: black;
  padding: 0.4rem;
  width: 35px;
  text-align: center;
  font-size: 13px;
}
.hoverWatchLater,
.hoverAddToQueue {
  background-color: #000;
  position: absolute;
  display: none;
}
.hoverWatchLater {
  top: 10px;
  right: 35px;
  padding: 5px 5px 3px 6px;
}
.hoverAddToQueue {
  top: 50px;
  right: 35px;
  padding: 3px 5px 1px 5px;
}
