/* CSS Document */
.contd {
  position: relative;
  width: 100%;
}

.contd .image {
  display: block;
  width: 100%;
  height: auto;
}

.contd .overlay {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100%;
  width: 100%;
  opacity: 0;
  transition: .5s ease;
  background-color: #800101;
}

.contd:hover .overlay {
  opacity: 0.7;
}

.contd .text {
  color: white;
  font-size: 20px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  text-align: center;
}

.content {
  position: relative;
  
}

.card {
  width: 270px;
  height: 200px;
  min-height: 100px;
  padding: 5px;
  border-radius: 10px;
  background-color: white;
  box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
  margin: 10px;  
}
.card:after {
  content: "";
  display: block;
  width: 100px;
  height: 300px;
  background: darkred;
  position: absolute;
  animation: rotatemagic 0.75s cubic-bezier(0.425, 1.04, 0.47, 1.105) 1s both;
}
.firstinfo {
  flex-direction: row;
  z-index: 2;
  position: relative;
}
.firstinfo img {
  border-radius: 50%;
  width: 120px;
  height: 120px;
}
.firstinfo .profileinfo {
  padding: 0px 10px;
}
.firstinfo .profileinfo h3 {
  font-size: 1.2em;
  color: #800101;
  font-style: italic;
}

@keyframes animatop {
  0% {
    opacity: 0;
    bottom: -500px;
  }
  100% {
    opacity: 1;
    bottom: 0px;
  }
}
@keyframes animainfos {
  0% {
    bottom: 10px;
  }
  100% {
    bottom: -42px;
  }
}
@keyframes rotatemagic {
  0% {
    opacity: 0;
    transform: rotate(0deg);
    top: -24px;
    left: -253px;
  }
  100% {
    transform: rotate(-30deg);
    top: -24px;
    left: -78px;
  }
}
@media screen and (max-width: 990px) {
    .card {
        width: 220px;
        height: 220px;
    }
}

@media screen and (max-width: 600px) {
    .card {
        width: 100%;
        height: 220px;
    }
}