@import url("https://fonts.googleapis.com/css2?family=Jura:wght@700&family=Karla:wght@600&family=Rajdhani:wght@600&family=Roboto+Mono:wght@200;500&family=Space+Mono&display=swap");

.card-container {
  flex: 1;
  position: relative;
}

.card-img-container {
  width: 100%;
  height: 100%;
}

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

.card-container::before {
  content: "";
  position: absolute;
  background-color: #0009;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
}

.card-container:hover::before {
  width: 100%;
  height: 100%;
  transition: width 0.4s ease;
}

.card-container:hover > .card-details {
  display: block;
}

/* CARD DETAILS ON HOVER CARD */

.card-details {
  position: absolute;
  display: none;
  top: 0;
  padding: 0 50px;
  color: #fff;
  width: 80%;
  height: 100%;
}

.card-details > div {
  position: relative;
  display: flex;
  width: 100%;
  height: 100%;
  flex-direction: column;
  font-family: "Rajdhani", sans-serif;
}

.card-details h3 {
  width: 100%;
  font-size: 48px;
}

.card-details p {
  width: 100%;
  font-size: 36px;
  font-family: "Space Mono", monospace;
}

.card-buttons {
  list-style: none;
  padding: 0;
  display: flex;
  position: absolute;
  top: 500px;
}

.card-buttons li {
  position: relative;
  margin: 0 10px;
}

.card-buttons a:hover p,
.card-buttons a:hover i {
  color: #fff;
  transition: all 0.2s ease;
  transform: scale(1.1);
}

.card-buttons a {
  color: #fff9;
}

.card-buttons a i {
  font-size: 36px;
}

@media screen and (max-width: 760px) {
  .card-img-container {
    height: 400px;
    width: 100%;
  }

  .card-details p {
    width: 90%;
    top: 20px;
    font-size: 1.2rem;
    font-family: "Space Mono", monospace;
    align-items: start;
  }

  .card-buttons {
    top: 320px;
  }
}
