.cards {
 
  
  justify-content: center;
  align-items: center;
}
.cards .cardd {
 
  background: #042927;
      margin-bottom: 20px;
  border-radius: 4px;
  box-shadow: 0px 20px 30px -10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: column;
  position: relative;
  transition: all 0.4s ease;
  margin:  10px;
}
.cards .cardd:before {
  height: 190px;
  width: calc(100% + 100px);
  content: "";
  position: absolute;
  background-image: linear-gradient(to top, #05534d 0%, #0d3935 100%);
  border-radius: 4px 4px 100% 100%;
  transition: all 0.4s ease-out;
  top: 0;
}
.cards .cardd .close {
  width: 18px;
  height: 18px;
  position: absolute;
  z-index: 2;
  cursor: pointer;
  background-image: url("https://rafaelalvucas.github.io/assets/icons/misc/cross.svg");
  background-size: 80%;
  background-repeat: no-repeat;
  background-position: center;
  top: 0;
  right: 0;
  margin: 10px;
  padding: 5px;
  transition: all 0.2s ease;
}
.cards .cardd .close:hover {
  background-size: 100%;
  opacity: 0.8;
}
.cards .cardd .arrow {
  display: none;
}
.cards .cardd article {
  z-index: 1;
  display: flex;
  align-items: center;
  flex-direction: column;
  text-align: center;
}
.cards .cardd article h2 {
  color: white;
  margin: 0;
  padding: 40px 20px 10px 20px;
  font-weight: 500;
  font-size: 24px;
  letter-spacing: 0.5px;
}
.cards .cardd article .title {
  color: white;
  padding: 10px 20px;
  letter-spacing: 0.8px;
  transition: all 0.4s ease;
}
.cards .cardd article .desc {
  padding: 10px 30px;
  font-size: 14px;
  text-align: center;
  line-height: 24px;
  color: #666;
  height: 90px;
  transition: all 0.4s ease-out;
}
.cards .cardd article .pic {

}
.cards .cardd article .pic img {
  width: 100%;
  -webkit-filter: grayscale(100%);
  filter: grayscale(100%);
}
.cards .cardd .actions {
  width: 100%;
  
  justify-content: space-between;
  background: white;
  z-index: 1;
}
.cards .cardd .actions .btn {
  border: 0;
  background-color: :fff;
  box-sizing: border-box;
  width: calc(100% - 1px);
  height: 36px;
  margin: 0;
  text-transform: uppercase;
  font-size: 10px;
  transition: all 0.6s ease-in-out;
  cursor: pointer;
  color: #03827a;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 500;
 
  letter-spacing: 0.5px;
  background:#fff;
}
.cards .cardd .actions .btn span {
  z-index: 1;
  opacity: 1;
  transition: all 0.4s ease-in-out;
}
.cards .cardd .actions .btn .icon {
  width: 10px;
  opacity: 0;
  position: absolute;
  transition: all 0.2s ease-in-out;
}
.cards .cardd .actions .btn:before {
  content: "";
  width: 100%;
  height: 0%;
  position: absolute;
  background: #4481eb;
  transition: all 0.4s ease;
  bottom: 0;
  opacity: 0.2;
}
.cards .cardd .actions .btn:focus {
  outline: 0;
}
.cards .cardd .actions .btn:hover {
  background-color: #fff;
  color:#fff!important;
}
.cards .cardd .actions .btn:hover span {
  opacity: 1;
  transition: all 0.3s ease-in-out;
}
.cards .cardd .actions .btn:hover .icon {
  width: 22px;
  opacity: 1;
  transition: all 0.4s ease-in-out;
}
.cards .cardd .actions .btn:hover:nth-child(3) .icon {
  width: 18px;
}
.cards .cardd .actions .btn:hover:before {
  height: 100%;
}
.cards .cardd .actions .btn.clicked span {
  display: none;
}
.cards .cardd .actions .btn.clicked .icon {
  width: 22px;
  opacity: 1;
  animation: icon 0.5s ease forwards;
}
@keyframes icon {
  0% {
    width: 22px;
  }
  50% {
    width: 40px;
  }
  100% {
    width: 22px;
  }
}
.cards .cardd .actions .btn.clicked:before {
  opacity: 0.3;
  height: 100%;
}
.cards .cardd:hover {
  transform: translateY(-10px);
  box-shadow: 0px 5px 10px -5px rgba(0, 0, 0, 0.3);
}
.cards .cardd:hover:before {
  height: 100%;
  border-radius: 4px;
}
.cards .cardd:hover .desc {
  color: white;
}
.cards .cardd:hover .pic {
}
.cards .cardd:hover .pic img {
  -webkit-filter: grayscale(0%);
  filter: grayscale(0%);
}
.cards .cardd.closed {
  min-width: 200px;
  max-width: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.6s ease;
  cursor: pointer;
}
.cards .cardd.closed .title,
.cards .cardd.closed .desc,
.cards .cardd.closed .actions,
.cards .cardd.closed .close {
  display: none;
}
.cards .cardd.closed h2 {
  padding: 0;
  height: 100%;
  transform: rotate(-90deg);
  width: 440px;
  z-index: 2;
  transition: all 0.6s ease;
}
.cards .cardd.closed .pic {
  border-radius: 100%;
  height: 400px;
  width: 400px;
  position: absolute;
  top: -20px;
  margin: 0;
  box-shadow: 0;
  transition: all 0.6s ease;
}
.cards .cardd.closed .pic img {
  object-fit: cover;
  height: 100%;
  transform: translateY(20px);
}
.cards .cardd.closed .pic:before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: black;
  opacity: 0.5;
  z-index: 1;
  transition: all 0.4s ease;
  transform: translateY(20px);
}
.cards .cardd.closed:before {
  height: 100%;
  border-radius: 4px;
}
.cards .cardd.closed .arrow {
  width: 18px;
  height: 18px;
  position: absolute;
  z-index: 2;
  cursor: pointer;
  bottom: 15px;
  padding: 5px;
  display: flex;
  justify-content: center;
  background-image: url("https://rafaelavlucas.github.io/assets/icons/misc/expand.svg");
  background-size: 80%;
  background-repeat: no-repeat;
  background-position: center;
  transition: all 0.2s ease;
}
.cards .cardd.closed:hover .arrow {
  background-size: 100%;
  opacity: 0.6;
}