* {
  margin: 0;
  padding: 0;
}

button,
input {
  padding: 0 1em;
  height: 2em;
}

.xx {
  text-align: center;
  font-size: 40px;
}

.add-input {
  width: 100%;
  box-sizing: border-box;
}

.btns {
  button {
    background: inherit;
    border: none;
    outline: none;
    &:hover {
      background: red;
    }
    &.current {
      background: pink;
    }
  }
}

.main {
  max-width: 600px;
  margin: 0 auto;
}

.todo-item {
  padding: 10px;
  transition: background 0.3s;
  &:hover {
    background: #69a3d8;
    color: #fff;
  }

  .item-text {
    flex: 1;
  }
}

.transition-up {
  animation: up 0.3s both;
  transform: translateY(50%);

  @keyframes up {
    from {
      transform: translateY(50px);
    }
    to {
      opacity: 1;
      transform: translateY(0%);
    }
  }
}

:global {
  input {
    border: 1px solid #000;
    height: 2em;
  }
  
  .flex {
    display: flex;
  }
  .xxx {
    animation: leave 0.3s both;
  }
  @keyframes :global(leave) {
    from {
      transform: translateX(0);
    }
    to {
      opacity: 1;
      transform: translateX(100%);
    }
  }

  .title {
    border-radius: 10px;
  }
}
