@import url(https://fonts.googleapis.com/css?family=Open+Sans:600,400,300,300italic);
body {
  margin: 0;
  height: 100vh;
  width: 100vw;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Open Sans", "Lucida Sans Unicode", "Lucida Grande", sans-serif;
  font-size: 14px;
}

.background {
  position: relative;
  border-radius: 5px;
  box-shadow: 0 5px 15px 0 rgba(0, 0, 0, 0.25);
  width: 415px;
  height: 415px;
  display: flex;
  overflow: hidden;
  background: white;
}
.background .imagesWrapper {
  padding: 5px 3px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: white;
  flex-wrap: wrap;
}
.background .imagesWrapper .imageWrapper {
  position: relative;
  cursor: pointer;
}
.background .imagesWrapper .imageWrapper:hover .overlay {
  opacity: 0.4;
}
.background .imagesWrapper .imageWrapper:hover .plusButton {
  opacity: 1;
  transform: scale(1);
}
.background .imagesWrapper .imageWrapper .image {
  width: 200px;
  height: 200px;
}
.background .imagesWrapper .imageWrapper .overlay {
  position: absolute;
  background-color: #222;
  width: 200px;
  height: 200px;
  top: 0;
  opacity: 0;
  transition: all 0.5s ease-in-out;
}
.background .imagesWrapper .imageWrapper .plusButton {
  opacity: 0;
  position: absolute;
  border-radius: 50%;
  background-color: #ec6565;
  width: 50px;
  height: 50px;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
  box-shadow: 2px 4px 10px 0 rgba(0, 0, 0, 0.5);
  transition: all 0.5s ease-in-out;
  transform: scale(2);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.background .detailsWrapper {
  position: absolute;
  z-index: 3;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  pointer-events: none;
  font-size: 0;
}
.background .detailsWrapper.active {
  pointer-events: auto;
}
.background .detailsWrapper.active .close {
  transform: translate3d(0, 0, 0);
  transition: all 0.5s ease-in-out;
}
.background .detailsWrapper.active .header {
  transform: translate3d(0, 0, 0);
  transition: all 0.8s ease-out;
}
.background .detailsWrapper.active .profileImageWrapper {
  transform: translate3d(0, 0, 0);
  transition: all 0.8s ease-out 0.3s;
}
.background .detailsWrapper.active .details {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition: all 0.8s ease-out;
}
.background .detailsWrapper .close {
  z-index: 5;
  position: absolute;
  border-radius: 50%;
  background-color: #ec6565;
  width: 50px;
  height: 50px;
  top: 10px;
  right: 10px;
  box-shadow: 2px 4px 10px 0 rgba(0, 0, 0, 0.3);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transform: translate3d(0, -140%, 0);
  transition: transform 0.5s ease-in-out;
  cursor: pointer;
}
.background .detailsWrapper .close i {
  transform: rotate(45deg);
}
.background .detailsWrapper .header {
  width: 100%;
  transform: translate3d(0, -200%, 0);
  transition: all 1s ease-in 0.5s;
}
.background .detailsWrapper .header .hero {
  width: 100%;
}
.background .detailsWrapper .profileImageWrapper {
  position: absolute;
  width: 100px;
  height: 100px;
  border: 2px solid white;
  border-radius: 50%;
  overflow: hidden;
  margin: auto;
  top: -50px;
  left: 0;
  right: 0;
  bottom: 0;
  box-shadow: 4px 6px 15px 0 rgba(0, 0, 0, 0.2);
  transform: translate3d(0, -250%, 0);
  transition: all 1s ease-in 0.2s;
  z-index: 3;
}
.background .detailsWrapper .profileImageWrapper img {
  width: 100%;
  height: auto;
}
.background .detailsWrapper .details {
  opacity: 0;
  background-color: #ec6565;
  height: 280px;
  transform: translate3d(0, 105%, 0);
  transition: all 1s ease-in 0.5s;
  z-index: 1;
  color: white;
  padding-top: 65px;
}
.background .detailsWrapper .details .name {
  font-size: 16px;
  font-weight: bold;
  text-align: center;
}
.background .detailsWrapper .details .buttonsWrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 15px;
}
.background .detailsWrapper .details .buttonsWrapper .iconWrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  border: 1px solid white;
  margin: 20px;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}
.background .detailsWrapper .details .buttonsWrapper .iconWrapper:hover {
  color: #ec6565;
  background-color: white;
  border-color: #ec6565;
  box-shadow: 2px 3px 5px 0 rgba(0, 0, 0, 0.2);
}
