/*Copyright 1998-2019 Epic Games, Inc. All Rights Reserved.*/

@font-face {
	font-family: 'ElementalEnd';
	font-style: normal;
	font-weight: normal;
	src: local('../fonts/ElementalEnd'), url('../fonts/ElementalEnd.woff') format('woff');
}


@font-face {
	font-family: 'ElementalEnd Italic';
	font-style: normal;
	font-weight: normal;
	src: local('../fonts/ElementalEnd Italic'), url('../fonts/ElementalEnd-Italic.woff') format('woff');
}

:root {
	/*Using colour scheme https://color.adobe.com/TD-Colors---Option-3-color-theme-10394433/*/
	--colour1:#2B3A42;
	--colour2:#333333b4;
	--colour3:#BDD4DE;
	--colour4:#EFEFEF;
	--colour5:#FF8C00;
	
	--buttonFont: Titillium Web;
	--inputFont: Titillium Web;
}

body{
    margin: 0px;
    background-color: black;
    -webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	font-family: 'Titillium Web', sans-serif;
}


#progressbar-container {
	position: absolute;
	bottom: 0;
	z-index: 999;
	width: 100%;
}

#playerUI {
	width: 100%;
	position: absolute;
	/*top: 0;
	left: 0;*/
	z-index: 10;
}

#statsContainer{
	background-color: rgba(0,0,0,0.8);
	text-align: left;
	display: none;
}

#stats{
	font-size: 14px;
	font-weight: bold;
	padding: 6px;
	color: lime;
}

canvas{
    image-rendering: crisp-edges;
    position: absolute;
}

video{
	position: absolute;
	width: 100%;
	height: 100%;
}

#player{
	/*
	width: 1280px;
	height: 720px;
	*/
	width: 100%;
	height: 100%;
	position: relative;
	/*
	background-color: #000;
	*/
	background: radial-gradient(ellipse at bottom, #1B2735 0%, #090A0F 90%);
}

#overlay{
	-webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
     -khtml-user-select: none; /* Konqueror HTML */
       -moz-user-select: none; /* Firefox */
        -ms-user-select: none; /* Internet Explorer/Edge */
            user-select: none; /* Non-prefixed version, currently
                                  supported by Chrome and Opera */
	position: absolute;
	padding: 4px;
	top: 0;
	right: 0%;
	z-index: 100;
}


#notice {
    position: absolute;
    right: 1.5%;
    bottom: 1%;
    color: #FFFFFF66;
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
	-khtml-user-select: none; /* Konqueror HTML */
	-moz-user-select: none; /* Firefox */
	-ms-user-select: none; /* Internet Explorer/Edge */
	user-select: none; /* Non-prefixed version, currently
	                      supported by Chrome and Opera */
}

#loading {
	width: 100%;
	overflow: hidden;
	text-align: center;
	color: white;
	position: absolute;
	top: 50%;
	font-weight: bold;
	-webkit-background-clip: text;
	background-clip: text;
	color: white;
	font-size: 1.5rem;
	visibility: collapse;
}

.overlay {
    background-color: var(--colour2);
	font-family: var(--buttonFont);
	font-weight: lighter;
	color: var(--colour4);
}

#overlayButton:hover{
	cursor:pointer;
}

#overlayButton{
	text-align: right;
	/*
	font-size: 40px;
	*/
}

#overlaySettings{
	width: 300px;
	padding: 4px;
	display: none;
}

#videoMessageOverlay{
	z-index: 20;
	color: var(--colour4);;
	font-size: 1.8em;
	position: absolute;
	margin: auto;
	font-family: var(--inputFont);;
	width: 100%;
}

#videoPlayOverlay{
	z-index: 30;
	position: absolute;
	color: var(--colour4);
	font-size: 1.8em;
	font-family: var(--inputFont);
	width: 100%;
	height: 100%;
	/*
	background-color: rgba(100, 100, 100, 0.7);
	*/
}

#afkOverlay{
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.75);
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: bold;
}

#timeoutOverlay{
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.75);
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: bold;
}

.text-span {
	background: -webkit-linear-gradient(white, #c1c1c1);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
}

#qualityStatus{
	float: left;
	font-size: 37px;
	padding-right: 4px;
}

.greyStatus {
	color: grey;
}

.limeStatus {
	color: lime;
}

.orangeStatus {
	color: orange;
}

.redStatus {
	color: red;
}

/* State for element to be clickable */
.clickableState{
	align-items: center;
	justify-content: center;
	display: flex;
	cursor: pointer;
}

/* State for element to show text, this is for informational use*/
.textDisplayState{
	display: flex;
	/* Added*/
	font-size: 1rem;
	padding: 1%;
}

/* State to hide overlay, WebRTC communication is in progress and or is playing */
.hiddenState{
	display: none;
}

#playButton{
	display: inline-block;
	height: auto;
}

img#playButton{
	max-width: 241px;
	width: 10%;
}

#UIInteraction{
	position: fixed;
}

#UIInteractionButtonBoundary{
	padding: 2px;
}

