* {
	box-sizing: border-box;
}

html, body {
	background-color: #E7E7E7;
	margin: 0;
	padding: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;
	font-family: Arial, Helvetica, sans-serif;
	-webkit-font-smoothing: antialiased;
}

#stage-wrapper {
	position: relative;
	width: 100vw;
	height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
}

#flashcontent {
	position: relative;
	width: 720px;
	height: 484px;
	background-color: #E7E7E7;
	overflow: hidden;
	user-select: none;
	transform-origin: center center;
}

/* Paper unfolding layers */
.paper-layer {
	position: absolute;
	pointer-events: none;
	opacity: 0;
	display: none;
}

/* Preloader (preloader_mc) */
.preloader-mc {
	position: absolute;
	width: 270px;
	height: 60px;
	pointer-events: none;
	z-index: 50;
	display: none;
}

.preloader-mc svg {
	overflow: visible;
	display: block;
}

.preloader-mc .loader-txt {
	position: absolute;
	left: 2px;
	top: 29.5px;
	font-family: "Courier New", Courier, monospace;
	font-size: 20px;
	font-weight: bold;
	color: #653825;
	line-height: 1;
	white-space: nowrap;
}

/* Left navigation buttons */
.nav-btn {
	position: absolute;
	cursor: pointer;
	display: none;
	z-index: 20;
	background: none;
	border: none;
	padding: 0;
	outline: none;
}

.nav-btn img {
	display: block;
	pointer-events: none;
}

.nav-btn:hover img,
.nav-btn:active img,
.nav-btn.active-shift img {
	transform: translate(3px, 3px);
}

/* Bottom-left credit */
#credit-box {
	position: absolute;
	left: 50.95px;
	top: 415.8px;
	width: 172px;
	z-index: 20;
	display: none;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 11px;
	line-height: 14px;
	color: #583003;
	text-align: left;
	user-select: text;
}

#credit-box a {
	color: #583003;
	text-decoration: none;
}

#credit-box a:hover {
	text-decoration: underline;
}

/* Tiny black dot from Frame 32 Char #58 */
#frame32-dot {
	position: absolute;
	left: 174.45px;
	top: 391.4px;
	width: 1.5px;
	height: 1.6px;
	background: #000000;
	z-index: 20;
	display: none;
	pointer-events: none;
}

/* Right section container */
.section-panel {
	position: absolute;
	left: 0;
	top: 0;
	width: 720px;
	height: 484px;
	z-index: 15;
	display: none;
	pointer-events: none;
}

.section-panel.active {
	display: block;
}

.section-panel * {
	pointer-events: auto;
}

/* Semi-transparent white backing box (Char #62, alpha 110/256 = 0.43) */
.white-backing {
	position: absolute;
	background-color: rgba(255, 255, 255, 0.43);
	pointer-events: none;
}

/* Section Titles (_typewriter 28px) */
.sec-title {
	position: absolute;
	font-family: "Courier New", Courier, monospace;
	font-size: 28px;
	font-weight: normal;
	color: #000000;
	line-height: 32px;
	margin: 0;
	white-space: nowrap;
	letter-spacing: 0px;
}

/* Typewriter body text (11px) */
.typewriter-text {
	position: absolute;
	font-family: "Courier New", Courier, monospace;
	font-size: 11px;
	color: #000000;
	line-height: 14.2px;
	text-align: left;
	user-select: text;
}

.typewriter-text p {
	margin: 0 0 8px 0;
}

.typewriter-text p:last-child {
	margin-bottom: 0;
}

.typewriter-text a {
	color: #013958;
	font-weight: bold;
	text-decoration: none;
}

.typewriter-text a:hover {
	text-decoration: underline;
}

/* Section 2: QUADRI */
#quadri-image-container {
	position: absolute;
	left: 244.95px;
	top: 41.0px;
	width: 434px;
	height: 357px;
	display: flex;
	align-items: flex-start;
	justify-content: flex-start;
	pointer-events: none;
}

