/* ========== GLOBAL STYLES ========== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Helvetica Neue', sans-serif;
}

body {
  background-color: #f3f3f3;
  color: #333;
  overflow-x: hidden;
}

header {
  background-color: #2c2c2c;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 1rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.logo-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo {
  height: 44px;    /* slightly larger icon */
  width: auto;
}

.contact {
  position: absolute;
  right: 2rem;
  color: white;
  text-decoration: none;
  font-size: 0.9rem;
}

main {
  padding: 1rem;
  text-align: center;
}

.instructions {
  margin-bottom: 1rem;
  font-size: 1rem;
  color: #444;
}

/* --------- WRAPPER & IMAGE/CANVAS STYLING --------- */
.canvas-wrapper {
  display: inline-block;       /* centers under main */
  position: relative;
  max-width: 90vw;             /* responsive width */
  margin: 1rem auto;           /* tighter vertical spacing */
  background: transparent;     /* remove white frame */
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1); /* optional shadow */
  overflow: hidden;
}

#image {
  display: block;
  max-width: 100%;
  max-height: 70vh;            /* keep your existing max-height */
  width: auto;
}

#canvas {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
}
/* ----------------------------------------------------------- */

.buttons {
  margin-top: 0.75rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

button {
  background-color: #2c2c2c;
  color: white;
  padding: 0.5rem 1.2rem;
  border: none;
  border-radius: 6px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background-color 0.3s;
}

button:hover {
  background-color: #444;
}
