*,
*::before,
*::after{
  -webkit-box-sizing: border-box;
     -moz-box-sizing: border-box;
          box-sizing: border-box;
  padding: 0;
  margin: 0;
}


:root{
  --color-bg: #f7f7f7;
  --color-bg-invrt: #111111;
  --color-bg-alt-2: #999999;
  --color-primary: #121212;
  --color-primary-invrt: #dfdfdf;
  --color-secondary: darkorange;
  --color-btn: #121212;
  --color-btn-active: #666666;
  --gapEquation: calc(1/3*100% - (1 - 1/3)*10px);
  --radialBlackBg: radial-gradient(circle farthest-corner at left center, #2c2f3f 0%, #030507 100%);

  --placeholder: #dfdfdf;
  --hoverOver: #35343a;
  --browserLinkFocus: #2e7183;
  --invertThat: invert(0%);
  --pageBtnColour: #191c1f;
  --svgColour: #dfdfdf;
}

html{
  font-size: 62.5%;
}
body{
  font-size: 1.6rem;
  letter-spacing: 0.2px;
  background-color: #000000;
  color: var(--color-primary);
  font-family: sans-serif;
/*  line-height: 1.5;*/
}
a{
  text-decoration: none;
  color: inherit;
/*  font-family: sans-serif;*/
}
ul{
  list-style: none;
}
h1{
  font-size: 2.2rem;
}
h2{
  font-size: 2rem;
}
h3{
  font-weight: normal;
}
span{
  opacity: 60%;
  font-weight: bolder;
  font-size: 1.5rem;
}
input{
  border: 0;
  background: inherit;
  color: inherit;
}
input:focus {
  outline: 0;
}
.browserSearchBar:focus{
  background: var(--browserLinkFocus);
}

.mainContainer path{
  fill: var(--svgColour);
}

/******************************************
/* LAYOUT
/*******************************************/
.mainContainer{
  padding: 10px;
}
.mainContainer svg,
.userProfilePicture{
  width: 1.8rem;
  cursor: pointer;
  margin: 9px;
/*  padding: 5px;*/
}
.userProfilePicture,
.authorProfilePicture{
  border-radius: 50%;
  width: 3.5rem;
}
.authorProfilePicture{
  width: 5rem;

  margin: 9px;
}

/*tabMenu**********************************/
.tabList, 
.tabArea, 
.tabArea li,
.windowBtns,
.windowLinkBar,
.windowLinkBar ul,
.pageLinkBar ul,
nav,
.youtubeMenu,
.youtubeSearchBar,
.navBar ul,
.addVideo,
.authorArea,
.videoExtras,
.videoOptions,
.videoOptions div,
.videoTopics,
.videoItem1
{
  display: flex;
  flex-flow: row nowrap;
  justify-content: space-between;
  align-items: center;
}

.tabArea{
/*  margin-left: 50px;*/
  margin: 5px 0 5px 50px;
}
.tabMenu{
  background: #1c1b22;
  white-space: nowrap;
}
.tabMenu svg{
  cursor: default;
  width: 1.3rem;
  margin: 0;
}
.tabArea img{
  width: 2.1rem;
  cursor: default;
  margin-right: 5px;
}
.tabArea li,
.windowBtns li{
  padding: 10px;
  cursor: default;
}

.tabArea{
  gap: 5px;
}

.mainTab{
  box-shadow: 0px 0px 15px 0px rgba(0,0,0,0.75);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.2);
}

.tabMenu p{
  -webkit-mask-image: linear-gradient(270deg, transparent 0px, red 36px)
}

.tabArea li:hover:not(.brwSearchBarContainer):not(.mainTab),
.windowBtns li:hover:not(.brwSearchBarContainer):not(.mainTab),
.pageBtns li:hover:not(.brwSearchBarContainer):not(.mainTab),
.pageLinkBar li:hover:not(.brwSearchBarContainer):not(.mainTab),
.pageSettings li:hover:not(.brwSearchBarContainer):not(.mainTab)
{
  background: var(--hoverOver);
  border-radius: 4px;
}

.tabMenu,
.windowLinkBar{
  font-size: 1.5rem;
}

.windowOptions{
  margin-right: 40px;
}

.adBlockerAddon{
  position: relative;
}
.adBlockerAddon .badge {
  position: absolute;
  top: -6px;
  right: -10px;
  padding: 3px 5px;
  border-radius: 5px;
  background: red;
  color: #dfdfdf;
  font-size: 1.2rem;
}
/*WINDOW LINK BAR*******************************/
.windowLinkBar{
  padding: 4px 0;
  border-bottom: 1px solid #52525e;
}
.pageLinkBar{
  border-radius: 5px;
  overflow: hidden;
}
.brwSearchBarContainer{
  width: 70vw;
}
.browserSearchBar{
  width: 100%;
}
.browserSearchBar::placeholder {
  color: var(--placeholder);
}

/*YOUTUBE NAVBAR*********************/
nav{
  padding: 0 10px;
}
.navBar li{
  padding: 0 10px;
}
.navLogo, .navLogoText{
  width: 4rem;
  cursor: pointer;
}

