@import url('https://fonts.googleapis.com/css2?family=Alata&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Alata';
}

body {
  background-color: azure;
  height: 100vh;
}

.card-container {
  margin-top: 20px;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  align-content: stretch;
}

.card {
  width: 300px;
  margin: 20px;
  box-shadow: 0 3px 6px #222222;
  position: relative;
}

.card-image {
  width: 100%;
  height: 200px;
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
}
.card-image img {
  width: auto;
  height: 260px;
  position: absolute;
  top: -20px;
}
.card-midoriya {
  background-image: linear-gradient(45deg, #222f3e, #1dd1a1);
}
.card-bakugou {
  background-image: linear-gradient(45deg, #222f3e, #ff6b6b);
}
.card-todoroki {
  background-image: linear-gradient(45deg, #222f3e, #48dbfb);
}

.card-content {
  background-color: white;
  width: 100%;
  position: relative;
  z-index: 2;
  animation-duration: 1s;
  animation-fill-mode: forwards;
  animation-timing-function: ease;
}
@keyframes show {
  from {
    height: 0;
    padding: 0;
  } to {
    height: 275px;
    padding: 20px;
  }
}
@keyframes hide {
  from {
    height: 275px;
    padding: 20px;
  } to {
    height: 0;
    padding: 0;
  }
}
.card-content-wrapper {
  display: none;
  opacity: 0;
}
.card-content h2 {
  display: none;
  margin-bottom: 10px;
  font-weight: bolder;
  font-size: 22px;
  line-height: 1.5em;
}
.card-content p {
  display: none;
  font-size: 16px;
  line-height: 1.5em;
}
.card-content p.character-phrase {
  font-weight: 600;
  margin: 10px 0;
}
.card-content p.read-more {
  position: absolute;
  bottom: 10px;
}
.card-content a {
  font-size: 12px;
  text-decoration: none;
  color: #555;
}

.card-character {
  
  width: 100%;
  padding: 10px;
  text-align: center;
  font-size: 30px;
  color: #ffffff;
  position: relative;
  z-index: 2;
}
.character-midoriya {
  background-color: #088888;
}
.character-bakugou {
  background-color: #ff6b6b;
}
.character-todoroki {
  background-color: #48dbfb;
}