:root {
  --bgColor1:    black;
  --bgColor2:    red;
  --bdColor1:    white;
  --bdColor2:    red;
  --bdColor3:    yellow;
  --slColor1:    lime;
  --bPressed1:   darkred;
  --txtColor1:   whitesmoke;
  --txtColor2:   white;
  --txtColor3:   red;
  --hiBgColor:   #FFFFCC;  
  --hiTxtColor:  #999999;
  --hiBtnColor:  #3498db;
  --hiBtnHover:  #196090;
  --thumbWidth:  100%;
  --thumbHeight: auto; 
}

body {
	font-family: Arial, sans-serif;
	background-color: #121212;
	color: #ffffff;
	display: flex;
	flex-direction: column;
	align-items: center;
	min-height: 100vh;
}

h1 {
	font-size: 2rem;
	font-weight: 600;
	padding: 5px;
	margin:  5px;
}
h2 {
	font-size: 1.3rem;
	padding: 5px;
	margin:  5px;
}
h5 {
	font-size: 1rem;
	padding: 5px;
	margin:  5px;
}

/* Two column comparison container */
.comparison-container {
	display: flex;
	flex-direction: row;
	width: 100%;
	max-width: 1400px;
	border: 2px solid #333;
	border-radius: 8px;
	overflow: hidden;
	background-color: #1e1e1e;
}
.video-column {
	display: flex;
	flex-direction: row;
	width: 49vw; /* initial width (50%) */
	min-width: 10vw;
	max-width: 90vw;
	padding: 2px;
	align-items: center;
	justify-items: center;
	align-content: center;
	justify-content: center;
}
/* Left column can be resized with a resize button */
.video-column.left {
	resize: horizontal; /* resize handle */
	overflow: auto;     /* mandatory for 'resize: horizontal' */
	border-right: 4px double #444; /* determines size of resize handle */
}
/* Right coluns uses the remaining space */
.video-column.right {
	overflow: auto;
}

/* adaptions for mobile layout */
@media (max-width: 768px) {
	.comparison-container {
		grid-template-columns: 1fr;  /* 1 column */
		flex-direction: column;
	}

	.video-column  {
		width:     100% !important; 
		max-width: 100% !important;
		resize: none; /* resize works clumsy on touch screens */
		border-bottom: 4px double #444;
		border-right:  none;
	}
}

.video-container {
	width: 100%;
	display: flex;
	flex-direction: column;
	padding: 2px 2px;
	margin: 2px 2px;
	gap: 5px;
	transition: max-width 0.3s ease;
}

.leftLbl {
	padding-left:	10px;
	align-self: flex-start; 
}
.rightLbl {
	margin-right:	30px;
	align-self: flex-end;  
}
.iframe-wrapper {
	display: flex;
	position: relative;
	width: 100%;
	height: 0;
	background-color: #000;
	border-radius: 8px;
	overflow: hidden;
	text-align: left;
	transition: padding-bottom 0.3s ease; /* smooth transition of height */
}
.iframe-wrapper iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: 0;
	padding-right: 5px;
}
video {
	width: 100%;
	height: auto;
	background-color: #000;
	border-radius: 8px;
	display: block;
	padding-right: 5px;
}  
.controls {
	margin: 5px;
}
button {
	padding: 10px 20px;
	font-size: 16px;
	margin: 0 10px;
	cursor: pointer;
	border: 1px solid #ccc;
	background-color: #f9f9f9;
	border-radius: 4px;
}
button:hover {
	background-color: #e9e9e9;
}
#step-size {
	padding: 10px 2px;
	font-size: 16px;
	width: 3em; 
	text-align: center; 
	border: 1px solid #ccc; 
	border-radius: 4px;
}

.explanation {
	width: 100%;
	max-width: 1400px;
	border: 2px solid #333;
	border-radius: 8px;
	overflow: hidden;
	background-color: #1e1e1e;
	padding: 5px;
	text-align: left;
} 
.explanation div {
	padding: 25px;
	margin: 5px;
}
th, td {
	border: 1px solid #ccc;
	padding: 10px;            
	text-align: left;
}

/* log widget */
#console-container {
	width: 100%;
	max-width: 1400px;
	margin: 15px 0px;
	padding: 5px;
	background-color: #1e1e1e;
	border: 1px solid #333;
	border-radius: 8px;
	overflow: hidden; 
}

