/*********** CARDS ***************/

main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 50px;
  font-family: "Roboto", sans-serif;
}

.card {
  /* width: 20rem; */
  height: 36rem;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  box-shadow: 0 10px 30px 5px rgba(0, 0, 0, 0.2);
}

.card img {
  position: absolute;
  object-fit: cover;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.card h2 {
  position: absolute;
  inset: auto auto 30px 30px;
  margin: 0;
  transition: inset 0.5s 0.5s ease-out;
  font-family: "Roboto Condensed", sans-serif;
  font-weight: normal;
  text-transform: uppercase;
}
.card p, .card a {
  display: flex;
  position: absolute;
  opacity: 0;
  max-width: 80%;
  transition: opacity 0.5s ease-out;
}
.card p {
  inset: auto auto 80px 30px;
  font-size: 0.8em;
}
.card a {
  inset: auto auto 40px 30px;
  color: inherit;
  text-decoration: none;
}
.card:hover h2 {
  inset: auto auto 230px 30px;
  transition: inset 0.3s ease-out;
  color:#000;
}
.card:hover p, .card:hover a {
  opacity: 1;
  transition: opacity 0.5s 0.1s ease-in;
  font-size: 0.8em;
}
.card:hover img {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100%;
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  overflow: hidden;
  height: 50%;
  transition: .5s ease-in-out;
}

.material-symbols-outlined {
  vertical-align: middle;
}

.card-content {
  display:inline-block;
  background-color:rgba(24, 24, 70, 0.7);
  padding: 8px;
  border-radius: 5px;
}

.overlay-card {
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.6);
  overflow: hidden;
  width: 100%;
  height: 0;
  transition: .5s ease;
}

/*********** CARDS on PAGES ***************/

main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 50px;
  font-family: "Roboto", sans-serif;
}

.carde {
  /* width: 20rem; */
  height: 36rem;
  border-radius: 0px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  box-shadow: 0 10px 30px 5px rgba(0, 0, 0, 0.2);
}

.carde img {
  position: absolute;
  object-fit: cover;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.carde h2 {
  position: absolute;
  inset: auto auto 30px 30px;
  margin: 0;
  transition: inset 0.5s 0.5s ease-out;
  font-family: "Roboto Condensed", sans-serif;
  font-weight: normal;
  text-transform: uppercase;
}
.carde p, .carde a {
  display: flex;
  position: absolute;
  opacity: 0;
  max-width: 80%;
  transition: opacity 0.5s ease-out;
}
.carde p {
  inset: auto auto 80px 30px;
  font-size: 1.2em;
}
.carde a {
  inset: auto auto 40px 30px;
  color: inherit;
  text-decoration: none;
}
.carde:hover h2 {
  inset: auto auto 230px 30px;
  transition: inset 0.3s ease-out;
  color:#000;
}
.carde:hover p, .carde:hover a {
  opacity: 1;
  transition: opacity 0.5s 0.1s ease-in;
  font-size: 1.2em;
}
.carde:hover img {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100%;
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  overflow: hidden;
  height: 50%;
  transition: .5s ease-in-out;
}

.carde-content {
  display:inline-block;
  background-color:rgba(24, 24, 70, 0.7);
  padding: 8px;
  border-radius: 5px;
}

.overlay-carde {
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.6);
  overflow: hidden;
  width: 100%;
  height: 0;
  transition: .5s ease;
}