body {
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background-color: #f0f0f0;
}

.portfolio {
  position: relative;
  display: inline-block;
  width: 350px;
}

.portfolio img {
  width: 100%;
}

.portfolio .descr {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(115, 72, 167, 0.608);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.portfolio:hover .descr {
  opacity: 1;
}

.descr a {
  color: white;
  text-decoration: none;
  display: block;
  margin: 5px;
  padding: 10px;
  background-color: rgba(177, 6, 83, 0.856);
  border-radius: 5px;
}

.descr a:hover {
  background-color: rgba(255, 255, 255, 0.5);
}
