/*, *::before, *::after{
	box-sizing: border-box;
	font-family: Roboto, Arial, Helvetica, sans-serif;
}*/

*{
	border: 0px solid red;
}

body{
    font-family: Arial, Helvetica, sans-serif;
	width: 100%;
	margin: 0;
}

.dropdown:hover .dropdown-content {
  display: block;
  padding-right: 250px;
}

.header{
	background-color: #000;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1.5em 1em;
}

.youtube-logo{
	font-size: 1.1em;
	font-weight: bold;
	color: #0f0;
	text-decoration: none;
}

.search-bar{
	display: flex;
	border: none;
	border-radius: 0;
	flex-grow: 1;
	margin: 0 2em;
}

.search-bar .search-input{
	width: 100%;
	font-size: inherit;
	padding: 0 .4em;
	border: 1px solid #777;
	border-top-right-radius: 0;
}

input[type="search"]{
	border: none;
	border-radius: 0;	
}

input[type="search"]:focus{
	border: none;
	border-radius: 0;
	outline: none;
}

.search-bar .search-btn{
	display: flex;
	align-items: center;
	padding: 0 1.25rem;
	border: 1px solid #777;
	background-color: #f8f8f8;
	border-left: none;
	border-top-left-radius: 0;
	cursor: pointer;
}

.search-bar button{
	border: none;
	border-radius: 0;
}

.search-bar .search-btn:hover{
	background-color: #f0f0f0;
}

.menu-icon{
	display: grid;
	grid-template-columns: repeat(3, auto);
	align-items: center;
}

.m-icons{
	text-decoration: none;
	display: inline-grid;
	grid-template-columns: repeat(3, auto);
	align-items: center;
	margin-right: .8em;
}

.menu-channel-icon{
	position: relative;
	margin-left: .5em;
	margin-bottom: 0;
	border: .15em white solid;
	border-radius: 50%;
	background-color: #000;
	align-content: space-around;
}


.dropdown {
	float: left;
  overflow: hidden;
}

.navbar .dropdown .dropbtn:hover {
  background-color: black;
  margin-right: 250px;
  text-align: right;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 10px;
  box-shadow: 0px 8px 30px 0px rgba(0,0,0,0.8);
  z-index: 1;
}


.dropdown-content a {
  float: left;
  color: black;
  padding: 12px 6px;
  text-decoration: none;
  display: block;
  text-align: left;
  margin-right: 250px;
}

.dropdown-content a:hover {
  background-color: #ddd;
  margin-right: 250px;
}

.categories{
	padding: 0.4em 0.4em;
	border-top: 1px solid #999;
	border-bottom: 0px solid #999;
}

.category-section{
	margin-right: 0.2em;
	display: flex;
	overflow: hidden;
}

.category{
	word-wrap: none;
	white-space: nowrap;
	border: 1px solid #ccc;
	border-radius: 900px;
	background-color: #e7e7e7;
	padding: .3em .5em;
	margin: .5em .4em;
	font-size: 13px;
	cursor: pointer;
	transition: background-color 150ms;
}

.category:hover{
	background-color: #000;
	color: white;
}

.category.active{
	background-color: #606060;
	color: white;
	border-color: #eee;
}

.category:last-child{
	margin-right: 0;
}

.videos{
	width: 100%;
	margin: 10px auto;
}

.video-section{
	width: 98%;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  grid-gap: 3rem 1%;
  padding: 2.5rem auto;
  margin: auto;
  border-top: 0px solid #ccc;
}

.video-section:first-child{
  border-top: none;
}

.video-container{
	width: 100%;
	max-width: 330px;
  display: flex;
  padding-bottom: 5px;
  flex-direction: column;
}

.thumbnail{
	width: 100%;
	max-height: 180px;
  position: relative;
  display: flex;
  align-content: center;
  box-shadow: 0px 0px 0px rgba(0,0,0,0.6);
  background-color: #000;
}

.thumbnail a{
	width: 100%;
  background-color: #000;
}

.thumbnail img{
	margin: auto;
	min-height: 180px;
	max-height: 180px;
	max-width: 100%;
}

.thumbnail-image{
  max-width: 100%;
  height: 180px;
  margin: auto;
}

.video-bottom-section{
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  margin-top: 1rem;
}

.channel-icon{
  margin-right: .75rem;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  background-color: #bfbfbf;
}

.video-details{
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.video-title{
  overflow: hidden;
  font-size: 1em;
  font-weight: bold;
  margin-bottom: .5em;
  text-decoration: none;
  color: black;
}

.video-channel-name{
  overflow: hidden;
  margin-bottom: .2em;
  text-decoration: none;
  color: #555;
  transition: color 150ms;
}

.video-channel-name:hover{
  color: #111;
}

.video-metadata{
  font-size: .8em;
  color: #555;
}

.video-section-title{
	grid-column: 1/-1;
	margin: -.5rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0 .5rem;
}

.video-section-title-close{
	border: none
	background: none;
	padding: 0;
	font-size: 2rem;
	color: #555;
	cursor: pointer;
}

.videos{
	background-color: #f9f9f9;
}

.special .spe img{
	width: 250px;
	height: 180px;
	max-width: 250px;
	max-height: 250px;
}


.donot{
	display: none;
}

/*Number navigation*/
.pd{
  align-items: center;
  color: #555;
  display: flex;
  font-family: 'Inter UI', sans-serif;
  font-size: 32px;
  justify-content: center;
  margin: 25px 15px;
}
.page {
  display: inline-block;
  position: relative;
}
.index {
  cursor: pointer;
  display: inline;
  padding: 5px;
}
.index:last-child {
  margin: 0;
}

.index a{
	text-decoration: none;
	background-color: black;
	color: white;
	padding: 6px 10px;
	margin: 3px;
}

.index a:hover{
	color: green;
	text-decoration: underline;
}


/*screen size*/
@media(max-width: 768px){
	.header{
		display: flex;
		flex-direction: column;		
		grid-template-columns: repeat(3, auto);
	}

	.menu-icon{
		display: inline-flex;
	}

	.videos{
	width: 100%;
	margin: 10px auto;
}

.video-section{
	width: 98%;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  grid-gap: 3rem 1%;
  padding: 2.5rem auto;
  margin: auto;
  border-top: 0px solid #ccc;
}

.video-section:first-child{
  border-top: none;
}

.video-container{
	width: 100%;
	max-width: 330px;
  display: flex;
  padding-bottom: 5px;
  flex-direction: column;
}

.thumbnail{
	width: 100%;
	max-height: 180px;
  position: relative;
  display: flex;
  align-content: center;
  box-shadow: 0px 0px 0px rgba(0,0,0,0.6);
  background-color: #000;
}

.thumbnail a{
	width: 100%;
  background-color: #000;
}

.thumbnail img{
	margin: auto;
	min-height: 100%;
	max-height: 180px;
	max-width: 100%;
}

.thumbnail-image{
  max-width: 100%;
  height: 180px;
  margin: auto;
}

}