@font-face {
  font-family: 'Roadstore';
  src: url('./fonts/ROADSTORE Dafont.otf') format('opentype');
  /* Or use .otf and format('opentype') if you prefer */
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Courier New';
  src: url('./fonts/COUR.TTF') format('truetype');
  /* Or use .otf and format('opentype') if you prefer */
  font-weight: normal;
  font-style: normal;
}



html, body {
    max-width: 100vw;
    overflow-x: hidden;
}

body {
    font-family: 'Courier New', Courier, monospace;
    background: repeating-linear-gradient(135deg, #e6e6e6 0 40px, #d2b48c 40px 80px);
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

h1 {
    margin-top: 2rem;
    color: #7a5c2e;
    font-family: 'Roadstore','Brush Script MT', cursive, sans-serif;
    font-size: clamp(1.5rem, 6vw, 2.7rem);
    letter-spacing: 2px;
    text-shadow: 2px 2px 0 #fff, 4px 4px 8px #bfa77a;
    background: #fffbe6;
    border: 4px double #7a5c2e;
    border-radius: 12px;
    padding: clamp(0.3em, 2vw, 1em) clamp(0.5em, 6vw, 2em);
    box-shadow: 0 4px 16px rgba(122,92,46,0.08);
}

#app-root {
    margin-top: 2rem;
    width: 100%;
    max-width: 440px;
    background: #f8f5f0;
    border-radius: 16px 16px 32px 32px;
    box-shadow: 0 8px 32px rgba(122,92,46,0.13), 0 1.5px 0 #bfa77a inset;
    padding: 2.5rem 2rem 2rem 2rem;
    border: 3px solid #bfa77a;
    position: relative;
}

#camera-section {
    background: #fffbe6;
    border-radius: 12px;
    border: 2px solid #bfa77a;
    box-shadow: 0 2px 8px #bfa77a33;
    padding: 1.5em 1em 1em 1em;
    margin-bottom: 1.5em;
}

#camera-section video {
    border: 4px solid #7a5c2e;
    box-shadow: 0 2px 12px #bfa77a55;
    background: #222;
    border-radius: 8px;
    width: 100%;
    max-width: 400px;
    height: auto;
    display: block;
    margin: 0 auto;
}

#start-sequence, #compose-sheet {
    background: #7a5c2e;
    color: #fffbe6;
    border: none;
    border-radius: 6px;
    font-family: inherit;
    font-size: 1.1em;
    padding: 0.7em 1.5em;
    margin-right: 1em;
    box-shadow: 0 2px 8px #bfa77a33;
    cursor: pointer;
    transition: background 0.2s;
}
#start-sequence:hover {
    background: #bfa77a;
    color: #7a5c2e;
}

#countdown {
    font-size: 1.2em;
    color: #7a5c2e;
    font-weight: bold;
}

#thumbnails {
    margin-top: 1.5em;
    display: flex;
    gap: 10px;
    justify-content: center;
}
#thumbnails img {
    border: 2px solid #bfa77a;
    box-shadow: 0 1px 4px #bfa77a33;
    border-radius: 4px;
}

#photo-sheet-section {
    background: #fffbe6;
    border-radius: 16px;
    border: 2px solid #bfa77a;
    box-shadow: 0 2px 8px #bfa77a33;
    padding: 1.5em 1em 2em 1em;
    margin-top: 2em;
}
#photo-sheet-canvas {
    display: block;
    margin: 0 auto;
    border: 4px solid #7a5c2e;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 12px #bfa77a55;
    width: 100%;
    max-width: 400px;
    height: auto;
    display: block;
    margin: 0 auto;
}
#sheet-text {
    font-size: 1.1em;
    padding: 0.5em;
    width: 60%;
    border-radius: 6px;
    border: 2px solid #bfa77a;
    background: #fff;
    margin-right: 1em;
}
#download-sheet {
    background: #7a5c2e;
    color: #fffbe6;
    border: none;
    border-radius: 6px;
    font-family: inherit;
    font-size: 1em;
    padding: 0.5em 1.2em;
    box-shadow: 0 2px 8px #bfa77a33;
    cursor: pointer;
    transition: background 0.2s;
}
#download-sheet:hover {
    background: #bfa77a;
    color: #7a5c2e;
}

@media (max-width: 600px) {
    #app-root {
        padding: 1.2rem 0.5rem 1rem 0.5rem;
        border-width: 2px;
    }
    #camera-section {
        padding: 1em 0.3em 0.7em 0.3em;
    }
    #photo-sheet-section {
        padding: 1em 0.3em 1.2em 0.3em;
    }
    h1 {
        font-size: clamp(1.1rem, 6vw, 2rem);
        padding: clamp(0.2em, 1vw, 0.7em) clamp(0.3em, 3vw, 1em);
    }
}
