/* reset */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, /*ol, ul, li,*/
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
	/*    font: inherit;*/
    vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
    display: block;
}

@font-face {
    font-family: 'Devant';
    src: url('../fonts/Devant.woff') format('woff'), /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
         url('../fonts/Devant.ttf') format('truetype'); /* Chrome 4+, Firefox 3.5, Opera 10+, Safari 3—5 */
}

/* typewriter font */
.tw {
	font-family: "Courier New", Courier, "Lucida Console", monospace;
}

/*
    We set up <body> styles with default font and nice gradient in the background.
*/
body {
	font-size: 22px;
    font-family: sans-serif;
    line-height: 1.5;
    min-height: 740px;

    background: white;

	-webkit-transition: background 1000ms linear;
    -ms-transition: background 1000ms linear;
    transition: background 1000ms linear;
	color: black;
}

/*
    Now let's bring some text styles back ...
*/
b, strong { font-weight: bold }
i, em { font-style: italic }


/*
    ... and give links a nice look.
*/
a {
	color:  #4f0099;
	text-decoration: none;
    border-radius: 0.2em;
}

a:hover,
a:focus {
    background: #e6ccff;
}

/* references as links */
.ref-container {
	display: flex;
	justify-content: flex-end;
	margin-bottom: 20px; /* spacing before the image */
}

.ref {
	font-size: 18px;
	text-align: right;
	color: #4f0099;
	margin-bottom: 10px;
}


/* Impress settings */
.step {
    position: relative;
    width: 1500px;
	min-height: 800px;
    padding: 40px;
    margin: 20px auto;

    -webkit-box-sizing: border-box;
    -moz-box-sizing:    border-box;
    -ms-box-sizing:     border-box;
    -o-box-sizing:      border-box;
    box-sizing:         border-box;
}

.future {
	opacity: 0;
	transition: opacity 0.5s;
}

.active {
	opacity: 1;
	transition: opacity 0.5s;
}

.past .vanish-past {
	opacity: 0;
	transition: opacity 0.5s;
}

.center {
	text-align: center;
}

/* titles */

h2 {
	margin-top: 15px;
	margin-bottom: 10px;
	text-align: center;
	font-size: 60px;
	display: flex;
	color: #006600;
	font-family: Devant;
	font-weight: normal;
	position:relative;
	line-height: 1;
}

