@charset "utf-8";

ul.blog-posts {
  list-style-type: none;
  width: 100%;
  margin: 34px 0;
  padding: 0;
  & li.blog-post {
    display: flex;
    flex-direction: row;
    position: relative;
    width: 100%;
    /* border: 2px solid #c5c5c5; */
    border-radius: 8px;
    box-shadow: 4px 3px 5px 0px #e5e5e5;
    background-color: white;
    margin: 24px 0;
    /* margin-top: 8px; */
    & a {
      display: block;
      position: absolute;
      left: 0;
      top: 0;
      width: 100%;
      height: 100%;
      transition: all ease-in-out 0.25s;
    }
    & a:hover {
      background-color: #a9b5d76e;
      border-radius: 8px;
    }
    & .thumbnail-block {
      width: 15%;
      display: flex;
      flex-direction: column;
      justify-content: center;
      padding: 15px;
      & img {
        display: block;
        object-fit: contain;
        width: 100px;
        margin: 0 auto;
      }
    }
    & .content-block {
      width: 100%;
      display: flex;
      flex-direction: column;
      justify-content: center;
      padding: 0 15px;
      & .iconContainer {
        display: flex;
        flex-direction: row;
        width: 100%;
        height: 40px;
        justify-content: right;
        text-align: right;
        margin: 0;
        margin-top: 21px;
        margin-bottom: 0;
        & .box {
          position: relative;
          display: block;
          width: 35px;
          margin-right: 12px;
          & a.edit {
            display: block;
            background: url('img/edit.svg') no-repeat;
            background-size: contain;
            width: 30px;
            padding: 0;
            z-index: 5000;
          }
          & button.delete {
            display: block;
            background: url('img/delete.svg') no-repeat;
            background-size: contain;
            width: 25px;
            height: 40px;
            margin: 0;
            padding: 0;
            z-index: 5000;
            border: none;
            cursor: pointer;
          }
          & a.edit:hover,
          button.delete:hover {
            opacity: 0.75;
          }
        }
      }
      & p.title-block {
        display: block;
        width: 100%;
        font-size: 16.5px;
        font-weight: bold;
        color: #2c2c2c;
        text-align: left;
        padding: 8px 4px;
        padding-bottom: 4px;
        margin: 5px 0;
        margin-bottom: 5px;
        /* border-bottom: 1px solid #c5c5c5; */
      }
      & p.date-block {
        display: block;
        width: 100%;
        font-size: 14px;
        color: #2c2c2c;
        text-align: left;
        padding: 16px 4px;
        padding-top: 0;
        margin: 5px 0;
        margin-bottom: 10px;
        border-bottom: 1px solid #c5c5c5;
      }
      & p.description-block {
        display: block;
        padding: 14px 8px;
        width: 100%;
        font-size: 12px;
        margin: 0;
        margin-bottom: 12px;
        color: #5e5e5e;
      }
      & .tags {
        display: flex;
        flex-direction: row;
        justify-content: left;
        flex-wrap: wrap;
        margin-top: 12px;
        font-size: 12.5px;
        color: #3d3d3d;
      }
    }
  }
}

@media screen and (max-width: 768px) {
  ul.blog-posts {
    & li.blog-post {
      justify-content: space-between;
      & .thumbnail-block {
        display: flex;
        flex-direction: column;
        justify-content: center;
        width: 30%;
        padding: 0 5px;
        & img {
          display: block;
          object-fit: contain;
          width: 75px;
          margin: 0 auto;
        }
      }
      & .content-block {
        width: 100%;
        padding: 0 8px;
        & p.title-block {
          font-size: 14.5px;
          padding: 4px 0;
          margin: 0;
        }
        & p.date-block {
          font-size: 12px;
          padding: 4px 0;
          padding-top: 0;
          margin: 0;
        }
        & .iconContainer {
          margin-top: 12px;
          & .box {
            width: 25px;
            margin-right: 9px;
            & a.edit {
              width: 24px;
            }
            & button.delete {
              width: 20px;
            }
          }
        }
      }
    }
  }
}
