@import url("./variables.css");
@import url("./common.css");
@import url("./global_menu.css");

body {
  height: 100vh;
}

header {
  text-align: center;
  margin-top: 20px;
  margin-bottom: 30px;
  font-weight: bold;
}

/* Cards */

.card-list {
  padding-bottom: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Generic card style */

.card {
  width: var(--card-width);
  margin-bottom: 20px;
}

.card .card-body {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: space-between;
  align-items: center;
}

.card .card-title {
  font-size: 2em;
  color: var(--green);
}

.card p, .card p a {
  font-size: 1em;
  color: var(--black);
  text-decoration: none;
}

.card button {
  width: 100px;
  height: 50px;
}

.card button:hover {
  color: var(--green);
  background-color: var(--white);
  border: 2px solid var(--green);
  transform: translate(1px, 1px);
}

/* Specific card styles */

.card.image {
  height: var(--card-image-height);

  flex-direction: column;
  justify-content: space-between;
}

.card.image img {
  height: 150px;
  aspect-ratio: 16/9;

  border-radius: 8px;
}

.card.icon {
  height: unset;
  align-items: center;
  flex-direction: column;
  /* height: var(--card-icon-height); */
}

.card.icon .card-title {
  display: flex;
  align-items: center;
  gap: 4px;
}

.card.icon img {
  height: 50px;
  width: 50px;
}

.card.icon .card-body {
  gap: 12px;
  justify-content: flex-end;
}

.card.info {
  height: var(--card-info-height);

  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.card.info img {
  height: 40px;
  width: 40px;
}

.card.info .card-body {
  align-items: center;
  justify-content: flex-end;
  gap: unset;
}

.card.map {
  height: var(--card-map-height);

  display: flex;
  justify-content: center;
  align-items: center;
  padding: 8px;
}

@media screen and (min-width: 720px) {
  .card.image {
    height: unset;
  }
}

@media (min-width: 1280px) {
  body {
    height: unset;
  }

  header {
    margin-bottom: 25px;
  }

  .card {
    font-size: 18px;
  }

  .card-list {
    height: 700px;
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    grid-template-rows: repeat(10, 1fr);
    grid-column-gap: 20px;
    grid-row-gap: 20px;

    margin: unset;
    padding: 0 10px;
    flex-direction: unset;
    align-items: unset;
  }

  .card.image,
  .card.icon,
  .card.info,
  .card.map {
    width: unset;
    height: unset;
    margin-bottom: 0;
    text-align: center;
  }

  .card.image {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 24px
  }

  .card.image img {
    height: 75%;
  }

  .card.image .card-body {
    height: 100%;
    align-items: center;
    gap: 8px;
  }

  .card.icon {
    align-items: center;
  }

  .card.icon img {
    height: 40px;
    width: 40px;
  }

  .card.icon .card-body {
    align-items: center;
    text-align: center;
    justify-content: space-between;
    height: 100%;
  }

  .card.info {
    justify-content: space-around;
  }

  .card.map {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .card-linkedin {
    grid-area: 1 / 1 / 6 / 6;
  }

  .card-instagram {
    grid-area: 6 / 6 / 11 / 11;
  }

  .card-github {
    grid-area: 6 / 4 / 10 / 6;
  }

  .card-email {
    grid-area: 6 / 2 / 9 / 4;
  }

  .card-calendly {
    grid-area: 2 / 6 / 6 / 8;
  }

  .card-location {
    grid-area: 2 / 8 / 6 / 11;
  }
}

@media (min-width: 1440px) {
  header {
    margin-bottom: 40px;
  }

  h1 {
    margin-bottom: 10px;
  }

  .card.image img {
    height: 90%;
  }

  .card-location {
    grid-area: 2 / 8 / 6 / 10;
  }
}

@media (min-width: 1900px) {
  .card.image img {
    height: 100%;
  }

  .card-linkedin {
    grid-area: 1 / 1 / 6 / 6;
  }

  .card-instagram {
    grid-area: 6 / 6 / 11 / 11;
  }

  .card-github {
    grid-area: 6 / 4 / 10 / 6;
  }

  .card-email {
    grid-area: 6 / 2 / 9 / 4;
  }

  .card-calendly {
    grid-area: 2 / 6 / 6 / 8;
  }

  .card-location {
    grid-area: 2 / 8 / 6 / 10;
  }

  .card.icon .card-body {
    gap: 16px;
    justify-content: center;
  }

  .card.image .card-body {
    justify-content: center;
    gap: 16px;
  }
}