src/styles/Contact.module.scss
@import url("https://fonts.googleapis.com/css2?family=DM+Mono&display=swap");

h1.title {
  position: absolute;
  top: 1vw;
  left: 50%;
  transform: translateX(-50%) translateY(50%);
  width: auto;
  height: 35px;
  text-shadow: 0px 0px 18.12px rgba(154, 240, 244, 0.7);

  visibility: hidden;
  opacity: 0;

  @media screen and (max-height: 700px), screen and (max-width: 1100px) {
    top: 5px;
    font-size: 1.3rem;
  }
}

.wrapper {
  opacity: 0;
  visibility: hidden;
  height: fit-content;

  position: absolute;
  top: 25%;
  left: calc(10% + 300px);
  right: 2%;
  z-index: 1;
  scale: 0.8;

  @media screen and (max-height: 700px) {
    top: 15%;
  }
}

.container {
  // border: solid red;
  display: none;
  display: flex;
  flex-wrap: wrap;
  column-gap: 1rem;
  justify-content: center;
  align-items: start;
  width: 100%;
  // height: 60%;
  transform: translateY(3%);


  @media screen and (max-height: 700px) and (min-width: 800px) {
    scale: 0.7;

  }
}

.container :nth-child(even) .imgContainer .frameBar img {
  animation: rotateFrameBar 5s infinite linear;
  animation-delay: 2s;
}

.cardContainer {
  --img: 9rem;
  --dept: 1.25rem;
  --name: 1rem;
  --icons: 1rem;
  --gap: 0.5rem;

  flex: 0 1 calc(20% - 20px);
  // border: solid red 2px;
  color: green;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 160px;
  text-align: center;
  margin: 2px;
  position: relative;
}

.imgContainer {
  margin: 0;
  position: relative;

  img {
    width: 10vw;
    // height: 90%;
    aspect-ratio: 1/1;
  }

  .frameBar {
    position: absolute;
    scale: 1.2;
    top: 4px;
    right: 0px;
    // transform-origin: 50% 50%;

    img {
      animation: rotateFrameBar 5s infinite linear;
    }
  }
}

@keyframes rotateFrameBar {
  0% {
    transform: rotateZ(0deg);
  }
  100% {
    transform: rotateZ(360deg);
  }
}

.dept {
  font-family: "Space Grotesk";
  color: #a2f1ff;
  font-size: var(--dept);
  font-style: normal;
  font-weight: 400;
}

.name {
  font-family: "DM Mono";
  color: white;
  font-size: var(--name);
  font-style: normal;
  font-weight: 500;
  margin: var(--gap);
}

.buttons {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  width: 75%;

  button {
    border: none;
    background: none;
    cursor: pointer;
  }
}

.phone,
.mail {
  img {
    width: var(--icons);
  }
}

@media only screen and (max-width: 1500px) {
  .cardContainer {
    --img: 2rem;
    --dept: 1.2rem;
    --name: 1rem;
    --icons: 1rem;
    --gap: 0.4rem;
  }
}

@media only screen and (max-width: 1250px) {
  .cardContainer {
    --img: 2rem;
    --dept: 1rem;
    --name: 1rem;
    --icons: 1rem;
    --gap: 0.4rem;
  }
}

@media only screen and (max-width: 1100px) {
  .cardContainer {
    --img: 2rem;
    --dept: 1rem;
    --name: 0.9rem;
    --icons: 0.8rem;
    --gap: 0.3rem;
  }

  .imgContainer {
    img {
      width: 14vw;
    }
  }
}

@media only screen and (max-width: 1050px) {
  .cardContainer {
    --img: 2rem;
    --dept: 0.9rem;
    --name: 0.8rem;
    --icons: 0.9rem;
    --gap: 0.3rem;
  }
}

@media only screen and (max-width: 1000px) {
  .cardContainer {
    --img: 2rem;
    --dept: 0.8rem;
    --name: 0.7rem;
    --icons: 0.8rem;
    --gap: 0.4rem;
  }
}

@media only screen and (max-width: 800px) {
  .wrapper {
    top: 90px;
    left: 0;
    right: 0;
  }

  .container {
    display: flex;
    transform: translateY(10%);

  }

  @media only screen and (max-width: 1500px) {
    .cardContainer {
      --img: 2rem;
      --dept: 1.2rem;
      --name: 1rem;
      --icons: 1rem;
      --gap: 0.4rem;
    }
  }

  @media only screen and (max-width: 1250px) {
    .cardContainer {
      --img: 2rem;
      --dept: 1rem;
      --name: 1rem;
      --icons: 1rem;
      --gap: 0.4rem;
    }
  }

  @media only screen and (max-width: 1100px) {
    .cardContainer {
      --img: 2rem;
      --dept: 1rem;
      --name: 0.9rem;
      --icons: 0.8rem;
      --gap: 0.3rem;
    }

    .imgContainer {
      img {
        width: 14vw;
      }
    }
  }

  // @media only screen and (max-height: 750px) {
  //   .wrapper {
  //     scale: 0.8;
  //     top: 20%;
  //     left: calc(5% + 300px);
  //   }
  // }

  .cardContainer {
    width: 40%;
    flex-grow: 1;

    display: flex;
    --img: 1rem;
    --gap: 0.5rem;
    --dept: 1rem;
    --name: 1rem;
    --icons: 1rem;
  }

  .dept {
    padding-inline: 2rem;
  }

  .imgContainer {
    img {
      width: 20vw;
    }
  }
}

@media only screen and (max-width: 800px) {
  .wrapper {
    top: 80px;
    left: 0;
    right: 0;

    pointer-events: none;
  }

  .container {
    width: 100%;
    display: flex;
    align-items: start;
    justify-content: space-evenly;
    height: 100svh;
    overflow-y: scroll;
    overflow-x: hidden;

    padding-bottom: 5rem;

    gap: 1rem;

    pointer-events: all;
  }
}
