@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
  --darkBlue: #19313e;
  --cream: #ffe4c4;
  --emerald: #40755e;
  --gold: #956d3c;
  --bronze: #634625;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}
body {
  display: flex;
  padding: 0 20px 60px 20px;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-color: var(--cream);
  flex-direction: column;

}
.card {
  position: relative;
  width: 350px;
  height: 85px;
  background-color: var(--emerald);
  border-radius: 20px;
  transition: .5s;
  margin: 50px 10px;
  /* padding: 0 10px; */
}
.expand {
  position: absolute;
  width: 70px;
  height: 60px;
  background: var(--emerald);
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  border-bottom-left-radius: 35px;
  border-bottom-right-radius: 35px;
  cursor: pointer;
}
.expand:before {
  content: '';
  position: absolute;
  width: 35px;
  height: 35px;
  background-color: transparent;
  left: -33.4px;
  border-top-right-radius: 35px;
  box-shadow: 11px -10px 0 10px  var(--emerald);
}
.expand:after {
  content: '';
  position: absolute;
  width: 35px;
  height: 35px;
  background-color: transparent;
  right: -33.6px;
  border-top-left-radius: 35px;
  box-shadow: -11px -10px 0 10px  var(--emerald);
}
.expand span {
  position: absolute;
  width: 10px;
  height: 10px;
  border-bottom: 3px solid white;
  border-right: 3px solid white;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -70%) rotate(45deg);
  transition: .5s;
}
.card.active .expand span {
  transform: translate(-50%, -70%) rotate(225deg);
}
.card.active {
  height: 420px;
}
.content {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.content .contentBx {
  position: relative;
  padding: 20px;
  text-align: center;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}
.content .contentBx h2 {
  color: rgb(243, 233, 222);
  font-weight: 500;
  font-size: 1.25em;
  text-transform: uppercase;
  letter-spacing: .05em;
  line-height: 1.1em;
}
.content .contentBx h2 span{
  font-size: .75em;
  font-weight: 400;
  text-transform: capitalize;
}
.imgBx {
  position: relative;
  width: 250px;
  height: 250px;
  /* background: white; */
  margin-top: 20px;
  box-shadow: -10px 10px 10px rgba(49, 50, 50, 0.25);
  border: 5px solid white;
}
.imgBx img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;;
}
button {
  position: relative;
  margin-top: 20px;
  padding: 10px 35px;
  border-radius: 25px;
  border: none;
  outline: none;
  cursor: pointer;
  font-size: 1em;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 500x;
  color: var(--bronze);
  box-shadow: -10px 10px 10px  rgba(49, 50, 50, 0.25);;
}
button a {
  text-decoration: none;
  color: var(--bronze)
}
@media screen and (max-width: 400px) {
  .card {
    width: 250px;
  }
  .imgBx {
    width: 200px;
    height: 200px;
  }

  .card.active {
    height: 380px;
  }
}
 
