:root {
	--theme-color: #2a76dd;
	--theme-color-transparent-10: rgba(42, 118, 221, 0.1);
	--theme-color-transparent-15: rgba(42, 118, 221, 0.15);
	--theme-color-transparent-20: rgba(42, 118, 221, 0.2);
	--main-font: 'Montserrat', sans-serif;
}

body {
	background-color: #f5f5f5;
}

/* Override all Reveal.js theme fonts */
.reveal {
	font-family: var(--main-font) !important;
}

.reveal h1, 
.reveal h2, 
.reveal h3, 
.reveal h4, 
.reveal h5, 
.reveal h6 {
	font-family: var(--main-font) !important;
	color: var(--theme-color);
	font-weight: 600;
	text-transform: none;
}

.reveal h1 {
	font-size: 1.6em;
	margin-bottom: 0.5em;
}
.reveal h2 {
	font-size: 1.3em;
	margin-bottom: 0.5em;
}
.reveal h3 {
	font-size: 1em;
	margin-bottom: 0.3em;
}
.reveal p, 
.reveal li, 
.reveal div,
.reveal span,
.reveal blockquote,
.reveal td,
.reveal th {
	font-family: var(--main-font) !important;
}

.reveal p, .reveal li {
	font-size: 0.7em;
	line-height: 1.5;
}
.reveal ul, .reveal ol {
	display: block;
	margin-left: 20px;
}
.reveal li {
	margin-bottom: 0.6em;
}
.reveal .slides {
	text-align: left;
}
.reveal .slides section {
	padding: 40px;
	height: 100%;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;

}
.reveal .slides section.balance-slide {
	justify-content: space-between; 
}
.reveal .slides section.balance-slide .content-wrapper {
	margin-top: 60px;
}
.reveal .slides section.grid-slide {
	display: grid !important;
	place-items: center;
	justify-content: center;
	padding: 60px;
}
.reveal img {
	border: none !important;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3) !important;
	max-height: 450px;
	display: block;
	margin: 0 auto;
	object-fit: contain;
	max-width: 100%;
	transition: transform 0.3s ease;
}
.reveal img:hover {
	transform: scale(1.02);
}
.container {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	width: 100%;
	height: 90%;
	gap: 20px;
}
.col {
	flex: 1;
	padding: 10px;
	max-width: 48%;
	height: 100%;
}
.smalltext {
	font-size: 0.65em;
}
.citation {
	font-size: 0.6em;
	font-style: italic;
	color: #666;
	margin-top: 10px;
	margin-bottom: 15px;
}
.reveal ul ul {
	font-size: 1.2em;
}
.author-info {
	font-size: 0.8em;
	margin-top: 15px;
	margin-bottom: 20px;
	font-style: italic;
	font-weight: bold;
}
.img-caption {
	font-size: 0.5em !important;
	text-align: center;
	color: #555;
	margin-top: 5px;
}
.bg-header {
	background-color: var(--theme-color-transparent-10);
	padding: 10px 15px;
	border-left: 4px solid var(--theme-color);
	margin-bottom: 20px;
	display: inline-block;
	border-radius: 0 4px 4px 0;
}
.highlight {
	color: var(--theme-color);
	font-weight: bold;
}
.text-center {
	text-align: center;
}
.logo {
	position: absolute;
	bottom: 15px;
	right: 50px;
	max-width: 250px!important;
	height: auto;
	opacity: 1;
	z-index: 100;
	box-shadow: none !important;
	-webkit-box-shadow: none !important;
	transition: none !important;
	user-select: none;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	pointer-events: none;
	font-family: 'Lato', sans-serif!important;
}
.logo:hover {
	transform: none !important;
	box-shadow: none !important;
	-webkit-box-shadow: none !important;
}
.reveal img.logo {
	box-shadow: none !important;
	-webkit-box-shadow: none !important;
}
.data-table {
	font-size: 0.55em;
	width: 90%;
	border-collapse: collapse;
	margin: 10px 0;
	overflow-x: hidden;
	box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.data-table th,
.data-table td,
.data-table tr {
	font-family: var(--main-font) !important;
}
.data-table th {
	background-color: rgba(42, 118, 221, 0.2);
	color: #333;
	font-weight: 600;
	padding: 12px !important;
}
.data-table th, .data-table td {
	padding: 10px;
	border: 1px solid #ddd;
	text-align: center;
}
.data-table td {
	padding: 10px !important;
}
.data-table tr:nth-child(even) {
	background-color: rgba(0,0,0,0.03);
}
.data-table tr:hover {
	background-color: rgba(42, 118, 221, 0.05);
}
.data-table .highlight-cell {
	background-color: rgba(42, 118, 221, 0.15);
	font-weight: bold;
}
.image-gallery {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 15px;
	margin-top: 20px;
}
.image-gallery img {
	max-height: 180px;
	width: auto;
	box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4) !important;
	border-radius: 4px;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.image-gallery img:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5) !important;
}
.bg-image {
	position: absolute;
	bottom: 20px;
	right: 20px;
	max-width: 200px;
	border-radius: 5px;
	opacity: 0.85;
	mask-image: radial-gradient(ellipse 80% 70% at 20% 70%, transparent, black);
	-webkit-mask-image: radial-gradient(ellipse 80% 70% at 20% 70%, transparent, black);
}
.key-word {
	color: var(--theme-color);
	font-weight: bold;
}
.fragment.highlight-blue {
	opacity: 1;
	visibility: inherit;
}
.fragment.highlight-blue.visible {
	font-weight: bold;
	color: var(--theme-color);
}
.highlight-text {
	background-color: var(--theme-color-transparent-10);
	padding: 2px 5px;
	border-radius: 3px;
	font-weight: bold;
}
.slide-citation {
	position: absolute;
	bottom: 40px;
	left: 60px;
	font-size: 0.5em;
	opacity: 0.6;
	font-style: italic;
	max-width: 1000px;
	text-align: left;
	color: #555;
	font-family: var(--main-font) !important;
}
/* Before-After Comparison Styles */
.bal-container-small {
	position: relative;
	width: 979px;
	height: 546px;
	margin: 0 auto;
	overflow: hidden;
	--position: 50%;
	border-radius: 0.5rem;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}
