:root {
  --gray-color: #808080;
  --red-color: #8b0000;
  --green-color: #2f4f4f;
  --blue-color: #00008b;
}

.postcard {
  background-color: #fff;
  padding: 10px;
  border-radius: 6px;
/*  box-shadow: 2px 2px 2px 2px rgba(0,0,0,0.29); */
  box-shadow: 0 2px 5px #ccc;
  width: 85%;
  height: 165px;
  color: #1700ad;
  overflow: hidden;
  position: relative;
  font-size: 16px;
  text-align: left;
  margin: 15px;
}

.postcard p{
  margin-top : -15px;
  color: #222;
  font-size: 12px;
}

.postcard img{
  display: none;
}

.postcard h1{
  margin-top : -15px;
  padding-top: 4px;
  padding-bottom: 4px;
  color: black;
  font-size: 14px;
}

.postcard h2{
  margin-top : -15px;
  padding-top: 3px;
  padding-bottom: 3px;
  color: black;
  font-size: 13px;
}

.postcard h3{
  margin-top : -15px;
  padding-top: 2px;
  padding-bottom: 2px;
  color: black;
  font-size: 12px;
}

.postcard h4{
  margin-top : -15px;
  padding-top: 2px;
  padding-bottom: 2px;
  color: black;
  font-size: 12px;
}

.postcard h5{
  margin-top : -15px;
  padding-top: 2px;
  padding-bottom: 2px;
  font-size: 12px;
}

.postcard h6{
  margin-top : -15px;
  padding-top: 2px;
  padding-bottom: 2px;
  font-size: 12px;
}

.postcard a:link{
  margin-top : -15px;
  font-size: 12px;
  text-decoration: none;
}

.postcard h2.post-title{
  margin-top : 12px;
  color: black;
  font-size: 18px;
  position: relative;
  display: inline-block;
  margin-bottom: 1em;
}

.postcard h2.post-title:before {
  content: '';
  position: absolute;
  bottom: -2px;
  display: inline-block;
  width: 100%;
  height: 1px;
  left: 50%;
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
  background-color: #ccc;
  border-radius: 2px;
}

.postcard::before {
  display: block;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: -webkit-linear-gradient(top, rgba(255,255,255,0) 0%, rgba(255,255,255,0.8) 50%, rgba(255,255,255,0.8) 50%, #fff 100%);
  background: linear-gradient(top, rgba(255,255,255,0) 0%, rgba(255,255,255,0.9) 50%, rgba(255,255,255,0.9) 50%, #fff 100%);
  content: "";
}

.postcard div.eventdate {
  position: relative;
  /*background-color: #125; */
  background-color: #6494ed;
  padding: 3px 8px 3px 8px;
  text-align: center;
  font-size: 10px;
  border-radius: 2px;
  width: 100px;
  height: auto;
  color: #eef;
}

.postcard div.tags{
  display: table;
  border-collapse: separate;
  border-spacing: 3px 0;
  position: absolute;
  text-align: center;
  vertical-align: middle;
  width: 100%;
  height: auto;
  text-align: left;
}

@media screen and (min-width: 450px) {
  .postcard div.tags {
    left: calc(100% + 3px);
    top: 3px;
  }
}

@media screen and (max-width: 450px) {
  .postcard div.eventdate {
    margin-bottom: 10px;
  }
  .postcard div.tags {
    left: -5px;
    top: 25px;
  }
}

/* the default tag button */

.postcard div a.tagbutton {
  padding: 1px 4px 1px 4px;
  margin: 1px 5px 1px 5px;
  font-size: 10px;
  border-radius: 8px;
  transition: .4s;
  text-decoration: none;
  color:var(--gray-color);
  border: solid 1px var(--gray-color);
  transition: .4s;
}

.postcard div a.tagbutton:hover {
  background-image: linear-gradient(45deg, var(--gray-color) 0%, var(--gray-color) 100%);
  color: white;
}

.postcard div a.red {
  color:var(--red-color);
  border: solid 1px var(--red-color);
}

.postcard div a.red:hover {
  background-image: linear-gradient(45deg, var(--red-color) 0%, var(--red-color) 100%);
  color: white;
}

.postcard div a.blue{
  color:var(--blue-color);
  border: solid 1px var(--blue-color);
}

.postcard div a.blue:hover {
  background-image: linear-gradient(45deg, var(--blue-color) 0%, var(--blue-color) 100%);
  color: white;
}

.postcard div a.green{
  color:var(--green-color);
  border: solid 1px var(--green-color);
}

.postcard div a.green:hover {
  background-image: linear-gradient(45deg, var(--green-color) 0%, var(--green-color) 100%);
  color: white;
}

.postcard .read-more{
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: auto;
  font-size: 12px;
  font-weight: bold;
  /*padding: 0.25em 0.25em; */
  padding: 1px 7px 1px 7px;
  border-radius: 4px 15px 15px 4px;
  transition: .4s;
  text-decoration: none;
  border: solid 2px #67c5ff;
  color: #67c5ff;
}

.postcard .read-more:hover{
  zoom: 1.02;
  background: #67c5ff;
  color: white;
}
