@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&family=Poppins:wght@600&display=swap');

* {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(160deg, #fdf6e3, #f0f8ff);
  margin: 0;
  padding: 1.5rem;
  color: #222;
}

/* ✅ constrain all content */
.main-wrapper {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

header h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 2rem;
  color: #2a3a4a;
  margin-bottom: 1rem;
}

p {
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
  margin: 0.8rem 0 1.5rem;
  text-align: left;
}

.container {
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 8px 18px rgba(0,0,0,0.08);
  margin-bottom: 2rem;
}

/* -------- File Upload -------- */
input[type="file"] {
  display: none !important;
}

.file-label,
a {
  display: inline-block;
  background: #0066cc;
  color: #fff;
  padding: 0.7em 1.4em;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  transition: all 0.25s ease;
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
  cursor: pointer;
}

button {
  background: #0066cc;
  color: #fff;
  padding: 0.7em 1.4em;
  border-radius: 10px;
  font-weight: 600;
  border: none;
  transition: all 0.25s ease;
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
  cursor: pointer;

  /* ✅ match link button height */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
  min-height: 44px;
}

.file-label:hover,
button:hover,
a:hover {
  background: #004b94;
  transform: translateY(-2px);
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Custom colors */
#gallery {
  background-color: #ffb400;
}
#gallery:hover {
  background-color: #cc8d00;
}

/* -------- Canvas -------- */
#canvas-container {
  margin: 2rem auto;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  background: #fafafa;
  border: 10px solid #d4af37; /* gold frame */
  border-radius: 12px;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

canvas {
  max-width: 100%;
  border-radius: 6px;
}

/* -------- Options -------- */
.options {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 1.5rem 0;
}

.options label {
  background: #f2f2f2;
  border-radius: 30px;
  padding: 0.4em 1em;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: inset 0 0 5px rgba(0,0,0,0.05);
}

.options input[type="checkbox"] {
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 2px solid #0077cc;
  display: inline-block;
  position: relative;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.options input[type="checkbox"]:checked {
  background: #0077cc;
  border-color: #005fa3;
}

.options input[type="checkbox"]:checked::after {
  content: "✔";
  color: white;
  font-size: 13px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
  line-height: 1;
}

/* -------- Footer -------- */
footer {
  margin-top: 2rem;
  font-size: 0.9rem;
  color: #666;
}

/* -------- Side Ads -------- */
.side-ad {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 180px;
  height: 600px;
  z-index: 1000;
  overflow: hidden;
}

.left-ad {
  left: 15px;
}

.right-ad {
  right: 15px;
}

/* Hide ads on mobile */
@media (max-width: 1100px) {
  .side-ad {
    display: none;
  }
}
