#item-container {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.boxitem {
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: lightgray;
    font-size: 10px;
    border-radius: 5px;
    border: 1px solid gray;
    transition: background-color 0.3s;
    position: relative;
}

.itemgray {
    background-color: lightgray;
}

.itemgreen {
    background-color: lightgreen;
}

.itemblue {
    background-color: lightblue;
}

.popup {
    display: none;
    position: fixed;
    top: 35px;
    left: -125;
    background-color: white;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    font-size: medium;
    width: 250px;
    z-index: 999;
    float: left;
}

#iteminfo {
    margin: 0px;
    font-weight: bold;
    font-size: small;
    text-align: center;
    padding: 0px;
    max-height: 100px;
    text-wrap: nowrap;
}

#iteminfo h1 {
    margin: 0;
}

.base-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: bold;
    max-height: 20px;
    text-wrap: nowrap;
}

.base-container div {
    display: flex;
    align-items: end;
}

#total {
    margin-left: auto;
}

#itemInput {
    margin-left: 5px;
    width: 100px;
    padding: 0px;
}

label {
    display: inline-block;
    margin-left: 20px;
}


@media (max-width: 682px) {

    .base-container {
        font-size: small;
    }
    #total {
        font-size: small;
    }
    #itemInput {
        font-size: small;
        width: 50px;
    }label {
        
        font-size: small;
        margin-left: 5px;
    }
    #iteminfo {
        font-size: x-small;
    }
    
    #iteminfo h1 {
        font-size: small;
    }
    .popup {
        left: -05;
        padding: 5px;        
        font-size: small;
        width: 150px;
    }
}
