/* (c) Miguel Nunes */

:root {
  --black: #000;
  --bright-green: rgba(71, 225, 141, 1);
  --bright-green-pulse: rgba(71, 225, 141, .7);
  --red: rgb(255, 0, 64);
  --yellow: rgb(255, 174, 0);
  --white: #fff;
  --gray: #dbdbdb;
  
  --font-color: #212529;
  
  --light: #d2dfee;
  --light-mid: #f3f7fd;
  --lighter: #f8fbff;
  --dark: #5e6d8f;
  --darker: #485570;
  
  --mono: 'Roboto Mono', monospace;
}

html {
  margin-top: 50px;
}

/* ------------ HEADER ------------ */

.logo {
  display: inline-block;
}

.logo img {
  width: 40px;
}

nav {
  display: inline-block;
  margin-left: 30px;
}

nav ul {
  list-style-type: none;
  padding: 0;
}

nav ul li {
  display: inline-block;
  font-size: .8em;
  font-weight: bold;
  margin-left: 13px;
  text-transform: uppercase;
}

nav ul li a {
  color: var(--light);
  text-decoration: none;
}

nav ul li a:hover {
  color: var(--darker);
}

nav ul li a.active {
  color: var(--dark);
}

/* ------------ FIND MODAL ------------ */

.find-modal .modal-content {
  background-color: transparent;
  border: 0;
}

.find-modal input,
.find-modal input:focus {
  border: 1px solid var(--darker);
}

.find-modal .btn {
  background-color: var(--white);
  border: 1px solid var(--darker);
}

.find-modal .btn:hover,
.find-modal .btn:focus {
  border: 1px solid var(--darker);
  color: var(--font-color);
}

.find-modal form {
  display: inherit;
  width: inherit;
}

/* ------------ CONTENT ------------ */

.content {
  margin-top: 50px;
}

/* ------------ SHOWS LIST ------------ */

.tvshow {
  border-bottom: 1px solid var(--light);
  padding: 5px;
}

.tvshow:hover {
  background-color: var(--lighter);
}

.tvshow .banner img {
  border-radius: 3px;
  height: 50px;
  width: 50px;
}

.tvshow .name {
  font-size: .9em;
  font-weight: bold;
  margin-left: 15px;
  max-width: 320px;
  min-width: 320px;
  overflow: hidden;
  position: relative;
  text-overflow: ellipsis;
  top: 6px;
  white-space: nowrap;
}

.tvshow .name a {
  color: var(--font-color);
  text-decoration: none;
}

.tvshow .name i {
  font-size: .8em;
  margin-left: 3px;
}

.tvshow .name .bi::before {
  vertical-align: 0;
}

.tvshow .counter {
  background-color: var(--light-mid);
  font-size: .85em;
  margin-left: 30px;
}

.tvshow .counter .progress,
.tvshow .counter .progress-bar {
  background-color: var(--darker);
  height: 2px;
  margin-top: 36px;
  position: absolute;
  width: 150px;
}

.tvshow .counter .progress-bar {
  background-color: var(--bright-green);
}

.tvshow .counter .remove {
  padding: 8px;
  padding-left: 0;
}

.tvshow .counter .add {
  padding: 8px;
  padding-right: 0;
}

.tvshow .counter .remove a,
.tvshow .counter .add a {
  background-color: var(--light-mid);
  padding: 10px;
}

.tvshow .counter .remove a:hover,
.tvshow .counter .add a:hover {
  background-color: var(--light);
  color: var(--black);
}

.tvshow .counter .remove a:not([href]) {
  cursor: not-allowed;
}

.tvshow .counter .current {
  font-family: var(--mono);
  text-align: center;
  width: 60px;
}

.tvshow .counter .episode {
  cursor: help;
}

.tvshow .counter .new {
  background-color: var(--bright-green);
  color: var(--white);
  padding-left: 3px;
  padding-right: 3px;
}

.tvshow .year {
  font-size: .8em;
  margin-left: 30px;
}

.tvshow .season-count {
  bottom: -4px;
  font-size: .6em;
  line-height: 10px;
  margin-left: 30px;
  position: relative;
  text-transform: uppercase;
}

.tvshow .upcoming {
  bottom: -8px;
  font-size: .8em;
  line-height: 15px;
}

