/******************************************************************************
*  Cyber Mega Phone 2K
*  Copyright (C) 2017 Digium, Inc.
*
*  This program is free software, distributed under the terms of the
*  MIT License. See the LICENSE file at the top of the source tree.
******************************************************************************/

body {
	font-family: sans-serif;
	background-color: #282b30 !important;
}

header {
	font-size: 1.55rem;
	text-shadow: 0 2px 2px #b6701e;
	text-align: center;
}

.footer {
	position: fixed;
	width: 100%;
	bottom: 0;
	left: 0;
	padding: 0.2rem;
	background-color: #efefef;
	text-align: center;
}

/* Checkbox switch */
.switches {
	display: block;
}

.switch {
	position: relative;
	display: inline-block;
	width: 70px;
	height: 20px;
}

.switch input {
	display: none;
}

.slider {
	position: absolute;
	cursor: pointer;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: #ccc;
	-webkit-transition: .4s;
	transition: .4s;
}

.slider:before {
	position: absolute;
	content: "";
	height: 12px;
	width: 16px;
	left: 4px;
	bottom: 4px;
	background-color: white;
	-webkit-transition: .4s;
	transition: .4s;
}

input:checked + .slider {
	background-color: #0068b2;
}

input:focus + .slider {
	box-shadow: 0 0 1px #0068b2;
}

input:checked + .slider:before {
	-webkit-transform: translateX(26px);
	-ms-transform: translateX(26px);
	transform: translateX(46px);
}

.slider:after {
	content: 'no';
	color: white;
	display: block;
	position: absolute;
	transform: translate(-50%,-50%);
	top: 50%;
	left: 47%;
	font-size: 10px;
	font-family: Verdana, sans-serif;
}

input:checked + .slider:after {
	content: 'yes';
}

 /* Account and connection */

.connection {
	text-align: left;
	padding: 10px;
}

.connection input {
	vertical-align: middle;
}

.account-modal {
	text-align: center;
	display: none;
	position: fixed;
	z-index: 1;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	overflow: auto;
	background-color: rgb(0,0,0);
	background-color: rgba(0,0,0,0.4);
}

.account-content {
	margin: 10% auto;
	padding: 10px;
	border: 1px solid #888;
	width: 250px;
	position: relative;
	-webkit-animation-name: animatetop;
	-webkit-animation-duration: 0.4s;
	background-color: #0c2959;
}

@-webkit-keyframes animatetop {
	from {top: -300px; opacity: 0}
	to {top: 0; opacity: 1}
}

@keyframes animatetop {
	from {top: -300px; opacity: 0}
	to {top: 0; opacity: 1}
}

.account-content label {
	color: white;
	display: block;
	text-align: left;
	margin-top: 5px;
}

.account-close {
	color: #aaa;
	float: right;
	font-size: 20px;
	font-weight: bold;
}

.account-close:hover, .account-close:focus {
	color: black;
	text-decoration: none;
	cursor: pointer;
}

 /* Media view and video */

video {
	/* height: 360px;
	width: 704px; */
	/* height: 400px; */
	width: 100%;
	max-height: 70vh;
}

.media-view {
	float: left;
	height: auto;
	padding: 0.5%;
	background-color: #282b30;
}

.media-overlay {
	/* width: 100%; */
	/* height: 100%; */
	position: absolute;
}

.media-controls {
	width: 100%;
	position: relative;
	text-align: center;
}

.media-controls button:hover, .media-controls button:focus {
	opacity: 1.5;
}

#media-views .media-view:first-child{
	display: none;
  }
.video-btn img, .audio-btn img, .fullScreen-btn img, .screen-share-btn img{width: 40px;}
#media-views .media-view .media-controls button{border: none;}


/* css */

.media-views {
	display: flex;
    flex-wrap: wrap;
    justify-content: flex-start; /* Start from the beginning of the row */
    align-items: flex-start; /* Align items to the top of the row */
  }
  
  .media-view {
	flex: auto;
	padding: 0.5%;
	background-color: #282b30;
	box-sizing: border-box;
	width: calc(25% - 20px); /* Each media-view takes 25% width with some spacing */
    margin: 10px; /* Add spacing between media-views */
  }
  /* Clear flex for every fifth media-view to start a new row */
/* .media-view:nth-child(5n+1) {
    flex: 0 0 25%; 
} */

  
  /* Set the maximum width for a video in a row */
  @media (max-width: 1200px) {
	.media-view {
	  max-width: 25%; /* 4 videos in a row */
	}
  }
  
  @media (max-width: 992px) {
	.media-view {
	  max-width: 33.33%; /* 3 videos in a row */
	}
  }
  
  @media (max-width: 768px) {
	.media-view {
	  max-width: 50%; /* 2 videos in a row */
	}
  }
  
  @media (max-width: 576px) {
	.media-view {
	  max-width: 100%; /* 1 video in a row */
	}
  }
  

/* End CSS */

.media-controls button{background-color: transparent;}
.send{border: none;background: transparent;}
.chatClose{font-weight: 800;font-size: 15px;}