body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    overflow: hidden;
    font-family: sans-serif;
}
  
.bg-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: 0;
}
  
#scratchCanvas {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 2; /* Canvas on top */
    cursor: cell;
    /* Added for a smooth fade-out effect */
    transition: opacity 1s ease-in-out;
}
  
.box {
    position: absolute;
    z-index: 1; /* Button behind the canvas initially */
    background-color: rgba(0, 0, 0, 0.8);
    padding: 40px 60px;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
    color: white;
    text-align: center;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none; /* Start with the button hidden */
}
  
button {
    margin-top: 20px;
    padding: 15px 30px;
    font-size: 18px;
    background: linear-gradient(135deg, #ff5f6d, #ffc3a0);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
}
  
button:hover {
    background: linear-gradient(135deg, #ffc3a0, #ff5f6d);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.8); /* Glowing effect */
}

