@charset "UTF-8";
/*
@import 'libs/vars';
*/
@import url("main.css?v=1.0.0");

body, input, select, textarea {
  color: #888;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  font-size: 16pt;
  font-weight: 400;
  line-height: 1.75em;
}

code {
  background: #555;
  border-radius: 5px;
  color: #fff;
  font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
  font-size: 0.9em;
  margin: 0 0.25em;
  padding: 0.25em 0.65em;
}

pre {
  font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
  font-size: 0.9em;
  margin: 0 0 2.25em 0;
}
#wrapper {
    padding: 20px 0 20px 20px;
    max-width: 1000px;
    margin: 0 auto;
}
/* Container */
.container {
  margin: 0 auto;
  max-width: calc(100% - 4.5em);
  text-align: center;
  /* width: _size(container-width); */
}
.container.xsmall {
  width: 11.25em;
}

/* Form */
input[type=checkbox]:checked + label:before,
input[type=radio]:checked + label:before {
  background: #989898;
  border-color: #989898;
  color: #ffffff;
  content: "";
}


/* Features */
.features article .inner {
  display: inline-block;
  vertical-align: middle;
  width: 99%;
}


/* Wrapper */
#wrapper {
  background: #fff;
  padding: 20px 0 20px 20px;
  max-width: 1000px;
  margin: 0 auto;
}


/* XLarge */
@media screen and (max-width: 1680px) {
  /* Wrapper */
  #wrapper {
    padding-right: 0;
  }
}
/* Large */
@media screen and (max-width: 1280px) {
  /* Wrapper */
  #wrapper {
    padding-right: 0;
  }
}

@media screen and (max-width: 1024px) {
  /* Header */
  #header {
    -moz-backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    -ms-backface-visibility: hidden;
    backface-visibility: hidden;
    -moz-transition: -moz-transform 0.5s ease;
    -webkit-transition: -webkit-transform 0.5s ease;
    -ms-transition: -ms-transform 0.5s ease;
    transition: transform 0.5s ease;
    display: block;
    height: 100%;
    overflow-y: auto;
    position: fixed;
    top: 0;
    width: 20em;
    z-index: 10002;
    -moz-transform: translateX(20em);
    -webkit-transform: translateX(20em);
    -ms-transform: translateX(20em);
    transform: translateX(20em);
    right: 0;
  }

  /* Header Panel */
  #titleBar .toggle:before {
    background: #4acaa8;
    color: #ffffff;
    content: "";
    display: block;
    font-size: 18px;
    height: 44px;
    line-height: 44px;
    position: absolute;
    text-align: center;
    top: 0;
    width: 64px;
    right: 0;
  }

  body.header-visible #wrapper,
  body.header-visible #titleBar {
    -moz-transform: translateX(-20em);
    -webkit-transform: translateX(-20em);
    -ms-transform: translateX(-20em);
    transform: translateX(-20em);
  }
}
/* Small */
@media screen and (max-width: 736px) {
  /* Header Panel */
  ul.feature-icons li {
    display: block;
    width: 100%;
  }
}
/* XSmall */
@media screen and (max-width: 480px) {
  /* Button */
  input[type=submit],
  input[type=reset],
  input[type=button],
  .button {
    padding: 0 0.5em;
  }
}


#AuthWidget {
	width: 100%;
	height: 100vh;
	background-color: rgba(222, 222, 222, 0.9);
	position: fixed;
	top: 0;
	left: 0;
}

#AuthWidget .aw_window {
	width: 30em;
	margin: 1em auto 0;
	display: flex;
	flex-direction: column;
}

#AuthWidget .aw_tabs {
	font-size: x-large;
	flex-grow: 0;
	border: 1px solid #ccc;
	border-width: 1px 1px 1px 1px;
	display: flex;
	flex-direction: row;
	position: relative;
	background: #eee;
}
#AuthWidget .aw_tabs div {
	flex-grow: 0;
	border: 1px solid #aaa;
	border-width: 0 1px 0 0;
	padding: 0.4em 1em 0.3em;
	position: relative;
	cursor: pointer;
}
#AuthWidget .aw_tabs .aw_active {
	background: #fff;
	font-weight: bold;
	top: 1px;
}

