*, *:before, *:after {
  box-sizing: border-box;
}

html, body {
  font-family: "Avenir Next", "Helvetica", "Roboto", "Arial", "sans-serif";
  font-size: 16px;
  color: #000;
  margin: 0;
}

.flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flex-responsive {
  flex-direction: column;
}

@media (min-width: 500px) {
  .flex-responsive {
    flex-direction: row;
  }
}

.flex-simple {
  display: flex;
}

.flex-fill {
  flex: 1;
}

.flex-none {
  flex: 0;
}

.flex-end {
  align-self: flex-end;
}

.px2 {
  padding-left: 20px;
  padding-right: 20px;
}

.py2 {
  padding-top: 20px;
  padding-bottom: 20px;
}

.py4 {
  padding-top: 40px;
  padding-bottom: 40px;
}

.my1 {
  margin-top: 10px;
  margin-bottom: 10px;
}

.mx2 {
  margin-left: 20px;
  margin-right: 20px;
}

.white {
  color: #fff;
}

.container {
  max-width: 768px;
  margin-left: auto;
  margin-right: auto;
}

.italics {
  font-style: italic;
}

.normal {
  font-weight: normal;
}

.full {
  width: 100%;
}

.text-center {
  text-align: center;
}

.label {
  min-width: 64px;
}

.shadow {
  box-shadow: 0 7px 14px rgba(50,50,93,.1), 0 3px 6px rgba(0,0,0,.08);
}

.border {
  border: 1px solid #fff;
  border-radius: 2px;
}

.border-grey {
  border: 1px solid #656771;
  border-radius: 2px;
}

.menu {
  padding: 16px 16px;
  align-items: center;
}

.bg-grey {
  background-color: #373940;
}

.grey {
  color: #656771;
}

.site-title {
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #fafafa;
  text-shadow: 0 1px 12px rgba(255,255,255,0.30);

  border: 1px solid #fafafa;
  border-radius: 2px;

  margin: 0;
  padding-top: 1px;
  padding-bottom: 0;
  padding-left: 4px;
  padding-right: 4px;
}

.site-title:hover {
  color: #fff;
  border: 1px solid#fff;
  /* TODO animate text shadow */
  text-shadow: 0 1px 10px rgba(255,255,255,0.85);
}

.site-title-annotation {
  font-size: 14px;
  font-weight: 400;
  color: #e8c83d;
  font-style: italic;

  margin-top: 0;
  margin-bottom: 0;
  margin-left: 6px;
  padding: 0;
}

.video-container {
  background: #242424;
  color: #fff;
  border-bottom: 1px solid #656771;
}

.scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.search-bar {
  background: #242424;
  border: none;
  outline: 0;
  padding: 4px 8px;
  border-radius: 4px;
}

input[type="search"] {
  font-size: 13px;
  color: rgba(255,255,255,.8);
}

.livestreams {
  font-size: 20px;
  margin-top: 0;
  margin-bottom: 4px;
  padding-top: 20px;
  color: rgba(255,255,255,.96);
  font-weight: 700;
}

.stream-preview {
  width: 240px;
  height: 135px;
}

.game-title {
  font-size: 1rem;
  color: rgba(255,255,255,.8);
  font-weight: 500;
  margin: 0;
}

.streamer-title {
  font-size: .875rem;
  color: rgba(255,255,255,.52);
  font-weight: 400;
  margin: 0;
}

@media (min-width: 500px) {
  .stream-preview {
    width: 320px;
    height: 180px;
  }

  .game-title {
    font-size: 1.125rem;
    color: rgba(255,255,255,.8);
    font-weight: 500;
    margin: 0;
  }

  .streamer-title {
    font-size: 1rem;
    color: rgba(255,255,255,.52);
    font-weight: 400;
    margin: 0;
  }
}

.view-count {
  color: #e8c83d;
  font-weight: 300;
  margin: 0;
}

.stream-link {
  text-decoration: none;
}

.quote-input {
  font-size: 18px;
  font-style: italic;
  width: 100%;
  background: #242424;
  color: #fff;
  border: none;
  outline: none;
  border-bottom: 1px solid #656771;
}

.quote-input:active,
.quote-input:focus {
  outline: none;
  border-bottom: 1px solid #fff;
}

.quote-input::-webkit-input-placeholder,
.quote-input::-moz-placeholder,
.quote-input:-ms-input-placeholder,
.quote-input:-moz-placeholder {
  color: #656771;
}

@media (min-width: 500px) {
  .quote-input {
    font-size: 22px;
  }
}

.quote-max-length {
  font-size: 12px;
  margin-top: 4px;
}

.quote-submit {
  font-size: 13px;
  background: #373940;
  border: 1px solid #656771;
  border-radius: 2px;
  padding: 4px 8px;
  margin-top: 8px;
  color: #fff;
}

.disabled {
  opacity: .3;
}

/* Animation stuff */
.animated {
  animation-duration: 1s;
  animation-fill-mode: both;
}

@keyframes pulse {
  from {
    transform: scale3d(1, 1, 1);
  }

  50% {
    transform: scale3d(1.1, 1.1, 1.1);
  }

  to {
    transform: scale3d(1, 1, 1);
  }
}

.pulse {
  animation-name: pulse;
}