body {
  font-family: sans-serif;
  font-size: 16px;
  margin: 0px;
}

body > header {
  background-color: #333;
  color: #333;
  padding-top: 10px;
  padding-bottom: 10px;
  margin-bottom: 21px;
  text-align: center;
  font-family: sans-serif;
  font-weight: bold;
  font-size: 30px;
  text-stroke: 2px #FF5555;
  -webkit-text-stroke: 2px #FF5555;
  text-transform: uppercase;
}

main {
  max-width: 1020px;
  margin-left: auto;
  margin-right: auto;  
}

#channel-box {
  max-width: 450px;
  background-color: #efefef;
  margin-left: auto;
  margin-right: auto;
  margin-top: 10px;
  margin-bottom: 10px;
  display: block;
  padding: 5px;
}

#channel-box.closed > .inside {
  display: none;
}

#show-hide-channel-box {
  font-size: initial;
  cursor: pointer;
  text-align: center;
}

#show-hide-channel-box::before {
  content: "▼ ";
}

#channel-box.closed > #show-hide-channel-box::before {
  content: "▶ ";
}

#add-channel-form {
  margin: 10px;
}

#add-channel-form > input {
  max-width: 100%;
}

#add-channel-form {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-around;
  align-content: center;
  align-items: center;
}

#channels {
  padding: 0px;
  border-top: 1px dotted grey;
}

#channels:empty {
  border-top: none;
}

#channels > li {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  align-content: center;
  align-items: center;
  margin: 10px;
}

#channels > li > a {
  color: black;
  text-decoration: none;
  max-width: calc(100% - 90px);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.hidden {
  display: hidden;
}

.visable {
  display: block;
}

#welcome {
  max-width: 550px;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  margin-top: 10px;
  margin-bottom: 10px;
  padding: 16px;
  font-size: 20px;
  font-family: sans-serif;
  display: none;
}

#videos:empty + #welcome {
  display: block;
  animation: fadein 2s;
}

@keyframes fadein {
  from {
    opacity:0;
  }
  to {
    opacity:1;
  }
}

#welcome > h1 {
  margin-top: 0px;
  font-weight: normal;
}

#videos {
  display:flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-around;
  align-content: center;
  align-items: center;
  padding: 0px;
}

#videos > li {
  max-width: 192px;
  text-decoration: none;
  list-style-type: none;
  margin: 5px;
  padding: 0px;
  padding-bottom: 20px;
  font-stretch: condensed;
}

#videos > li > a:visited {
  color: #555;
}

#videos > li > .thumb > img {
  width: 192px;
  height: 108px;
  object-fit: cover;
  display: block;
}

#videos > li > .title {
  display: block;
  color: black;
  text-decoration: none;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  padding-top: 5px;
}

#notification {
  visibility: hidden;
  min-width: 250px;
  margin-left: auto;
  margin-right: auto;
  background-color: #333;
  color: white;
  text-align: center;
  padding: 16px;
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 30px;
  box-shadow: 0px 0px 16px 0px rgba(0,0,0,0.75);
}

#notification.show {
  visibility: visible;
}

button {
  background-color: gray;
  border: none;
  color: white;
  padding: 8px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
}

button:hover {
  background-color: #555;
}

input[type=text] {
  padding: 7px;
  box-sizing: border-box;
  border: 1px solid gray;
  font-size: 16px;
  width: 80%;
}

input:focus[type=text] {
  border: 1px solid blue;
}

