/* Modal styles */
#modal {
    display: none;
    position: fixed; /* Ensure the modal stays fixed */
    justify-content: flex-start; /* Align items to the start (top) */
    align-items: center; /* Center the modal horizontally */
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    width: 90%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999999;
    overflow-y: auto; /* Enable vertical scrolling */
    overflow-x: hidden; 
    margin-bottom: 30px;
}

.modal-content {
    background-image: url('images/512x512.png');
    background-size: contain;
    background-position: center;
    margin: 20px auto; /* Add margin to the top and bottom */
    padding: 20px;
    border: 1px solid #888;
    border-radius: 10px;
    color: #fff;
    width: 92%;
    max-width: 600px;
    box-shadow: 0px 0px 10px 2px rgba(255, 255, 255, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-height: 90vh; /* Adjust to provide more height */
    overflow-y: auto; /* Enable vertical scrolling within the modal */
    overflow-x: hidden; /* Disable horizontal scrolling */
}

.modal-content h2 {
    margin-top: 0;
    font-size: 30px;
    text-align: center;
    color: yellow;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.5);
    width: 100%;
    box-sizing: border-box;
}

.close {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

form {
    display: flex;
    flex-direction: column;
    padding: 20px;
    width: 100%; /* Ensure form takes full width */
}

label {
    margin-top: 10px;
    font-size: 18px; /* Adjusted for better readability */
    color: white; /* Ensure labels are visible */
    width: calc(100% - 40px); /* Full width minus padding/margin */
    margin: 0 20px; /* Horizontal margins to align with inputs */
    box-sizing: border-box; /* Include padding and border in width */
}

input, select, button, textarea {
    margin-top: 10px;
    height: 50px; /* Ensure all elements have a height of 50px */
    padding: 10px;
    font-size: 16px;
    background-color: black;
    color: #ff00ea;
    border: none;
    border-radius: 5px;
    box-shadow: 0px 0px 10px 2px rgba(255, 255, 255, 1);
    width: calc(100% - 40px); /* Full width minus padding/margin */
    margin: 10px 20px; /* Vertical and horizontal margins */
    box-sizing: border-box; /* Include padding and border in width */
}

select {
    text-align: center;
    font-size: 20px;
}

textarea {
    height: 100px;
}

button {
    margin-top: 20px;
    background-color: purple;
    color: white;
    border: none;
    cursor: pointer;
}

button:hover {
    background-color: #45a049;
}

#garmentInfo {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

#displayGarmentId {
    display: inline-block;
    padding: 5px 10px;
    background-color: rgba(0, 0, 0, 0.6);
    color: lime;
    border-radius: 5px;
    font-weight: bold;
    font-size: 22px;
    text-align: center;
}

/* Styles for the garment image */
#garmentImage {
    width: 200px; 
    height: auto;
    display: block;
    margin: 10px auto; /* Center the image */
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0px 0px 10px 0px rgba(255, 255, 255, 0.8);
}
