/**
 * Feed Card
 * 
 * Copyright 2015 Nuzzel, Inc.
 */

.feed-container,
.publisher-container {
  padding-bottom: 20px;
  padding-top: 20px;
}

.feed-card {
  background-color: white;
  border: solid thin #E6E6E6;
  border-radius: 5px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.075);
  -webkit-box-shadow: 0 1px 2px rgba(0,0,0,0.075);
  margin-bottom: 20px;
  max-width: 500px;
}

.feed-card-banner {
  background-color: #242c33;
  background-image: -webkit-gradient(linear,left top,left bottom,from(transparent),color-stop(50%,rgba(0,0,0,0)),to(rgba(0,0,0,.3)));
  background-image: -webkit-linear-gradient(top,transparent,rgba(0,0,0,0) 50%,rgba(0,0,0,.3));
  background-image: linear-gradient(to bottom,transparent,rgba(0,0,0,0) 50%,rgba(0,0,0,.3));
  border-top-right-radius: 5px;
  border-top-left-radius: 5px;
  -webkit-box-orient: vertical;
  -webkit-box-pack: center;
  box-sizing: border-box;
  color: #FFF;
  display: flex;
  flex-direction: column;
  -webkit-flex-direction: column;
  -ms-flex-direction: column;
  -ms-flex-pack: center;
  -webkit-justify-content: center;
  min-height: 160px;
  position: relative;
  text-shadow: 0 1px 1px #000;
  width: 100%;
}

.feed-card-banner.publisher {
  background-size: contain; 
  background-repeat: no-repeat; 
  background-color: #FFFFFF; 
  background-position: center;
  margin-bottom: 10px;
}

.feed-card-banner .feed-cta {
  padding: 15px;
  position: absolute;
  top: 0;
  width: 100%;
}

.feed-card-banner .feed-position {
  padding: 15px 0;
  position: absolute;
  top: 0;
  width: 100%;
}

.feed-card-banner .feed-position-box {
    position: relative;
    width: 30px;
    overflow: hidden;
    background: #C2E6FF;
    border: 1px solid #C2E6FF;
}

.feed-card-banner .feed-position-box:before{
    content: "";
    display: block;
    padding-top: 100%;
}

.feed-position-content {
  position:  absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  color: white;
}

.feed-position-content div {
  display: table;
  width: 100%;
  height: 100%;
}

.feed-position-content span {
  display: table-cell;
  text-align: center;
  vertical-align: middle;
  color: #043163;
  font-size: 16px;
  font-weight: bold;
  text-shadow: none;
}

.feed-card-banner .feed-info {
  bottom: 0;
  position: absolute;
  width: 100%;
}

.feed-card-banner a {
  color: white;
  text-decoration: none;
}

.feed-card-banner .main-image {
  border: 3px solid #fff;
  border-radius: 100%;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
  display: block;
  max-height: 60px;
  max-width: 60px;
}

.feed-card-banner .name {
  font-size: 1.7em;
  font-weight: bold;
  line-height: 1em;
  margin-top: 0;
  margin-bottom: 5px;
}

.feed-card-content .name {
  font-size: 1.7em;
  font-weight: bold;
  line-height: 1em;
  margin-top: 3px;
  margin-bottom: 0;
  min-height: 48px;
}

.feed-card-banner .username {
  color:white;
  font-size: 1.2em;
}

.feed-main-image {
  padding-bottom: 10px;
  padding-left: 20px;
  padding-right: 20px;
}

.feed-card-content {
}

.feed-card-content.publisher {
  text-align: center;
  margin-bottom: 12px;
}

.feed-card-content.publisher .name {
  font-size: 1.62em;
  padding-top: 3px;
  margin-top: 3px;
  min-height: 38px;
}

.feed-card-footer {
  border-top: solid thin #E6E6E6;
  padding:15px;
  text-align: center;
}

.feed-card-footer a {
  color: #144066;
}

/*
 * Story
 */

.feed-card .story {
  color: #475359;
  padding-bottom: 15px;
  padding-top: 18px;
  padding-left: 15px;
  padding-right: 15px;
}

.feed-card .story:first-child {
  border-bottom: solid thin #E6E6E6;
}

.feed-card .story header {
  position: relative;
}

.feed-card .story .image-container {
  background-position: center;
  background-size: cover;
  height: 80px;
  margin-left: 10px;
  width: 80px;
}

