/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header stays at top */
.site-header {
  width: 100%;
  padding: 0.5rem 0.5rem;
}

/* Center content left/right only */
.header-content {
  margin-inline: auto;          /* modern horizontal centering */
  max-width: 650pt;
  width: 100%;

  display: grid;
  grid-template-columns: 1fr auto;
  align-items: stretch;
  gap: 1.5rem;
}

/* Left text stack */
.text {
  display: grid;
  gap: 0.5rem;
}

/* Right buttons */
.actions {
  display: flex;
  gap: 0.75rem;

  align-items: stretch; /* 🔑 stretch buttons vertically */
}

/* Make buttons fill parent height */
.actions button {
  height: 100%;
  padding: 0 1.25rem;   /* vertical padding now comes from height */
  font-size: 1.75rem;
}

.actions {
  flex-wrap: wrap;
}

.actions button {
  flex: 1;
}

header h1 {
    font-size: 2.5rem;
    letter-spacing: 1px;
}

main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 1rem;
}

footer {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 1rem;
}

footer > div > .actions button {
  height: 100%;
  padding: 0 1.2rem;   /* vertical padding now comes from height */
  font-size: 1.2rem;
}

/* Mobile */
@media (max-width: 650pt) {
  .header-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .actions {
    justify-content: center;
    flex-wrap: wrap;
  }
}

/* explore/view UIs */

img.goal {
  border-radius: 1rem;
  border: 1px solid black;
  max-width: 96vw;
  /*margin: 0.5rem;*/
  backface-visibility: hidden;
  will-change: transform;
}

/* create.html */

#canvas {
  max-width: 99vw;
  max-height: 99vh;
  touch-action: none;
}

#canvas-holder {
  max-width: 99vw;
  max-height: 99vh;
  border: 1px dashed black;
  border-radius: 1rem;
}

#canvasOverlay {
  position: absolute;
  inset: 0;
  background: rgba(200, 200, 200, 0.4);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.locked #canvasOverlay {
  opacity: 1;
}

.locked canvas {
  cursor: not-allowed;
}
