* {
  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: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: 100px; /* distance from top */
  width: 160px; /* ad width */
  z-index: 1000;
}

.left-ad {
  left: 10px; /* distance from left edge */
}

.right-ad {
  right: 10px; /* distance from right edge */
}