#elements-container, #all-levels-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: calc(100svh - 287px);
    justify-content: center;
    margin-top: 80px;
    margin-bottom: 175px;

    h4 {
        color: var(--texto-70);
        text-align: center;
    }

    .invertido & {
      display: flex;
      flex-direction: column-reverse;
      align-items: center;
      min-height: calc(100svh - 176px);
      justify-content: flex-start;
      margin-top: 80px;
      margin-bottom: 64px;
    }
}


#inputs-container {
    position: fixed;
    width: 100%;
    min-height: 168px;
    left: 0;
    bottom: 0px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding-bottom: 20px;
    background: linear-gradient(0deg, white, transparent);
    justify-content: flex-end;
    pointer-events: none;

    .invertido & {
      min-height: 80px;
    }
    /*left: 50%;
    transform: translate(-50%, 0px);*/
}

#inputs {
    display: flex;
    gap: 12px;
    background: rgb(255 208 227 / 25%);
    backdrop-filter: blur(4px);
    padding: 8px;
    border-radius: 8px;
    pointer-events: all;

    .invertido & {
      position: fixed;
      top: 16px;
    }
}

.input {
  background: #fff;
  width: 56px;
  height: 56px;
  border-radius: 8px;
  pointer-events: all;

  img {
    width: 44px;
    padding: 6px;
  }
}

#btn-combinar {
  padding: 1rem;
  border-radius: 0.75rem;
  font-size: 1.25em;
  width: 225px;
  color: #fff;
  border: none;
  cursor: pointer;
  position: relative;
  z-index: 1;
  text-decoration: none;
  text-align: center;
  transition: all 0.5s ease-in-out;
  background: var(--cor1);
  filter: saturate(1) brightness(1);
  box-shadow: 0px 4px 0 #ac0248;
  pointer-events: all;
}

#inputs-container.invalido #btn-combinar {
  background: #ff0022;
}

#inputs-container.descoberto #btn-combinar {
  filter: saturate(1.25) brightness(1.25);
}

/*#inputs-container.invalido #btn-combinar::before {
  display: none;
}*/

#inputs-container.valido #btn-combinar {
  background: linear-gradient(90deg, #ff5e00, #ff8800, #ffaf37, #ff5e00);
  background-size: 400%;
  animation: ani 8s linear infinite;
}

#inputs-container.valido #btn-combinar::before {
  content: "";
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  z-index: -1;
  background: linear-gradient(90deg, #ff5e00, #ff8800, #ffaf37, #ff5e00);
  background-size: 400%;
  border-radius: 1rem; 
  transition: 1s;
  filter: blur(12px);
  opacity: 0.5;
}

@keyframes ani {
  0% {
    background-position: 0%;
  }

  100% {
    background-position: 400%;
  }
}

#numero-descobertos {
    position: fixed;
    top: 20px;
    left: 50%;
    z-index: 10;
    transform: translate(-50%, 0px);
    background: var(--cor1);
    padding: 4px 8px;
    border-radius: 8px;
    color: #fff;
    font-size: 1.1em;

    .invertido & {
      top: 16px;
      left: 16px;
      transform: unset;
      background: var(--cor1);
      padding: 2px 4px;
      border-radius: 8px;
      color: #fff;
      font-size: 0.85em;
    }
}

.level-container {
    display: grid;
    gap: 12px;
    margin-bottom: 24px;
}

.container {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;

    .invertido & {
      flex-wrap: wrap-reverse;
    }
}

.element {
    width: 62px;
    height: 62px;
    border-radius: 0.5em;
    background: #fcf1fa;
    border: 2px solid #faf4f9;
    transition: 0.5s;
    cursor: pointer;

    img {
        width: 54px;
        height: 54px;
        padding: 4px;
        opacity: 0.12;
        filter: saturate(0) contrast(0);
    }

    &.selecionado {
        border-color: var(--cor2);
    }

    &.ativo {
        background: #faf4f9;

        img {
            opacity: 1;
            filter: saturate(1.25);
        }
    }
}  


/* versao flutuante*/
/*#elemento-descoberto-container {
    position: fixed;
    width: 150px;
    top: 84px;
    z-index: 50;
    left: 50%;
    transform: translate(-50%, 0px);
    padding: 12px;
    background: #fff3f8;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 4px solid var(--cor1);

    span {
        position: absolute;
        padding: 4px 8px;
        background: var(--cor1);
        border-radius: 6px 6px 0px 0px;
        color: #fff;
        top: -28px;
    }

    h4 {
        margin-top: 8px;
        color: var(--texto-95);
        font-size: 1.1em;
    }

    img {
        width: 96px;
    }
}*/

