html, body {
  margin: 0;
  padding: 0;
    width: 100%;


  overflow-x: hidden;
  overflow-y: auto;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: linear-gradient(0deg, #6a00ff, #ff00c3, #00cfff); /* bottom to top */
  background-size: 600% 600%; /* make gradient bigger for smooth movement */
  animation: gradientFromFooter 20s ease infinite;
}

.main-wrapper {
  width: 100%;
  flex: 1;

  display: flex;
  
  align-items: center;     /* vertically center content */
  flex-direction: column;  /* keep content stacked vertically */

  padding: 40px 20px;
  box-sizing: border-box;
  overflow: visible;
}

.title {
    font-size: 2em;
    font-weight: 700;
    color: #ffce1b;       /* gold color */
    line-height: 1.2;
    margin-bottom: 15px;
    text-align: center;    /* center the title */
}

/* Make main texts white */

.subtext,
.file-count,
.status-text {
  color: #fff !important;
}

@keyframes gradientFromFooter {
  0% { background-position: 50% 100%; }  /* start at bottom */
  50% { background-position: 50% 0%; }   /* move to top */
  100% { background-position: 50% 100%; } /* back to bottom */
}

.logo-wrapper {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1000;
}

.site-logo {
    width: 130px;
    max-width: 40vw;
}










.card-box {
  background: rgba(0,0,0,0.3);
  width: 100%;
  max-width: 1100px;
  padding: 30px;
  border-radius: 16px;

  box-sizing: border-box;

  /* 🔑 CRITICAL FIX */
  height: auto;
  overflow: visible;

  display: block;
}




.card-box h1,
.card-box p {
  text-align: center;
}

.title {
    font-size: 2em;
    font-weight: 700;
    color: #FFD700;
    line-height: 1.2;
    margin-bottom: 15px;
}

.subtext {
    font-size: 1rem;
    margin-bottom: 20px;
}

.upload-box {
    border: 2px dashed #fff;
    border-radius: 10px;
    padding: 50px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    text-align: center;
}

.upload-box.dragover {
    border-color: #FFD700;
    background: rgba(255,255,255,0.05);
}

.file-count {
    margin-top: 10px;
    font-size: 0.9rem;
}

#previewArea {
  width: 100%;
  margin-top: 30px;

  display: grid;
 grid-template-columns: repeat(5, 220px); /* 🔥 BIGGER previews */

  gap: 16px;
}






.preview-box {
  width: 220px;
  height: 220px;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255,255,255,0.12);
  position: relative;
}




.preview-box img,
.preview-box canvas {
  width: 100%;
  height: 100%;
  object-fit: contain;   /* preserves aspect ratio */
  display: block;
}



.download-icon {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    color: #fff;
    font-weight: bold;
    font-size: 18px;
}

.status-text {
    font-size: 1rem;
    font-weight: 600;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {opacity: 0.5;}
    50% {opacity: 1;}
    100% {opacity: 0.5;}
}
#dropZone {
  width: 100%;
  max-width: 1200px;
  margin: 30px auto;
  padding: 30px;
  border: 3px dashed red;
  border-radius: 16px;
  cursor: pointer;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.dropzone-text {
  color: #fff;           /* white text */
  font-weight: bold;     /* bold text */
  text-align: center;    /* center inside dropZone */
  font-size: 1.1rem;     /* slightly bigger */
  line-height: 1.4;      /* spacing between lines */
  display: block;
}







#dropZone.processing {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-auto-rows: 220px;        /* ensures each row matches preview-box height */
  gap: 20px;
  align-items: start;
  justify-items: center;
  height: auto;                 /* allows dropZone to grow with previews */
  min-height: unset;
}
.color-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid #fff;
  box-shadow: 0 0 6px rgba(0,0,0,0.3);
}

.color-circle:hover {
  transform: scale(1.1);
}



footer {
  flex-shrink: 0;
}

