:root {
  --card-color: black;
}

* {
  font-family: Helvetica;
}
.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  display: flex;
  flex-wrap: wrap;
  margin-left: 5%;
  margin-bottom: 5em;
  position: relative;
  margin-top: 5em;
  z-index: 1;
  cursor: none;
}

.card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 1em;
  display: flex;
  max-width: 400px;
  min-width: 400px;
  max-height: 560px;
  min-height: 560px;
  flex-direction: column;
  position: relative;
  transition: filter 0.2s ease, opacity 0.5s ease;
  -webkit-transition: filter 0.2s ease, opacity 0.5s ease;
  filter: grayscale(0%) brightness(100%);
}

.card.grayscale {
  filter: grayscale(100%) brightness(20%);
}

.card-title {
  color: white;
  font-size: 1.8em;
  font-weight: bold;
  font-family: Arial, Helvetica, sans-serif;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
  text-align: left;
  margin-top: 0.7em;
}

.card-type {
  font-size: 1em;
  margin-top: -5px;
  margin-bottom: 10px;
  width: 100%;
  display: flex;
  color: rgb(126, 126, 126);
}

.card-tech-stack {
  font-size: 0.9em;
  color: white;
}

.tech_stack_icon {
  margin-right: 0.3%;
}

.card-desc {
  color: rgb(160, 160, 160);
  margin: 0.5em 0 0 0.5em;
  font-size: 0.9em;
  line-height: 1.5rem;
  height: 8em;
  text-overflow: ellipsis;
  font-family: Helvs;
  font-weight: normal;
}

.card_button_icon {
  margin-left: 15px;
}

.card:hover::before {
  opacity: 1;
}

.card::before,
.card::after {
  border-radius: inherit;
  content: "";
  height: 100%;
  left: 0px;
  opacity: 0;
  position: absolute;
  top: 0px;
  width: 100%;
}

.card::before {
  background: radial-gradient(
    800px circle at var(--mouse-x) var(--mouse-y),
    rgba(255, 255, 255, 1),
    transparent 40%
  );
  z-index: 0;
}

.card::after {
  background: radial-gradient(
    600px circle at var(--mouse-x) var(--mouse-y),
    rgba(255, 255, 255, 0.2),
    transparent 40%
  );
  z-index: 1;
}

.card > .card-content {
  background-color: var(--card-color);
  border-radius: inherit;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  inset: 1px;
  padding: 10px;
  position: absolute;
}

.card-image {
  height: auto;
  width: 100%;
  max-height: 150px;
  overflow: hidden;
  border-radius: 1em;
  object-fit: cover;
  background-color: #00bbff;
}

.card-image-div {
  display: flex;
}

.card-info-wrapper {
  align-items: center;
  flex-grow: 1;
  justify-content: flex-start;
}

.card-info > i {
  font-size: 1em;
  height: 20px;
  line-height: 20px;
}

.card-info-title {
  margin: 0 10px;
}

.link {
  align-items: center;
  backdrop-filter: blur(3px);
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  display: inline-flex;
  gap: 5px;
  left: 10px;
  padding: 10px 20px;
  position: fixed;
  text-decoration: none;
  z-index: 100;
}

.link:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.link > i,
.link > span {
  height: 20px;
  line-height: 20px;
}

.link > span {
  color: white;
}
@media screen and (max-width: 500px) {
  .cards {
    margin-left: 4% !important;
  }

  .card {
    min-width: 360px;
    filter: grayscale(0%) brightness(100%);
  }

  .button_secondary {
    min-width: 340px !important;
  }

  .card-title {
    font-size: 1.6em;
  }

  .card-type {
    font-size: 0.9em;
  }

  .card-desc {
    font-size: 0.9em;
  }
}

/* !Buttons */

.buttons {
  font-family: Helvetica;
  display: inline-flex;
  align-items: center;
  margin-top: 0.5em;
  z-index: 1001;
  margin-bottom: 5%;
  width: 100%;
  justify-content: center;
}

.button_secondary {
  max-width: 370px;
  min-width: 370px;
  margin-right: 0;
  margin-top: 0;
  margin-bottom: -1em;
}
