/* cards.css */

.card {
  position: relative;
  border: 1px solid gainsboro;
  margin-right: 8px;
  margin-bottom: 1em;
  -no-min-height: 250px;
  overflow-x: hidden;
  box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.4);
  border-radius: 5px;
}

.card-full {
  display: block;
}

.card-narrow {
  display: block;
}
.card-wide {
  display: block;
}


@media screen and (min-width: 768px) {
  .card-narrow {
    display: block;
  }
  .card-half {
    display: block;
  }
  .card-wide {
    display: block;
  }
  /*
  body::before { 
    content: "768"; 
    font-weight: bold; 
    display: block; 
    text-align: center; 
    background: rgba(255,255,0, 0.9); 
    position: absolute; 
    top: 0; 
    left: 0; 
    right: 0; 
    z-index: 99; 
  } 
  */
}

@media screen and (min-width: 970px) {
  .card-narrow {
    display: inline-block;
    vertical-align: top;
    width: 46%;
  }
  .card-half {
    display: inline-block;
    vertical-align: top;
    width: 46%;
  }
  .card-wide {
    display: block;
  }
  /*
  body::before { 
    content: "970"; 
    font-weight: bold; 
    display: block; 
    text-align: center; 
    background: rgba(255,255,0, 0.9); 
    position: absolute; 
    top: 0; 
    left: 0; 
    right: 0; 
    z-index: 99; 
  } 
  */
}

@media screen and (min-width: 1170px) {
  .card-narrow {
    display: inline-block;
    vertical-align: top;
    width: 30%;
  }
  .card-half {
    display: inline-block;
    vertical-align: top;
    width: 46%;
  }
  .card-wide {
    display: inline-block;
    vertical-align: top;
    width: 60%;
  }
  /*
  body::before { 
    content: "1170"; 
    font-weight: bold; 
    display: block; 
    text-align: center; 
    background: rgba(255,255,0, 0.9); 
    position: absolute; 
    top: 0; 
    left: 0; 
    right: 0; 
    z-index: 99; 
  } 
  */
}

.card-head {
  height: 90px;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.1);
  text-align: left;
  vertical-align: middle;
  padding: 8px 8px 8px 8px;
}

.card-head-textonly {
  background-color: rgba(0, 0, 0, 0.1);
  text-align: left;
  padding: 8px 8px 8px 8px;
}
.card-head-jagged {
  height: 100px;
  background-image:
    linear-gradient(
        45deg,
        rgba(255,255,255,1) 50%, rgba(255,255,255,0) 50%
    ),
    linear-gradient(
        -45deg,
        rgba(255,255,255,1) 50%, rgba(255,255,255,0) 50%
    );  
  background-position: bottom center, bottom center;
  background-size: 0.8rem 0.8rem;
  background-repeat: repeat-x;
}

.card-head h1, .card-head h2, .card-head h3, .card-head h4, .card-head h5, .card-head h6, .card-head p , .card-head .card-title {
  margin: 0 !important;
  padding: 0 !important;
  position: relative;
  top: 50%;
  transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  -webkit-transform: translateY(-50%);
}

.card-head .card-title {
  line-height: 130%;
}

.card-head .card-title::first-line {
  font-size: 1.6em;
  font-weight: 100;
}

.card-icon {
  position: relative;
  float: left;
  border-radius: 50%;
  -webkit-border-radius: 50%;
  -moz-border-radius: 50%;
  border: 1px dotted white;
  padding: 1px;
  height: 60px;
  width: 60px;
  overflow: hidden;
  margin-top: 10px;
  margin-left: 8px;
  margin-right: 10px;
  text-align: center;
  background-color: white;
}

.card-icon img {
  position: absolute;
  left: -3px;
  top: -3px;
  width: 109%;
  height: auto;
}

.card-body {
  padding: 8px 8px 8px 8px;
  text-align: left;
}

.card-body-short {
  position: relative;
  max-height: 300px;
  overflow-x: hidden;
  overflow-y: auto;
}

.card-body-stretch {
  position: relative;
  max-height: 310px;
  overflow-x: hidden;
  overflow-y: hidden;
}

.VerticalFade {}
.VerticalFade:after {
  content: "";
  pointer-events: none;
  position: absolute;
  height: 100px;
  width: 100%;
  bottom: 0; 
  right: 0;
  
  background-image: -webkit-linear-gradient(top, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0));
  background-image: -moz-linear-gradient(top, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0));
  background-image: -ms-linear-gradient(top, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0));
  background-image: -o-linear-gradient(top, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0));
  background-image: linear-gradient(to top, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0));
}

.ShowMore {
  position: absolute;
  right: 4px;
  bottom: 4px;
  display: inline-block;
  width: 25px;
  height: 25px;
  background-color: gainsboro;
  color: white;
  text-align: center;
  z-index: 10;
  border-radius: 50%;
  -moz-border-radius: 50%;
  -webkit-border-radius: 50%;
  font-weight: bold;
  font-size: 12pt;
  cursor: pointer;
  cursor: hand;
}
.ShowMore:hover {
  background-color: #e77817;
}

.card-foot {
  padding: 8px 8px 8px 8px;
  border-top: 1px dotted silver;
  text-align: left;
  margin-top: 8px;
}