body {
  font-family: 'Arial', sans-serif;
  background: #f0f0f0;
  margin: 0;
  padding: 20px;
}

h1 {
  text-align: center;
  color: #333;
}

#gallery-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s;
}

.gallery-item:hover {
  transform: scale(1.05);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.3s;
}

.fullscreen-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.fullscreen-overlay img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
}
* {
  box-sizing: border-box;
  font-size: 130%;
}
body {
  font-family: sans-serif;
  padding: 1.5rem;
  background: hsl(210, 60%, 95%); /* light sky blue background */
  max-width: 800px;
  min-width: 310px;
  margin: 0 auto;
  text-align: center;
}
.file-label {
  display: inline-block;
  outline:none;
  border:none;
  max-width: 800px;
  min-width: 310px;
  margin: 0 auto;
  background-color: #0077cc;
  color: white;
  padding: 0.6em 1.2em;
  border-radius: 8px;
  text-align: center;
  text-decoration: none;
  font-weight: 600;
  margin: 1rem 0;
  transition: background-color 0.2s ease, transform 0.1s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
input[type="file"] {
  display: none;
}
.file-label:hover {
  max-width: 800px;
  min-width: 310px;
  background-color: #005fa3;
  transform: translateY(-1px);
  cursor:pointer;
}
header h1 {
  color: #222;
  padding: 15px;
  text-align: center;
  margin: 0;
  font-size: 30px;
}
#canvas-container {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #fafafa;
  margin: 1rem auto;
  width: 100%;
  max-width: 800px;
  aspect-ratio: 1 / 1;   /* 👈 keeps it square */
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

canvas {
  display: block;   /* removes weird spacing */
  max-width: 100%;
  max-height: 100%;
}

p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  padding: 0rem;
  color: #123;
  text-align: left;
}
button{
  display: inline-block;
  outline:none;
  border:none;
  max-width: 800px;
  min-width: 310px;
  margin: 0 auto;
  background-color: #0077cc;
  color: white;
  padding: 0.6em 1.2em;
  border-radius: 8px;
  text-align: center;
  text-decoration: none;
  font-weight: 600;
  margin: 1rem 0;
  transition: background-color 0.2s ease, transform 0.1s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button:disabled:hover {
  opacity: 0.5;
  cursor: wait;
}
button:hover{
   max-width: 800px;
  min-width: 310px;
  background-color: #005fa3;
  transform: translateY(-1px);
  cursor:pointer;
}
.bmc-wrapper {
  display: block;       /* ensure it’s block */
  width: 100%;          /* full width of the parent container */
  text-align: center;   /* center child inline-block button */
  margin-top: 20px;
}

.bmc-button-container {
  display: inline-block;
  transform: scale(1.5);
  transform-origin: center;
  transition: transform 0.2s ease, filter 0.2s ease;
  cursor: pointer;
}

.bmc-button-container:hover {
  transform: scale(1.6);
  filter: brightness(0.8);
}
a{
  display: inline-block;
  background-color: #0077cc;
  min-width:100%;
  color: white;
  padding: 0.6em 1.2em;
  border-radius: 8px;
  text-align: center;
  text-decoration: none;
  font-weight: 600;
  margin: 1rem 0;
  transition: background-color 0.2s ease, transform 0.1s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

a:hover {
  background-color: #005fa3;
  transform: translateY(-1px);
}
.side-ad {
  position: fixed;
  top: 50%;               /* middle of screen */
  transform: translateY(-50%); /* shift up half its own height */
  width: 180px;           /* skyscraper ad size */
  height: 600px;
  z-index: 1000;
  overflow: hidden;
}

.left-ad {
  left: 15px;
}

.right-ad {
  right: 15px;
}

/* Hide ads on mobile */
@media (max-width: 900px) {
  .side-ad {
    display: none;
  }
}

.options,
.options2 {
  margin: 1rem 0;            /* vertical spacing around each row */
  display: flex;
  justify-content: center;   /* center horizontally */
  gap: 1rem;                 /* spacing between radio buttons */
}

.options label{
  cursor: pointer;
  font-size: 2rem;
  font-weight: normal;
}

.options input[type="radio"] {
  margin-right: 0.4rem;
  accent-color: #0077cc;
}

.options input[type="checkbox"] {
  width: 1.2rem;      /* increase hitbox width */
  height: 1.2rem;     /* increase hitbox height */
  transform: scale(1.2); /* visually scale up the box */
  margin-right: 0.6rem;  /* adjust spacing after scaling */
  cursor: pointer;
  accent-color: #0077cc; /* keep the same blue style */
}