.feed-card .story .title {
  font-family: 'PT Sans Narrow', arial, helvetica, sans-serif;
  font-size: 1.5em;
  font-weight: bold;
  margin: 0;
  padding-bottom: 5px;
}

.feed-card .story .title a {
  color: #144066;
}

.feed-card .story .site {
  color: #999;
  font-size: .85em;
  font-weight: 300;
  margin: 0;
  padding-bottom: 5px;
  text-transform: uppercase;
}

.feed-card .story .author {
  color: #999;
  font-size: .95em;
}

.feed-card .story .excerpt {
  text-align: left;
  margin: 0;
}

.feed-card .story .more-info {
  font-weight: bold;
  padding-top: 5px;
}

.feed-card .story:hover {
  background: #EBF0F5;
}

/* 
 * Newsletter
 */
.feed-card-content-info {
  color: #475359;
  font-size: 14px;
  padding: 15px;
}

.feed-card-content-info-heading,
.feed-card-content-latest-newsletter-heading{
  color: #666;
  display: block;
}

.publisher .feed-card-content-latest-newsletter-heading {
  margin-top: 12px;
  padding-top: 8px;
  margin-bottom: 2px;
}

.feed-card-content-info-description {
  color: #444;
  margin: 0;
}

.feed-card-content-latest-newsletter {
  color: #475359;
  font-size: 14px;
  padding: 0 15px 15px;
}

.publisher .feed-card-content-latest-newsletter {
  height: 100px;
}

.feed-card-content-latest-newsletter-headline {
  font-size: 20px;
  font-family: 'PT Sans Narrow', arial, helvetica, sans-serif;
  font-weight: bold;
  margin: 0;
  padding: 5px 0;
}

.feed-card-content-latest-newsletter-headline a,
.feed-card-content-latest-newsletter-date a {
  color: #144066;
}

.feed-card-content-latest-newsletter-date {
  font-size: 16px;
  font-family: 'PT Sans Narrow', arial, helvetica, sans-serif;
  font-weight: bold
}

/* Subscribe Buttons */
.feed-card .btn-subscribe {
  color: #ffffff;
  background-color: rgba(0, 0, 0, 0.50);
  border-color: #ffffff;
  font-weight: bold;
  text-transform: uppercase;
}

.feed-card .publisher .btn-subscribe {
  background: #6f4b8c;
  border-color: #6f4b8c;
}

.feed-card .btn-subscribe:focus,
.feed-card .btn-subscribe.focus,
.feed-card .btn-subscribe:hover,
.feed-card .btn-subscribe:active,
.feed-card .btn-subscribe.active,
.feed-card .btn-subscribe:active:hover,
.feed-card .btn-subscribe.active:hover,
.feed-card .btn-subscribe:active:focus,
.feed-card .btn-subscribe.active:focus,
.feed-card .btn-subscribe:active.focus,
.feed-card .btn-subscribe.active.focus,
.open > .dropdown-toggle.btn-subscribe {
  background-color: rgba(0, 0, 0, 0.70);
  color: #ffffff;
  outline: 0;
}

.feed-card .btn-subscribe:active,
.feed-card .btn-subscribe.active {
  background-image: none;
}


/* Subscribed Button */
.feed-card .btn-subscribed {
  background-color: #ffffff;
  border-color: #ffffff;
  color: #044374;
  font-weight: bold;
  text-transform: uppercase;
}

.feed-card .btn-subscribed:focus,
.feed-card .btn-subscribed.focus,
.feed-card .btn-subscribed:hover,
.feed-card .btn-subscribed:active,
.feed-card .btn-subscribed.active,
.feed-card .btn-subscribed:active:hover,
.feed-card .btn-subscribed.active:hover,
.feed-card .btn-subscribed:active:focus,
.feed-card .btn-subscribed.active:focus,
.feed-card .btn-subscribed:active.focus,
.feed-card .btn-subscribed.active.focus,
.open > .dropdown-toggle.btn-subscribed {
  background-color: #F2F2F2;
  color: #044374;
  outline: 0;
}

.feed-card .btn-subscribed:active,
.feed-card .btn-subscribed.active {
  background-image: none;
}

/*
 * Subscription Modal
 */
.modal-subscribe-content {
  padding: 15px 0;
}

.modal-subscribe-content .subscription-modal-title {
  border-bottom: solid thin #E6E6E6;
  padding-bottom: 15px;
}

.modal-subscribe-content .modal-subscribe-content .feed-name{
  color: #004276;
  font-weight: bolder;
}

