body {
    font-family: "Open Sans", sans-serif;
    background-color: #252E42;
}

#user-info {
    color: white;
}

#unauthorized-text {
    color: yellow;
}
.demo-page {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    height: 100vh;
}

.orange {
    color: #faa847;
}

.demo {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 50rem;
    color: white;
}

h1, img {
    text-align: center;  /* Center-align h1 headers and images */
    display: block;      /* Ensure images are treated as block elements */
    margin-left: auto;   /* Auto margin for centering horizontally */
    margin-right: auto;  /* Auto margin for centering horizontally */
}

h2 {
    text-align: left;    /* Left-align h2 headers */
    font-size: 24px;     /* Adjust font size */
    font-weight: bold;   /* Bold the headers */
    margin-top: 20px;    /* Space above the h2 header */
    margin-bottom: 10px; /* Space below the h2 header */
}

.demo > * {
    color: white;
    text-align: center;
}

a {
    color: #4da3ff;
}

a:hover {
    color: #ff9933;
}

.logo-link {
  text-decoration: none; /* Remove underline */
  color: inherit; /* Inherit the color from the parent */
  display: inline-block; /* Make the link behave as a block element */
}

.demo__logo {
    height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.logo-link:hover .demo__logo-img {
  content: url('/static/Mama-ai_logo-NEGATIVE_orange_mama.png');
}



#audio-file-section {
    display: none;
}

#real-time-stop {
    display: none;
}

#info_msg {
	opacity: 1 !important;
    transition: opacity 1s ease-out; /* Adjust the duration and easing as needed */
}

#warning_msg {
	opacity: 1 !important;
    transition: opacity 1s ease-out; /* Adjust the duration and easing as needed */
}

