/* Viewport da home e layout do SOS. */
.body {
  display: flex;
  flex-direction: column;
  height: 100dvh;
}

.main {
  align-items: center;
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
  margin-top: 9vh;
  position: relative;
  padding: 0;
}

/* Menu inferior expansivel da home. */
.main-menu {
  align-items: center;
  background: linear-gradient(
    to right,
    var(--gradient-dark-purple),
    var(--gradient-light-purple)
  );
  border-radius: 45px 45px 0 0;
  bottom: 0;
  flex-direction: column;

  position: fixed;
  width: 100%;
  height: 21%;
  left: 0;
  right: 0;
  z-index: 990;
  display: flex;
  padding: 30px;
  transition: 400ms;
}

/* Gatilho do menu e estados da seta. */
.menu-button {
  background-color: transparent;
  border: none;
  padding: 0;
  text-transform: uppercase;
  color: var(--text-color-white);
  font-weight: var(--font-weight-bold);
  cursor: pointer;
}

.menu-button-img {
  transition: 300ms;
  transform: rotate(180deg);
}

/* Conteudo do menu e links de banner. */
.main-menu-visibility {
  display: none;
  flex-direction: column;
  height: 100%;
}

.menu-banner-mobile {
  background-color: transparent;
  border: none;
  margin: 30px 0;
  height: 30%;
  width: auto;
  align-self: center;
}

.menu-banner-mobile-img {
  height: 100%;
  width: auto;
}

.menu-banner-desktop {
  display: none;
}

/* Opcoes do menu inicial. */
.container-menu {
  height: 60%;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.menu-options {
  background-color: transparent;
  border: none;
  padding: 0;
  display: flex;
  justify-content: space-between;
  background-color: var(--text-color-white);
  border: 1px solid var(--text-color-white);
  border-radius: 10px;
  padding: 0 14px;
  height: 53px;
  align-items: center;
  font-size: var(--font-size-button-main-menu);
  color: var(--primary-purple-color);
  font-weight: var(--font-weight-medium);
}

.options-div {
  display: flex;
  gap: 10px;
  align-items: center;
}

.rotate-arrow {
  transform: rotate(360deg);
}

.open-menu-text {
  display: none;
}

/* Estados aberto/expandido controlados por JS. */
.show {
  display: flex;
  /* flex-direction: column;
    height: 100%;
    justify-content: center; */
}

.grow {
  height: 85%;
}

@media (min-width: 1024px) {
  .main {
    margin-top: 30px;
  }

  .main-menu {
    width: 74%;
    left: 50%;
    transform: translateX(-50%);
  }

  .open-menu-text {
    font-size: var(--font-size-exit-button-desktop);
  }

  .main-menu-visibility {
    width: 95%;
    height: 100%;
  }

  .menu-banner-mobile {
    display: none;
  }

  .menu-banner-desktop {
    display: block;
    align-self: center;
    margin: 0;
    background-color: transparent;
    border: none;
    padding: 0;
    height: 60%;
  }

  .menu-banner-desktop-img {
    height: 100%;
    width: auto;
  }

  .menu-options {
    margin: 0;
    height: 53px;
  }

  .container-menu {
    height: 60%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 40%;
  }

  .show {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
  }
}

@media (min-width: 1440px) {
  .grow {
    height: 80%;
  }

  .main-menu-visibility {
    width: 100%;
  }

  .menu-banner-desktop {
    height: 60%;
    max-height: 400px;
  }

  .container-menu {
    height: 60%;
    max-height: 400px;
  }
}

/* Comportamento de arraste touch no menu mobile. */
.main-menu.dragging {
  transition: none;
}

.main-menu {
  touch-action: none;
}

#menu-button,
#backgroundSection {
  -webkit-user-select: none;
  user-select: none;
}
