p {
   color: black;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

.title {
    margin-top: 0.3cm;
    text-align: center;
    margin-bottom: 0.45cm;
}

.space {
    margin-top: 0.25cm;
    margin-bottom: 0.45cm;
}

.top2 {
    margin-top: 1cm;
}

.is-hidden {
    display: none;
}

.warmup-message {
    color: #444;
    font-weight: 600;
}

.status-message {
    color: #222;
    font-weight: bold;
}

.loading-spinner {
    margin-left: 10px;
}

#submitBtn {
    background-color: #1e6ee6;
    color: #fff;
    border: 1px solid #1558b3;
    border-radius: 4px;
    padding: 6px 14px;
    height: 36px;
    line-height: 22px;
    box-sizing: border-box;
    box-shadow: none;
    outline: none;
    appearance: none;
}

#submitBtn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

input[type="file"] {
    border: 1px solid #d0d7de;
    border-radius: 4px;
    padding: 6px 10px;
    background: #fff;
    height: 36px;
    line-height: 22px;
    box-sizing: border-box;
}

.results-intro {
    margin-top: 0.2cm;
    margin-bottom: 0.2cm;
}

.results-title {
    margin-bottom: 0.2cm;
}

.upload-form p {
    margin: 0.25em 0;
}

.upload-form h3 {
    margin-bottom: 0.35em;
}

.results-title {
    margin-top: 0.2cm;
}

img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
}

#resultImages {
    width: 100%;
    margin: 0 auto;
    text-align: center;
    box-sizing: border-box;
    padding: 0 12px;
}

.result-images--big {
    max-width: 100%;
    padding: 0 12px;
}

.result-image {
    display: block;
    margin: 0 auto;
    max-width: min(720px, 100%);
    width: auto;
    height: auto;
}

.result-image--big {
    max-width: 100%;
    width: auto;
    max-height: 100vh;
    height: auto;
}


.center_p {
    text-align: center;
}

.left_p {
    text-align: left;
    width: 90%;
    max-width: 720px;
    margin: 0.6em auto;
}

.results-copy {
    text-align: left;
    width: 90%;
    max-width: 720px;
    margin: 0.6em auto;
}

.outer {
    text-align: center;
    width: fit-content;
    margin: auto;
}

.inner {
    text-align: left;
}

.file-input-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.file-input-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.file-button {
    display: inline-block;
    background-color: #fff;
    color: #1a1a1a;
    border: 1px solid #d0d7de;
    border-radius: 4px;
    padding: 6px 12px;
    cursor: pointer;
    height: 36px;
    line-height: 22px;
}

.file-button:hover {
    background-color: #f6f8fa;
}

.file-name {
    color: #444;
    font-size: 0.95rem;
}

.upload-actions {
    margin-top: 6px;
}

.results-actions {
    text-align: center;
    margin: 6px 0 6px;
}

.try-another-btn {
    background-color: #f6f8fa;
    color: #1a1a1a;
    border: 1px solid #d0d7de;
    border-radius: 4px;
    padding: 6px 12px;
    cursor: pointer;
    height: 36px;
    line-height: 22px;
}

.try-another-btn:hover {
    background-color: #eef1f4;
}

.upload-card {
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 10px;
    padding: 12px 16px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.preview-section {
    margin: 8px 0 4px;
    text-align: center;
}

.preview-image {
    display: inline-block;
    max-width: 140px;
    max-height: 140px;
    width: auto;
    height: auto;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.footer-wrap {
    position: relative;
    max-width: 900px;
    margin: 24px auto 0;
}

.build-version {
    position: fixed;
    left: 16px;
    bottom: 12px;
    color: #666;
    font-size: 0.9rem;
}

.footer-center {
    text-align: center;
}

.footer-name {
    margin-right: .69cm;
    display: inline-block;
}

.footer-link {
    color: black;
}


