body {
    margin: 0;
    overflow: hidden;
    font-family: 'Courier New', monospace;
    background-color: #1f2448; /* ML Dark Blue color */
    color: #ADD8E6;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    flex-direction: column;
}
h2, h4 {
	color: royalblue;
}
.hidden {
	display: none;
}
.disabled-button {
  	opacity: 0.5;
  	color: #666; /* Darker text */
  	cursor: not-allowed; /* Shows a 'no entry' cursor when hovered */
}
.matrix-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}
.matrix-text {
    position: absolute;
    font-size: 20px;
    white-space: nowrap;
    opacity: 0.6;
    animation: matrixFall linear infinite;
}
.title {
    font-size: 2em;
    color: white;
    z-index: 1;
    margin-bottom: 20px;
    max-width: 80%; /* Ensure title doesn't exceed 80% width */
    margin-left: auto; /* Center title if less than 100% width */
    margin-right: auto; /* Center title if less than 100% width */
}
.action-button {
    font-size: 1em;
    padding: 10px 20px;
    margin-bottom: 15px;
    color: #ADD8E6;
    background-color: #1f2448; /* ML Dark Blue color */
    border: 2px solid #ADD8E6;
    border-radius: 5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}
.action-button:hover {
    background-color: #ADD8E6;
    color: #00008B;
}
button#scanNext {
	font-size: '0.9em';
}

@keyframes matrixFall {
    to {
        transform: translateY(100vh);
    }
}
@keyframes fadeOut {
    to {
        opacity: 0;
    }
}
.fade-out {
    animation: fadeOut 1s forwards; /* Use 'forwards' to keep the final state after animation ends */
}
/* For mobile devices */
@media (max-width: 768px) {
    
    /* Responsive title size */
    .title {
        font-size: 1.5em; /* Smaller size for mobile */
        max-width: 80%; /* Ensure title doesn't exceed 80% width */
        margin-left: auto; /* Center title if less than 100% width */
        margin-right: auto; /* Center title if less than 100% width */
    }
    
    /* Smaller btns */
    .action-button {
    	padding: 7px 15px;
    	margin-bottom: 12px;
    }
}

/* Scanner: */
#barcode-scanner-video-feed {
    display: none; /* Keep it initially hidden */
    width: 85%; /* Base width reduction */
    max-width: 425px; /* Adjusted max-width for smaller overall size */
    margin: 10px auto 25px auto; /* Center the video with spacing */
    border: 1px solid #ddd; /* Subtle border */
    box-shadow: 0 2px 4px rgba(0,0,0,0.2); /* Soft shadow */
    border-radius: 8px; /* Rounded corners */
    overflow: hidden; /* Ensures content is clipped to border radius */
    position: relative; /* For positioning inner content */
    height: auto; /* Adjust height automatically */
}
/* Adjustments for medium-sized devices (like iPhone 11) */
@media (max-width: 828px) {
    #barcode-scanner-video-feed {
        width: 70%; /* Slightly reduce width for medium devices */
        margin: 15px auto; /* Adjust margin for balanced spacing */
    }
}
/* Adjustments for smaller devices */
@media (max-width: 600px) {
    #barcode-scanner-video-feed {
        width: 70%; /* Maintain reduced width for consistency */
        margin: 0px auto 20px auto; /* Smaller margin for tight spaces */
    }
}
/* Additional adjustments for very small devices */
@media (max-width: 290px) {
    #barcode-scanner-video-feed {
        width: 80%; /* Increase width to use more of the small screen */
        margin: 5px auto; /* Reduce margin to save space */
        max-width: none; /* Remove max-width restriction */
    }
}

/* Status msg styling: */
.status-message {
    text-align: center;
    color: #ADD8E6; /* Matches general site color theme */
    margin: 20px 0;
}

/* Ensure all .status-icon elements are centered */
.status-icon {
    display: inline-block;
    vertical-align: middle;
}

.status-message .status-icon {
    font-size: 24px; /* Medium-sized icon */
    margin-right: 10px;
}

#positiveStatus .status-icon {
    color: #4CAF50; /* Green */
    font-size: 42px;
    color: chartreuse;
}

#negativeStatus .status-icon {
    color: #F44336; /* Red */
}

.status-message p {
    margin: 5px 0;
    font-size: 1.4em; /* Medium-sized message */
}

.status-message .extra-info {
    font-size: 1.15em;
    margin-top: 19px; 
}

#indecisiveStatus .status-icon {
    color: #FFA500 ! important; /* Orange */
    font-size: 33px; /* Slightly larger size for the question mark */
}

/* Adjustments for small screens / mobile devices */
@media (max-width: 768px) {
	
    .status-message {
        padding: 20px; /* Adds padding around the messages */
        margin: 10px 0; /* Adds vertical space between messages */
    }
}

/* Debug Modal: */
.modal {
	display: none; 
	position: fixed; 
	z-index: 2; 
 	left: 0;
  	top: 0;
  	width: 100%;
  	height: 100%;
  	overflow: auto; 
  	background-color: rgba(0,0,0,0.4); 
}
.modal-content {
	background-color: #fefefe;
	margin: 15% auto;
	padding: 20px;
	border: 1px solid #888;
	width: 80%;
}
.close-button {
	color: #aaa;
	float: right;
	font-size: 28px;
	font-weight: bold;
}
.close-button:hover, .close-button:focus {
	color: black;
	text-decoration: none;
	cursor: pointer;
}
h3.cameras-list-heading {
	color: royalblue;
}
#debug-cameras-list {
	margin-bottom: 20px;
	list-style-position: inside;
  	text-align: center;
}
#debug-cameras-list li {
    color: black;
}
p#active-camera-label {
	color: seagreen;
	font-weight: bold;
	padding-bottom: 5px;
}
#useAllCameras {
	width: auto; /* Adjust button width as needed */
	margin: 0 auto; /* This centers the button if its container is not flex */
}

/* Preventing zoom-info on inut field focus: */
input[type="text"] {
    font-size: 16px; /* Adjust the font size as necessary */
}
/* Mobile devices */
@media (max-width: 768px) {
    #submitDebugInfo {
        margin-top: 10px; /* Adjust the value as needed */
    }
}