* {
	box-sizing: border-box;
	padding: 0;
	margin: 0;
}

/* video test */
.innerContainer {
	display: inline-block;
	position: relative;
	/*width: 100%;*/
}

.videoOverlay {
/* 	display: flex; */
	flex-direction: row;
	position: absolute;
	width: 100%;
	background-color: black;
	font-size: 48px;
	z-index: 1;
}

.cameraUsername {
	position: absolute;
	width: 100%;
	font-size: 24px;
	text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
	bottom: 0;
}

/*body {
	background-image: url('beta-background.png');
}*/

/*video::-webkit-media-controls-timeline,
video::-webkit-media-controls-current-time-display,
video::-webkit-media-controls-time-remaining-display {
	display: none !important;
}*/

html {
	height: 100%;
}

body {
	height: 100%;
	background-color: #222;
	color: #eaeaea;
}

a {
	color: #67b8ff;
}

a:visited {
	color: inherit;
}

textarea {
	background-color: #222;
	color: #eaeaea;
}

button {
	background-color: #b6b6b6;
/*	border: none;*/
}

#main {
	height: 100%;
	display: grid;
	grid-template-columns: 1fr 6fr 1.6fr;
/* 			grid-template-rows: 3fr 1fr; */
}

.outerContainer {
	display: flex;
	justify-content: center;
	align-items: center;
}

#cameras {
	display: flex;
	flex-wrap: wrap;
	flex-direction: row;
	align-items: center;
	justify-content: space-evenly;
	height: 100%;
	width: 100%;
}

#cameras video {
	width: 100%;
	max-height: 100%;
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
}

#cameras img {
	height: 100%;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
}

.cameraContainer {
	position: relative;
}

.cameraName {
/*	height: 100%;
	width: 100%;
	position: absolute;
	background-color: red;
	top: 0;
	left: 0;*/
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	background-color: red;
}

#userDropdown {
	position: absolute;
	transform: translate(0, 50%);
	background-color: #222;
	padding: 20px;
	border: 1px solid #ccc;
}

#userDropdown button {
	display: block;
	width: 100%;
}

#left {
	display: grid;
	grid-template-rows: 160px 100px auto
/* 	grid-template-rows: 5vh 5vh 90vh; */
/*	grid-template-rows:
		minmax(85px, 5vh)
		minmax(50px, 5vh)
		minmax(50px, 85vh);*/
/* 	background-color: green; */
}

#middle {
	display: grid;
	grid-template-rows: 95vh 5vh;
	height: 100%;
/* 	background-color: yellow; */
}

#right {
	height: 100%;
	display: grid;
	grid-template-rows: 85vh 10vh auto;
/* 	grid-template-rows: 85% 10% 5%; */
/* 	grid-template-rows: minmax(0, 10fr) minmax(0, 1fr) auto; */
}

#streamButtonSection {
	display: grid;
	grid-template-columns: 100%;
}

#streamButtonSection > button {
	border: none;
}

#startStream {
	background-color: #001270;
}

#startStream:hover {
	background-color: #000d4f;
}

#startStream:active {
	background-color: #020a39;
}

#stopStream {
	background-color: rgb(133, 22, 22);
}

#stopStream:hover {
	background-color: rgb(104, 17, 17);
}

#stopStream:active {
	background-color: rgb(80, 12, 12);
}

#streamSettings {
	display: none;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background: white;
	padding: 20px;
	border: 1px solid #ccc;
/* 			grid-template-rows: 100%; */
}

.usernameButton {
	width: 100%;
	text-align: left;
	display: flex;
	justify-content: space-between;
	background: none;
	color: white;
}

.window {
	display: none;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background: white;
	background-color: #222;
	color: #eaeaea;
	padding: 20px;
	border: 1px solid #ccc;
}

#passwordOverlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background: rgba(0,0,0,0.6);
	z-index: 99999;
	display: none;
}

#enterOverlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background: rgba(0,0,0,1);
	z-index: 99999;
}

#facingOverlay {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background: rgba(0,0,0,0.6);
	z-index: 99999;
}

.chatImage {
	width: 100%;
	max-height: 200px;
}

#newMessagesPopup {
	display: none;
	position: absolute;
	bottom: 100%;
	left: 0;
	background-color: blue;
	color: white;
	pointer-events: none;
	z-index: 2;
	width: 100%;
	text-align: center;
}

.button {
	display: inline-block;
	padding: 10px 20px;
	color: white;
	text-decoration: none;
	border-radius: 5px;
	font-weight: bold;
	text-align: center;
}

.otherButton {
	display: inline-block;
	padding: 10px 20px;
	color: lightgray;
	text-decoration: none;
	border-radius: 5px;
	font-weight: bold;
	text-align: center;
	background: #154a65;
	border-radius: 20px;
	width: 100%;
	border: none;
}

.otherButton:hover {
	background-color: #133140;
}

.otherButton:active {
	background-color: #081f2a;
}

.button:hover {
	background-color: #317e90;
}

@media (max-width: 1024px) {
	body {
/* 			font-size: 100px; */
	}

	button {
		padding: 5px 0;
	}

	#main {
		display: flex;
		flex-wrap: wrap;
/* 			grid-template-columns: 1fr 3fr 1.6fr; */
/* 			grid-template-rows: 2fr 1fr; */
	}

	#left {
		display: grid;
		order: 2;
		grid-template-rows: 1fr 1fr 8fr;
		width: 30vw;
		height: 30dvh;
	}

	#left button {
		width: 100%;
		margin-bottom: 1px;
	}

	#middle {
		display: grid;
		order: 1;
		grid-template-rows: 12fr 1fr;
		width: 100vw;
		height: 70dvh;
	}

	#right {
		display: grid;
		order: 3;
		grid-template-rows: 5fr 1fr 1fr;
		width: 70vw;
		height: 30dvh;
	}

	#test {
		height: 100vh;
		display: grid;
		grid-template-rows: 2fr 1fr;
		background-color: red;
	}

	#bottom {
		display: grid;
		grid-template-columns: 1fr 2fr;
	}

	#chat {
		display: grid;
		grid-template-rows: 5fr 1fr 1fr;
	}

	#cameras {
		height: 65dvh;
		align-items: center;
	}
}

/*	input,
	textarea,
	select {*/
/* 		font-size: 100px; */
/* 		height: auto; */
/*		box-sizing: border-box;*/
/*		border-width: 2px;
	}*/

/*	@media (max-width: 1280px) {
		body {
			font-size: 100px;
		}
	}*/

/*	form {
		border-radius: 5px;
		background-color: #f2f2f2;
		padding: 20px;
	}

	label {display: block;}

	input[type=text], input[type=password], select {
		width: 100%;
		padding: 12px;
		margin: 8px 0;
		display: inline-block;
		border: 1px solid #ccc;
		border-radius: 4px;
		box-sizing: border-box;
	}

	input[type=submit] {
		width: 100%;
		background-color: #4CAF50;
		color: white;
		padding: 14px;
		margin: 8px 0;
		border: none;
		border-radius: 4px;
		cursor: pointer;
	}

	input[type=submit]:hover {
		background-color: #45a049;
	}*/


/*		@media only screen and (max-width: 1000px) {
			#right {
				display: none;
			}
		}*/
