body {
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
        sans-serif;
    margin: 0;
    background-color: var(--gray-25);
}

p {
    line-height: 1.5;
    margin-block: 0;
}

.btn {
    background-color: var(--gray-900);
    border: 2px solid var(--gray-900);
    border-radius: 8px;
    color: white;
    padding: 0.8em 1.6em;
    font-size: clamp(1.125rem, 1.0357rem + 0.2857vw, 1.25rem);
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
    font-weight: 500;
}

.btn:hover {
    background-color: var(--gray-700);
}

.custom-file-upload {
    background-color: transparent;
    color: var(--gray-900);
}

.custom-file-upload:hover {
    background-color: var(--gray-100);
}

button:disabled {
    background-color: var(--gray-300);
    cursor: not-allowed;
    border-color: var(--gray-300);
}

button:disabled:hover {
    background-color: var(--gray-300);
}

.header {
    color: var(--gray-700);
    margin-inline: auto;
    max-width: 90%;
}

h2 {
    font-size: 1.8em;
    margin-block: 0;
    font-weight: 600;
}

.badge {
    font-size: 14px;
    color: var(--brand-500);
    background-color: var(--brand-50);
    border: 1px solid var(--brand-100);
    padding: 4px 12px;
    border-radius: 9999px;
    font-weight: 500;
}

.container {
    max-width: 1440px;
    margin-inline: auto;
}

#canvas,
#imageStackContainer {
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    max-width: 90vw;
    margin-inline: auto;
    width: 1440px;
    height: 770px;
}

.checkbox-container label {
    font-size: 18px;
    color: var(--gray-700);
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#placeholderImage {
    display: block; /* Ensure it's visible by default */
}

#uploadedImage {
    display: none; /* Hide it initially */
}

#imageUpload {
    display: none;
}

.custom-file-upload {
    display: inline-block;
}

#imageStackContainer {
    background-color: var(--gray-100);
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
}

#imageStackContainer.drag-over {
    border-color: var(--brand-500);
    background-color: var(--brand-50);
}

.image-stack {
    position: relative;
    width: clamp(15rem, 4.2857rem + 34.2857vw, 30rem);
    height: clamp(15rem, 4.2857rem + 34.2857vw, 30rem);
}

.stacked-image,
.main-image {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--gray-200);
}

.stacked-image:nth-child(1) {
    top: -36px;
    left: -36px;
    opacity: 0.4;
}

.stacked-image:nth-child(2) {
    top: -24px;
    left: -24px;
    opacity: 0.6;
}

.stacked-image:nth-child(3) {
    top: -12px;
    left: -12px;
    opacity: 0.8;
}

.main-image {
    top: 0;
    left: 0;
    overflow: hidden;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#imageCount {
    font-size: 24px;
    font-weight: 400;
    margin-top: 20px;
    color: var(--gray-700);
}

.image-number {
    font-size: 36px;
    font-weight: 600;
}

footer {
    padding-top: 40px;
    display: none;
}

footer .container {
    justify-content: center;
    color: var(--gray-400);
}

/* mobile css */
@media (max-width: 768px) {
    .right-side {
        display: none;
    }
}
