*{
    margin:0;
    padding:0;
}
body{
    background-color: #000;
    color: #fff;
    font-family: system-ui;
}
body.dark-mode {
  background-color: #000;
  color: #fff;
}
body.light-mode {
  background-color: #fff;
  color: #000;
}

body.light-mode input,
body.light-mode button,
body.light-mode table,
body.light-mode #add,
body.light-mode #sell {
  background-color: #eee;
  color: #000;
}
body.light-mode p{
    color: #000;
    text-shadow: 0px 0px 12px rgb(173, 173, 173);
}

body.light-mode .input {
  background: #fff;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

body.light-mode .Total {
  background-color: #ffd2d2;
}


body.light-mode #toggleMode {
  background-color: #ddd;
  color: #000;
}
.total-light {
  background: #ddd !important;
}

.header h1,p{
    color: #b90000;
    text-shadow: 0px 0px 12px rgb(199 0 0);
    font-size: 30px;
    font-weight: 700;
}
.crud{
    width: 80%;
    margin: auto;
}
.crud .header{
    text-align: center;
    text-transform: uppercase;
    margin: 10px 0px;
}
.input {
    width: 25rem;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: #000000;
    padding: 20px;
    border-radius: 10px;
    z-index: -1;
    opacity: 0;
    transition: 0.5s;
    box-shadow: 0 0 15px rgba(218, 218, 218, 0.6);
}

#toBlur{
    transition: 0.5s;
}
input{
    width: 100%;
    height: 30px;
    outline: none;
    border: none;
    background-color: #111;
    margin: 4px 0px;
    border-radius: 4px;
    padding: 4px;
    color: #fff;
    transition: 0.5s;
    z-index: 20;
}

input:focus{
    background-color: #202020;
    transform: scale(1.09);
}
.price input{
    width: 20%;
}
.Total{
    background-color: #961010;
    padding: 5px 2px;
    border-radius: 4px;
}
.Total::before{
    content: 'Total: ';
}
#add , #sell{
    width: 49%;
    text-align: center;
    height: 30px;
    border: none;
    cursor: pointer;
    background-color:#3e3e3e;
    color: #fff;
    border-radius: 20px;
    transition: 0.5s;
    margin-left: 6px;
}
#sell:hover{
    background-color:#2e2e2e;
    letter-spacing: 1px;
}
#add:hover{
    background-color:#2e2e2e;
    letter-spacing: 1px;
}
button{
    width: 100%;
    text-align: center;
    height: 30px;
    border: none;
    cursor: pointer;
    background-color:#3e3e3e;
    color: #fff;
    border-radius: 20px;
    transition: 0.5s;
    margin-bottom: 12px;

}
button:hover{
    background-color:#2e2e2e;
    letter-spacing: 1px;
}
#toggleMode {
  background-color: #444;
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  z-index: 999;
  border: none;
  cursor: pointer;
  width: 175px;
}
.btnSearch{
    display: flex;
    justify-content: space-between;
}
.btnSearch button{
    width: 45%;
}
table{
    width: 100%;
    text-align: center;
    margin: 10px 0;
}
table th{
    text-transform: uppercase;
}
th ,th,td{
    padding: 5px;
}
#deleteAll{
    margin: 20px 0;
}

/* drop search */
.drop {
    all: unset;
    display: none;
    list-style: none;
    width: 100%;
    max-height: 150px;
    overflow-y: auto;
    padding: 0.5rem;
    margin-top: 1rem;
}
.drop.active {
    display: block;
}
.drop li {
    display: block;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.5s;
    padding: 0.5rem;
}

.drop li:hover {
    background-color: #1f1f1fbb;
    transform: scale(1.04);   
}
.output{
    transition: 0.5s;
}
.output.hide{
    display: none;
}

@media (max-width: 1037px){
    #add , #sell{
        width: 100%;
        margin-left: 0px;
    }
    .input{
        width: 17rem;
    }
    .responsivetable{
        width: 100%;
        overflow: scroll;
    }
    h1{
        font-size: 26px !important;
    }
}