#quadri-image-container img {
	display: block;
	max-height: 357px;
	width: auto;
}

#quadri-numbers-img {
	position: absolute;
	left: 242.25px;
	top: 404.85px;
	width: 442px;
	height: 32px;
	z-index: 18;
	pointer-events: none;
}

.quadri-num-btn {
	position: absolute;
	width: 25.55px;
	height: 25.55px;
	margin-left: -12.8px;
	margin-top: -12.0px;
	background-color: #f7f5d9;
	border: none;
	padding: 0;
	cursor: pointer;
	z-index: 16;
	transition: background-color 0.1s;
}

.quadri-num-btn:hover,
.quadri-num-btn.active {
	background-color: #e6dfb0;
}

/* Section 3: CARTOLINE thumbnails */
.cartolina-thumb {
	position: absolute;
	border: none;
	padding: 0;
	background: none;
	cursor: pointer;
	display: none;
}

.cartolina-thumb img {
	display: block;
	pointer-events: none;
}

.cartolina-thumb:hover img,
.cartolina-thumb:active img {
	transform: translate(3.5px, 3.8px);
}

/* Section 6: LASCIATE COMMENTI */
.gb-borders-svg {
	position: absolute;
	left: 0;
	top: 0;
	width: 720px;
	height: 484px;
	pointer-events: none;
}

.gb-label {
	position: absolute;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 12px;
	color: #000000;
	line-height: 15px;
	pointer-events: none;
}

.gb-input {
	position: absolute;
	background: transparent;
	border: none;
	outline: none;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 11px;
	color: #000000;
	padding: 1px 3px;
}

.gb-textarea {
	position: absolute;
	background: transparent;
	border: none;
	outline: none;
	resize: none;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 11px;
	color: #000000;
	padding: 2px 3px;
	line-height: 14px;
}

.img-action-btn {
	position: absolute;
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
}

.img-action-btn img {
	display: block;
}

.img-action-btn:hover img,
.img-action-btn:active img {
	transform: translate(3.4px, 3.4px);
}

#gb-result-tf {
	position: absolute;
	left: 442.25px;
	top: 329.95px;
	width: 232.8px;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 14px;
	color: #ff0000;
	pointer-events: none;
}

/* Modal Overlays (Postcard Popup, Guestbook Visual Popup) */
.angeli-modal-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 1000;
}

.angeli-modal-backdrop.open {
	display: flex;
}

/* Postcard 484x550 window */
#postcard-window {
	position: relative;
	width: 484px;
	height: 550px;
	background-color: #E7E7E7;
	box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
	overflow: hidden;
	user-select: none;
}

.modal-close-btn {
	position: absolute;
	right: 10px;
	top: 8px;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: rgba(88, 48, 3, 0.85);
	color: #fff;
	border: none;
	font-size: 16px;
	line-height: 26px;
	text-align: center;
	cursor: pointer;
	z-index: 100;
	padding: 0;
}

.modal-close-btn:hover {
	background: #000;
}

#card-contenuto-mc {
	position: absolute;
	left: 24.3px;
	top: 4.95px;
	width: 434px;
	height: 357px;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	pointer-events: none;
	z-index: 20;
}

#card-contenuto-mc img {
	display: block;
	max-height: 357px;
	width: auto;
}

#card-form-layer {
	position: absolute;
	inset: 0;
	z-index: 25;
	display: none;
}

/* Guestbook comments viewer (484x550 as in spawnWindow) */
#guestbook-window {
	position: relative;
	width: 484px;
	height: 550px;
	background-color: #E7E7E7;
	box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
	padding: 18px 20px;
	overflow-y: auto;
	color: #142941;
}

#guestbook-window h1 {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 11px;
	font-weight: bold;
	color: #142941;
	text-align: left;
	margin: 4px 0;
}

#guestbook-window h2 {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 10px;
	font-weight: normal;
	color: #003366;
	text-align: left;
	margin: 4px 0;
}

#guestbook-window hr {
	border: none;
	border-top: 1px solid #b8b8b8;
	margin: 10px 0;
}