#AuthWidget .aw_close {
	padding: 0 10px 5px;
	cursor: pointer;
	position: absolute;
	top: 8px;
	right: 5px;
}

#AuthWidget .aw_tab {
	flex-grow: 1;
	padding: 1em 1em 0;
	background: #fff;
	border: 1px solid #ccc;
	border-width: 0 1px 0;
}


#AuthWidget .aw_footer {
	background: #fff;
	color: red;
	border: 1px solid #ccc;
	border-width: 0 1px 1px;
	padding: 0.5em 1em 0.5em;
}

#AuthWidget .aw_hidden {
	display: none;
}
#AuthWidget form {
	margin: 0;
}

#AuthWidget label {
	margin: 0;
}

#AuthWidget .aw_body {
	margin-bottom: 1em;
}

#AuthWidget .aw_buttons {
	margin-top: 2em;
	text-align: center;
}


#AuthWidget .aw_terms * {
	display: inline;
}

#AuthWidget .aw_invalid {
	border-color: red;
}


header.major h2 {
	position: relative;
}
header.major h2 img {
	position: absolute;
	top: 10px;
	margin: 0 0 0 20px;
}

#main > section:first-child {
	min-height: 100vh;
}




#errors {
	color: #a00;
	border-left: 1px solid #a00;
	padding: 0 0 1em 2em;
	display: none;
}
#errors h4 {
	color: #a00;

}
#errors ul {
	margin-bottom: 0;
}
#errors li {
	list-style-type: none;
}



#header .languages a {
	padding: 0 3px 0 3px;
	text-decoration: none;
	border-bottom: none;
}




#contact {
	margin: 0 auto;
	max-width: calc(100% - 4.5em);
}
#contact label {
	margin: 1.125em 0 0 0;
}
#contact #sent {
	color: red;
	font-weight: bold;
}




.modal {
	display: none;
}
body.loading .modal {
	display: 	flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;

	position:   fixed;
    z-index:    1000;
    top:        0;
    left:       0;
    height:     100%;
    width:      100%;
    background: rgba( 255, 255, 255, .95 );
}

#progressContainer {
	background: #f8f9fa;
	border-radius: 12px;
	padding: 30px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
	max-width: 400px;
	width: 100%;
}

#progressHeader {
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 20px;
}

#circularProgress {
	width: 60px;
	height: 60px;
	margin-right: 20px;
	position: relative;
}

#progressText {
	text-align: left;
}

#perc {
	font-size: 1.5em;
	font-weight: bold;
	color: #333;
	margin: 0;
}

#progressBar {
	height: 12px;
	background: #eee;
	border-radius: 6px;
	overflow: hidden;
	margin-bottom: 10px;
}

#progressFill {
	height: 100%;
	width: 0%;
	background: linear-gradient(90deg, #3eb489, #4caf50);
	transition: width 0.4s ease;
	border-radius: 6px;
}

#progressMeta {
	margin-bottom: 10px;
	font-size: 0.9em;
	color: #666;
	display: flex;
	gap: 12px;
	justify-content: space-between;
}

#progressPercent {
	font-weight: bold;
}

#progressEta {
	color: #2196f3;
}
body.loading {
    overflow: hidden;   
}

#title {
	padding: 3em 0 0 0;
}

#editor {
	display: flex;
	flex-direction: row;
	margin-top: 4em;
	gap: 2em;
}

#rightPanel {
	flex: 1;
	display: flex;
	flex-direction: column;
	min-width: 0;
}

#playerWrapper {
	display: flex;
	flex-direction: column;
	width: 100%;
}

#timelineSection {
	margin-bottom: -10px;
	width: 100%;
  padding-inline: 12px;
	z-index: 10;
	position: relative;
}

#timelineContainer {
	width: 100%;
	max-width: 800px;
	margin: 0 auto;
}

#timeline {
	position: relative;
	height: 40px;
  cursor: pointer;
	overflow: visible;
}

#timelineTrack {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
  height: 10px;
	background: #333333;
}