/* log button bar */
.control-bar {
	width: 100%;
	max-width: 1400px;
	background: #2d2d2d;
	padding: 10px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 15px;
	border-bottom: 2px solid #333;
	flex-wrap: wrap;
}
.filter-group { 
	display: flex; 
	gap: 6px; 
	align-items: center; 
	flex-wrap: wrap;
}
.filter-btn, .control-btn {
	background: #444;
	color: #ccc;
	border: none;
	padding: 6px 12px;
	border-radius: 4px;
	cursor: pointer;
	font-weight: bold;
	transition: all 0.2s ease;
}
.control-btn:hover { background: #d44242; color: #fff; }

/* filter button active state toggle */
.filter-btn[data-level="group"].active { background: #000b4e; color: #fff; }
.filter-btn[data-level="debug"].active { background: #008b4e; color: #fff; }
.filter-btn[data-level="log"].active   { background: #608b4e; color: #fff; }
.filter-btn[data-level="info"].active  { background: #007acc; color: #fff; }
.filter-btn[data-level="warn"].active  { background: #cca700; color: #333; }
.filter-btn[data-level="error"].active { background: #f44747; color: #fff; }
/* Using svg images as buttons */
#sizeToggleButton {
	padding: 2px;
}
.svgIconImg {
	background-color: transparent !important;
	height: 1.5em; 
	padding: 0;
	margin: 0;
}
.search-input {
	background: #3c3c3c;
	border: 1px solid #555;
	color: #fff;
	padding: 5px 10px;
	border-radius: 4px;
	width: 180px;
}
.search-input::placeholder { color: #888; }
.search-input:focus { outline: 1px solid #007acc; }

/* Log Output */
#log-box {
	height: 5em;
	color: #d4d4d4;
	padding: 15px;
	overflow-y: auto;
	text-align: left;
	color: #2e7d32;
	transition: height 0.4s ease-in-out; 
}
#log-box.expanded {
  height: 15em;
  overflow-y: auto; 
}
pre {
	white-space: pre-wrap;       
	word-wrap: break-word;       
	background: #222;            
	color: #fff;
	padding: 8px;
	border-bottom: 1px solid #444;
	margin: 0;
	font-family: monospace;      
}
.log-entry {
	margin: 4px 0;
	padding: 4px 8px;
	border-radius: 3px;
	white-space: pre-wrap;
	border-left: 4px solid transparent;
}
/* Message Coloring Themes */
.log-debug   { color: #b5cea8; border-left-color: #008b4e; background: rgba(96,139,78,0.05); }
.log-log     { color: #b5cea8; border-left-color: #608b4e; background: rgba(96,139,78,0.05); }
.log-info    { color: #9cdcfe; border-left-color: #007acc; background: rgba(0,122,204,0.05); }
.log-warn    { color: #ce9178; border-left-color: #cca700; background: rgba(204,167,0,0.05); }
.log-error   { color: #f44747; border-left-color: #f44747; background: rgba(244,71,71,0.07); font-weight: bold; }

/* Filter Hiding Classes */

/* 1) normal log line */
.hide-group .log-group,
.hide-debug .log-debug,
.hide-log   .log-log,
.hide-info  .log-info,
.hide-warn  .log-warn,
.hide-error .log-error, 
.log-entry.search-hidden { 
	display: none !important; 
}

/* 2) group logline, hide group if if level should be hided  --- */
#log-box.hide-group.hide-debug .log-group.log-debug,
#log-box.hide-group.hide-log   .log-group.log-log,
#log-box.hide-group.hide-info  .log-group.log-info,
#log-box.hide-group.hide-warn  .log-group.log-warn,
#log-box.hide-group.hide-error .log-group.log-error { 
    display: none !important; 
}

/* 3) group logline, show group if level is visible  --- */
#log-box.hide-group:not(hide-debug) .log-group.log-debug,
#log-box.hide-group:not(hide-log)   .log-group.log-log,
#log-box.hide-group:not(hide-info)  .log-group.log-info,
#log-box.hide-group:not(hide-warn)  .log-group.log-warn,
#log-box.hide-group:not(hide-error) .log-group.log-error { 
    display: block !important; 
}

/* 4) group logline, show group  --- */
#log-box:not(.hide-group) .log-group {
	display: block !important; 
}

/* collapsible group */
.log-group-heading {
    cursor: pointer;
    list-style: none; /* Removes the native browser arrow if you want custom icons */
}
/* Indent any logs that live inside the collapsible group */
.log-group-details .log-entry:not(.log-group-heading) {
    margin-left: 20px;
    border-left: 1px dashed #30363d;
    padding-left: 5px;
}

/* console.dir() output */
.log-entry .log-dir {
    color: #a5d6ff;            
    background-color: #161b22; 
    border-left: 3px solid #388bfd;
    padding: 6px 10px;
    margin: 4px 0;
    border-radius: 4px;
    max-height: 10em;
    overflow-y: auto;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}








