.cards-row {
  display: flex;
  flex-direction: column;

  /* grid-template-rows: auto auto; */
}

.cards-day-group {
  display: grid;
  grid-gap: 1.15rem;
  margin-bottom: 30px;
  /* grid-template-columns: repeat(5, 320px); */
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

#loginContainer {
  display: flex;
  flex-direction: row;
  justify-content: space-between;  
}

.filter-sort {
  display: flex;
  flex-direction: row;
  justify-content: space-around;

  /* justify-content: space-between; */
}

.card {
  border: 2px solid #e0e0e0;
  border-radius: 2px;
  padding: 0.5rem;
  background-color: rgb(236, 236, 236);
  padding: 1.2rem;
  display: flex;
  justify-content: space-between;
  cursor: pointer;
  box-shadow: 0px 0px 0px grey;
  -webkit-transition: box-shadow 0.1s ease-out;
  -ms-transition: box-shadow 0.1s ease-out;
  transition: box-shadow 0.1s ease-out;
  /* max-width: 400px; */
}

.card.live {
  -webkit-transition: background-color 2000ms linear;
  -ms-transition: background-color 2000ms linear;
  transition: background-color 2000ms linear;
  background-color: #ecffe7;
}

.card:hover {
  box-shadow: rgba(0, 0, 0, 0.16) 0px 3px 6px, rgba(0, 0, 0, 0.23) 0px 3px 6px;
  -webkit-transition: box-shadow 0.1s ease-in;
  -ms-transition: box-shadow 0.1s ease-in;
  transition: box-shadow 0.1s ease-in;
}

.card-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  justify-content: space-around;
  margin-left: 3px;
  /* padding-right: 16px; */
}

.card-top-row {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.card-description {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.card-bottom {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  margin-top: 10px;
}

.card-title {
  display: flex;
  flex-direction: row;
  width: 100%;
}

.channels {
  padding-top: 4px;
}
.card p {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0;
}

.card-end {
  display: flex;
  flex-direction: row;
  align-items: center;
  margin-left: 10px;
}

.card-end > .glyphicon:hover {
  color: darkgrey;
}

.card-end .channels {
  margin-right: 6px;
}

.card-endtime {
  text-align: end;
}

.color-box {
  /* height: 1em; */
  padding-left: 7px;
  margin-right: 5px;
}

.red {
  /*background-color: rgb(224, 55, 55);*/
  background-color: rgb(70, 70, 70);
  -webkit-transition: background-color 2000ms linear;
  -ms-transition: background-color 2000ms linear;
  transition: background-color 2000ms linear;
}

.green {
  background-color: rgb(32, 153, 32);
  -webkit-transition: background-color 2000ms linear;
  -ms-transition: background-color 2000ms linear;
  transition: background-color 2000ms linear;
}

.yellow {
  background-color: rgb(219, 219, 17);
  -webkit-transition: background-color 2000ms linear;
  -ms-transition: background-color 2000ms linear;
  transition: background-color 2000ms linear;
}

.plot-name-cell {
  display: flex;
  flex-direction: row;
}

.plot-name-cell a {
  color: rgb(66, 66, 66);
}

.content {
  width: 70%;
}

.padded {
  padding-top: 24px;
  padding-left: 50px;
  padding-right: 50px;
  max-width: 1800px;
}

.all-centered {
  display: flex;
  align-items: center;
  justify-content: center;
}

.all-centered > a {
  margin-bottom: 24px;
}

.margin-left-8 {
  margin-left: 8px;
}

.btn-success {
  color: #ffffff;
}

.modal .btn {
  margin-bottom: 0px;
}

.subscription-item {
  padding: 15px;
  font-size: 18px;
  border: 2px solid #47b475;
  color: #666666;
  margin-bottom: 24px;
  cursor: pointer;
}

.subscription-item:hover {
  color: #ffffff;
  background-color: #47b475;
  transition: all 0.5s;
}

.current-subscription {
  border: 2px solid #666666;
}

.icon {
  width: 20px;
  height: 20px;
  padding: 2px;
  border-radius: 2px;
}

.filter-sort select {
  padding: 4px;
}

#sort-by {
  margin-left: 10px;
  margin-right: 10px;
}

.filter-systems {
  font-size: 16px;
  padding: 10px;
  margin-bottom: 10px;
}

/* The container */
.checkbox-container {
  display: block;
  position: relative;
  padding-left: 25px;
  margin-bottom: 12px;
  cursor: pointer;
  font-size: 16px;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Hide the browser's default checkbox */
.checkbox-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

/* Create a custom checkbox */
.checkmark {
  position: absolute;
  top: 3px;
  left: 0;
  height: 20px;
  width: 20px;
  background-color: #eee;
}

/* On mouse-over, add a grey background color */
.checkbox-container:hover input ~ .checkmark {
  background-color: #ccc;
}

/* When the checkbox is checked, add a blue background */
.checkbox-container input:checked ~ .checkmark {
  background-color: #47b475;
}

/* Create the checkmark/indicator (hidden when not checked) */
.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

/* Show the checkmark when checked */
.checkbox-container input:checked ~ .checkmark:after {
  display: block;
}

/* Style the checkmark/indicator */
.checkbox-container .checkmark:after {
  left: 9px;
  top: 4.5px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 3px 3px 0;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}

#outputTable thead th {
  cursor: pointer;
}

/* style for mobile */
@media only screen and (max-width: 800px) {
  span.glyphicon-new-window {
    font-size: 2rem;
  }

  .filter-sort {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .filter-sort select {
    margin-bottom: 10px;
  }

  #sort-by {
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 0;
    margin-top: 10px;
    max-width: 70%;
  }

  #sort-direction {
    max-width: 70%;
    margin-top: 10px;
  }

  .filter-systems {
    display: flex;
    flex-direction: column;
    align-items: inherit;
    font-size: 16px;
    padding: 10px;
    margin-bottom: 10px;
    /* text-align: center; */
  }

  #search {
    max-width: 70%;
  }

  .cards-day-group {
    grid-template-columns: repeat(1, auto);
  }
}
