/*
Theme Name: WhiteScreenTester (SPA)
Theme URI: https://example.com/
Author: Converted from Google AI Studio export
Description: WordPress theme wrapper for the WhiteScreenTester React SPA. Includes Customizer-controlled branding and ad slots.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: whitescreen-tester
*/

/* This theme renders the UI via a bundled React app.
   All styling lives in assets/app/assets/*.css */


/* Prevent horizontal scroll */
html, body { overflow-x: hidden; max-width: 100vw; }
#root { overflow-x: clip; max-width: 100vw; }
img { max-width: 100%; height: auto; }

/* Prevent layout shift (dropdowns/overlays toggling scrollbar on desktop) */
@supports (scrollbar-gutter: stable) {
  html { scrollbar-gutter: stable; }
}
@media (min-width: 768px) {
  body { overflow-y: scroll; }
}
/* Hide all ad slots when in fullscreen (toggled via Customizer) */
body.wst-hide-ads-fullscreen [data-wst-ad-slot],
body.wst-hide-ads-fullscreen [data-ad-slot],
body.wst-hide-ads-fullscreen [data-slot="ad"],
body.wst-hide-ads-fullscreen .wst-ad,
body.wst-hide-ads-fullscreen .wst-ad-slot,
body.wst-hide-ads-fullscreen .ad-slot,
body.wst-hide-ads-fullscreen .ads,
body.wst-hide-ads-fullscreen ins.adsbygoogle,
body.wst-hide-ads-fullscreen iframe[id^="google_ads"],
body.wst-hide-ads-fullscreen iframe[src*="doubleclick"],
body.wst-hide-ads-fullscreen iframe[src*="googlesyndication"],
body.wst-hide-ads-fullscreen iframe[src*="ads"] {
  display: none !important;
}