body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: #111;
    color: #eee;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    padding: 10px;
    box-sizing: border-box;
  }
  
  #videoContainer {
    position: relative;
    width: 100%;
    max-width: 480px;
    aspect-ratio: 3 / 4; 
    margin-top: 20px;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 0 15px #fff;
    background: black;
  }
  
  #videoContainer video {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    transform: scaleX(-1);
  }
  
  #flashOverlay {
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease-out;
    z-index: 9999;
  }
  
  #controls {
    position: relative;
    width: 100%;
    max-width: 480px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
  }
  
  #snapBtn {
    width: 70px;
    height: 70px;
    background: #ffffff;         
    border-radius: 50%;
    border: 4px solid #d1d1d6;   
    cursor: pointer;
    transition: border-color 0.3s ease;
  }
  
  #snapBtn:active {
    border-color: #d1d1d6;       
  }
  
  #colorPicker {
    position: absolute;
    left: 50px;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    padding: 0;
  }
  
  #canvasContainer {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 480px;
    box-sizing: border-box;
    padding: 0 10px;
  }
  
  canvas {
    border-radius: 12px;
    box-shadow: 0 0 15px #fff;
    width: 100%;
    height: auto;
  }
  
  #downloadBtn {
    margin-top: 30px;
    padding: 10px 20px;
    background: #ffaa00;
    color: #000;
    font-weight: bold;
    text-decoration: none;
    border-radius: 20px;
    display: inline-block;
    cursor: pointer;
    user-select: none;
    transition: 0.3s ease;
    text-align: center;
    width: 100%;
    max-width: 200px;
  }
  
  #downloadBtn:hover {
    transition: 0.3s ease;
    background: #ffbb33;
  }
  
