.outercontainer {
  position: relative;
}

.overlay {
  position: absolute;
  bottom: -1px;
  padding-top: 15px;
  padding-bottom: 15px;
  background: rgb(0, 0, 0);
  background: rgba(0, 0, 0, 0.5); /* Black see-through */
  color: #f1f1f1;
  width: 100%;
  transition: 1s ease;
  opacity:0;
  color: white;
  font-size: 15px;
  text-align: center;
}

.outercontainer:hover .overlay {
  opacity: 1;
}

.outercontainer i {
  float: right;
}

@media screen and (min-width: 0px) and (max-width: 600px) { /* show it on small screens */
  .outercontainer .overlay {
    opacity: 1;
  }
}