@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");

html,
body {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	background-color: rgb(20, 20, 25);
	color: #fff;
	height: 100%;
	font-family: "Roboto", sans-serif;
	font-weight: 400;
	font-style: normal;
	font-size: 18px;
}

::-webkit-scrollbar {
	width: 5px;
}

::-webkit-scrollbar-thumb {
	background: #555;
	border-radius: 15px;
}

::-webkit-scrollbar-thumb:hover {
	background: #333;
}

#content {
	display: flex;
	flex-direction: row;
	height: 100%;
}

.overflow {
	overflow: hidden;
}

#stream-container {
	width: 100%;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	height: 100%;
}

#video-parent {
	position: relative;
	width: 100%;
	display: flex;
	flex-direction: column;
}

video {
	display: block;
	width: 100%;
	margin: 0 auto;
	background-color: #000;
}

.fullscreen {
	width: 100vw !important;
	height: 100vh !important;
	max-height: 100vh !important;
	z-index: 9;
}

.fullscreen video {
	max-height: 100vh !important;
}

#video-bar-wrapper {
	padding: 10px;
	width: 100%;
	display: flex;
	align-items: center;
}

.flex {
	display: flex;
}

.video-bar {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	display: flex;
	align-items: center;
}

#video-details {
	display: flex;
	width: 100%;
}

#video-details-wrapper {
	padding: 10px;
	width: 100%;
	display: flex;
	align-items: center;
	overflow: hidden;
}

#hide-video, #hide-chat {
	color: #fff;
	gap: 10px;
	padding: 8px 16px;
	display: flex;
	margin-left: auto;
	background: rgba(0, 0, 0, 0.1);
	border-radius: 10px;
	margin-right: 10px;
	align-items: center;
}

#video-info {
	color: #fff;
	gap: 10px;
	padding: 8px 16px;
	display: flex;
	margin-left: auto;
	background: rgba(0, 0, 0, 0.1);
	border-radius: 10px;
}

#video-controls {
	opacity: 0;
	background-color: rgba(0, 0, 0, 0.5);
	justify-content: flex-start;
	z-index: 10;
	transition: opacity 0.3s;
}

#video-parent:hover #video-controls {
	opacity: 1;
}

#mute-button {
	width: 52px;
}

.flex-center {
	align-items: center;
	display: flex;
}

#discord,
#download,
#hide-video,
#hide-chat,
#play-button,
#mute-button,
#fullscreen,
#vod-select,
#quality-select {
	margin-right: 10px;
	background-color: #333;
	color: #fff;
	border: none;
	border-radius: 5px;
	padding: 8px 16px;
	cursor: pointer;
	transition: background-color 0.3s;
	font-size: 16px;
}

#fullscreen {
	margin-right: 0px;
}

#discord:hover,
#download:hover,
#hide-video:hover,
#hide-chat:hover,
#play-button:hover,
#mute-button:hover,
#fullscreen:hover,
#vod-select:hover,
#quality-select:hover {
	background-color: #555;
}

#vod-controls {
	justify-content: center;
	align-items: center;
	margin-right: 10px;
	width: 100%;
}

#volume-control {
	-webkit-appearance: none;
	appearance: none;
	background: rgba(220, 220, 220, 0.7);
	width: 120px;
	height: 10px;
	outline: none;
	opacity: 0.7;
	-webkit-transition: 0.2s;
	transition: opacity 0.2s;
	margin-right: auto;
}

#volume-control::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 20px;
	height: 20px;
	background: rgb(30, 166, 116);
	cursor: pointer;
}

#volume-control::-moz-range-thumb {
	width: 20px;
	height: 20px;
	background: rgb(30, 166, 116);
	cursor: pointer;
}

#volume-control:disabled {
	background: rgba(200, 200, 200, 0.3);
}

#volume-control:disabled::-webkit-slider-thumb {
	background: rgb(5, 75, 50);
}

#volume-control:disabled::-moz-range-thumb {
	background: rgb(5, 75, 50);
}

#seek-bar {
	-webkit-appearance: none;
	appearance: none;
	background: rgba(220, 220, 220, 0.7);
	flex: 1;
	height: 10px;
	outline: none;
	opacity: 0.9;
	-webkit-transition: 0.2s;
	transition: opacity 0.2s;
	margin: 0px 20px;
}

#seek-bar::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 18px;
	height: 18px;
	background: rgb(200, 200, 200);
	cursor: pointer;
	border-radius: 50%;
}

#seek-bar::-moz-range-thumb {
	width: 18px;
	height: 18px;
	background: rgb(200, 200, 200);
	cursor: pointer;
	border-radius: 50%;
}

#seek-bar:disabled {
	background: rgba(200, 200, 200, 0.3);
}

#seek-bar:disabled::-webkit-slider-thumb {
	background: rgb(5, 75, 50);
}

#seek-bar:disabled::-moz-range-thumb {
	background: rgb(5, 75, 50);
}


#quality-select {
	-webkit-appearance: none;
	appearance: none;
}

#stream-title {
	font-weight: bold;
	font-size: 30px;
	text-overflow: ellipsis;
	white-space: nowrap;
	overflow: hidden;
}

#video-control {
	display: flex;
	margin-left: auto;
}

#stream-info {
	border-top: 1px solid rgba(200,200,200,0.1);
	height: 100%;
	padding: 10px;
}

#chat {
	flex-direction: column;
	overflow: hidden;
	border-left: 1px solid rgba(200, 200, 200, 0.3);
	background-color: rgb(30, 30, 35);
	min-width: 400px;
	max-width: 400px;
}

#chat .system {
	color: #b4b4b4;
}

#chat a {
	color: #fff;
}

#chatbox {
	padding-top: 10px;
	width: 100%;
	height: 100%;
	overflow-y: scroll;
	word-wrap: break-word;
}

#submit {
	display: flex;
	margin: 10px;
}

.message {
	white-space: preserve;
	word-break: break-all;
	padding: 10px;
	padding-top: 0px;
}

.message-align img {
	vertical-align: middle;
}

#text-message {
	height: 40px;
	border: 1px solid #333;
	padding: 0px 10px;
}

input[type="text"] {
	font-size: 16px;
	border: none;
	border-radius: 5px;
	background-color: #222;
	color: #fff;
	outline: none;
	width: 100%;
	height: 100%;
}

@media (max-width: 1000px) {
	#content {
		flex-direction: column;
	}

	#chat {
		border-top: 1px solid rgba(200,200,200,0.3);
		max-width: 100%;
		max-height: 100%;
		border-left: none;
		flex-grow: 1;
	}

	#stream-info {
		display: none;
	}

	#stream-container {
		height: auto;
	}
}

.chatbox {
	display: flex;
}

.hidden {
	display: none;
}
