.box {
  text-align: center;
  position: relative;
  overflow: hidden;
  border-radius: 5px;
}

.box p {
  font-size: 17px;
  line-height: 1.3;
}

@media (min-width: 768px) {
  .box p {
    font-size: 20px;
    line-height: 1.3;
  }
}

@media (min-width: 1200px) {
  .box p {
    font-size: 24px;
  }
}

.box img {
  width: 100%;
  height: auto;
}

.box .box-content {
  width: 90%;
  height: 90%;
  position: absolute;
  top: 5%;
  left: 5%;
  color: #ffffff;
  text-shadow: 1px 1px 1px black;
  padding: 15px 10px;
  transform: scale(0);
  transition: all 0.5s ease 0s;
  border-radius: 3px;
  background: rgba(27,107,255,0.7);
}

.box:hover .box-content {
  transform: scale(1);
}

.box .heading {
  width: 100%;
  position: absolute;
  bottom: 0;
  left: 0;
  background: rgba(27,107,255,0.6);
  color: #ffffff;
  text-align: center;
  padding: 7px 0 7px 0;
  transition: all 0.5s ease 0s;
  text-shadow: 1px 1px 1px black;
}

.box:hover .heading {
  bottom: 0;
}

@media (min-width: 576px) {
  .box:hover .heading {
    bottom: -30%;
  }
}

.box .heading h3 {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 5px;
  color: white;
}

@media (min-width: 1200px) {
  .box .heading h3 {
    font-size: 20px;
  }
}

.box .heading h5 {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  color: white;
}

.box {
  margin-bottom: 30px;
}

@media (max-width: 575px) {
  .box-content {
    display: none;
  }
}

@media only screen and (max-width: 360px) {
  .box .box-content {
    padding: 10px;
  }
}

@media only screen and (max-width: 360px) {
  .box:hover .heading {
    bottom: -40%;
  }
}

