@value breakpoints: "../../variables/breakpoints.css";
@value mobile from breakpoints;
@value colors: "../../variables/colors.css";
@value white from colors;
@value dark from colors;
@value black from colors;
@value cm_grey_75 from colors;
@value medium from colors;
@value light from colors;
@value brand from colors;

.rightArrow {
  position: flex;
  padding: 9px;
  cursor: pointer;
  opacity: 1;
  user-select: none;
  text-align: right;
  color: dark;
}

.card {
  margin: 5px;
}

.opponentCard {
  flex: 1 1 350px;
  height: 80px;
  background-color: white;
  box-shadow: 0 0 4px 1px rgba(0,0,0,0.10);
  border-radius: 3px;
  padding: 20px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.opponentCard .name {
  font-family: 'Gilroy';
  font-size: 15px;
  font-weight: 700;
  color: black;
  flex-grow: 1;
}


.opponentCard .rightArrow {
  margin-left: 20px;
}

.avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  background-color: light;
  margin-right: 20px;
  flex-shrink: 0;
}

.avatar img {
  width: 100%;
  height: auto;
}


.random {
  color: medium;
}

.alreadyEngaged.name,
.random .name {
  color: medium;
}

.random .avatar {
  background-color: brand;
  display: flex;
  align-items: center;
  justify-content: center;
}

.random .avatar:before {
  content: '?';
  font-family: 'Gilroy';
  font-size: 32px;
  font-weight: 600;
  color: white;
  text-align: center;
}

.random .avatar img {
  display: none;
}

.opponentCard:hover {
  background-color: cm_grey_75;
}

.informationIcon {
  color: cm_grey_500;
}

.tooltipIconContainer {
  display: flex;
  justify-content: flex-end;
  border: none;
  background: transparent;
  height: 25px;
  align-items: center;
}

.toolTipWrapper {
  position: absolute;
  width: 100%;
}

.card .tooltipIconContainer + .toolTipWrapper [class*="__react_component_tooltip"]:not([class*="toolTipReact"]) {
  position: sticky;
  top: unset !important;
  left: unset !important;
  max-width: 75%;
}

@media mobile {
  .opponentCard {
    width: 100%;
    padding: 10px;
  }

  .opponentCard .avatar {
    margin-right: 10px;
  }

  .opponentCard .rightArrow {
    margin-left: 10px;
  }

  .card {
    margin: 0 0 10px;
  }
}