.image-container {
	position: relative;
	width: 100%;
	height: 100%;
	overflow: hidden;
}
.slider-image {
	position: absolute;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: left;
	margin: 0;
	padding: 0;
	max-width: none;
	max-height: none;
	z-index: 1;
}
.image-before {
	position: absolute;
	width: var(--position);
	height: 100%;
	overflow: hidden;
	top: 0;
	left: 0;
	z-index: 2;
}
.image-before img {
	position: absolute;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: left;
	margin: 0;
	padding: 0;
	max-width: none;
	max-height: none;
}
.slider {
	position: absolute;
	inset: 0;
	cursor: pointer;
	opacity: 0;
	width: 100%;
	height: 100%;
	z-index: 10;
	margin: 0; /* Override reveal.js margins */
}
.slider:focus-visible ~ .slider-button {
	outline: 3px solid var(--theme-color);
	outline-offset: 3px;
}
.slider-line {
	position: absolute;
	inset: 0;
	width: 4px;
	height: 100%;
	background-color: var(--theme-color);
	left: var(--position);
	transform: translateX(-50%);
	pointer-events: none;
	z-index: 5;
}
.slider-button {
	position: absolute;
	background-color: var(--theme-color);
	color: white;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	top: 50%;
	left: var(--position);
	transform: translate(-50%, -50%);
	pointer-events: none;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
	z-index: 6;
}
.slider-button::before, 
.slider-button::after {
	content: "";
	position: absolute;
	width: 0;
	height: 0;
	border: 6px solid transparent;
}
.slider-button::before {
	border-right: 6px solid white;
	left: -5px;
}
.slider-button::after {
	border-left: 6px solid white;
	right: -5px;
}
.image-label {
	position: absolute;
	top: 10px;
	padding: 5px 10px;
	background: rgba(0, 0, 0, 0.5);
	color: white;
	font-size: 0.8em;
	border-radius: 3px;
	z-index: 5;
}
.label-before {
	left: 10px;
}
.label-after {
	right: 10px;
}
/* SVG Background for first and last slides */
.first-last-slide-background {
	position: absolute;
	top: 0;
	left: 50%;
	width: 50%;
	height: 100%;
	background-image: url('../resources/logo/SNU-main.svg');
	background-position: center;
	background-size: 250%;
	background-repeat: no-repeat;
	opacity: 0.1;
	filter: grayscale(100%);
	z-index:-1;
	overflow: hidden;
}

/* Ensure code blocks don't get affected by font overrides */
.reveal pre,
.reveal code {
	font-family: monospace !important;
}

/* Preserve monospace in code blocks but use Montserrat in code block headers/titles */
.reveal pre code {
	font-family: monospace !important;
	font-size: 0.9em !important;
}

/* Target syntax highlighted code more specifically */
.reveal .hljs,
.reveal pre.hljs,
.reveal code.hljs,
.reveal div.hljs,
.reveal pre .hljs {
	font-family: monospace !important;
	font-size: 0.9em !important;
}

/* Style for highlight.js */
.hljs {
	font-family: monospace !important;
}

/* Override any font changes in code blocks */
code, pre, .hljs {
	font-family: monospace !important;
}

/* Target code blocks more specifically */
.reveal .slides pre,
.reveal .slides code,
.reveal .slides pre code {
	font-family: monospace !important;
}

/* Ensure Montserrat is used for all heading elements */
.reveal .slides section h1, 
.reveal .slides section h2, 
.reveal .slides section h3, 
.reveal .slides section h4, 
.reveal .slides section h5, 
.reveal .slides section h6 {
    font-family: var(--main-font) !important;
    letter-spacing: normal;
}

/* Ensure Montserrat is used for all text in custom elements */
.bg-header,
.highlight,
.highlight-text,
.highlight-cell,
.smalltext,
.citation {
    font-family: var(--main-font) !important;
}

/* Override any remaining theme typography */
.reveal .slides {
    font-family: var(--main-font) !important;
    text-transform: none;
}

/* Fix any potential theme-specific heading transformations */
.reveal h1, 
.reveal h2, 
.reveal h3, 
.reveal h4 {
    text-transform: none !important;
    letter-spacing: normal !important;
} 