.h2span {
	padding: 3px 15px;
	border: 3px solid;
	border-image: linear-gradient(to right, #006600 0%, #006600 5%, transparent 6%, transparent 94%, #006600 95%, #006600 100%);
	border-image-slice: 1;
	opacity: 0;
	transition: opacity 0.6s ease;
}

h2::before, h2::after{
	content: "";
	flex: 1;
	align-self: center;
	border: 2px solid #006600;
	border-op: 2px solid #06600;
	height: 0;
	width: 100%;

	transform: scaleX(0);
	transition: transform 0.6s ease;
}

h2::before {
	transform-origin: left;
}

h2::after {
	transform-origin: right;
}

.present h2::before,
.present h2::after,
.past h2::before,
.past h2::after {
	transform: scaleX(1);
	transition: transform 0.6s ease;
}

.present .h2span, .past .h2span {
	opacity: 1;
	transition: opacity 0.6s ease 0.6s;
}

h3 {
	margin-top: 20px;
	margin-bottom: 30px;
	font-size: 42px;
	font-weight: 500;
	color: #333;
	font-family: 'Devant', sans-serif;
	text-align: center;
	position: relative;
	padding-bottom: 8px;
}

h3::after {
	content: "";
	position: absolute;
	left: 50%;
	transform: translateX(-50%) rotate(-2deg);
	bottom: 0;
	width: 200px;
	height: 12px;
	background-color: #006600;
	z-index: -1;
	border-radius: 20% 25% 20% 24%;
}


/* fancy blockquote */
blockquote.quote {
    position: relative; 
    text-align: center;
    padding: 1rem 1.2rem;
    width: 80%;  /* create space for the quotes */
    margin: 1rem auto 2rem;
}

blockquote.EN {
    background:
		linear-gradient(to right, #006600 4px, transparent 4px) 0 100%,
		linear-gradient(to left, #006600 4px, transparent 4px) 100% 0,
		linear-gradient(to bottom, #006600 4px, transparent 4px) 100% 0,
		linear-gradient(to top, #006600 4px, transparent 4px) 0 100%;
    background-repeat: no-repeat;
    background-size: 120px 30px;
}

blockquote.quote:before,
blockquote.quote:after{
	font-family: sans-serif;
    position: absolute;
    color: #006600;
    font-size: 150px;
}

blockquote.EN:before{
	content: "\201c";
    top: -50px;
    margin-right: -20px;
    right: 100%;
}
blockquote.EN:after{
    content: "\201d";
    margin-left: -20px;
    left: 100%;  
    top: auto;
    bottom: -150px;
}

/* lists */
ul > li {
	font-size: 22px;
}

ul > li > ul > li{
	font-size: 18px;
}

.card-list, .card-list ul {
    list-style: none;
    padding: 0;
    font-size: 22px;
}

.card-list li {
    background: #f0f0f0;
    border-left: 6px solid #006600;
    padding: 7px 10px;
    margin: 5px 0;
    border-radius: 8px;
}

.card-list ul li {
    background: #e6f2e6;
    border-left-color: #339933;
    margin: 3px 0;
    padding-left: 15px;
    font-size: 18px;
}
.card-list ul {
    margin-left: 15px;
    margin-top: 3px;
}

ul.card-list > li {
	margin-left: 0;
	transition: all 0.6s;
}

.present ul.card-list > li {
	margin-left: calc(var(--step) * 3em);
	transition: all 0.6s;
}

.past ul.card-list > li.no-move-back {
	margin-left: calc(var(--step) * 3em);
}

ul.card-list > li:nth-child(1) { --step: 0; }
ul.card-list > li:nth-child(2) { --step: 1; }
ul.card-list > li:nth-child(3) { --step: 2; }
ul.card-list > li:nth-child(4) { --step: 3; }
ul.card-list > li:nth-child(5) { --step: 4; }
ul.card-list > li:nth-child(6) { --step: 5; }

.card-list li.highlight {
	background-color: #e6ccff;
	border-left: 4px solid #6600cc;
	padding-left: 8px;
	transition: all 0.6s;
}


/* 3rd level horizontal list */
.card-list > li > ul > li > ul {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 6px;
	padding-left: 0;
	list-style: none;
}

.card-list > li > ul > li > ul > li {
	background-color: #e6ffe6;
	border: 1px solid #006600;
	border-radius: 5px;
	padding: 4px 10px;
	font-size: 14px;
	color: #004400;
}

/* Container for image and bullets */
.card-content {
	display: flex;
	gap: 20px;
	margin-top: 10px;
	align-items: flex-start;
}

/* 2nd level list next to image */
.card-content ul {
	padding-left: 20px;
	margin: 0;
	font-size: 18px;
	color: #333;
}

.card-content ul li {
    background: #e6f2e6;
    border-left-color: #339933;
    margin: 6px 0;
    padding-left: 20px;
    font-size: 14px;
}

/* 3rd level list next to image */
.card-content > ul > li > ul {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 6px;
	padding-left: 20px;
	list-style: none;
}

.card-content >  ul > li > ul > li {
	background-color: #e6ffe6;
	border: 1px solid #006600;
	border-radius: 5px;
	padding: 4px 10px;
	font-size: 14px;
	color: #004400;
}

/* Boxed equation */
.centerBox {
	display:inline-block;
	text-align:center;
	border: 2px solid;
	border-radius: 15px;
	border-color: #004400;
	padding: 10px;
	margin: 5px;
}

/** opposite of highlight, animates together with highlighting */
.downlight {
	color: black;
	transition: color 1s ease-in-out;
}

.present .downlight {
	color: #bbbbbb;
	transition: color 1s ease-in-out 2s;
}

/* nice highlighting */
.highlight-container {
	position: relative;
	display: inline-block;
	color: black;
}

.highlight-mask {
	position: absolute;
	inset: 0;
	overflow: hidden;
	pointer-events: none; /* allow interaction with text */
	z-index: -1;
}

.highlight-bg {
	position: absolute;
	top: -1px;
	left: -1px;
	height: 90%;
	width: 100%;
	margin-left: -3px;
	margin-right: -3px;
	background: #e6ccff;
	transform: rotate(2deg) translateX(-100%);
	border-radius: 20% 25% 20% 24%;
	z-index: -1;
	transition: transform 1s ease-in-out;
}

.present .highlight-container .highlight-bg {
	transform: rotate(2deg) translateX(0);
	transition: transform 1s ease-in-out 2s;
}

.conclusion-box {
	margin-top: 20px;
	padding: 15px 25px;
	border-left: 5px solid #006600;
	background: #f5fff5;
	border-radius: 8px;
	font-size: 22px;
	font-weight: 800;
	color: #003300;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
	max-width: 80%;
	margin-left: auto;
	margin-right: auto;
	text-align: center;
}

/* highlight box */
.highlight-box {
    border-left: none;
    border-right: none;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 4px 10px rgba(0, 102, 0, 0.08);
    overflow: hidden;
	margin-top: 30px;
	border-top: 2px solid #006600;
    border-bottom: 2px solid #006600;
	background-color: #f9fff9;
}

.highlight-box-title {
    padding: 10px 16px;
    font-size: 22px;
    font-weight: bold;
	background-color: #006600;
    color: white;
}

.highlight-box-content {
    padding: 15px 20px;
    font-size: 20px;
}

/* Table */

.table-container {
  margin: 30px auto;
  display: flex;
  justify-content: center;
}

.styled-table {
  border-collapse: separate;
  border-spacing: 0;
  min-width: 600px;
  font-size: 18px;
  font-family: sans-serif;
  color: #333;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.styled-table thead {
  background-color: #e6ccff;
  color: #000;
  font-weight: bold;
}

.styled-table th,
.styled-table td {
  padding: 12px 20px;
  text-align: left;
}

.styled-table tbody tr:nth-child(even) {
  background-color: #e1e1e1;
}

.styled-table tbody td:first-child {
  font-weight: bold;
}

/* equation list with images on the RHS*/
.equation-wrapper {
	display: flex;
	justify-content: center;
	width: 100%;
}

.equation-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.equation-row {
	display: flex;
	align-items: center;
	gap: 20px;
}

.equation-left {
	font-size: 24px;
	min-width: 300px;
}

.equation-right img {
	height: 100px;
	vertical-align: middle;
}


/* Plus/minus sign as list bullet points */
ul.plus-minus {
	list-style-type: none !important;
}

li.plus::before,
li.minus::before {
  display: inline-block;
  width: 1.2em;
  margin-left: -1.2em;
  font-weight: bold;
  color: #006600; /* or #c00 for minus */
}

li.plus::before {
  content: "+ ";
}

li.minus::before {
  content: "– "; /* en dash is more elegant than hyphen */
  color: #cc0000;
}

/* images next to each other */
.image-row {
    display: flex;
    align-items: center;   /* vertical centering */
    justify-content: center; /* optional: center the whole row */
    gap: 350px;             /* space between images */
    height: 250px;         /* just to show vertical centering */
}

.image-row img {
    height: 80%;
    width: auto;
	object-fit: contain;
}

/* title step */
#title-static, #title-anim {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100vw;
	height: 100vh;
	text-align: center;
	position: absolute;
}

.title-container {
    position: relative;
    display: inline-block;
}


.title-text-border {
	line-height: 0.8;
	text-align: center;
    font-size: 195px;
    color: white; /* Border color */
    -webkit-text-stroke: 2px white; /* Optional real stroke */
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    pointer-events: none;
    font-family: Devant;
}

#title-static .title-text-fill {
	line-height: 0.8;
	text-align: center;
    font-size: 195px;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    z-index: 1;
    font-family: Devant;
}

#title-anim .title-text-fill {
	line-height: 0.8;
	text-align: center;
    font-size: 195px;
    background: no-repeat center -1000%, no-repeat center 10px;
    background-size: 800px, 275px;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    z-index: 1;
    font-family: Devant;
}


#title-static h2, #title-anim h2 {
	color: white;
}

.h2span-title {
	padding: 3px 15px;
	border: 2px solid;
	border-image: linear-gradient(to right, white 0%, white 5%, transparent 6%, transparent 94%, white 95%, white 100%);
	border-image-slice: 1;
}

#title-static h2::before, #title-static h2::after, #title-anim h2::before, #title-anim h2::after {
	content: "";
	flex: 1;
	align-self: center;
	border: 2px solid white;
	border-width: 2px 0px 0px;
	height: 0;

	transform: scaleX(1);
}

