*{
    margin: 0;
    padding: 0;
}
body{
    background-color: #fefae0;
    display: flex;
    justify-content: center;
}
.container{
    margin-top: 5rem;
    background-color: #fff;
    /* border: 1px solid rgba(0,0,0,0.5); */
    box-shadow: 0px 0px 20px rgba(0,0,0,0.1);
    border-radius: 10px;
    padding: 0rem 2rem 2rem 2rem;
    height: 70vh;
    width: 50vh;
}

h2{
    text-align: center;
    margin-top: 10px;
    
}
.top-bar{
   /* border: 1px solid; */
   margin-top: 2rem;
   width: 100%;
   display: flex;
   justify-content: end;
}
.btn-container{
    margin-right: 30px;
  width: 32%;
 /* border: 1px solid; */
 display: flex;
 justify-content: space-between ;
}
/* button{
    height: 2rem;
    width: 3.5rem;
    border: none;
    border-radius: 5px;
    font-weight: bolder;
    
} */
#add{
    height: 2rem;
    width: 3.5rem;
    border: none;
    border-radius: 5px;
    font-weight: bolder;
    
    background-color: #70e000;
}
#add:active{
  transform: scale(0.9);
}
#clear{
    background-color: #f3de2c;
    height: 2rem;
    width: 3.5rem;
    border: none;
    border-radius: 5px;
    font-weight: bolder;
}
#clear:active{
  transform: scale(0.9);
}
.main {
    margin-top: 1rem;
  max-height: 53vh;  
  overflow-y: auto;       
  margin-top: 1rem;
  padding-right: 5px;     
}
.main::-webkit-scrollbar {
  width: 6px;
}
.main::-webkit-scrollbar-thumb {
  background-color: rgba(0,0,0,0.2);
  border-radius: 10px;
}
.cross-btn{
   background: url(cross.png) center/cover no-repeat;
   width:25px ;
    height:25px;
   border-radius: 50%;
  position: absolute;
  right: 0;
   /* display: none; */
   opacity: 0;
   /* background-color: #70e000; */
    border:none;
   
}
li:hover .cross-btn{
  /* display: block; */
  
    opacity: 1;
    border: none;
  
}
li{margin-top: 1rem;
    min-height: 2rem;
    list-style: none;
    border: 1px solid rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    position: relative;
}
.text{
    width:85% ;
   height: 2rem;
   border: none;
   padding-left: 10px;
   /* background-color: #70e000; */
}
.text:focus + .cross-btn{
   
    opacity: 1;
    border: none;
  
}
.text:focus{
   outline: none;
}
.check-box{
     appearance: none;          /* removes default OS styling */
  -webkit-appearance: none;  /* for Safari/Chrome */
  -moz-appearance: none;
    width:20px ;
    height:20px;
    border-radius: 50%;
    /* border: 1px solid; */
    background-color: lightgray;
    margin-left: 5px;
}
.check-box:checked{
    background: url(tick.png) center/ cover no-repeat;
}
.pop-up{
    position: absolute;
    border: 1px solid rgba(0,0,0,0.1);
    padding: 3rem 4rem 2rem;
    color: #e5383b;
    background-color: #caf0f8;
    border-radius: 10px;
    margin-top: 40vh;
    display: flex;
    flex-direction: column;
   
    align-items: center;
    animation: scaleUp 0.3s;
    z-index: 2;
}
.hidden{
    display: none;
    
}
/* .scaleOut{
    animation: scaleIn 3s ; */

#okay{
    margin-top: 1rem;
    height: 2rem;
    width: 4rem;
    background-color: #70e000;
}
#okay:active{
    transform: scaleX(0.9);
}
.overlay{
  min-height: 100vh;
  min-width: 100vh;
  /* background-color: #70e000; */
  z-index: 1;
  position: absolute;

}

@keyframes scaleUp {
 20% {
    transform: scale(0.5);
    opacity: 2;
  }
   50% {
    transform: scale(0.7);
    opacity: 1;
  }
   70% {
    transform: scale(1);
    opacity: 1;
  }
  90% {
    transform: scale(1.1);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}
 
@media (max-width: 768px) {
  .container {
    margin-top: 2vh;
    max-width: 80%;
    min-height: 80vh;
    padding: 1rem;
  }

  h2 {
    font-size: 1.2rem;
  }

  .btn-container {
    width: 100%;
    margin-right: 0;
    justify-content: space-around;
  }
}