#UIInteractionButton{
	cursor: pointer;
}

#hiddenInput{
	position: absolute;
	left: -10%;   /* Although invisible, push off-screen to prevent user interaction. */
	width: 0px;
	opacity: 0;
}

#editTextButton{
	position: absolute;
	height: 40px;
	width: 40px;
}

.settings-text{
	color: #090a0f;
	vertical-align: middle;
	font-size: 18px;
	font-weight: normal;
	display: inline-block;
}

.overlay-button{
	line-height: 1.1;
	padding: 1px 6px;
}

.btn-overlay{
	float: right;
	vertical-align: middle;
	display: inline-block;
}

.btn-flat{
	background: var(--colour4);
	border: 2px solid var(--colour5);
	font-weight: bold;
	cursor: pointer;
	font-family: var(--buttonFont);
	font-size: 10px;
	color: var(--colour5);
	border-radius: 5px;
	height: 17px;
}

.btn-flat:disabled{
	background: var(--colour4);
	border-color: var(--colour3);
	color: var(--colour3);
	cursor: default;
}

.btn-flat:active{
	border-color: var(--colour2);
	color: var(--colour2);
}

.btn-flat:focus{
	outline: none;
}

#feedbackSetting {
	margin: 5% 20%;
}

.btn-error-report {
	background: white;
    color: black;
    border-radius: 6px;
    padding: 20px;
    text-align: center;
    padding: 2.5%;
    margin: 5%;
	box-shadow: 0px 3px 6px #0000004D;
	text-align: center;
}

.btn-error-report:hover {
	background: #cccccc;
	cursor: pointer;
}

.img-feedback {
	vertical-align: top;
	background-repeat: no-repeat;
	display: inline-block;
	width: 25px;
	height: 25px;
	max-width: 20%;
	max-height: 100%;
	background-image: url("../images/feedback/img_feedback.png");
}

.img-refresh {
	vertical-align: top;
	background-repeat: no-repeat;
	display: inline-block;
	width: 25px;
	height: 25px;
	max-width: 20%;
	max-height: 100%;
	background-image: url("../images/feedback/img_refresh.png");
	background-size: contain;
}

.text-feedback {
	color: #090a0f;
	display: inline-block;
}

/*** Toggle Switch styles ***/
.tgl-switch {
  float: right;
  vertical-align: middle;
  display: inline-block;
}

.tgl-switch .tgl {
	display:none;
}

.tgl, .tgl:after, .tgl:before, .tgl *, .tgl *:after, .tgl *:before, .tgl + .tgl-slider {
	-webkit-box-sizing: border-box;
    box-sizing: border-box;
}
.tgl::-moz-selection, .tgl:after::-moz-selection, .tgl:before::-moz-selection, .tgl *::-moz-selection, .tgl *:after::-moz-selection, .tgl *:before::-moz-selection, .tgl + .tgl-slider::-moz-selection {
  background: none;
}
.tgl::selection, .tgl:after::selection, .tgl:before::selection, .tgl *::selection, .tgl *:after::selection, .tgl *:before::selection, .tgl + .tgl-slider::selection {
  background: none;
}

.tgl + .tgl-slider {
	outline: 0;
	display: block;
	width: 40px;
	height: 18px;
	position: relative;
	cursor: pointer;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

.tgl + .tgl-slider:after, .tgl + .tgl-slider:before {
  position: relative;
  display: block;
  content: "";
  width: 50%;
  height: 100%;
}

.tgl + .tgl-slider:after {
  left: 0;
}

.tgl + .tgl-slider:before {
  display: none;
}

.tgl-flat + .tgl-slider {
  padding: 2px;
  -webkit-transition: all .2s ease;
  transition: all .2s ease;
  background: #fff;
  border: 3px solid var(--colour4);
  border-radius: 2em;
}

.tgl-flat + .tgl-slider:after {
  -webkit-transition: all .2s ease;
  transition: all .2s ease;
  background: var(--colour4);
  content: "";
  border-radius: 1em;
}

.tgl-flat:checked + .tgl-slider {
  border: 3px solid var(--colour5);
}

.tgl-flat:checked + .tgl-slider:after {
  left: 50%;
  background: var(--colour5);
}
/*** Toggle Switch styles ***/

/*---New Added---*/

#overlay{
	-webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
     -khtml-user-select: none; /* Konqueror HTML */
       -moz-user-select: none; /* Firefox */
        -ms-user-select: none; /* Internet Explorer/Edge */
            user-select: none; /* Non-prefixed version, currently
                                  supported by Chrome and Opera */
	position: absolute;
	background: rgba(255, 255, 255, 0.9) 0% 0% no-repeat padding-box;
	box-shadow: 0px 1px 3px #00000029;
	border-radius: 0px 0px 0px 10px;
	top: 0;
	right: 0;
	z-index: 100;
	transition: width 5s ease-in-out;
}

@media (orientation: landscape) {
	#overlay {
		padding: 5px 7px 1px 7px;
		border-radius: 0px 0px 0px 8px;
	}

	#overlayButton img{
		width: 16px;
	}
}

