#roles {
  margin-top: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;

  h1 {
    font-size: 32px;
    margin-bottom: 16px;
  }

  .container.role-container {
    height: 0;
    padding: 0;
    border: none;
    opacity: 0;
    width: 100%;

    transform: scale(0);
    transition:
      transform 280ms ease-in-out,
      opacity 280ms ease-in-out;

    &.active,
    &.roll-out {
      display: flex;
      opacity: 1;
      height: auto;
      border: 1px solid #58476f;
      box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.25);
      padding: 24px;
      transform: scale(1);
    }
  }

  dropdown {
    margin-top: 28px;
    margin-bottom: 16px;
  }
}

@media screen and (max-width: 1000px) {
  #roles {
    margin-top: 70px;
  }
}

#roles .row {
  display: flex;
  gap: 16px;
  margin-top: 28px;
  margin-bottom: 16px;
}

#roles .container {
  background: #190233;
  border-radius: 36px;
  border: 1px solid #58476f;
  box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.25);
  padding: 24px;
  margin: 0;
}

#roles .container h3 {
  font-size: 18px;
}

#roles .container .buttons {
  margin-top: 16px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

#roles .container .buttons button {
  height: 100px;
  flex: 0 1 calc(50% - (8px / 2));

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-align: center;

  background: transparent;
  border: 1px solid rgba(88, 71, 111, 0.35);
  border-radius: 24px;
  padding: 16px;
  font-size: 16px;
  font-weight: 400;
  color: #e7d2f2;
  cursor: pointer;

  transition: background-color 120ms ease;
}

#roles .container.item-3 .buttons button {
  flex: 0 1 calc(33% - 10px);
}

#roles .container .buttons button:hover {
  background-color: #5f30e2;
}

#roles .container .buttons button.active {
  background-color: #5f30e277;
}

#roles .container .buttons button icon {
  font-size: 36px;
}

#roles .container:has(p) {
  gap: 24px;
}

#roles .container:has(p) button {
  align-self: flex-end;
}

@media screen and (max-width: 1000px) {
  #roles .container .buttons button {
    height: 80px;
    font-size: 14px;
  }

  #roles .container.item-3 .buttons button {
    flex: 0 1 calc(50% - 4px);
  }

  #roles .container:not(.item-3) .buttons button {
    flex: 1 1 calc(50% - 4px);
  }
}
