* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  height: 100vh;
  width: 100vw;
  font-family: sans-serif;
  display: grid;
  place-content: center;
  background: linear-gradient(45deg, royalblue, rgb(122, 208, 236));
}

.main {
  width: 850px;
  background-color: #e2e2e298;
  height: 450px;
  box-shadow: 10px 10px 20px #000, inset 6px 6px 40px #0009;
  border-radius: 7px;
  border: 2px solid #000;
  padding: 30px 50px;
  overflow: hidden;
  text-shadow: 0px 0px 10px whitesmoke;
  display: flex;
  gap: 50px;

  h1 {
    font-size: 50px;
    text-align: center;
    margin-bottom: 50px;
    font-family: algerian;
  }

  #text {
    width: 340px;
    height: 150px;
    padding: 15px 10px;
    font-size: 17px;
    outline: none;
    border-radius: 5px;
    background-color: aliceblue;
    font-weight: 500;
    resize: none;
  }

  #add {
    width: 300px;
    margin-left: 20px;
    height: 45px;
    font-size: 18px;
    margin-top: 50px;
    border-radius: 30px;
    border: none;
    outline: none;
    background: linear-gradient(45deg, rgb(253, 168, 10), rgb(231, 150, 0));
    box-shadow: 0px 0px 20px #8f8f8f6c;
    transition: 0.2s;

    &:hover {
      transform: scale(1.1);
    }

    &:active {
      transform: scale(0.9);
    }
  }

  ul {
    /* background-color: aqua; */
    box-shadow: 0px 0px 10px #000;
    border-radius: 5px;
    margin-top: 15px;
    width: 350px;
    height: 350px;
    margin-left: 10px;
    padding: 20px;
    overflow-y: scroll;
    overflow-x: hidden;

    &::-webkit-scrollbar {
      width: 10px;
      border-radius: 30px;
      background-color: silver;
      /* box-shadow: 0px 0px 10px #000; */
    }

    &::-webkit-scrollbar-thumb {
      background: linear-gradient(180deg, rgb(170, 170, 170), rgb(43, 43, 43));
      border-radius: 15px;
    }
  }

  li {
    width: 300px;
    height: 70px;
    background-color: #6464646c;
    margin-top: 10px;
    list-style: none;
    /* margin-left: 22px; */
    border-radius: 6px;
    font-weight: 700;
    padding: 28px 20px;
    /* text-align: center; */
    overflow-y: scroll;
    overflow-x: hidden;
    position: relative;


    &::-webkit-scrollbar {
      width: 10px;
      border-radius: 30px;
      background-color: silver;
      /* box-shadow: 0px 0px 10px #000; */
    }

    &::-webkit-scrollbar-thumb {
      background: linear-gradient(180deg, rgb(170, 170, 170), rgb(43, 43, 43));
      border-radius: 15px;
    }
  }
}

span{
  font-size: 11px;
  font-weight: 700;
  color: rgb(0, 0, 0);
  text-shadow: 0px 0px 10px #000;
  position: absolute;
  top: 9px;
  user-select: none;
  right: 65px;
}
li > button:nth-child(2) {
  background-color: transparent;
  border: none;
  position: absolute;
  top: 7px;
  right: 40px;
  font-size: 16px;
  user-select: none;

}

li > button:nth-child(3) {
  background-color: transparent;
  border: none;
  position: absolute;
  top: 5px;
  user-select: none;

  right: 15px;
  font-weight: 900;
  font-size: 16px;
}

@media only screen and (max-width: 600px) {
  body {
    height: 100vh;
    width: 100vw;
    font-family: sans-serif;
    display: grid;
    place-content: center;
    background: linear-gradient(45deg, royalblue, rgb(122, 208, 236));
    overflow: hidden;
  }

  .main {
    width: 450px;
    background-color: #e2e2e298;
    height: 500px;
    box-shadow: 10px 10px 20px #000, inset 6px 6px 40px #0009;
    border-radius: 7px;
    border: 2px solid #000;
    padding: 30px 50px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    text-shadow: 0px 0px 10px whitesmoke;

    h1 {
      font-size: 50px;
      text-align: center;
      margin-bottom: 20px;
      font-family: algerian;
    }

    #text {
      width: 340px;
      height: 100px;
      padding: 15px 10px;
      font-size: 17px;
      outline: none;
      border-radius: 5px;
      background-color: aliceblue;
      font-weight: 500;
    }

    #add {
      width: 300px;
      margin-left: 20px;
      height: 45px;
      font-size: 18px;
      margin-top: 20px;
      border-radius: 30px;
      border: none;
      outline: none;
      background: linear-gradient(45deg, rgb(253, 168, 10), rgb(231, 150, 0));
      box-shadow: 0px 0px 20px #8f8f8f6c;
      transition: 0.2s;

      &:hover {
        transform: scale(1.1);
      }

      &:active {
        transform: scale(0.9);
      }
    }

    ul {
      /* background-color: aqua; */
      box-shadow: 0px 0px 10px #000;
      margin-top: -7px;
      width: 330px;
      height: 140px;
      margin-left: 10px;
      padding: 10px;
      overflow-y: scroll;
      overflow-x: hidden;
    }

    li {
      width: 300px;
      height: 70px;
      background-color: #6464646c;
      margin-top: 10px;
      list-style: none;
      border-radius: 6px;
      padding: 27px 20px;
      position: relative;
    }
  }
}

