<div id="start-screen" style=" width:100%; min-height:60vh; display:flex; align-items:center; justify-content:center; flex-direction:column; background:rgba(243,243,243,1); color:white; font-family:Arial; border-radius:8px; "> <img style="max-width:180px;" src="https://aws.biolyze.online/_lessonr/599.webp" alt="" /> <h2 style="color:#222;font-size:24px;margin-bottom:20px;">Click to Play Shape Transforming Shifting Run</h2> <button onclick="startGame()" style=" padding:12px 28px; font-size:24px; cursor:pointer; border:none; border-radius:6px; background:#28a745; color:white; ">PLAY</button> </div> <div id="lesson-wrapper" style=" width:100%; display:none; margin:auto; text-align:center; "> <div style=" position:relative; width:100%; max-width:100vw; height:calc(100vh - 80px); aspect-ratio:16 / 9; margin:auto; background:rgba(243,243,243,1); border-radius:8px; overflow:hidden; "> <iframe id="lesson-frame" src="https://aws.biolyze.online/g_599" style=" position:absolute; top:0; left:0; width:100%; height:100%; border:0; " allowfullscreen> </iframe> </div> <br> <button onclick="openFullscreenTab()" style=" padding:10px 26px; font-size:18px; background:#444; color:white; border:none; border-radius:6px; cursor:pointer; ">Fullscreen</button> </div> <script> function startGame() { document.getElementById("start-screen").style.display = "none"; document.getElementById("lesson-wrapper").style.display = "block"; } function openFullscreenTab() { const url = document.getElementById("lesson-frame").src; const win = window.open("about:blank", "_blank"); win.document.write(` <html> <head> <meta name="viewport" content="width=device-width,initial-scale=1"> <style> html,body{ margin:0; width:100%; height:100%; background:#000; overflow:hidden; } iframe{ width:100%; height:100%; border:0; } </style> </head> <body> <iframe src="${url}" allowfullscreen></iframe> </body> </html> `); win.document.close(); } </script> <style> body{ background:rgba(243,243,243,1); } <style>