.tema {
  display: flex;
  position: relative;

  border-radius: 40px;
  border: 1px solid var(--tema-fundo);
  background-color: var(--tema-fundo);
  color: var(--tema-icon);

  padding: 4px 1.8% 4px 1.8%;
  min-width: 70px;
  min-height: 25px;
  margin-right: 1%;

  cursor: pointer;
}

.tema i {
  font-size: 20px;
  transition: transform 0.55s cubic-bezier(.4,0,.2,1), opacity 0.45s ease;
  will-change: transform, opacity;
}

.tema #claro.active {
   opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%);
}

.tema #escuro{
 transform: translateX(-100%);
  opacity: 0;
}

.tema #escuro.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(50%);
}

.tema #claro{
  transform: translateX(100%);
  opacity: 0;
}

.tema::before {
  content: "";
  border-left: 1px solid var(--nav_branco);
  width: 10px;
  min-height: 23px;
  height: 5vh;
  margin-right: auto;
  position: absolute;
  left: -12px;
  bottom: -10%;
}

@media (max-width: 1090px) {
  .tema::before {
    left: -10px;
  }
}

@media (max-width: 820px) {
  .tema {
    justify-content: center;
    align-items: end;

    min-width: 1.59rem;
    min-height: 1.7rem;
    margin-left: auto;
    margin-right: 10px;
    padding: 0px 15px 3px 15px;

    cursor: pointer;
    border: 0;
    border-radius:50%;
    background-color: var(--skill-card);
  }

  .tema i {
    position: absolute;
    transition: opacity 0.5s;
  }

  .tema i#claro.active,
  .tema i#escuro.active {
    transform: translateX(0px);
    font-size: 20px;
    opacity: 1;
  }

  .tema i#claro,
  .tema i#escuro{
    transform:translateX(0px);
    opacity: 0;
  }

  .tema::before {
    display: none;
  }
}
