:root{
    --bg-cream: #fff2ea;
    --bg-coral: #ef7a5b;
    --bg-coral-dark: #d85b3c;
  
    --card-bg: #ffffff;
    --text: #1e1f22;
    --muted: #4a4d55;
  
    --border: #1f1f1f;
    --shadow: 0 10px 24px rgba(0,0,0,0.12);
    --radius: 12px;
  }
  
  * { box-sizing: border-box; }
  
  html, body {
    height: 100%;
  }
  
  body {
    margin: 0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
    color: var(--text);
    background: var(--bg-cream);
  }
  
  .canvas {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
  }

  .card {
    position: relative;
    margin: 6vmin auto;
    margin-bottom: 25px;
    width: min(820px, 92vw);
    background: var(--card-bg);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }
  
  .card-header {
    padding: 20px 24px 14px;
    border-bottom: 2px solid var(--border);
    text-align: center;
  }

  .card-header2{
    padding: 20px;
  }
  
  .card-header h1 {
    margin: 0;
    font-size: clamp(22px, 2.1vw, 28px);
    font-weight: 700;
    letter-spacing: 0.2px;
  } 
  
  /* List styling */
  .guidelines {
    margin: 0 0 22px 0;
    padding-left: 1.2em;
    counter-reset: guideline;
  }
  
  .guidelines > li {
    margin: 12px 0 14px 0;
    line-height: 1.5;
  }
  
  .guidelines h3 {
    display: inline;
    margin: 0;
    font-size: 16px;
    font-weight: 700;
  }
  
  .guidelines ul {
    margin: 6px 0 0 1.2em;
    padding-left: 1em;
    list-style: disc;
    color: var(--muted);
    font-size: 14px;
  }
  
  .guidelines ul li {
    margin: 4px 0;
  }
  
  /* Actions */
  .actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    padding-left: 630px;
  }
  
  .btn {
    appearance: none;
    border: 2px solid var(--border);
    
    padding: 10px 22px;
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
  }

  ._prog-bar {
    background: #F2DFD1;
  }

  ._txt{
    font-size: smaller;
  }
  
  /* Responsive tweaks */
@media (max-width: 520px) {
    .card-body { padding: 18px 16px 20px; }
    .bg-zigzag { display: none; }
}

/* Tablet-specific adjustments to avoid hiding elements (e.g. actions/buttons) */
@media (min-width: 521px) and (max-width: 1024px) {
    /* Make the card use more width on tablets so content doesn't overflow */
    .card {
        width: min(900px, 94vw) !important;
        margin: 4vmin auto !important;
    }

    /* Ensure card body has comfortable padding on tablets */
    .card-body {
        padding: 20px 20px 24px !important;
    }

    /* Actions should be centered and visible on tablet instead of pushed to the right */
    .actions {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 12px !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
        margin: 12px 0 !important;
    }

    /* Prevent large left padding used elsewhere from pushing controls off-screen */
    .actions[style] { padding-left: 0 !important; }

    /* Make sure inputs and rows stack when needed but remain visible */
    .row.g-3, .row.align-items-center.pt-3 {
        flex-direction: row !important;
        gap: 12px !important;
        align-items: center !important;
        flex-wrap: wrap !important;
    }

    .row.g-3 .col, .row.align-items-center.pt-3 .col {
        flex: 1 1 auto !important;
        min-width: 220px !important;
        max-width: 100% !important;
    }

    /* Ensure canvas/card overflow doesn't hide content on tablets */
    .canvas, .card { overflow: visible !important; }
}
  