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

.postcard {
  background-color: #fff;
  padding: 3%;
  border-radius: 6px;
  box-shadow: 0 6px 15px #dde;
  width: 93%;
  height: 176px;
  overflow: hidden;
  position: relative;
  font-size: 16px;
  text-align: left;
  margin: 2% 8px 12px 2%;
}

.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 : 0px;
  color: black;
  width: 100%;
  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 h2.post-title:after {
  content: '';
  position: relative;
  bottom: -8px;
  display: block;
  width: 100%;
  height: 2px;
  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) 40%, rgba(255,255,255,0.8) 60%, rgba(255,254,253,1.0) 100%);
  background: linear-gradient(top, rgba(255,255,255,0) 0%, rgba(255,255,255,0.9) 40%, rgba(255,255,255,0.9) 60%, rgba(255,254,253,1.0) 100%);
  content: "";
}

div.tags{
  top: -11px;
  display: table;
  border-collapse: separate;
  border-spacing: 3px 0;
  position: relative;
  text-align: center;
  vertical-align: middle;
  text-align: left;
  width: 100%;
}

.tags a.tagbutton {
  padding: 1px 4px 1px 4px;
  margin: 1px 5px 1px 5px;
  font-size: 10px;
  border-radius: 8px;
  transition: .4s;
  text-decoration: none;
  background-image: linear-gradient(45deg, gray 0%, gray 100%);
  border: solid 1px gray;
  color: white;
  transition: .4s;
  float: right;
}

.tags a.tagbutton:hover {
  color:gray;
  border: solid 1px gray;
  background : white;
}



.postcard div.eventdate {
  position: relative;
  background-color: #020202;
  padding: 5px 10px 5px 10px;
  margin: 0px 0px 5px 0px;
  text-align: center;
  font-size: 15px;
  border-radius: 2px;
  width: 250px;
  height: auto;
  color: #fff;
}

.postcard div.date {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background-color: #f2f2f2;
  padding: 2px 5px 5px 5px;
  text-align: center;
  font-size: 10px;
  border-radius: 2px;
  height: auto;
  color: #000;
}

@media screen and (max-width: 720px) {
  .postcard h2.post-title:before {
    bottom : 16px;
    width : 100%;
  }
            
  .postcard div.tags {
    position: relative;
    top: -27px;
  }
  .postcard h2.post-title {
    margin-bottom: 40px;
    font-size: 15px;
  }

  .postcard {
    height: 193px;
    width: 90%;
  }
  .postcard::before {
    background: -webkit-linear-gradient(top, rgba(255,255,255,0) 0%, rgba(255,255,255,0.9) 40%, rgba(255,255,255,0.9) 60%, rgba(255,254,253,1.0) 100%);
    background: linear-gradient(top, rgba(255,255,255,0) 0%, rgba(255,255,255,0.9) 40%, rgba(255,255,255,0.9) 60%, rgba(255,254,253,1.0) 100%);
    content: "";
  }

  .tags a.tagbutton {
    font-size: 5px;
    border: solid 1px white;
  }

  .postcard h2.post-title:after {
    position: relative;
    bottom: -12px;
    display: block;
    width: 84vw;
    height: 2px;
    left: 42.5vw;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
    background-color: #ccc;
    border-radius: 2px;
  }

  div.nest div.postcard h2.post-title:after {
    width: 100%;
    left: 50%;
  }

  .postcard div.postcard-content {
    margin-top: -31px;
  }

}

/* the default tag button */
.postcard .read-more{
  position: absolute;
  bottom: 20px;
  box-shadow: 0 0px 4px white;
  right: 20px;
  width: auto;
  font-size: 12px;
  font-weight: bold;
  /*padding: 0.25em 0.25em; */
  padding: 1px 7px 1px 7px;
  border-radius: 12px 12px 12px 12px;
  transition: .4s;
  text-decoration: none;
  border: solid 2px gray;
  color: gray;
}

.postcard .read-more:hover{
  background: gray;
  color: white;
}

.postcard .katex-display {
  overflow: hidden;
  width: 100%;
}
.postcard pre {
  overflow: hidden;
  width: 100%;
}

.posts-title {
  text-align: center;
  font-size: 18px;
  margin-top: 18px;
  margin-left: 70px;
  color: #124;
  margin-right: 70px;
  margin-bottom: 20px;
  background: -moz-linear-gradient(top, #fff 0%, #eee 50%, #ddd 51%, #fff 100%); /* firefox */
  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#fff), color-stop(50%,#eee), color-stop(51%,#ddd), color-stop(100%,#fff)); /* webkit */
  -pie-background:linear-gradient(top, #fff 0%, #eee 50%, #ddd 51%, #fff 100%);
}
