/* The profile selection UI is **heavily inspired** by Netflix. */

body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 7vw;

  min-height: 100vh;
  padding: 48px 24px 48px 24px;

  font-family: var(--main-font-family);
  background-color: #141414; /* Similar to Netflix's dark background. */
}

.main-title {
  display: flex;
  gap: 20px;
  align-items: center;

  /* Calculated to perfectly hit 2.5rem at a 500px screen width and 4rem at an 1100px screen width,
  using https://www.marcbacon.com/tools/clamp-calculator/ */
  font-size: clamp(2.5rem, 1.25rem + 4vw, 4rem);
}

.main-title h1 {
  font-size: 1em;
  font-weight: 900; /* Black */
  color: white;
}

.main-title svg {
  width: 1.5em;
  height: 1.5em;
  fill: var(--green);
}

.profile-container {
  display: flex;
  align-items: flex-start;
  gap: 50px;
  flex-wrap: wrap;
}

.profile-card {
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.profile-card:hover {
  transform: scale(1.02);
}

.profile-card img {
  /* The following size declarations and the border-radius length have been copied from
  the Netflix website. */
  width: 10vw;
  max-height: 200px;
  max-width: 200px;
  min-height: 84px;
  min-width: 84px;
  border-radius: 4px;
  margin-bottom: 15px;
  background-color: var(--ash); /* Placeholder si pas d'image */
}

.profile-card:hover img {
  /* White outline on hover.
  We use outline and not border so it doesn't take space from the image. */
  outline: 0.3em solid white;
}

.profile-card h2 {
  text-align: center;

  font-size: max(1.3em, 1.5vw);
  font-weight: normal;
  color: grey;
}

.profile-card:hover h2 {
  color: white; /* White text on hover. */
}
