:root {
  --primary: #2d9bff;
  --grey: #888;

  --card-width: 320px;
  --image-width: calc(var(--card-width) / 1.5);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Fira Sans", sans-serif;
}

main {
  min-height: 100vh;
  background-image: linear-gradient(to bottom right, #9fe1fd, pink);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card {
  position: relative;
  width: 100%;
  max-width: var(--card-width);
  background-color: hsla(0, 50%, 100%, 0.8);
  border-radius: 1rem;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
  transition: 0.4s;
	backdrop-filter: blur(100px);
  animation: changeCard 0.8s ease-in-out forwards;
}

.card .image {
  position: relative;
  width: 100%;
  max-width: var(--image-width);
  height: var(--image-width);
  border-radius: 50%;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
  margin: -8rem auto 1.5rem;
  padding: 0.25rem;
  overflow: hidden;
  background-color: #fff;
  transition: 0.4s;
  animation: changeCardImage 0.8s ease-in-out forwards;
}

.card .image img {
  width: 100%;
  border-radius: 50%;
  border: 3px solid var(--primary);
  transition: 0.4s;
  animation: changeCardImageImg 0.8s ease-in-out forwards;
}

.card .name {
  color: var(--grey);
  font-size: 1.5rem;
  transition: 0.4s;
  animation: changeCardName 0.8s ease-in-out forwards;
}

.card .content {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: 0.4s;
  animation: changeCardContent 1.5s ease-in-out forwards;
}

.card .content p {
  color: var(--grey);
  font-size: 1.125rem;
}

.card .content .buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 1.5rem;
}

.card .content .buttons button {
  appearance: none;
  border: none;
  outline: none;
  background: none;
  cursor: pointer;

  display: block;
  padding: 0.5rem 1rem;
  min-width: 160px;
  background-color: var(--primary);
  color: #fff;
  font-size: 1.25rem;
  border-radius: 0.5rem;
  margin: 0 0.5rem;
  transition: 0.4s;
}

.card .content .buttons button:hover {
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
  transform: scale(1.15);
}

@keyframes changeCard {
  from {
    --card-width: 320px;
    max-width: 320px;
    --image-width: calc(var(--card-width) / 1.5);
  }
  to {
    --card-width: 480px;
    max-width: 480px;
    --image-width: calc(var(--card-width) / 2);
  }
}

@keyframes changeCardImage {
  from {
    border-radius: 50%;
  }
  to {
    margin-top: -4rem;
    border-radius: 2rem;
  }
}

@keyframes changeCardImageImg {
  from {
    border-radius: 50%;
  }
  to {
    border-radius: 2rem;
  }
}

@keyframes changeCardName {
  from {
  }
  to {
    margin-bottom: 1.5rem;
  }
}

@keyframes changeCardContent {
  from {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
  }
  to {
    max-height: 300px;
    opacity: 1;
    overflow: visible;
  }
}