.demo__source {
    margin: 0 auto;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.audio__source {
    padding: 0 15%;
}

.audio__source__processing {
    display: block;
    visibility: hidden;
    margin-top: 1rem;

}

.mic__source-button {
    display: flex;
    flex-direction: column;
    height: 120px;
    width: 120px;
    align-items: center;
    border: 2px solid white;
    border-radius: 50% 50% 50% 50%;
}

.mic__source-button svg {
    height: 70%;
    width: 70%;
}

.demo__table > th, td {
    width: 50%;
}

.demo__table--inactive{
    filter: blur(2px);
    opacity: 0.5;
}


.switch-container {
    display: flex;
    margin-right: 10px;
}
.switch {
	position: relative;
	display: inline-block;
	vertical-align: top;
	width: 80px;
	height: 20px;
	padding: 3px;
	margin: 0 5px 5px 0;
	background: linear-gradient(to bottom, #eeeeee, #FFFFFF 25px);
	background-image: -webkit-linear-gradient(top, #eeeeee, #FFFFFF 25px);
	border-radius: 10px;
	box-shadow: inset 0 -1px white, inset 0 1px 1px rgba(0, 0, 0, 0.05);
	cursor: pointer;
	box-sizing:content-box;
}
.switch-input {
	position: absolute;
	top: 0;
	left: 0;
	opacity: 0;
	box-sizing:content-box;
}
.switch-label {
	position: relative;
	display: block;
	height: inherit;
	font-size: 12px;
	text-transform: none;
	background: #eceeef;
	border-radius: inherit;
	box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.12), inset 0 0 2px rgba(0, 0, 0, 0.15);
	box-sizing:content-box;
}
.switch-label:before, .switch-label:after {
	position: absolute;
	top: 50%;
	margin-top: -.5em;
	line-height: 1;
	-webkit-transition: inherit;
	-moz-transition: inherit;
	-o-transition: inherit;
	transition: inherit;
	box-sizing:content-box;
}
.switch-label:before {
	content: attr(data-off);
	right: 6px;
	color: #333333;
	text-shadow: 0 1px rgba(255, 255, 255, 0.5);
}
.switch-label:after {
	content: attr(data-on);
	left: 6px;
	color: #FFFFFF;
	text-shadow: 0 1px rgba(0, 0, 0, 0.2);
	opacity: 0;
}
.switch-input:checked ~ .switch-label {
	background: #C1942B;
	box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.15), inset 0 0 3px rgba(0, 0, 0, 0.2);
}
.switch-input:checked ~ .switch-label:before {
	opacity: 0;
}
.switch-input:checked ~ .switch-label:after {
	opacity: 1;
}
.switch-handle {
	position: absolute;
	top: 5px;
	left: 5px;
	width: 16px;
	height: 16px;
	background: linear-gradient(to bottom, #FFFFFF 40%, #f0f0f0);
	background-image: -webkit-linear-gradient(top, #FFFFFF 40%, #f0f0f0);
	border-radius: 50%;
	box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}
.switch-handle:before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	margin: -4px 0 0 -4px;
	width: 8px;
	height: 8px;
	background: linear-gradient(to bottom, #eeeeee, #FFFFFF);
	background-image: -webkit-linear-gradient(top, #eeeeee, #FFFFFF);
	border-radius: 4px;
	box-shadow: inset 0 1px rgba(0, 0, 0, 0.02);
}
.switch-input:checked ~ .switch-handle {
	left: 64px;
	box-shadow: -1px 1px 5px rgba(0, 0, 0, 0.2);
}

/* Transition
========================== */
.switch-label, .switch-handle {
	transition: All 0.3s ease;
	-webkit-transition: All 0.3s ease;
	-moz-transition: All 0.3s ease;
	-o-transition: All 0.3s ease;
}

.row {
    display: flex;
    flex-direction: row;
  justify-content: space-between; /* Spread the items evenly */
  align-items: flex-start; /* Align items at the top */
  margin-bottom: 20px;
}

.text-and-switch {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2px; /* Adjust the margin as needed */
    max-width: 70%
}

.CodeMirror {
  text-align: left;
  font-size: 14px;
  line-height: 20px;
  resize: both;
  overflow: none;
  height: 150px;
}

/* Wrapper to define the visible rectangular area */
#sliderContainerWrapper {
  max-height: 400px;  /* Height of the scrollable window */
  max-width: 400px;
  overflow-y: auto;   /* Enable vertical scrolling */
  overflow-x: hidden; /* Disable horizontal scrolling */
  padding: 10px; /* Add padding inside the scrollable area */
  padding-right: 10px; /* Optional: Adds padding for a better scroll experience */
  border: 1px solid #ccc; /* Optional: Adds a border to show the area is scrollable */
  background-color: #202020; /* Optional: Background for clarity */
}

input:disabled {
    background-color: #e0e0e0;  /* Light gray background */
    color: #888888;             /* Darker gray text */
    cursor: not-allowed;        /* Show "not-allowed" cursor */
    opacity: 0.6;               /* Reduce opacity to make it more visually distinct */
}

input:enabled {
    background-color: white;    /* Restore original background */
    color: black;               /* Restore original text color */
    cursor: text;               /* Regular text cursor */
}

/* Container for the sliders - this remains as you had */
#sliderContainer {
  /* No need for max-height or overflow here */
}

/* Flexbox styling for aligning label, slider, and button in a row */
.slider-row {
  display: flex;
  align-items: left;
  margin-bottom: 5px;
}

.slider-label {
  margin-right: 10px;
  width: 35%; /* Set width for the label */
}

.slider {
  flex-grow: 1;
  height: 12px; /* Reduce slider height */
}

.solo-button {
  margin-left: 5px;
  font-size: 12px; /* Reduce font size of Solo button */
  padding: 2px 6px; /* Reduce padding to make the button smaller */
}


/* Right column: Form controls */
.controls {
  flex-grow: 1;
  max-width: 300px; /* Limit the width of the right section */
}

/* Adjust the styling of the form elements */
.input-field, .col.s12 {
  margin-bottom: 20px;
}

.range-field input[type="range"] {
  width: 100%;
}

button {
  margin-top: 10px;
}

/* Text area under the row */
textarea {
  width: 100%;
  height: 150px;
}


input[type="number"] {
    width: 70px; /* Adjust width as needed */
    padding: 5px;
    font-size: 14px;
    color: #000;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
}


/* Center the progress bar container */
.progress-bar-container {
	display: flex;
	justify-content: center; /* Centers horizontally */
	align-items: center; /* Centers vertically */
	margin-top: 10px;
}

.progress-bar {
	width: 70%;
	height: 30px; /* Increase height for better visibility */
	background-color: #c3c3c3; /* Light gray background */
	border: 1px solid #ccc;
	position: relative;
}

/* The green part of the progress bar */
.progress {
	height: 100%;
	background-color: #4caf50;
	position: absolute; /* Position it within the .progress-bar */
	top: 0;
	left: 0;
	text-align: center;
	color: white;
	line-height: 30px; /* Vertically center the text inside */
	z-index: 1; /* Make sure it stays behind the text */
}

/* The progress percentage text will always be centered */
.progress-bar span {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	color: black; /* Make it black on the gray background */
	font-size: 18px; /* Increased font size */
	font-weight: bold; /* Make the text bold for visibility */
	z-index: 2; /* Ensure the text stays above the green bar */
}

button.download-btn {
    background-color: #444;  /* Darker background */
    color: white;
    border: none;
    padding: 4px 8px;  /* Smaller padding for compact size */
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
    display: inline-block;  /* Ensure it behaves like an inline element */
    width: auto;            /* Ensure width fits content */
    max-width: fit-content; /* Prevent stretching */
}

button.download-btn:hover {
    background-color: #666;  /* Slightly lighter on hover */
}

#result {
    font-size: 13px;  /* Adjust font size for readability */
    white-space: pre;  /* Preserve formatting and allow wrapping */
    border: 1px solid #ccc;  /* Optional: Add a border around the result */
    padding: 10px;  /* Add padding for spacing inside */
    max-height: 300px;  /* Set maximum height to limit vertical space */
    max-width: 100%;  /* Limit width to the container */
    overflow: auto;  /* Enable scrolling for both axes */
    background-color: #1c1c1c; /* Darker background for better contrast */
    color: white; /* Text color for readability */
    text-align: left;  /* Ensure text is left-aligned */
}

.mcap-toggle3 .switch-label,
.mcap-toggle3 .switch-label.state0,
.mcap-toggle3 .switch-label.state1,
.mcap-toggle3 .switch-label.state2 {
    background: #C1942B !important;
    width: auto !important;
    min-width: 0 !important;
    padding-left: 12px;
    padding-right: 12px;
    padding-top: 0;
    padding-bottom: 0;
    font-size: 12px;
    text-align: center;
}
.mcap-toggle3 .switch-handle {
    display: none !important;
}
.mcap-toggle3 .switch-label { transition: background 0.2s, color 0.2s;}