@use "../../../../styles/mixins";

.modalDialog :global(.modal-dialog) {
  overflow: hidden;
}

.content {
  overflow: hidden !important;
  display: flex;
  flex-direction: column;
  padding: 0 !important;
}

.main {
  overflow-y: scroll;
  display: flex;
  flex-direction: column;
  align-items: center;

  height: 100%;
}

.headerInfo {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo {
  width: 6.25rem;
  height: 6.25rem;
  min-height: 6.25rem;
  margin: 1rem;
}

.logoBackground {
  position: absolute;
  top: 0.75rem;
  left: 50%;
  transform: translateX(-50%);

  height: 8rem;
}

.description {
  margin-bottom: 1rem;
  margin-inline: 0.5rem;
  text-align: center;
  text-wrap: balance;
}

.section {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0.5rem;

  @include mixins.adapt-padding-to-scrollbar(0.5rem);
}

.header {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;

  display: flex;
  align-items: center;

  width: 100%;
  height: 3.5rem;
  padding: 0.5rem;
  border-bottom: 0.0625rem solid var(--color-borders);

  background: var(--color-background);

  transition: 0.25s ease-out transform;
}

.starHeaderText {
  unicode-bidi: plaintext;
  margin: 0 0 0 3.5rem;
  font-size: 1.25rem;
  font-weight: var(--font-weight-medium);
}

.hiddenHeader {
  transform: translateY(-100%);
}

.closeButton {
  position: absolute;
  z-index: 3;
  top: 0.875rem;
  left: 0.875rem;
}

.avatar {
  margin: 2rem;
  margin-bottom: 0.75rem;
}

.center {
  text-align: center;
}

.secondaryInfo {
  margin-top: auto;
  padding: 1rem;

  font-size: 0.875rem;
  color: var(--color-text-secondary);
  text-align: center;
}

@media (max-width: 450px) {
  .modalDialog :global(.modal-dialog) {
    max-width: 100% !important;
  }
}
