*,
*::before,
*::after {
  box-sizing: border-box;
  font-family: Roboto, Arial, Helvetica, sans-serif;
}

/*Basic Style*/

html {
  scroll-behavior: smooth;
}

::selection {
  background-color: #68000060;
}

body {
  background-color: #111111;
}

/*Basic Video Section Style*/

.video-section {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 3rem 1rem;
  padding: 3rem 0;
  margin: 0 1.5rem;
  border-top: 4px solid #343434;
}

.video-section:first-child {
  border-top: none;
}

.video-container {
  display: flex;
  flex-direction: column;
  background-color: #111111;
}

/*Thumbnail Style*/

.thumbnail {
  position: relative;
  display: flex;
}

.thumbnail::before {
  content: attr(data-duration);
  position: absolute;
  background-color: rgba(0, 0, 0, 0.85);
  color: white;
  right: 5px;
  bottom: 5px;
  padding: 0.1em 0.3em;
  border-radius: 0.3em;
  font-size: 0.9rem;
}

.thumbnail-image {
  width: 100%;
  height: 100%;
  min-width: 250px;
  min-height: 50px;
  background-color: #292929;
}

/*Video Style*/

.video-bottom-section {
  display: flex;
  align-items: flex-start;
  margin-top: 1rem;
}

.channel-icon {
  margin-right: 0.75rem;
  border-radius: 50%;
  width: 36px;
  background-color: #292929;
}

.video-details {
  display: flex;
  flex-direction: column;
}

.video-title {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  text-decoration: none;
  color: #e1e1e1;
  transition: color 150ms;
}

.video-title:hover {
  color: #e52117;
}

.video-channel-name {
  margin-bottom: 0.1rem;
  text-decoration: none;
  color: #e52117;
  transition: color 150ms;
}

.video-metadata {
  color: #7f7f7f;
}

.video-section-title {
  grid-column: 1 / -1;
  margin: -0.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 0.5rem;
  color: #7f7f7f;
}

.video-section-title-close {
  border: none;
  background: none;
  padding: 0;
  color: #7f7f7f;
  font-size: 2rem;
  cursor: pointer;
}

.videos {
  background-color: #111111;
}

/*Categories Style*/

.categories {
  padding: 1rem 2rem;
  border-bottom: 4px solid #343434;
  display: flex;
}

.category-section {
  display: flex;
  overflow: hidden;
}

.category {
  margin-right: 1rem;
  word-wrap: none;
  white-space: nowrap;
  border: 1px solid #343434;
  border-radius: 900px;
  background-color: #9c9c9c;
  padding: 0.5rem 1rem;
  font-size: inherit;
  cursor: pointer;
  transition: background-color 150ms;
}

.category:hover {
  background-color: #747474;
}

/*Top Nav Style*/

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
}

.logo {
  height: 70px;
  align-items: left;
}

.search-bar {
  display: flex;
  flex-grow: 1;
  margin: 0 2rem 0 4rem;
}

.search-input {
  width: 40%;
  font-size: inherit;
  padding: 0.4em;
  border: 1px solid #323232;
  border-top-right-radius: 0;
  background-color: #111111;
}

.search-button {
  display: flex;
  align-items: center;
  padding: 0 1.25rem;
  border: 1px solid #323232;
  background-color: #343434;
  border-left: none;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.search-button:hover {
  background-color: #292929;
}

.menu-icons {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/*

Alternate Top Nav Style

.topnav {
  overflow: hidden;
  background-color: #111111;
}

.topnav input[type="search"] {
  padding: 6px;
  border: 1px solid #323232;
  margin-top: 8px;
  margin-left: 40%;
  font-size: 17px;
  background-color: #111111;
  color: #525252;
  width: 400px;
}

@media screen and (max-width: 600px) {
  .topnav a,
  .topnav input[type="search"] {
    float: none;
    display: block;
    text-align: left;
    width: 100%;
    margin: 0;
    padding: 14px;
  }
  .topnav input[type="search"] {
    border: 1px solid #343434;
  }
}
*/