.modal-subscribe-content .modal-subscribe-form {
  padding-top: 15px;
}

.modal-subscribe-content .subscription-email-input {
  width: 300px !important;
}

.modal-subscribe-content .btn-modal-subscribe {
  color: #ffffff;
  background-color: #044374;
  border-color: #04345a;
  font-weight: bold;
}

.modal-subscribe-content .btn-modal-subscribe:focus,
.modal-subscribe-content .btn-modal-subscribe.focus {
  color: #ffffff;
  background-color: #022E51;
  border-color: #122b40;
}

.modal-subscribe-content .btn-modal-subscribe:hover {
  color: #ffffff;
  background-color: #022E51;
  border-color: #04345A;
}

.modal-subscribe-content .btn-modal-subscribe:active,
.modal-subscribe-content .btn-modal-subscribe.active {
  color: #ffffff;
  background-color: #022E51;
  border-color: #04345A;
}

.modal-subscribe-content .btn-modal-subscribe:active:hover,
.modal-subscribe-content .btn-modal-subscribe.active:hover,
.modal-subscribe-content .btn-modal-subscribe:active:focus,
.modal-subscribe-content .btn-modal-subscribe.active:focus,
.modal-subscribe-content .btn-modal-subscribe:active.focus,
.modal-subscribe-content .btn-modal-subscribe.active.focus {
  color: #ffffff;
  background-color: #022E51;
  border-color: #04345A;
}

.modal-subscribe-content .btn-modal-subscribe:active,
.modal-subscribe-content .btn-modal-subscribe.active {
  background-image: none;
}

.modal-subscribe-content .help-block {
  margin-bottom: 0;
}

.modal-subscribe-content .subscription-success p {
  font-size: 16px;
  margin: 20px 0 5px;
}

.modal-subscribe-content .subscription-success-cta {
  text-align: center;
  padding: 5px 0 15px;
}

.modal-subscribe-content .subscription-success-cta .btn {
  margin: 5px 0;
}

/*
 * Anonymous Subscription Modal
 */
.anonymous-subscription-modal .modal-header {
  border-bottom: none;
  min-height: 0;
}

.anonymous-subscription-modal .modal-body {
  padding-bottom: 45px;
  text-align: center;
}

.anonymous-subscription-modal-avatar {
  border-radius: 50%;
  height: 73px;
  width: 73px;
  margin: 0 0 10px;
}

.anonymous-subscription-modal-title {
  font-size: 24px;
  font-weight: bold;
  margin: 0 0 5px 0;
}

.anonymous-subscription-modal-subtitle {
  font-size: 18px;
  margin-bottom: 15px;
}

.anonymous-subscription-modal-form .subscription-email-input {
  width: 300px !important;
}

.btn-modal-subscribe {
  color: #ffffff;
  background-color: #044374;
  border-color: #04345a;
  font-weight: bold;
}

.btn-modal-subscribe:focus,
.btn-modal-subscribe.focus {
  color: #ffffff;
  background-color: #022E51;
  border-color: #122b40;
}

.btn-modal-subscribe:hover {
  color: #ffffff;
  background-color: #022E51;
  border-color: #04345A;
}

.btn-modal-subscribe:active,
.btn-modal-subscribe.active {
  color: #ffffff;
  background-color: #022E51;
  border-color: #04345A;
}

.btn-modal-subscribe:active:hover,
.btn-modal-subscribe.active:hover,
.btn-modal-subscribe:active:focus,
.btn-modal-subscribe.active:focus,
.btn-modal-subscribe:active.focus,
.btn-modal-subscribe.active.focus {
  color: #ffffff;
  background-color: #022E51;
  border-color: #04345A;
}

.btn-modal-subscribe:active,
.btn-modal-subscribe.active {
  background-image: none;
}

.anonymous-subscription-modal-form .help-block {
  margin-bottom: 0;
  font-weight: bold;
}

/* Small devices (tablets, 768px and up) */
@media only screen and (min-width: 768px) {
  .anonymous-subscription-modal .modal-dialog {
    width: 500px;
  }
  
  .feed-card .story {
    height: 145px;
  }
  
  .feed-card-content-info {
    height: 130px;
  }
  
  .feed-card-content-latest-newsletter {
    height: 110px;
  }
}

/* Medium devices (desktops, 992px and up) */
@media only screen and (min-width: 992px) {
  .feed-card-content-info {
    height: 110px;
  }
}