body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #f0f0f0;
    touch-action: manipulation;
}
.container {
    max-width: 600px;
    margin: 0 auto;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
h1 {
    text-align: center;
    color: #333;
}
form {
    display: flex;
    flex-direction: column;
}
.form-group {
    margin-bottom: 20px;
}
label {
    display: block;
    margin-bottom: 10px;
}
.form-group > label:nth-child(1) {
    font-weight: bold;
    border: none;
}

input[type="text"], input[type="date"], input[type="number"], select, textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 16px;
}
/* Styling for dropdown options */
select option {
    padding: 12px;
}
textarea {
    resize: vertical;
    min-height: 100px;
}
.form-group label {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}
input[type="radio"], input[type="checkbox"] {
    margin-right: 10px;
    transform: scale(1.5);
}

.other-container {
    display: flex;
    gap: 12px;
}

.other-container label {
    margin-bottom: 0;
    flex-shrink: 0;
    flex-grow: 1;
}

.other-container input[type="text"] {
    display: none;
    margin-bottom: 0;
    flex-grow: 9;
}

.other-container.selected input[type="text"] {
    display: block;
}
.file-upload {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.file-upload input[type="file"] {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
}
.file-upload img {
    max-width: 100%;
    margin-top: 10px;
}
button {
    background-color: #4CAF50;
    color: white;
    padding: 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 18px;
}
button:hover {
    background-color: #45a049;
}
.text-input-control {
    display: flex;
    align-items: center;
}
.text-input-control input {
    flex-grow: 1;
    margin-right: 10px;
}
.text-input-control button {
    padding: 12px 15px;
    width: 74px;
    font-size: 18px;
    background-color: #007bff;
}
.text-input-control button:hover {
    background-color: #0056b3;
}
/* Add margin between increment/decrement buttons */
.text-input-control button:first-of-type {
    margin-right: 5px;
}

/* Material component */
#item-selector {
    max-width: 400px;
    margin: 20px auto;
    font-family: Arial, sans-serif;
    position: relative;
}

#search-input {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

#dropdown-container {
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #fff;
    position: absolute;
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
}

#material-unit {
    margin-right: 10px;
}

.dropdown-item {
    padding: 10px;
    cursor: pointer;
}

.dropdown-item:hover {
    background-color: #e9e9e9;
}

#items-container {
    margin-top: 10px;
}

.item {
    padding: 10px;
    margin: 5px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    cursor: pointer;
    background-color: #f9f9f9;
}

.item:hover {
    background-color: #e9e9e9;
}

#login-container {
    display: flex;
    justify-content: center;
    padding-top: 120px;
}

#sign-out-button {
    background-color: #a91616;
}

#form-submitted {
    background-color: rgb(156, 245, 156);
    border: 1px solid black;
    border-radius: 16px;
    padding: 16px;
}

.hide {
    display: none !important;
}

#error {
    position: fixed;
    display: flex;
    background: #a73838;
    color: white;
    flex-direction: column;
    max-width: -webkit-fill-available;
    overflow-wrap: anywhere;
    font-size: 10px;
}

#error-nice {
    padding: 20px 60px;
    position: fixed;
    display: flex;
    background: #a73838;
    border-radius: 26px;
    left: 50%;
    transform: translateX(-50%);
    bottom: 60px;
    color: white;
    text-align: center;
    flex-direction: column;
}

footer {
    background-color: #0000004a;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 32px 0;
    align-items: center;
    margin-top: 128px;
}