#timelineCursor {
	position: absolute;
	bottom: 0;
	left: 0%;
	width: 2px;
	height: 10px;
	background: #4acaa8;
	border-radius: 1px;
	z-index: 3;
	transition: left 0.1s ease;
	box-shadow: 
		0 0 4px rgba(74, 202, 168, 0.6),
		0 1px 2px rgba(0,0,0,0.1);
}

/* Timeline Control Groups */
.timeline-control {
	position: absolute;
	top: 0;
	left: 0%;
	z-index: 4;
	cursor: ew-resize;
	pointer-events: auto;
}

.timeline-control[data-type="start"] {
	left: 0%;
}

.timeline-control[data-type="end"] {
	left: 100%;
}

.timeline-handle {
	position: absolute;
	bottom: 5px;
	left: 0;
	width: 2px;
	height: 10px;
	background: #4acaa8;
	border-radius: 1px;
	transform: translate(-50%, 0);
	z-index: 4;
	cursor: ew-resize;
	box-shadow: 
		0 0 4px rgba(74, 202, 168, 0.6),
		0 1px 2px rgba(0,0,0,0.1);
}

#timelineSelection {
	position: absolute;
	bottom: 0;
	left: 0%;
	right: 100%;
	height: 10px;
	background: rgba(74, 202, 168, 0.4);
	z-index: 2;
}

.timeline-triangle {
	position: absolute;
	top: 5px;
	left: 0;
	width: 16px;
	height: 16px;
	background: #4acaa8;
	border-radius: 50% 50% 50% 0;
	transform: translateX(-50%) rotate(-45deg);
	z-index: 6;
	opacity: 0.9;
	box-shadow: 
		inset 0 -6px 12px rgba(0, 0, 0, 0.18),
		inset 0 6px 10px rgba(255, 255, 255, 0.12),
		0 6px 16px rgba(0, 0, 0, 0.35);
}

/* .timeline-label {
	position: absolute;
	top: 0;
	left: 0;
	font-size: 0.7em;
	font-weight: normal;
	color: #4acaa8;
	background: none;
	padding: 0;
	border: none;
	box-shadow: none;
	white-space: nowrap;
	transform: translateX(-50%);
	z-index: 7;
	opacity: 0.8;
	line-height: 1;
	pointer-events: none;
} */

/* .timeline-control[data-type="start"] .timeline-label {
	top: -5px;
	padding-bottom: 8px;
	left: 2px;
} */

/* .timeline-control[data-type="end"] .timeline-label {
	top: 3px;
	padding-bottom: 2px;
	left: 6px;
} */

#player {
	width: 100%;
	position: relative;
	z-index: 1;
	background: #000;
	min-height: 400px;
	display: flex;
	align-items: center;
	justify-content: center;
}

#controls {
	display: flex;
	flex-direction: column;
	flex-wrap: wrap;
	gap: 1em;
	width: auto;
	max-width: 340px;
	flex-shrink: 0;
	overflow: hidden;
}

#controls > div {
	display: flex;
	flex-direction: column;
	gap: 0.75em;
}

.control-row {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 0.5em;
}

.control-row:has(label:not([style*="display: none"])) {
	flex-direction: column;
	align-items: flex-start;
}

.control-row * {
	flex-grow: 0;
}

.control-row label[style*="display: none"] {
	display: none !important;
	width: 0;
	flex: 0 0 0;
}

.control-row label:not([style*="display: none"]) {
	width: 100%;
	margin-bottom: 0.25em;
}

.control-row input[type="text"] {
	flex: 1 1 auto;
}

.control-row button {
	flex: 1 1 auto;
}

.control-row-inputs {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 0.5em;
	flex: 1 1 auto;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	overflow: hidden;
}

.control-row-inputs * {
	flex-grow: 0;
}

.control-row-inputs input[type="text"] {
	flex: 1 1 auto;
}

.control-row-inputs button {
	flex: 1 1 auto;
}

.control-row-inputs #startButton,
.control-row-inputs #endButton {
	flex: 0 0 calc(50% - 0.25em);
	min-width: 0;
	max-width: calc(50% - 0.25em);
	box-sizing: border-box;
	padding: 0 0.8em;
	overflow: hidden;
}