@media (orientation: portrait) {
	#overlay {
		padding: 1vh 1.5vh 0.5vh 1.5vh;
	}

	#overlayButton img{
		width: 2.5vh;
	}
	
}

#playButton{
	display: inline-block;
	height: auto;
	font-family: 'ElementalEnd';
  	font-size: 4vw;
}

.glow {
	color: #fff;
	text-align: center;
	-webkit-animation: glow 2s ease-in-out infinite alternate;
	-moz-animation: glow 2s ease-in-out infinite alternate;
	animation: glow 2s ease-in-out infinite alternate;
	-webkit-touch-callout: none; /* iOS Safari */
	-webkit-user-select: none; /* Safari */
	 -khtml-user-select: none; /* Konqueror HTML */
	   -moz-user-select: none; /* Old versions of Firefox */
	    -ms-user-select: none; /* Internet Explorer/Edge */
	        user-select: none; /* Non-prefixed version, currently
	                              supported by Chrome, Opera and Firefox */
}

.glow-grey {
	-webkit-touch-callout: none; /* iOS Safari */
	-webkit-user-select: none; /* Safari */
	 -khtml-user-select: none; /* Konqueror HTML */
	   -moz-user-select: none; /* Old versions of Firefox */
	    -ms-user-select: none; /* Internet Explorer/Edge */
	        user-select: none; /* Non-prefixed version, currently
	                              supported by Chrome, Opera and Firefox */
}

@-webkit-keyframes glow {
  from {
    text-shadow: 0 0 0.125vw #fff, 0 0 0.25vw #fff, 0 0 0.35vw #0073e6, 0 0 0.5vw #0073e6, 0 0 0.625vw #0073e6, 0 0 0.75vw #0073e6, 0 0 0.875vw #0073e6;
  }
  
  to {
    text-shadow: 0 0 0.5vw #fff, 0 0 0.75vw #4da6ff, 0 0 1.0vw #4da6ff, 0 0 1.25vw #4da6ff, 0 0 1.5vw #4da6ff, 0 0 1.75vw #4da6ff, 0 0 2.0vw #4da6ff;
  }
}

img#playButton{
	max-width: 241px;
	width: 10%;
}

.settings-text-header{
	color: var(--colour1);
	vertical-align: middle;
	font-size: 18px;
	font-weight: normal;
	display: inline-block;
	width: 100%;
}

.settings-bandwidthOption{
	color: var(--colour1);
	vertical-align: middle;
	font-size: 16px;
	font-weight: normal;
	display: inline-block;
	padding-left: 12px;
}


.play-btn {
  width: 100px;
  height: 100px;
  background: radial-gradient(#00b3ff7d, #090c0f);
  border-radius: 50%;
  position: relative;
  display: block;
  margin: 100px auto;
  box-shadow: 0px 0px 25px 0px rgba(0, 130, 230, 0.8);
  transform: scale(2);
}

/* triangle */
.play-btn::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  -webkit-transform: translateX(-40%) translateY(-50%);
  transform: translateX(-40%) translateY(-50%);
  transform-origin: center center;
  width: 0;
  height: 0;
  border-top: 15px solid transparent;
  border-bottom: 15px solid transparent;
  border-left: 25px solid #fff;
  z-index: 100;
  -webkit-transition: all 400ms cubic-bezier(0.55, 0.055, 0.675, 0.19);
  transition: all 400ms cubic-bezier(0.55, 0.055, 0.675, 0.19);
}

/* pulse wave */
.play-btn:before {
  content: "";
  position: absolute;
  width: 150%;
  height: 150%;
  -webkit-animation-delay: 0s;
  animation-delay: 0s;
  -webkit-animation: pulsate1 2s;
  animation: pulsate1 2s;
  -webkit-animation-direction: forwards;
  animation-direction: forwards;
  -webkit-animation-iteration-count: infinite;
  animation-iteration-count: infinite;
  -webkit-animation-timing-function: steps;
  animation-timing-function: steps;
  opacity: 1;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .55);
  top: -27%;
  left: -27%;
  background: rgba(198, 16, 0, 0);
}

@-webkit-keyframes pulsate1 {
  0% {
    -webkit-transform: scale(0.6);
    transform: scale(0.6);
    opacity: 1;
    box-shadow: inset 0px 0px 25px 3px rgba(255, 255, 255, 0.75), 0px 0px 25px 10px rgba(255, 255, 255, 0.75);
  }
  100% {
    -webkit-transform: scale(1);
    transform: scale(1);
    opacity: 0;
    box-shadow: none;

  }
}

@keyframes pulsate1 {
  0% {
    -webkit-transform: scale(0.6);
    transform: scale(0.6);
    opacity: 1;
    box-shadow: inset 0px 0px 25px 3px rgba(255, 255, 255, 0.75), 0px 0px 25px 10px rgba(255, 255, 255, 0.75);
  }
  100% {
    -webkit-transform: scale(1, 1);
    transform: scale(1);
    opacity: 0;
    box-shadow: none;

  }
}