33< head >
44 < meta charset ="UTF-8 ">
55 < meta name ="viewport " content ="width=device-width, initial-scale=1.0 ">
6- < title > CYOA Studio</ title >
6+ < title > CYOA Studio Pro </ title >
77 < style >
88 : root {
99 /* Desaturated colors as requested */
159159 .layout-top-down { flex-direction : column; } .layout-top-down # player-image-container { width : 100% ; margin-bottom : 20px ; } .layout-top-down # player-image { width : 100% ; height : auto; }
160160 .layout-side-by-side { flex-direction : row; align-items : flex-start; } .layout-side-by-side # player-image-container { width : 40% ; flex-shrink : 0 ; } .layout-side-by-side # player-content-container { width : 60% ; }
161161 .layout-image-as-bg # player-image-container { display : none !important ; }
162+ .layout-image-as-bg # player-content-container { width : 100% ; } /* BUG FIX: Ensure content fills width */
162163 @keyframes fadeIn { from { opacity : 0 ; } to { opacity : 1 ; } }
163164 # player-choices .choice-btn .fade-in { animation : fadeIn 0.5s forwards; opacity : 0 ; }
164165
@@ -357,7 +358,6 @@ <h1>Scene Editor <span id="main-title-dirty-indicator">(unsaved)</span></h1>
357358 padding : 20px ;
358359 box-sizing : border-box;
359360 }
360- /* ALIGNMENT FIX: Apply alignment based on layout class */
361361 body : not (.layout-image-as-bg ) { align-items : center; }
362362 body .layout-image-as-bg { align-items : flex-end; }
363363
@@ -382,7 +382,7 @@ <h1>Scene Editor <span id="main-title-dirty-indicator">(unsaved)</span></h1>
382382 .choice-btn : hover { transform : translateY (-2px ); }
383383 @keyframes fadeIn { from { opacity : 0 ; } to { opacity : 1 ; } }
384384 .choice-btn .fade-in { animation : fadeIn 0.5s forwards; opacity : 0 ; }
385- /* Flex rules are now applied directly to the container which gets the class */
385+
386386 # game-container .layout-top-down { flex-direction : column; }
387387 # game-container .layout-top-down # image-container { width : 100% ; margin-bottom : 20px ; }
388388 # game-container .layout-top-down # scene-image { width : 100% ; height : auto; max-height : 50vh ; }
@@ -391,6 +391,7 @@ <h1>Scene Editor <span id="main-title-dirty-indicator">(unsaved)</span></h1>
391391 # game-container .layout-side-by-side # scene-image { width : 100% ; height : auto; }
392392 # game-container .layout-side-by-side # content-container { width : 60% ; }
393393 # game-container .layout-image-as-bg # image-container { display : none; }
394+ # game-container .layout-image-as-bg # content-container { width : 100% ; }
394395
395396 # player-menu-btn { position : fixed; top : 15px ; right : 15px ; z-index : 100 ; background : rgba (0 , 0 , 0 , 0.5 ); color : white; border : 1px solid rgba (255 , 255 , 255 , 0.5 ); border-radius : 50% ; width : 40px ; height : 40px ; padding : 0 ; font-size : 24px ; line-height : 40px ; text-align : center; cursor : pointer; }
396397 .player-modal { display : none; position : fixed; z-index : 1000 ; left : 0 ; top : 0 ; width : 100% ; height : 100% ; background-color : rgba (0 , 0 , 0 , 0.6 ); justify-content : center; align-items : center; }
@@ -1019,7 +1020,6 @@ <h2 id="about-title"></h2>
10191020 gameContainer.className = layout;
10201021
10211022 if (layout === 'layout-image-as-bg') {
1022- imageContainer.style.display = 'none';
10231023 if (imageUrl) {
10241024 document.body.style.backgroundImage = \`url('\${imageUrl}')\`;
10251025 } else {
0 commit comments