*{
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
}

body{
    font-size: 16px;
    font-family: Arial, Helvetica, sans-serif;
    min-height: 100vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
}

.top-heading{
    font-family: monospace;
    margin-top: 1em;
    border-top: 2px solid teal;
    border-bottom: 2px solid rebeccapurple;
}

.reset{
    margin-top: 1em;
    width: 100px;
    height: 40px;
    margin-bottom: .5em;
    font-weight: bold;
    font-size: 1.2rem;
    background-color: red;
    color: white;
    border-radius: 5px;
}

.add-item{
    margin-top: 1em;
    width: 100px;
    height: 40px;
    margin-bottom: .5em;
    font-weight: bold;
    font-size: 1.2rem;
    background-color: red;
    color: white;
    border-radius: 5px;
}

.save-edit{
    display: none;
    margin-top: 1em;
    width: 100px;
    height: 40px;
    margin-bottom: .5em;
    font-weight: bold;
    font-size: 1.2rem;
    background-color: red;
    color: white;
    border-radius: 5px;
}

.reset:hover, 
.add-item:hover, 
.delete-btn:hover, 
.edit-btn:hover,
.save-edit:hover{
    color: white;
    background-color: black;
    transition: all 500ms ease-in-out;
}


select{
    background-color: white;
    border: 2px solid black;
    color: black;
    font-weight: bold;
    height: 42px;
    font-size: 1.2rem;
    width: 150px;
}

option{
    background-color: white;
    height: 40px;
}

option:focus{
    background-color: teal;
}

input{
    height: 40px;
    border-color: black;
    background-color: white;
    margin-bottom: .5em;
    /* margin-right: 5px; */
    font-size: 1.1em;
    font-weight: bold;
    width: 140px;
}

input:focus{
    outline: 3px solid red;
    border: none;
}

input::placeholder{
    color: black;
    font-size: .8rem;
    font-weight: bold;
    padding-left: .2em;
}

.items-div{
    display: flex;
    position: relative;
    flex-direction: column;
    margin-top: 1em;
    background-color: black;
    color: white;
    text-align: center;
    padding: 1em;
    width: 90%;
    min-height: 200px;
}

h2{
    font-family: monospace;
    margin-bottom: .5em;
}


table{
    min-height: 20px;
}


th{
    padding: .3em;
    background-color: white;
    color: black;
    height: 30px;
    font-weight: bold;
    font-size: 1rem;
}

tbody{
    color: black;
}

.total{
    font-family: monospace;
    position: absolute;
    font-weight: bold;
    bottom: 0;
    right: 5px;
    font-size: 1.2rem;
    margin-top: 5em;
    padding-top: 3em;
}

td{
    background-color: black;
    color: white;
    height: 30px;
    font-size: 1rem;
    font-family: monospace;
    text-align: center;
}

.control{
    font-family: monospace;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 20vh;
    color: white;
    background-color: black;
    width: 90vw;
    margin-top: 2em;
}

.control p{
    margin: 1em 0px;
}

.message{
    color: red;
    font-size: 1.2rem;
}

.number-input{
    margin: 1em 0px;
    width: 200px;
    background-color: white;
}

.control-buttons{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: .5em;
    width: 100%;
}

.edit-btn, .delete-btn{
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    width: 100px;
    height: 40px;
    margin-bottom: .5em;
    font-weight: bold;
    font-size: 1.3rem;
    border-radius: 5px;
    background-color: red;
    
}

@media print{
    body{
        font-family: serif;
    }
    .top-heading, input, button, select, .control{
        display: none;
    }
    td, .items-div h2, .total{
        background-color: white;
        color: black;
    }
}

