body {
    font-family: 'Comic Sans MS', cursive, sans-serif;
    background: linear-gradient(135deg, #f9a8d4, #c084fc);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
  }
  
  .container {
    background: white;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    text-align: center;
  }
  
  h1 {
    margin-bottom: 20px;
    color: #6d28d9;
  }
  
  video, canvas {
    width: 640px;
    height: 480px;
    border-radius: 15px;
    margin-bottom: 10px;
    background: black;
    transform: scaleX(-1); /* Biar preview TETAP mirror, seperti selfie */
  }
  
  .controls {
    margin-top: 10px;
  }
  
  button, select {
    margin: 5px;
    padding: 10px 15px;
    font-size: 16px;
    border-radius: 10px;
    border: none;
    background: #9333ea;
    color: white;
    cursor: pointer;
    transition: background 0.3s;
  }
  
  button:hover, select:hover {
    background: #7c3aed;
  }
  
  select {
    background: #f472b6;
  }
  
  select:hover {
    background: #ec4899;
  }

  .photo-result {
    margin-top: 20px;
  }
  
  .photo-result img {
    width: 640px;
    height: 480px;
    border-radius: 15px;
    margin-top: 10px;
    background: white;
    object-fit: cover;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    /*transform: scaleX(-1); /* Hasil foto tidak mirror */
  }
  
  #photo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
  }
  
  #photo {
    width: 300px;
    height: auto;
    display: block;
  }

  .camera-box {
    margin-bottom: 40px;
  }
  
  .photo-box {
    margin-top: 20px;
    background: #f9fafb;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  }
  
  .photo-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
  }
  
  .polaroid {
    background: white;
    padding: 10px 10px 30px 10px;
    border: 1px solid #ccc;
    box-shadow: 2px 2px 15px rgba(0, 0, 0, 0.3);
    width: 150px;
    text-align: center;
    transform: rotate(-1deg);
    transition: transform 0.3s;
  }
  
  .polaroid:hover {
    transform: rotate(1deg) scale(1.02);
  }
  
  .polaroid img {
    width: 100%;
    height: auto;
    display: block;
  }
  