.rec {
  position: relative;
  width: 233px;
  background-color: #000000;
  border-radius: 12px;
  float: left;
  margin-left: 13px;
  margin-bottom: 25px;
}

.recImage {
  opacity: 1;
  display: block;
  width: auto;
  height: 300px;
  transition: .5s ease;
  border-radius: 12px;
  backface-visibility: hidden;
}

.middle {
  transition: .5s ease;
  opacity: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  text-align: center;
  width: 80%;
}

.rec:hover .recImage {
  opacity: 0.3;
}

.rec:hover .middle {
  opacity: 1;
}

.text {
  background-color: #000000ff;
  color: white;
  font-size: 16px;
  font-family: arial;
  padding: 16px 16px;
  border-radius: 12px;
}