html {
  font-size: 62.5%;
}
*,
*::before,
*::after {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

:root {
  --color-bg: #22223b;
  --color-border: #4a4e69;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  background-color: var(--color-bg);
}

.projectContainer {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 3rem;
  padding: 2rem;
}

.card {
  width: 25rem;
  transition: 0.4s ease;
}
.card:hover {
  transform: scale(1.02);
}

.cardHeader {
  position: relative;
}

.cardImg {
  width: 25rem;
  height: 25rem;
  border-radius: 1.25rem 1.25rem 0 0;
  border: 0.5rem solid var(--color-border);
  overflow: hidden;
  position: relative;
}

.cardImg img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.linkGroup {
  width: 13rem;
  height: 3.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  position: absolute;
  right: 0;
  bottom: 0;
  background-color: var(--color-bg);
  border-top: 0.5rem solid var(--color-border);
  border-left: 0.5rem solid var(--color-border);
  border-right: 0.2rem solid var(--color-border);
  border-radius: 1rem 0 0 0;
}

.linkGroup::after,
.linkGroup::before {
  width: 1.125rem;
  height: 1.125rem;
  content: "";
  position: absolute;
}

.linkGroup::after {
  background-color: transparent;
  bottom: 0;
  left: -1.125rem;
  border-bottom-right-radius: 0.6rem;
  box-shadow: 0.375rem 0.375rem var(--color-bg);
}
.linkGroup::before {
  background-color: transparent;
  bottom: 0.5rem;
  left: -1.6rem;
  border-bottom-right-radius: 0.4rem;
  box-shadow: 0.375rem 0.375rem var(--color-border);
}

.linkGroup a {
  width: 100%;
  height: 100%;
  cursor: pointer;
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 700;
  color: #fff;
  background-color: var(--color-bg);
  border-radius: 1rem;
}

a.visited {
  color: var(--color-border);
}
.linkGroup a:hover {
  color: tomato;
}
.linkGroup a:active {
  transform: scale(0.95);
}
.projectInfo {
  padding: 1rem;
  border: 2px solid var(--color-border);
  border-top: 0;
  border-radius: 0 0 1.25rem 1.25rem;
  height: 15rem;
  overflow: hidden;
}
.projectInfo h2 {
  font-size: 1.6rem;
  color: #fff;
}
.projectInfo p {
  text-align: justify;
  font-size: 1.4rem;
  color: #547792;
  font-weight: 500;
}