.tvshow .counter a {
  color: var(--dark);
}

.tvshow div {
  display: inline-block;
}

.tvshow .show-progress {
  margin-left: 30px;
  width: 150px;
}

.tvshow .show-progress .last {
  font-size: .6em;
  margin-left: 5px;
  position: absolute;
  text-transform: uppercase;
}

.tvshow .progress, .progress-stacked {
  display: flex;
  font-size: .7em;
}

/* ------------ SHOWS OPTIONS ------------ */

.tvshow .options {
  float: right;
  margin: 13px;
}

.tvshow .options button {
  border: 0;
  border-radius: 10px;
  background-color: var(--light-mid);
}

.modal h4 {
  border-bottom: 1px solid var(--dark);
}

/* ------------ SHOWS LIST: BANNERS ------------ */

.bannerlist .badge {
  color: var(--black);
  margin-bottom: 30px;
}

.bannerlist .col {
  height: 300px;
  margin-bottom: 30px;
  width: 200px;
}

.bannerlist .banner {
  background-color: var(--gray);
  background-image: url('/noimage.svg');
  background-repeat: no-repeat;
  background-position: center;
}

.bannerlist .banner img {
  box-shadow: 0 0 2px #666;
  height: 264px;
  width: 100%;
}

.bannerlist .title {
  font-size: .8em;
  font-weight: bold;
  margin-top: 5px;
}

.bannerlist .overlay {
  background-color: rgba(0, 0, 0, .7);
  position: absolute;
  height: 265px;
  width: 176px;
}

.bannerlist .added {
  color: var(--bright-green-pulse);
  font-size: 2.3em;
  padding-top: 100px;
  text-align: center;
}

.bannerlist .overlay-data {
  color: var(--lighter);
  display: none;
  font-size: .85em;
  padding-top: 10px;
}

.bannerlist .top-info {
  padding: 5px;
  padding-left: 15px;
}

.bannerlist .top-info i {
  margin-right: 10px;
}

.bannerlist .add {
  font-size: 3em;
  padding-left: 115px;
  padding-top: 30px;
}

.bannerlist a {
  color: var(--bright-green-pulse);
}

.bannerlist a:hover {
  color: var(--bright-green);
}

.bannerlist .spinner-border {
  border-width: 3px;
  height: 40px;
  width: 40px;
}

/* ------------ SETTINGS ------------ */

.settings .collapse,
.settings .collapsing {
  margin-top: 20px;
}

.settings hr {
  margin-bottom: 40px;
  margin-top: 40px;
  opacity: .1;
}

/* ------------ STATUS SYMBOL ------------ */

.bullet {
  border-radius: 50%;
  height: 10px;
  line-height: 10px;
  width: 10px;
}

.bullet-green {
  animation: pulse 2s linear infinite;
  background: var(--bright-green);
}

.bullet-red {
  background: var(--red);
}

.bullet-yellow {
  background: var(--yellow);
}

@keyframes pulse {
  0% {
      box-shadow: 0 0 0 0 var(--bright-green-pulse), 0 0 0 0 var(--bright-green-pulse);
  }
  40% {
      box-shadow: 0 0 0 5px transparent, 0 0 0 0 var(--bright-green-pulse);
  }
  80% {
      box-shadow: 0 0 0 5px transparent, 0 0 0 5px transparent;
  }
  100% {
      box-shadow: 0 0 0 0 transparent, 0 0 0 5px transparent;
  }
}

/* ------------ PAGINATION ------------ */

.pagination {
  margin-top: 10px;
}

/* ------------ FOOTER ------------ */

footer {
  color: var(--light);
  font-size: .7em;
  margin-top: 50px;
}

footer a.miguel {
  margin-right: 10px;
}

footer a {
  color: var(--dark);
  margin-right: 5px;
  text-decoration: none;
}

footer a:hover {
  color: var(--darker);
}

/* ------------ LOGIN ------------ */

.guest {
  width: 90%;
}

.guest .logo {
  margin-bottom: 15px;
}

.guest .border-primary {
  border-color: var(--dark) !important;
}

.guest .card {
  border-top: 0;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.guest .logo div {
  display: inline;
}

.guest .logo img {
  margin-right: 10px;
  vertical-align: bottom;
}

.guest .logo .title {
  color: var(--dark);
  font-size: 1.5em;
}
