/* Body as flex column */
body {
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
}
  
/* Main content area with breathing room */
#pageContent {
    flex: 1;
    padding: 16px;
    max-width: 640px;
    margin: 0;            /* was 0 auto; -> centers; this keeps it left */
    margin-left: 10px;  /* add some breathing space from the edge */
    box-sizing: border-box;
    text-align: left;     /* keep left alignment */
}

/* Footer line and padding */
footer {
    padding: 0px 25px;
    border-top: 3px solid #ccff33;
    font-size: 12px;
    /* background-color: #c2dfc3; */
    text-align: left;
    margin-top: 0;          /* not needed when using flex layout */
    /* margin-top:40px; */
}
  
#statusBox {
    padding: 10px;
    border-radius: 5px;
    font-size: 16px;
    margin-top: 10px;
    margin-bottom: 10px;
    display: none;
}

button:disabled {
    background-color: grey;
    color: #ccc;
    cursor: not-allowed;
}

#uploadButton, #selectButton, #submitKeyButton {
    background-color: #CCFF33;
    color: #000000;
    font-size: 20px;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    width: 250px;
}

#dk {
    color: #A0A0A0;
    font-style: italic;
}

.image-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.image-preview {
    position: relative;
    max-width: 200px;
}

.image-preview img {
    max-width: 100%;
    max-height: 200px;
    object-fit: cover;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.image-preview .remove-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: rgba(255, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
}

#uploadProgress {
    width: 100%;
    margin: 20px 0;
    display: none;
}

@media (max-width: 768px) {
    #selectButton, #uploadButton {
        padding: 12px 20px;
        font-size: 16px;
    }
}

#selectButton, #uploadButton {
    display: inline-block;
    margin-right: 10px;
}

#imageUploadContainer {
    white-space: nowrap;
}

#uploadButton {
    margin-top: 10px;
} 

#commentBox {
    margin-top: 20px;
    margin-bottom: 10px;
    display: none;
}

#pageContent button,
#pageContent span,
#pageContent div {
    display: block;
    margin-left: 0;
}

#pageContent span,
#pageContent div {
  padding: 0;         /* remove the QR div/span padding */
  margin: 0;          /* reset any margins */
  display: block;     /* keep them block-level */
}

#footer-logo {
    width: 250px;
    height: auto;
    vertical-align:middle;
    margin-top:0px;
    margin-right:8px;
}