.navLogoText{
  width: 8rem;
  filter: var(--invertThat);
}
.ytSearchBarContainer{
  width: 35vw;
  border: 1px solid #7C7366;
  border-radius: 30px;
  cursor: pointer;
  padding: 0 5px 0 15px;
}
.youtubeSearchBar div{
  border-left: 1px solid #7C7366;
  padding: 0 8px;
}
.addVideo{
  cursor: pointer;
}

/*MAIN***************************************/
.backgroundMain{
  overflow-x: hidden;
  overflow-y: auto;
  height: 88vh;
}


figure{
  height: 0;
  margin-top: 10px;
  padding-bottom: 56.25%; /* 16:9 */
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
}
iframe{
  height: 100%;
  width: 100%;
  position: absolute;
  top: 0;
  padding-right: 20px;
  padding-left: 20px;
  border-radius: 25px;
}

/*VIDEO DESCRIPTION*************************/
.authorArea{
  cursor: pointer;
}
.videoInfo{
  padding: 0 20px;
}
.playlist{
  cursor: pointer;
  padding: 15px 20px;
  line-height: 3rem;
  border-radius: 10px;
  margin: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.playlist h3{
  font-size: 1.7rem;
  color: inherit;
}
.playlist p{
  font-size: 1.5rem;
}



.videoDescription{
  border-radius: 10px;
  padding: 15px;
}
.videoOptions{
  gap: 5px;
}
.videoOptions li{
  border-radius: 20px;
  padding: 0 10px;
  cursor: pointer;
}
.subscribeBtn{
  color: inherit;
  font-weight: bold;
  cursor: pointer;
  border-radius: 20px;
  border: none;
  padding: 10px;
  margin-left: 20px;
}

/*RECOMMENDED VIDEOS*************************/
.recommendedVideos{
  margin: 0 20px;
}
.recommendedVideos svg{
  width: 1rem;
}
.videoTopics{
  justify-content: flex-start;
  white-space: nowrap;
  cursor: pointer;
/*  align-items: flex-start;*/
}
.videoTopics li{
  border-radius: 10px;
  padding: 8px 15px;
}
.playlist,
.videoTopics li:first-of-type,
.subscribeBtn,
.videoOptions li,
.videoDescription{
  background: var(--pageBtnColour);
}

.videoItem1{
  position: relative;
  display: flex;
  flex-flow: row nowrap;
  align-items: flex-start;
  justify-content: flex-start;
  margin-bottom: 5px;
/*  line-height: 3rem;*/
}
.videoItem1 section{
  padding: 0 10px;
  cursor: pointer;
}
.videoItem1 section *{
  margin-bottom: 10px;
}
.videoItem1-Thumbnail{
  width: 168px;
  height: 94px;
  object-fit: cover;
  cursor: pointer;
  border-radius: 5px;
}
.videoItemOptions{
  right: 0;
  margin: -10px;
  position: absolute;
}
.videoItemOptions svg{
  width: 2rem;
  height: 2rem;
}

.commentSection{
  margin: 30px 0;
/*  line-height: 3rem;*/
}
.commentSection p{
  text-align: center;
  opacity: 80%;
}





/******************************************
/* ADDITIONAL STYLES
/*******************************************/
#light{
  background: #f9f9f9;
}
#dark{
  background: #121212;
}
#white{
  background: #E5DAC6;
}
#blue{
  background: #33364D;
}
#lime{
  background: #6F9984;
}
#grey{
  background: #4F6466;
}
#red{
  background: #CC6F57;
}
#darkRed{
  background: #9B5143;
}


/*SIDEBAR****************************/
.sideBar{
  position: fixed;
  bottom: 0;
  right: 0;
  padding: 10px;
}
.dropdownLocation svg{
  width: 3.5rem;
}

.dropBtn {
  background-color: #4CAF50;
  color: white;
  height: 65px;
  width: 65px;
  font-size: 16px;
  border: none;
  cursor: pointer;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
}
.dropBtn svg{
  filter: invert(100%);
}

.dropBtn:hover:focus{
  background: rgba(255,50,50,0.3);
}

.dropdownLocation{
  position: fixed;
  right: 0;
  bottom: 0;
  padding: 10px
}

.dropdown{
  position: relative;
  display: flex;
  flex-flow: column-reverse nowrap;
}

.dropdown-content{
  display: none;
  position: absolute;
/*  overflow: auto;*/
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
}
.sideBar{
  margin-bottom: 65px;
}
.sideBar li {
/*  color: black;*/
  border-radius: 8px;
  height: 65px;
  width: 65px;
/*  background: #f9f9f9;*/
/*  text-decoration: none;*/
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
}

.dropdown-content a:hover {background-color: #f1f1f1}

.showThat {display:block;}


/*MEDIA*************************/
@media all and (max-width: 600px){
  
}
@media all and (max-width: 600px){
  .mainFlex{
    padding: 0;
  }
}
@media all and (min-width: 1000px){
  .mainFlex{
    display: flex;
    padding: 0 50px;
  }
  main{
    width: 80%;
  }
  .recommendedVideos{
    width: 20%;
    margin: 0;
  }
}
@media all and (min-width: 1400px){
  .mainFlex{
    padding: 0 100px;
  }
}