<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <title>Parallax Effect</title>
    <style>
        html,
        body {
            box-sizing: border-box;
            margin: 0;
            height: 100%;
            background: white;
            display: flex;
            justify-content: center;
            align-items: center;
            font-family: sans-serif;
            overflow: hidden; /* Add this */
            touch-action: none; /* Add this */
        }

        .image-container {
            display: flex;
            height: 100%;
            width: 100%;
            max-width: 100%;
            position: relative;
        }

        .canvas {
            width: auto;
            max-height: 100%;
            max-width: 100%;
            display: block;
            margin: auto;
            transform-style: preserve-3d; /* Add this */
            will-change: transform; /* Add this */
            touch-action: none; /* Add this */
            -webkit-touch-callout: none; /* Add this */
            -webkit-user-select: none; /* Add this */
            user-select: none; /* Add this */
        }

        .loading-screen {
            position: absolute;
            width: 100%;
            height: 100%;
            background: white;
            top: 0;
            bottom: 0;
            left: 0;
            right: 0;
            visibility: visible;
            opacity: 1;
            text-align: center;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            line-height: 40px;
            transition: 0.25s ease all 0.75s;
            color: #999;
            transform: translateZ(50px);
            z-index: 1000; /* Add this */
        }

        .loading-screen.hidden {
            visibility: hidden;
            opacity: 0;
            pointer-events: none; /* Add this */
        }
    </style>
</head>
<body>
    <div class="image-container">
        <div id="loading" class="loading-screen">Loading...</div>
        <canvas id="canvas" class="canvas"></canvas>
    </div>
    <script src="script.js"></script>
</body>
</html>