#durationControls {
	display: flex;
	flex-direction: column;
	gap: 0.5em;
}

.duration-item {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 0.5em;
}

.duration-item label {
	min-width: 4em;
}

.duration-item input {
	flex: 1 1 auto;
}

#controls input[type="text"] {
	display: inline;
	width: 5em;
	padding: 0.3em 0.5em;
	border: 1px solid #e0e0e0;
	border-radius: 4px;
}

#controls label {
	margin: 0.25em 0 0;
}

#timeControls label {
	margin: 0 0 0 0;
}

#durationControls label {
	width: 4em;
	flex-grow: 0.2 !important;
}

#durationControls input {
	width: 5em;
	margin: 0 0 5px 5px;
}

#durationControls span {
	margin: 0.5em 0 0;
}

#durationControls .duration-item:nth-child(3) {
	justify-content: center;
}


#currentTime {
	width: 5em;
	margin: 0 5px;
}

.control-row-inputs #currentTime {
	width: auto;
	margin: 0;
	flex: 1 1 auto;
	min-width: 4em;
}

#backButton, #forwardButton {
	width: 2em;
	padding: 0;
	margin-bottom: 5px;
}

.control-row-inputs #backButton,
.control-row-inputs #forwardButton {
	width: auto;
	margin: 0;
	flex: 0 0 auto;
	min-width: 2em;
}

#startButton {
	margin-right: 0;
	padding: 0 1em;
}
#startButton, #endButton {
	width: 50%;
}


#actionControls button {
	margin: 0.2em 0;
	width: 100%;
	min-height: 40px;
}

#actionControls #downloadDropdown {
	width: 100%;
	max-width: 100%;
}

#actionControls select {
	padding: 0 1.5em 0 2.5em;
	font-weight: 700;
	color: white;
}


#example {
	color: #ccc;
}

#form1 {
	white-space: nowrap;
}

#main > section > .container {
	padding: 3em 0 4em 0;
}



@media screen and (max-width: 736px) {

	html, body {
		overflow-x: hidden;
	}

	#wrapper {
		padding: 20px 0;
		overflow-x: hidden;
		max-width: 100%;
	}

	section > .container {
		margin-left: 10px;
		margin-right: 10px;
		max-width: calc(100% - 20px);
		box-sizing: border-box;
	}

	header.major h2 {
		display:none;
	}

	#editor {
		flex-direction: column;
		gap: 1em;
		overflow-x: hidden;
		max-width: 100%;
	}

	#rightPanel {
		order: 1;
		overflow-x: hidden;
		max-width: 100%;
	}

	#playerWrapper {
		overflow-x: hidden;
		max-width: 100%;
		box-sizing: border-box;
	}

	#player {
		max-width: 100%;
		box-sizing: border-box;
		overflow-x: hidden;
		min-height: 250px;
	}

	#player iframe {
		max-width: 100%;
		width: 100%;
	}

    #controls {
		order: 2;
		padding: 1em 0 0 0;
		display: flex;
		flex-direction: column;
		width: 100%;
		max-width: 100%;
		gap: 1.25em;
	}

	#timelineSection {
		margin-bottom: 0.5em;
	}

	#timelineContainer {
		max-width: 100%;
	}

	#timeline {
		height: 35px;
	}

	#controls > div {
		display: flex;
		flex-direction: column;
		gap: 0.75em;
		width: 100%;
	}

	#timeControls {
		display: flex;
		flex-direction: column;
		gap: 0.75em;
		width: 100%;
	}

	.control-row {
		display: flex;
		flex-direction: column;
		gap: 0.5em;
		width: 100%;
	}

	.control-row label {
		margin: 0;
		width: 100%;
	}

	.control-row-inputs {
		display: flex;
		flex-direction: row;
		align-items: center;
		gap: 0.5em;
		width: 100%;
	}

	.control-row-inputs input[type="text"] {
		flex: 1 1 auto;
		min-width: 4em;
		width: auto;
		margin: 0;
	}

	.control-row-inputs button {
		flex: 0 0 auto;
		margin: 0;
	}

	#timeControls #currentTime {
		flex: 1 1 auto;
		min-width: 4em;
		display: flex;
		align-items: center;
	}

	#timeControls #backButton,
	#timeControls #forwardButton {
		flex: 0 0 auto;
		width: auto;
		min-width: 2.5em;
		display: flex;
		align-items: center;
		justify-content: center;
	}

	#timeControls #startButton,
	#timeControls #endButton {
		flex: 1 1 auto;
		min-width: 0;
		width: auto;
	}

	#durationControls {
		display: flex !important;
		flex-direction: row !important;
		flex-wrap: wrap !important;
		gap: 0.5em;
		width: 100%;
	}

	.duration-item {
		display: flex;
		flex-direction: row;
		align-items: center;
		gap: 0.5em;
		flex: 1 1 auto;
		min-width: 0;
	}

	.duration-item:first-child,
	.duration-item:nth-child(2) {
		flex: 0 1 calc(50% - 0.375em);
		min-width: 0;
		max-width: calc(50% - 0.375em);
	}

	.duration-item label {
		margin: 0;
		min-width: fit-content;
		white-space: nowrap;
		flex: 0 0 auto;
		font-size: 0.85em;
	}

	.duration-item input {
		flex: 1 1 auto;
		min-width: 0;
		width: auto;
	}

	.duration-item:nth-child(3) {
		flex-basis: 100%;
		flex: 1 1 100%;
		margin-top: 0.25em;
		justify-content: center;
	}

    #controls input[type="text"] {
        width: auto;
        min-width: 3em;
        padding: 0.5em 0.75em;
        border: 1px solid #e0e0e0;
        border-radius: 4px;
    }

	#actionControls {
		display: flex;
		flex-direction: column;
		width: 100%;
		gap: 0.75em;
	}

  #actionControls button {
    margin: 0;
    width: 100%;
    min-height: 44px;
  }

	#actionControls #downloadDropdown {
		width: 100%;
		max-width: 100% !important;
	}

	#actionControls #downloadDropdown button {
		width: 100%;
	}
}


