/* Dagskráin – flettirit (standalone lesari) */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
.dtt-flip-body {
	background: #1a1a1a;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	display: flex;
	flex-direction: column;
	height: 100vh;
	overflow: hidden;
}

/* Topp-rönd */
.dtt-flip-bar {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px 14px;
	background: #cc0000;
	color: #fff;
}
.dtt-flip-back {
	background: rgba(255,255,255,.15);
	color: #fff;
	border: none;
	border-radius: 4px;
	padding: 6px 12px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}
.dtt-flip-back:hover { background: rgba(255,255,255,.28); }
.dtt-flip-title { font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dtt-flip-tools { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.dtt-flip-tools button {
	background: rgba(255,255,255,.15);
	color: #fff;
	border: none;
	border-radius: 4px;
	width: 34px; height: 34px;
	font-size: 18px; line-height: 1;
	cursor: pointer;
}
.dtt-flip-tools button:hover { background: rgba(255,255,255,.28); }
.dtt-flip-pageinfo { font-size: 13px; font-variant-numeric: tabular-nums; min-width: 56px; text-align: center; }
.dtt-flip-download {
	background: #fff; color: #cc0000; border-radius: 4px;
	padding: 7px 12px; font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap;
}

/* Svið */
.dtt-flip-stage {
	flex: 1 1 auto;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	overflow: hidden;
}
#dtt-flip { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.dtt-page { background: #fff; }
.dtt-page canvas { display: block; width: 100%; height: 100%; }

/* Hleðsla */
.dtt-flip-loading {
	position: absolute; inset: 0;
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	color: #ddd; gap: 14px;
}
.dtt-flip-spinner {
	width: 42px; height: 42px;
	border: 4px solid rgba(255,255,255,.2);
	border-top-color: #cc0000;
	border-radius: 50%;
	animation: dtt-spin 0.9s linear infinite;
}
@keyframes dtt-spin { to { transform: rotate(360deg); } }
.dtt-flip-loadtext { font-size: 14px; }

/* Fallback */
.dtt-flip-fallback { color: #eee; text-align: center; }
.dtt-flip-fallback-link {
	display: inline-block; margin-top: 10px;
	background: #cc0000; color: #fff; padding: 10px 20px; border-radius: 5px;
	text-decoration: none; font-weight: 700;
}

/* Zoom-yfirlag */
.dtt-flip-zoomview {
	position: fixed; inset: 0; z-index: 1000;
	background: rgba(0,0,0,.92);
	display: flex; flex-direction: column;
}
.dtt-flip-zoomclose {
	position: absolute; top: 10px; right: 12px; z-index: 2;
	background: rgba(255,255,255,.2); color: #fff; border: none;
	width: 40px; height: 40px; border-radius: 50%; font-size: 20px; cursor: pointer;
}
.dtt-flip-zoomscroll {
	flex: 1 1 auto; overflow: auto; -webkit-overflow-scrolling: touch;
	display: flex; align-items: flex-start; justify-content: center; padding: 20px;
	cursor: grab;
}
.dtt-flip-zoomscroll.dtt-dragging { cursor: grabbing; }
.dtt-flip-zoomcanvas { max-width: none; height: auto; background: #fff; box-shadow: 0 4px 30px rgba(0,0,0,.5); }
.dtt-flip-zoomloading { color: #ddd; margin: auto; }

/* Zoom-stýring neðst fyrir miðju */
.dtt-flip-zoomctrl {
	position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%);
	display: flex; align-items: center; gap: 4px;
	background: rgba(0,0,0,.7); border-radius: 24px; padding: 4px;
	box-shadow: 0 2px 12px rgba(0,0,0,.4);
}
.dtt-flip-zoomctrl button {
	background: rgba(255,255,255,.15); color: #fff; border: none;
	width: 38px; height: 38px; border-radius: 50%; font-size: 22px; line-height: 1; cursor: pointer;
}
.dtt-flip-zoomctrl button:hover { background: rgba(255,255,255,.3); }
.dtt-flip-zoomlevel {
	color: #fff; font-size: 14px; font-variant-numeric: tabular-nums;
	min-width: 56px; text-align: center; user-select: none;
}

/* Vísbending um að tvísmella til að stækka */
.dtt-page { cursor: zoom-in; }

@media (max-width: 600px) {
	.dtt-flip-title { display: none; }
	.dtt-flip-download { padding: 7px 10px; }
}