.title-foot {
	margin-top: 100px;
	color: white;
	font-family: sans-serif;
}

.impress-on-title-static, .impress-on-title-anim {
	background: black;
	-webkit-transition: background 1000ms linear;
    -ms-transition: background 1000ms linear;
    transition: background 1000ms linear;	
}


/* misc */
.small {
	font-size: 27px;
}

.smallcaps {
	font-size: 17pt;
	font-family: serif;
	font-variant: small-caps;
}

.flip {
	display: inline-block;
	transform: scaleX(-1);
	vertical-align: -0.3px;
	backface-visibility: hidden;
	-webkit-font-smoothing: antialiased;
}

.r1 {
	margin-right: -0.25em;
}

/* images */
.image-container {
  text-align: center;
}

/* image next to a list */
.list-image-container {
  display: flex;
  align-items: center;       /* Vertical alignment */
  gap: 20px;                 /* Space between list and image */
  margin-top: 20px;
}

.text-list {
  flex: 0 0 45%;
  list-style-type: disc;
  padding-left: 20px;
  margin: 0;
  color: #333;
}

.side-image {
  flex: 0 0 13%;
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  padding-right: 50px;
}

#img-eth {
	width: 350px;
}

#img-b2b {
	width: 820px;
}

#img-ce-et {
	width: 380px;
}


#img-graphsRad3 {
	height: 150px;
}

#img-chiEOB {
	width: 600px;
}

#img-mass-contours {
	width: 580px;
}

#img-bank {
	width: 500px;
}

#img-mismatch {
	width: 900px;
}

#img-waveform {
	width: 900px;
}

#img-waveform2 {
	width: 900px;
}

#img-setup {
	width: 600px;
}
