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

body {
    width: 100%;
    min-height: 100vh;
    background: linear-gradient(135deg, #153677, #4e085f);
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    direction: rtl;
    font-family: Rubik;
}

.container {
    width: 100%;
    max-width: 540px;
    background-color: #fff;
    padding: 40px 30px 40px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: left;
    gap: 2rem;
}

h1 {
    font-family: Lalezar;
    letter-spacing: 2px;
}

.additem {
        display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #edeef0;
    border-radius: 30px;
    margin-bottom: 10px;
}


.addinput {
    width: 100%;
    border: none;
    outline: none;
    background-color: transparent;
    padding: 10px;
    padding-right: 20px;
    border-radius: 30px;
    font-size: 14px;
    padding-left: 20px;
    font-family: Rubik;
}

.addbtn{
    font-family: Rubik;
    border: none;
    cursor: pointer;
    outline: none;
    padding: 15px 20px;
    border-radius: 30px;
    background-color: #ff5945;
    color: #fff;
    font-size: 14px;
    transition: all .25s ease;
}
.addbtn:hover{
    filter: brightness(.8);
}

@media screen and (max-width: 350px) {
    .addbtn{
        padding: 20px;
        border-radius: 0 30px 30px 0;
    }
}

.listform{
    display: flex;
    flex-direction: column;
    
}

ul {
    list-style: none;
    padding: 0;
}

li {
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    padding-bottom: 3px;
    border-bottom: 0.5px solid #ff5945;
}

.exit {
    display: block;
    margin-top: 20px;
    text-align: center;
    color: #391968;
    text-decoration: none;
    font-weight: bold;
}

.listitem{
    margin-right:5px;
    font-size: 14px;
    margin-right: 2%;
    margin-left: 2%;
}

.checkinput[type="checkbox"] {
  position: relative;
  top: 8px;
  width: 15px;
  height: 15px;
  -webkit-appearance: none;
  outline: none;
  transition: 0.5s;
}

.checkinput[type="checkbox"]:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 3px solid #262626;
  box-sizing: border-box;
  transition: 0.5s;
}

.checkinput:checked[type="checkbox"]:before {
  border-left: none;
  border-top: none;
  width: 8px;
  border-color: #ff5945;
  transform: rotate(45deg) translate(5px, -10px);
}


.edit-svgIcon {
  width: 15px;
  transition-duration: 0.3s;
  margin-right:10px;
}

.edit-svgIcon path {
  fill: #ff5945;
}

.delete-svgIcon {
  width: 15px;
    margin-right:10px;
  transition-duration: 0.3s;
}

.delete-svgIcon path {
  fill: #ff5945;
}

.submit{
    font-family: Rubik;
    border: none;
    cursor: pointer;
    outline: none;
    padding: 15px 70px;
    border-radius: 30px;
    background-color: #ff5945;
    color: #fff;
    font-size: 14px;
    transition: all .25s ease;
    margin-top:30px;
    margin-right:auto;
        margin-left:auto;
}.submit:hover{
    filter: brightness(.8);
}

p{
    font-size:10px;
    color: #484848;
}

nav{
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-around;
    /*background-color: #edeef0;*/
    border-radius: 30px;
    margin-bottom: 10px;
    flex-direction: column;
}

.navform{
      border: none;
      border-bottom:none;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    /*background-color: #edeef0;*/
    border-radius: 30px;
}


.search{
        background-color: #edeef0;
    text-align: center;
  padding: 10px;
  width: 120px;
  border: none;
  outline: none;
    border-radius: 30px;
    font-size: 14px;
  transition: width 0.5s;
    font-family: Rubik;
    
}

.search:focus {
        text-align: right;
        padding-right: 20px;
        border-radius: 0px 30px 30px 0px;
        width: 70%;
}

.search::placeholder {
  color: black;
}

.search_icon {
  width: 15px;
}

.search_icon path {
  fill: #ff5945;
}

.searchbtn {
    border: none;
    display: none;
}


/* زمانی که input در focus است */
.search:focus + .searchbtn {
        padding:10px;
background-color: #edeef0;
  display: inline-block;
          border-radius: 30px 0px 0px 30px;
}
