*,*::after,*::before{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Gloria Hallelujah", cursive;
}


:root{
    --nav-bg: #53DF94;
    --shop-header: hsl(148, 43%, 36%);
    --list-bg : hsl(56,89%,66%);
    --tape: #b7b49d70;
    --nope: hsl(54,0%,49%);
}


img
{
    width: 100%;
}


.scribble
{
    z-index: 3;
    position: absolute;
    width: 35%;
    pointer-events: none;
}

nav
{
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 1rem;
    background-color: var(--nav-bg);
    color: black;
    border-radius: 0 0 5px 5px;

}

main
{
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 2rem;
    position: relative;
    min-height: 80dvh;
    overflow-x: hidden;
}

.form-bg{
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.37);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.item-form
{
    display: flex;
    flex-direction: column;
    gap: 1rem;
    color: white;
    border-radius: 5px;
    background-color: var(--shop-header);
    padding: 1rem;
    width: 350px;
    height: 420px;
}

.login-form
{
    display: flex;
    flex-direction: column;
    gap: 1rem;
    color: white;
    border-radius: 5px;
    background-color: var(--shop-header);
    padding: 1rem;
    width: 350px;
}

form label{
    display: flex;
    flex-direction: column;
}

form label input{
    background-color: var(--list-bg);
    border-radius: 5px;
    border: none;
    padding-inline: 0.5rem;
}

.form-buttons-container{
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.form-buttons-container button,.form-buttons-container input{
    font-size: 1.2rem;
}

.submit-form-button{
    border-radius: 5px;
    background-color: var(--nav-bg);
    cursor: pointer;
    border: none;
    flex-basis: 49%;
}
.cancel{
    background-color: #FF857A;
}

.form-filter-container
{
    background-color: var(--list-bg);
    border-radius: 5px;
    padding: 0.5rem;
    height: 180px;
    display: flex;
    flex-wrap: wrap;
    justify-content:flex-start;
    align-content: flex-start;
    gap: 0.2rem;
    overflow-y: scroll;
}

.filter-tab{
    border: none;
    border-radius: 5px;
    padding: 0.2rem 0.6rem;
    cursor: pointer; 
    margin: 0;
}


.shopping-list{
    border-radius: 4px;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
}

.kitchen-header
{
    background-color: var(--shop-header);
    color: white;
    padding: 1rem;
    font-size: 1.4rem;
    font-weight: bold;
    position: relative;
}

.tape
{
    position: absolute;
    top: 0;
    transform: rotate(35deg);
    right: -40px;
    background-color: var(--tape);
    width: 120px;
    height: 30px;
}

.tape2
{
    position: absolute;
    top: -10px;
    transform: rotate(-20deg);
    left: -40px;
    background-color: var(--tape);
    width: 100px;
    height: 30px;
}

.kitchen-list{
    padding: 1rem;
    display: flex;
    flex-flow: column;
    align-items: flex-start;
    justify-content: center;
    list-style-type: none;
    gap: 0.5rem;
    background-color: var(--list-bg);
    width: 350px;
}

.kitchen-item
{
    display: flex;
    justify-content: flex-start;
    align-items: center;
    column-gap: 1rem;
    border-bottom: 2px solid red;
    width: 100%;
    position: relative;
    cursor: pointer;
}

.button-rewind{
    position: absolute;
    right: 20px;
    bottom: 75px;
    width: 50px;
    height: 50px;
    background-color: var(--nope);
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.button-rewind:hover{
    background-color: var(--nope);
}

.button-add{
    position: absolute;
    right: 20px;
    bottom: 20px;
    width: 50px;
    height: 50px;
    background-color: var(--shop-header);
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.button-add:hover{
    background-color: var(--nav-bg);
}

.kitchen-item-value{
    pointer-events:none;
}


.table-bg{
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.37);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.history{
    display: flex;
    flex-direction: column;
    gap: 1rem;
    color: black;
    border-radius: 5px;
    background-color: white;
    padding: 1rem;
    width: 350px;
    min-height: 500px;
}

.hide-bg{
display: none;
}


footer{
    background-color: var(--nav-bg);
    padding: 2rem;
}