:root {
  --color1: #aad8cf;
  --color2: #d2c0df;
  --color3: #ef7d42;
  --background: linear-gradient(
    -45deg,
    rgb(168, 221, 208) 0%,
    rgb(215, 194, 247) 100%
  );
}

* {
  font-family: Futura, Regular;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  margin: 0;
}

a {
  text-decoration-line: none;
}

i:hover, a:hover {
  color: #06a592;
}

#background {
  background: var(--background);
  height: 100%;
  width: 100%;
  margin: 0;
  opacity: 100%;
  position: absolute;
  overflow: hidden;
}

#main-infos {
  display: flex;
  justify-content: center;
  gap: 5vw;
  padding-top: 70px;
}

.flex-container {
  display: flex;
  justify-content: center;
}

#info {
  position: relative;
}

#name {
  font-size: 1.5em;
  font-weight: bold;
  color: #ffffff;
  margin-bottom: 10px; /* Reduced space below the name */
  margin-top: 20px; /* Additional space below the profile picture */
}

#position {
  color: #ffffff;
  letter-spacing: 0.25em;
  margin-top: 0; /* Adjust as necessary */
}

#enterprise {
  margin-top: 0;
  color: #ffffff;
}

#addContact,
#profilPic {
  justify-content: center;
  display: flex;
  position: relative;
}

#profilPic > img {
  border-radius: 50%;
  max-width: 20vw;
  height: auto;
}

#profilPic {
  margin-top: 0;
}

#addContact {
  margin: 20px auto 0;
  height: auto;
  width: auto;
  max-width: 50%;
  padding: 20px 25px;
  background-color: #06a592;
  color: white;
  align-items: center;
  border-radius: 8px;
  cursor: pointer;
  border: 4px solid var(--color3);
}

#addContact:hover {
  background-color: white;
  color: var(--color2);
  border-color: var(--color2);
}

#addContact:active {
  background-color: var(--background);
}

#contact div {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

#contact {
  display: flex;
  justify-content: center;
  margin-top: 1em;
}

#contact > a {
  padding: 20px;
}

#organisation {
  position: relative;
  max-width: 25vw;
  height: auto;
}

#organisation > img {
  height: auto;
  max-width: 100%;
}

@media (orientation: portrait) {
  body {
    font-size: 4vw;
  }

  #main-infos {
    padding: 10%;
  }

  #info {
    position: absolute;
    padding-top: 40vh;
  }

  #organisation {
    max-width: 50vw;
    position: absolute;
    transform: none;
  }

  #profilPic {
    padding-top: 18vh;
  }

  #profilPic > img {
    max-width: 40vw;
  }

  #name,
  #position,
  #enterprise {
    text-align: center;
  }

  #contact {
    position: absolute;
    bottom: 0;
    width: 100%;
  }

  #contact div {
    margin: 20px 0;
    font-size: 1.5em;
  }

  #addContact {
    position: absolute;
    bottom: 15vh;
  }
}

@media (orientation: landscape) {
  body {
    font-size: 1.5vw;
  }

  #organisation {
    position: relative;
    padding-top: 5%;
  }

  #contact div {
    font-size: 2em;
  }
}