@media screen and (max-width: 480px) {
	.container {
	  max-width: 100%;
	}
  }



#ytalbums {
	background: #ce4;
	font-size: small;
	color: blue;
	border: 1px solid red;
	padding: 0px;
	width: 250px;
	float: right;
	margin: 10px 30px 0 0;
	text-align: center;
	border-radius: 5px;
}

#ytalbums a {
	border: none;
}

#ytalbums a:hover {
	text-decoration: underline;
	color: blue;
}

#ytalbums span {
	color: red;
	font-weight: bold;
	font-variant: small-caps;
}






#gotoStartTime:hover, #gotoEndTime:hover {
	text-decoration: underline;
	cursor: pointer;
}




#footer .copyright {
	color: #aaa;
  font-size: 0.8em;
}
#footer .copyright li {
  font-size: 1em;
}



button {
	font-size: 11pt;
}

#downloadDropdown {
	max-width: 215px;
	position: relative;
}
#downloadDropdown ul {
	background: #fff;
	position: absolute;
	padding: 0;
	border: 1px solid #ddd;
	border-radius: 5px;
	white-space: nowrap;
}
#downloadDropdown ul li {
	cursor: pointer;
	padding: 0 20px;
	list-style-type: none;
	text-align: left;
}
#downloadDropdown ul li:hover {
	background: #eee;
	color: #4acaa8;
}




#linkone {
	background: #fff;
	font-weight: bold;
	border: 1px solid #4acaa8;
	border-width: 0 0 1px 1px;
	color: #444;
}
#linkone a {
	color: #444;
	border: none;
}
#linkone a:hover {
	color: #4acaa8 !important;
}




.features table tr {
	border:1px solid #bbb;
}
.features table td {
	border:1px solid #bbb;
}




#result h3 a {
	text-decoration: underline;
}

.modal {
	display: block;
}



@keyframes highlight {
    0% {
        background: none;
    }
    25% {
        background: #ffff99;
    }
    50% {
        background: none;
    }
    75% {
        background: #ffff99;
    }
    100% {
        background: none;
    }
}

.highlight {
    animation: highlight 4s;
}

