body.homepage {
    background-image: url("images/background.jpeg");
    background-size: cover;
    font-family: 'Baloo', cursive;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    position: relative;
    overflow: hidden;
  }
  
  .decorations .deco {
    position: absolute;
    z-index: 5;
  }

  .top-left {
    top: 10px;
    left: 10px;
    width: 310px;
  }
  
  .top-right {
    top: 0px;
    right: 0px;
    width: 300px;
  }
  
  .bottom-left {
    bottom: 0px;
    left: 0px;
    width: 350px;
  }
  
  .bottom-right {
    bottom: 0px;
    right: 10px;
    width: 390px;
  }
  
  
  .container {
    text-align: center;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
  }
  
  
  .title {
    background-color: #9EA56C;
    padding: 12px 24px;
    border-radius: 12px;
    display: inline-block;
    font-size: 2rem;
    box-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    border: 5px solid #E7B7B7;
    color: #EBE7CD;
    margin-bottom: 20px;
    margin-top: -5px;
  }
  
  .photo-box {
    width: 420px;
    max-width: 90%;
    margin-bottom: -46px;
    margin-top: -56px;
  }
  
  .start-btn {
    font-size: 1.5rem;
    padding: 12px 40px;
    background-color: #C2D2E9;
    color: #1B2751;
    border: 3px solid #3852A7;
    border-radius: 12px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.2s;
    font-family: 'Baloo', cursive;
  }
  
  .start-btn:hover {
    background-color: #dbe6ff;
  }
  
  body.instructions-page {
    background-image: url("images/background.jpeg");
    background-size: cover;
    font-family: 'Baloo', cursive;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    position: relative;
  }
  
  .instruction-box {
    background-color: #ebcdcd;
    border: 5px solid #9DA56C;
    border-radius: 20px;
    padding: 30px;
    width: 80%;
    max-width: 500px;
    text-align: center;
    box-shadow: 4px 4px 8px rgba(0,0,0,0.1);
    z-index: 2;
    position: relative;
  }
  
  .instruction-box h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #1B2751;
  }
  
  .instruction-box p {
    font-size: 1.2rem;
    color: #3852A7;
    margin: 10px 0;
  }
  
  .next-btn {
    font-size: 1.2rem;
    padding: 10px 30px;
    background-color: #C2D2E9;
    color: #1B2751;
    border: 3px solid #3852A7;
    border-radius: 12px;
    cursor: pointer;
    font-weight: bold;
    margin-top: 20px;
    font-family: 'Baloo', cursive;
  }
  
  .next-btn:hover {
    background-color: #dbe6ff;
  }
  
  .decorations .deco {
    position: absolute;
    z-index: 1;
  }
  
  /* unique sizing/position for this page’s corner images */
  .instructions-tl {
    top: -30px;
    left: 118px;
    width: 360px;
  }
  
  .instructions-tr {
    top: 0px;
    right: 0px;
    width: 260px;
  }
  
  .instructions-bl {
    bottom: 0px;
    left: 0px;
    width: 370px;
  }
  
  .instructions-br {
    bottom: 0;
    right: 170px;
    width: 200px;
  }
  
  body.photobooth-page {
    background-image: url("images/background.jpeg");
    background-size: cover;
    font-family: 'Baloo', cursive;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    position: relative;
    overflow: hidden;
  }
  
  .decorations .deco {
    position: absolute;
    z-index: 5;
  }
  
  /* Only using 2 corners */
  .photobooth-tr {
    top: 0px;
    right: 0px;
    width: 300px;
  }
  
  .photobooth-bl {
    bottom: 0px;
    left: 0px;
    width: 390px;
  }
  
  .video-wrapper {
    position: relative;
    width: 90vw;
    max-width: 500px;
    aspect-ratio: 4/3;
    border: 6px solid #434530;
    overflow: hidden;
    background-color: #000;
  }
  
  video#video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scaleX(-1); /* mirror for front cam */
  }
  
  .countdown {
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    color: #71563A;
    margin-bottom: -20px;
  }
  
  .counter {
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    color: #71563A;
    margin-top: 0px;
  }

  body.download-page {
    background-image: url("images/background.jpeg");
    background-size: cover;
    font-family: 'Baloo', cursive;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
  }
  
  .canvas-container {
    margin-bottom: 20px;
  }
  
  #finalCanvas {
    background-color: #fff;
  }
  
  .frame-controls {
    text-align: center;
    max-width: 520px;
    width: 100%;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Baloo', cursive;
  }
  
  .frame-controls h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #343522;
    margin-top: -1rem;
  }
  
  .color-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    justify-items: center;
    margin-bottom: 20px;
  }
  
  .color-btn {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 3px solid #588041;
    transition: transform 0.2s, border-color 0.2s;
    cursor: pointer;
  }
  
  .color-btn:hover {
    transform: scale(1.05);
    border-color: #9ea56c;
  }
  
  label {
    display: block;
    margin: 20px 0;
    font-size: 1.3rem;
    color: #343522;
  }
  
  input[type="file"],
  input[type="color"] {
    margin-top: 5px;
  }
  
  .button-group {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 20px;
  }
  
  .button-group button {
    padding: 20px 24px;
    font-size: 1.3rem;
    font-family: 'Baloo', cursive;
    background-color: #BBB7AB;
    border: 3px solid #343522;
    border-radius: 10px;
    color: #588041;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: 25px;
  }
  
  .button-group button:hover {
    background-color: #dcd5d5;
  }
  