*,
*::after,
*::before {
  box-sizing: border-box;
  font-family: "Overpass", sans-serif;
}
body {
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  background: #f6f6f6;
}

body .container {
  header {
    h1 {
      color: #212529;
    }
  }
}

.container {
  width: 90%;
  max-width: 600px;
}
.container .form {
  background-color: #e9ecef;
  opacity: 1;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  margin: 0% auto;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #212529;
  border: 1px solid #ced4da;
  appearance: none;
  border-radius: 0.25rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  position: relative;
  textarea {
    margin: 0;
    font-family: inherit;
    resize: vertical;
    display: block;
    width: 100%;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    appearance: none;
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    min-height: calc(1.5em + 0.75rem + 2px);
    padding: 1rem 0.75rem;
    height: 180px;
    margin-top: 0px;
    margin-bottom: 0px;
    outline: none;
  }
  label {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    padding: 2rem 2rem;
    pointer-events: none;
    border: 1px solid transparent;
    transform-origin: 0 0;
    transition: opacity 0.1s ease-in-out, transform 0.1s ease-in-out;
    opacity: 0.75;
  }
  textarea:focus ~ label,
  textarea:not(:placeholder-shown) ~ label {
    opacity: 0.65;
    transform: scale(0.85) translateY(-0.2rem) translateX(0.15rem);
  }

  textarea:focus,
  textarea:not(:placeholder-shown) {
    padding-top: 1.85rem;
    padding-bottom: 0.625rem;
  }
  button {
    font-family: inherit;
    font-weight: 400;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    user-select: none;
    border: 1px solid transparent;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    border-radius: 0.25rem;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out,
      border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    color: #fff;
    background-color: #0d6efd;
    border-color: #0d6efd;
    margin-top: 1rem !important;
    cursor: pointer;
    &:hover {
      background-color: #0b5ed7;
      border-color: #0a58ca;
    }
  }
}

// Lists

body .container .textContent {
  margin-bottom: 3rem;
  ul {
    display: flex;
    flex-direction: column;
    padding-left: 0;
    margin-bottom: 0;
    border-radius: 0.25rem;
    list-style: none;

    li {
      color: #212529;
      text-decoration: none;
      background-color: #fff;
      border: 1px solid rgba(0, 0, 0, 0.125);
      padding: 1.5rem;
      position: relative;
      overflow: hidden;
      code {
        background-color: rgb(219, 229, 230);
        font-family: monospace;
        font-size: 90%;
        padding: 0.15rem 0.5rem;
        color: rgb(28, 32, 34);
        border-radius: 0.25rem;
        white-space: nowrap;
      }
      p {
        margin: 0%;
      }
      &:first-child {
        border-top-right-radius: inherit;
        border-top-left-radius: inherit;
      }
      &:last-child {
        border-bottom-right-radius: inherit;
        border-bottom-left-radius: inherit;
      }

      .content {
        img {
          width: 70%;
          display: block;
          margin-top: 1rem;
          margin-bottom: 1rem;
        }
      }

      &.editing {
        background: #e9ecef;
        &::after {
          clip-path: circle(100% at 50% 50%);
        }
      }
      &::after {
        position: absolute;
        content: "This list is on editing";
        color: rgb(202, 202, 202);
        background-color: #56595c;
        padding: 0.3rem 0.8rem;
        border-radius: 0 0 0.25rem 0.25rem;
        top: 0%;
        left: 50%;
        transform: translateX(-50%);
        font-size: 0.9rem;
        transition: 400ms ease;
        clip-path: circle(0% at 50% 50%);
      }
    }
    .editWrapper {
      width: 100%;
      display: flex;
      align-items: flex-end;
      justify-content: flex-end;
      button {
        border: none;
        outline: none;
        background-color: transparent;
        cursor: pointer;
        opacity: 0.75;
        height: 3rem;
        width: 3rem;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        &:hover {
          background-color: #21252936;
          &::after {
            clip-path: circle(100% at 50% 50%);
          }
        }
        &::after {
          position: absolute;
          content: "Edit";
          color: rgb(202, 202, 202);
          background-color: #212529;
          padding: 0.3rem 0.6rem;
          border-radius: 0.25rem;
          top: -50%;
          font-size: 0.9rem;

          clip-path: circle(0% at 50% 50%);
          transition: 300ms ease;
        }
      }
      img {
        width: 1.2rem;
        pointer-events: none;
      }
    }
  }
}

@keyframes editModeAnimation {
  from {
    top: -30%;
  }
}
