html, body {
    height: 100%;
    margin: 0;
}
body{
	background-color: #eeeeee;
	min-height: 350px;
	min-width: 275px;
}

.main-container {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 107px); /* Full height minus navbar and footer */
    width: 100%;
    justify-content: center; /* Center vertically */
    align-items: center; /* Center horizontally */
    /*margin: 0 auto; /* Center the container */
    overflow: hidden; /* Prevent scrollbars */
}
#playerContainer {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center vertically */
    align-items: center; /* Center horizontally */
    padding: 5px;
    padding-top: 10px;
    min-height: 240px; /* Allow shrinking */
    width: 100%;
}
@media screen and (orientation: portrait){
	.video-wrapper {
		aspect-ratio: 16 / 9;
		width: 100%;
		max-width: fit-content;
		min-width: 320px;
		line-height: 0; 
	}
	#logo, #player {
		width: 100%;
		border-radius: 10px;
	}
}
@media screen and (orientation: landscape){
	.video-wrapper {
		aspect-ratio: 16 / 9;
		height: 100%;
		min-height: 240px;
		max-height: min(1080px, calc(100% - 53px));
		line-height: 0; 
	}
	#logo, #player {
		height: 100%;
		max-width: fit-content;
		border-radius: 10px;
	}

}

.settings{
	width: 200px;
	display: block;
}
#ex1Slider .slider-selection {
	background: #BABABA;
}
.slider.slider-horizontal {
	width: 150px;
}
.modal {
    z-index: 9999;
}
.modal-footer {
	text-align: center;
}
textarea {
	display: inline-block;
	height: auto;
	width: 100%;
	overflow-y: scroll;
}

.navbar {
    z-index: 1050;
}

.navbar-brand {
    color: #000 !important;
}

.modal-body {
    color: #212529;
}

small.form-text.text-muted {
    color: #6c757d !important;
}

body.dark-mode {
    background-color: #121212;
    color: #e0e0e0;
}

body.dark-mode .navbar {
    background-color: #1f1f1f !important;
}

body.dark-mode .navbar-brand {
    color: #fff !important;
}

body.dark-mode .nav-link {
    color: #e0e0e0 !important;
}

body.dark-mode .modal-content {
    background-color: #2a2a2a;
    color: #e0e0e0;
}

body.dark-mode .modal-body {
    color: #e0e0e0;
}

body.dark-mode small.form-text.text-muted {
    color: #adb5bd !important;
}

body.dark-mode .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.55)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

body.dark-mode .btn-close {
    filter: invert(1);
}

.player-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5px;
    gap: 10px;
}

.nav-item.form-switch {
    display: flex;
    align-items: center;
}

footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: #f8f9fa;
    text-align: center;
    padding: 5px 0;
}

body.dark-mode footer {
    background-color: #1f1f1f;
}

#player-controls-container.muted input[type="range"]::-webkit-slider-runnable-track {
    background: #dc3545;
    border-radius: 5px;
}

#player-controls-container.muted input[type="range"]::-moz-range-track {
    background: #dc3545;
    border-radius: 5px;
}