body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden; /* Prevent default scrolling */
    background-color: #ffffff;
    font-family: system-ui, -apple-system, sans-serif;
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
}

#tiled-container {
    width: 100%;
    height: 100%;
    /* We will use background-image to create the endless tile */
    /* You will need to place your image named 'tile.png' in this folder */
    background-image: url('tile.png');
    background-repeat: repeat;
    background-position: 0px 0px;
    background-size: 125px; /* Adjust this to change how large the tile appears */
    touch-action: none; /* Crucial for custom swipe handling on mobile */
    cursor: grab;
    will-change: background-position;
}

#tiled-container:active {
    cursor: grabbing;
}

.photo-shield {
    position: absolute;
    width: 125px;
    height: 125px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    pointer-events: none; /* Let touches pass through to the container */
    will-change: transform;
}

#instruction {
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 16px;
    pointer-events: none;
    transition: opacity 0.5s ease-out;
    user-select: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
