
body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.container {
    width: 100vw;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
    overflow: hidden;
}

.top-container {
    width: 100vw;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    overflow: hidden;
}

.part-container{
    width: 65vw;
    height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    border: gray solid 1px;
    border-radius: 0px;
    overflow-y: scroll;
    padding-top: 1rem;

}

.picked-container{
    width: 25vw;
    height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    border: gray solid 1px;
    border-radius: 0px;
    overflow-y: auto;
    padding-top: 1rem;
}

.items{
    padding: 1em;
}

.item-div{
    width: 60vw;
    height: 10px;
    border: gray solid 1px;
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    overflow: hidden;
    line-height: 0.75rem;
}

.scrollable-container{
    width: 70vw;
    max-height: 80vh;
    overflow-y: scroll;
    border: gray solid 1px;
    border-radius: 10px;
    padding: 1em;

}

.search-container{
    width: 70vw;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 1em;

}

.login-container{
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: relative;
    padding: 0em;
}

.user-icon {
    float: right;
    min-width: 30px;
    width: 2vw;
    padding-right: 5vw;
}

.draggable {
    height: 6vh;
    border: gray solid 1px;
    border-radius: 10px;
    cursor: move;
    margin: 1rem;
    justify-content: center;
    align-items: center;
    overflow: visible;
    display: flex;
}

.draggable.dragging {
    opacity: .5;
}

.plus-minus-button {
    background-color: #ccc;
    border: none;
    padding-left: 5px;
    padding-right: 5px;
    padding-top: 2px;
    padding-bottom: 2px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 0px;
    cursor: pointer;
    border-radius: 2px;
}

.amount-input {
    width: 50px;
    text-align: center;
    font-size: 16px;
    padding: 2px;
    margin: 0;
    border: 1px solid #ccc;
    border-radius: 2px;
}

.common-input {
    width: 200px;
    font-size: 16px;
    padding: 5px;
    margin: 0 10px;
    border: 1px solid #ccc;
    border-radius: 2px;
}

.common-button {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #ccc;
    color: #222;
    border: none;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 10px 0;
    cursor: pointer;
    border-radius: 0px;
}

.common-button:hover {
    background-color: #ed1c24;
    color: #ffffff;
}

.csv-input {
    width: 200px;
    font-size: 16px;
    padding: 5px;
    margin: 0 10px;
    border: 1px solid #ffffff;
    border-radius: 2px;
}

.item-input {
    width: 70%;
}

.add-div {
    display: flex;
    flex-direction: row;
}

.warning-div {
    display: flex;
    flex-direction: column;
    width: 100%;
    justify-content: center;
    align-items: center;
}

.scroll-btn {
  display: none;
  position: fixed;
  width: 25vw;
  right: 2vw;
  z-index: 1000;
  padding: 0.7em 1.2em;
  font-size: 1.2em;
  border-radius: 1%;
  border: none;
  background: #ccc;
  color: #222;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  opacity: 0.8;
}


.item-code {
  font-weight: bold;
  margin-right: 16px;
}

.item-name {
  color: #555;
}

#scrollTopBtn { bottom: 8vh; }
#scrollBottomBtn { bottom: 2vh; }

/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
input[type=number] {
  -moz-appearance: textfield;
}

@media (max-aspect-ratio: 4/5) {
    .container {
        flex-direction: column;
        align-items: center;
    }
    .part-container, .picked-container {
        width: 95vw;
        height: auto;
        margin-bottom: 1rem;
    }
    .item-div {
        width: 90vw;
    }
    .search-container {
        flex-direction: column;
        align-items: center;
    }
    .category-container h2 {
        padding: 1rem;
    }
    .scroll-btn {
        display: block;
    }
}