#elemento-descoberto-container {
    position: fixed;
    min-width: 200px;
    top: -200px;
    z-index: 50;
    left: 50%;
    transform: translate(-50%, 0px);
    padding: 12px;
    background: #fff3f8;
    border-radius: 16px;
    display: flex;
    flex-direction: row;
    align-items: center;
    border: 2px solid var(--cor1);
    gap: 12px;
    box-shadow: 0px 0px 30px 0px #ffbad5;
    transition: all 0.5s ease-in-out;
    opacity: 0;

    &.ativo {
        top: 20px;
        opacity: 1;
    }

    span {
        font-size: 0.75em;
    }

    h4 {
        margin-top: 2px;
        color: var(--texto-95);
        font-size: 1.1em;
    }

    img {
        width: 48px;
    }
}

#elemento-dica-container {
    position: fixed;
    min-width: 250px;
    top: -200px;
    z-index: 50;
    left: 50%;
    transform: translate(-50%, 0px);
    padding: 12px;
    background: #fff3f8;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--cor1);
    gap: 12px;
    box-shadow: 0px 0px 30px 0px #ffbad5;
    transition: all 0.5s ease-in-out;
    opacity: 0;

    &.ativo {
        top: 20px;
        opacity: 1;
    }

    img {
        width: 72px;
        opacity: 0.12;
        filter: saturate(0) contrast(0);
    }

    #dica-especial {
      display: none;
      color: #ff5e00;

      &.ativo {
        display: block;
      }

      b {
        color: #e1045c;
        /* text-shadow: 0px 1px #9b0845; */
        font-weight: 400;
      }
    }
}

#avaliar-jogo-container {
    position: fixed;
    width: 100%;
    left: 0;
    bottom: -500px;
    z-index: 50;
    padding: 20px;
    background: #fff3f8;
    border-radius: 16px 16px 0px 0px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-top: 2px solid var(--cor1);
    gap: 12px;
    box-shadow: 0px 0px 30px 0px #ffbad5;
    transition: all 0.5s ease-in-out;
    opacity: 0;
    box-sizing: border-box;

    &.ativo {
        bottom: 0px;
        opacity: 1;
    }

    img {
        width: 72px;
    }
}

#ui-top {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10;
    width: 100%;
    height: 60px;
    background: linear-gradient(180deg, white 0%, transparent);
    backdrop-filter: blur(0px);
}

#last-selected-element-name {
  font-size: 0.8em;
  line-height: 1.2rem;
  color: #fe5e9d;
  background: #fff;
  padding: 2px 8px;
  border-radius: 6px;
  display: inline-block;
  z-index: 0;
  margin-bottom: -4px;

  &:empty {
    display: none;
  }

  .invertido & {
    position: fixed;
    top: 96px;
    z-index: 10;
  }
}

#novo-nivel-screen {
    position: fixed;
    top: 0;
    z-index: 100;
    width: 100%;
    height: 100svh;
    background: rgb(255 255 255 / 75%);
    backdrop-filter: blur(8px);
    display: grid;
    align-items: center;
    justify-items: center;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;

    &.ativo {
      opacity: 1;
      pointer-events: all;
    }
}

#welcome-screen {
    position: fixed;
    top: 0;
    z-index: 100;
    width: 100%;
    height: 100svh;
    background: rgb(255 255 255 / 75%);
    backdrop-filter: blur(8px);
    display: grid;
    align-items: center;
    justify-items: center;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;

    &.ativo {
      opacity: 1;
      pointer-events: all;
    }
}

#thank-you-screen {
    position: fixed;
    top: 0;
    z-index: 999;
    width: 100%;
    height: 100svh;
    background: rgb(255 255 255 / 75%);
    backdrop-filter: blur(8px);
    display: grid;
    align-items: center;
    justify-items: center;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;

    &.ativo {
      opacity: 1;
      pointer-events: all;
    }
}

#novo-nivel-container, #welcome-container, #thank-you-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 2px solid var(--cor1);
    gap: 12px;
    box-shadow: 0px 0px 30px 0px #ffbad5;
    transition: all 0.5s ease-in-out;
    width: 75%;
    max-width: 360px;
    padding: 20px;
    border-radius: 16px;
    background: #fff;

    p {
      color: var(--texto-70);
    }
}

#nivel-icone {
  max-width: 175px; 
}

#last-select-element-description {
    font-size: 0.75em;
    line-height: 1rem;
    color: #8b8b8b;
    background: #ffffff;
    padding: 2px 8px;
    border-radius: 6px;
    display: inline-block;
    text-align: center;
    z-index: 0;
    top: 12px;
    position: fixed;

    .invertido & {
      display: none;
    }
}