body {
  width: 100%;
  margin: 0;
  font-family: "Roboto", sans-serif;
  background-color: #eee;
}
/*  CONTENTS  */

.content {
  width: 1024px;
  margin: 0 auto;
  font-size: 14px;
  display: block;
}

/*  HEADER AND NAVBAR  */

header .navbar {
  padding: 8px 16px;
  background-color: #fff;
}

header .navbar .logo {
  margin-left: 16px;
  position: relative;
  top: 4px;
}

.upload img,
.menu img {
  width: 15px;
  opacity: 0.5;
}

.logo img {
  width: 100px;
}

.navbar {
  display: flex;
}

.flex-right {
  order: 1;
}

.flex-center {
  order: 2;
  flex-grow: 2;
}

.flex-left {
  order: 3;
}

.search {
  margin: 0 auto;
}
.search input {
  margin-left: 40px;
  width: 60%;
  font-size: 16px;
}

.search-button {
  position: relative;
  top: -2px;
  left: -3px;

  padding: 4px 10px;
  background-color: #fff;
  background-image: url(".img/magnifying-glass.svg");
  border: rgb(216, 216, 216) 0.5px solid;
}

.upload {
  position: relative;
  top: 4px;
}

.menu {
  position: relative;
  top: -5px;
  left: 4px;
  margin: 0 auto;
}

nav .signin button {
  background-color: #167ac6;
  border-radius: 1px;
  border: none;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  padding: 4px 6px;
}

/* MAIN WRAPPER */
.main-wrapper {
  display: flex;
  justify-content: center;
}

/* MAIN CONTENT */
.main-content {
  display: inline-block;
  margin-top: 16px;
  margin-right: 10px;
  width: 640px;
}

.main-content h1 {
  margin: 0;
  font-size: 20px;
}

.video {
  width: 640px;
  height: 360px;
}

.video iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.info {
  padding: 20px;
  background-color: #fff;
  margin-top: 16px;
}

.user-info {
  display: grid;
  grid-template-columns: 60px;
  grid-template-rows: 20px;
  height: 50px;
  padding-top: 10px;
}

.user-name {
  grid-column-start: 2;
  font-weight: 700;
}

.subscribe {
  grid-column-start: 2;
}

.subscribe-button {
  margin: 0;
  width: 90px;
  height: 23px;
  color: #fff;
  background-color: red;
  border: none;
}

#views-published {
  text-align: right;
  font-size: 19px;
  color: rgb(102, 102, 102);
}

.actions {
  background-color: #fff;
  display: flex;
  justify-content: space-around;
  cursor: pointer;
  border-top: 1px solid rgba(0, 0, 0, 0.3);
  padding-top: 12px;
}

.actions > span {
  width: 100px;
  color: rgba(0, 0, 0, 0.5);
  font-size: 16px;
}

.desc {
  margin: 0;
  background-color: #fff;
  padding: 16px;
}

/* SIDEBAR */
.sidebar {
  display: inline-block;
  margin-top: 16px;
  width: 340px;
  background-color: #fff;
}

.sidebar > h4 {
  margin-left: 12px;
}

.thumb-section {
  display: flex;
  margin-bottom: 8px;
}

.thumb-section > img,
.thumb-section > span {
  width: 50%;
}

.thumb-section > .info-thumb {
  padding-left: 4px;
}

.thumb-section > .info-thumb > title {
  font-size: 12px;
  font-weight: bold;
}

.thumb-section > .info-thumb > .user,
.thumb-section > .info-thumb > .views {
  font-size: 10px;
}

/* FOOTER */
footer {
  width: auto;
  background-color: #fff;
  margin-top: 12px;
  padding: 10px 20px;
}

.first-line {
  display: flex;
  border-bottom: 1px solid #ccc;
  padding-bottom: 20px;
}

footer .first-line select,
footer .first-line button {
  width: 150px;
  height: 30px;
  padding: 0 7px;
  margin: 0 10px;
  text-align: center;
  border: 1px solid rgb(194, 194, 194);
  -webkit-appearance: none;
  -webkit-border-radius: 0px;
}

.f-logo img {
  width: 100px;
}

footer a {
  text-decoration: none;
}

footer a:visited {
  color: inherit;
}

footer .second-line,
footer .third-line {
  line-height: 24px;
}

footer .second-line a,
footer .third-line a {
  padding-right: 10px;
}

footer .second-line {
  padding-top: 20px;
  font-size: 14px;
  font-weight: 600;
}

footer .third-line {
  font-size: 12px;
}
