@import url('https://fonts.googleapis.com/css2?family=Poppins&family=Source+Code+Pro&display=swap');



html::-webkit-scrollbar {
    display: none;
}

:root {
    --bg-clr: #e5eef5;
}

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



body {
    overflow: hidden;
    font-family: 'Poppins', sans-serif;
    font-family: 'Source Code Pro', monospace;
    height: 100vh;
    width: 100%;
    background-color: var(--bg-clr);
}

.title {
    font-family: 'Poppins', sans-serif;
    font-family: 'Source Code Pro', monospace;
    font-size: 3rem;
    margin-top: 1.2rem;
}


.frm-container input {
    width: 100%;
    padding: 0.3rem 0.8rem;
    padding: 0.3rem 1rem;
    height: 5vh;
    border-radius: 0;
    font-size: 1rem;
    border: 0;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
    outline: 0;
    background: var(--bg-clr);
}

.frm-container input:focus {
    border: solid 2px rgb(65, 76, 203);
}

.frm-container {
    width: 92%;
    display: flex;
    flex-direction: row;
    gap: 0;
    justify-content: center;
    align-items: center;
}

.frm-container button {
    font-size: 1rem;
    background-color: skyblue;
    color: black;
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    width: 30%;
    height: 5vh;
    color: black;
    text-align: center;
    border: 0px;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
    cursor: pointer;
}


.main-container {
    position: relative;
    margin: auto auto;
    padding: 1rem;
    display: flex;
    background-color: white;
    width: 50vw;
    border-radius: 8px;
    border: 0;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    margin-top: 2rem;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
}

.items {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0 0.2rem;
    width: 97%;
    width: 95%;
    border-radius: .3rem;
    transition: all .1s ease-in;
    /* border: 2px solid red; */
}


.items:hover {
    background-color: var(--bg-clr);
}

.item-name {
    margin-left: 1rem;
}

.btn-container {
    margin-right: 1rem;
}

.btn-container button {
    outline: 0;
    border: 0;
    /* margin : .4rem; */
    background: transparent;
    cursor: pointer;
    padding: .5rem;
}

.submit-btn {
    transition: all .2s ease-in;
}

.delete-btn i {

    font-size: 1.12rem;
    color: red;
    border: 0;
}

.edit-btn i {
    font-size: 1.12rem;
    color: green;
}

.itemlist-container::-webkit-scrollbar-track {
    background: white;
    /* background: var(--bg-clr); */
  }
.itemlist-container::-webkit-scrollbar {
    width: 4px;
  }
.itemlist-container::-webkit-scrollbar-thumb {
    background-color: skyblue;
  }

.itemlist-container {
    padding: .5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: start;
    width: 100%;
    height: 40vh;
    overflow-y: scroll;
    gap: 1rem;
    /* overflow: hidden; */
}


.modeladdmsg {
    position: absolute;
    top: 2%;
    height: auto;
    font-size: .8rem;
    padding: 0.1rem 0.2rem;
    width: 83%;
    background-color: transparent;
    text-align: center;
    display: block;
    visibility: hidden;
    border-radius: 8px;
    transition: all .1s ease-in-out;
}

.success {
    visibility: visible;

    background: #3dc482;
    color: white;
}

.danger {
    visibility: visible;

    background: #ff736f;
    color: white;
}

.clear-items {
    text-align: center;
    width: auto;
    padding: .4rem;
    color: red;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    display: none;
    transition: all .1s ease-in;
    border-radius: .3rem;
    visibility: hidden;
}

.show {
    display: block;
    visibility: visible;
}

.clear-items:hover {
    background-color: var(--bg-clr);
}

.index {
    display: none;
}