/*
 *  Copyright (c) 2015 The WebRTC project authors. All Rights Reserved.
 *
 *  Use of this source code is governed by a BSD-style license
 *  that can be found in the LICENSE file in the root of the source
 *  tree.
 */
 :root {
 --selfvideo: calc(92px + 37%);
 }
 
.hidden {
  display: none;
}

.highlight {
  background-color: #eee;
  font-size: 1.2em;
  margin: 0 0 30px 0;
  padding: 0.2em 1.5em;
}

.warning {
  color: red;
  font-weight: 400;
}

/* ADD RMA */
.register-button {
  user-appearance: none; /* "navigateur, laisse-moi faire */
  border: none;
  font-weight: bold; /* gras */
  font-size: 1rem; /* si le texte devient piti, mettre la valeur 1.6rem */
  color: red; /* blanc sur rouge foncé */
  background: darkred;
}


 
.title-container {
	padding: 13px 0px 20px 70px;
    background-color: #000;
    position: absolute;
    align-items: end;
	top: 0%;
    height: 90px;
	width: 100%;
	right: 0%;
}

.title-container h1 {
	left: 0px;
    font-family: 'Barlow', sans-serif;
    color: #fff;
    font-size: 47px;
    font-weight: 500; /* Correspond à 'Medium' pour Barlow */
    margin: 0;
	display: inline;
	text-decoration: none;
}
.title-container h2 {
	left: 60px;
	font-family: 'Barlow', sans-serif;
	color: #fff;
    font-size: 22px;
    font-weight: 500; /* Correspond à 'Medium' pour Barlow */
    margin: 0;
	display: inline;
}

@media screen and (min-width: 1000px) {
  /* hack! to detect non-touch devices */
  div#links a {
    line-height: 0.8em;
  }
}

audio {
  max-width: 100%;
}

body {
  font-family: 'Roboto', sans-serif;
  font-weight: 200;
  margin: 0;
  padding: 1em;
  word-break: break-word;
}

button {
  background-color: #d84a38;
  border: none;
  border-radius: 2px;
  color: white;
  font-family: 'Roboto', sans-serif;
  font-size: 0.8em;
  margin: 0 0 1em 0;
  padding: 0.5em 0.7em 0.6em 0.7em;
}

button:active {
  background-color: #cf402f;
}

button:hover {
  background-color: #cf402f;
}

button[disabled] {
  color: #ccc;
}

button[disabled]:hover {
  background-color: #d84a38;
}

canvas {
  background-color: #ccc;
  max-width: 100%;
  width: 100%;
}

code {
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
}

select {
  margin: 0 1em 1em 0;
  font-size: 12px;
  width: 90%;
  top: -1px;
}

div#container {
  position: absolute;
  left: 10px;
  top: 250px;
  margin: 0 auto 0 auto;
  max-width: 60em;
  padding: 1em 1.5em 1.3em 1.5em;
}
/* Premier qui marche :
video-player-container {
  width: 100%;
  height: 1000px;
}
*/

/* Premier qui marche 
video-player {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
}
*/

video-player-container {
  position: absolute;
  left: 0%;
  top: 0%;
  background: transparent;
  width: 95%;
  aspect-ratio: 16/9;
  height: auto;
  max-width: 100%;
  object-fit: cover;
  
}
video-player {
  position: absolute;
  left: 0%;
  top: 0%;
  background: transparent;
  width: 100%;
  aspect-ratio: 16/9;
  height: auto;
  max-width: 100%;
  object-fit: cover;
}


#self-video-bordure {
  position: absolute;
  left: 0%;
  top: 92px;
  background: transparent;
  width: 28%;
  aspect-ratio: 16/9;
  height: auto;
  max-width: 100%;
  object-fit: cover;
}

#self-video {
  position: absolute;
  left: 0%;
  top: 0%;
  background: transparent;
  width: 95%;
  aspect-ratio: 16/9;
  height: auto;
  max-width: 100%;
  object-fit: cover;
}

#self-video-canvas {
  position: absolute;
  left: 0%;
  top: 0%;
  background: transparent;
  width: 95%;
  aspect-ratio: 16/9;
  height: auto;
  max-width: 100%;
  object-fit: cover;
}
#self-video-picture {
  position: absolute;
  left: 0%;
  top: 0%;
  background: transparent;
  width: 95%;
  aspect-ratio: 16/9;
  height: auto;
  max-width: 100%;
  object-fit: cover;
}

#membername {
	position: absolute;
	font-family: 'Barlow', sans-serif;
	left: 0px;
	bottom: 0px;
	height: 10px;
}


#videoactive-icon {
	position: absolute;
	right: 11px;
	bottom: -12px;
	cursor: pointer;
	display: none;
}

#videononactive-icon {
	position: absolute;
	right: 11px;
	bottom: -12px;
	cursor: pointer;
}

#participant-video-bordure {
	position: absolute;
	right: 0%;
	top: 92px;
	width: 28%;
	aspect-ratio: 16/9;
	height: auto;
	max-width: 100%;
}
#participant-video {
	position: absolute;
	right: 0%;
	top: 0%;
	width: 95%;
	aspect-ratio: 16/9;
	height: auto;
	max-width: 100%;
}
#participant-canvas {
	position: absolute;
	right: 0%;
	top: 0%;
	background: transparent;
	width: 95%;
	aspect-ratio: 16/9;
	height: auto;
	max-width: 100%;
}
#hostname {
	position: absolute;
	font-family: 'Barlow', sans-serif;
	left: 5%;
	bottom: 0px;
	height: 10px;
}

.divlogin {
  position: absolute;
  left: 1130px;
  top: 100px;
  margin: 0 auto 0 auto;
  max-width: 60em;
  padding: 1em 1.5em 1.3em 1.5em;
}

.divcontrol {
  position: absolute;
  left: 0%;
  //top: 45%;
  top: calc(var(--selfvideo));
  width: 30%;
  height: 15%;
  --control: calc(top + height + 2px);
  //margin: 0 auto 2 auto;
  //padding: 1em 1.5em 1.3em 1.5em;
}

.divmixage {
  position: absolute;
  left: 27%;
  top: 11%;
  width: 46%;
  max-width:1000px;
  height: 313px;
  margin: 0 auto 2 auto;
  background-color: #b1595900;
}
@media only screen and (min-width: 1200px) {
    html {
        font-size: 15px;
    }
}
.my-slider {
  margin: 4%;
  display: inline-block;
  background: #ccc;
  color: #2980b9;
  height: 38%;
  width: 1.2%;
}

.noUi-connect {
  background: #27526d; 
}

.my-slider .noUi-handle {
  right: -10px; 
}

.my-slider-round {
    height:38%;
	width: 0.8%;
}

.my-slider-round .noUi-connect {
    background: #c0392b;
}

.my-slider-round .noUi-handle {
    height: 18px;
    width: 18px;
    top: -9px;
    right: -8px;
    border-radius: 9px;
}

.sync-slider {
  margin: 30px;
  display: inline-block;
  font-size: 12px;
  //background: #111;
  width: 300px;
  height: 20px;
}

.divmixin1 {
  position: absolute;
  font-weight: 800;
  left: 0%;
  top: 52%;
  width: 20%;
  height: 15px;
  margin: 0 auto 2 auto;
  
}

.divmixin2 {
  position: absolute;
  font-weight: 800;
  left: 19%;
  top: 52%;
  width: 20%;
  height: 15px;
  margin: 0 auto 2 auto;
  
}
.divmixin3 {
  position: absolute;
  font-weight: 800;
  left: 38%;
  top: 52%;
  width: 20%;
  height: 15px;
  margin: 0 auto 2 auto;
  
}
.divmixinF {
  position: absolute;
  font-weight: 800;
  left: 57%;
  top: 52%;
  width: 20%;
  height: 15px;
  margin: 0 auto 2 auto;
  
}
.divmixinR {
  position: absolute;
  font-weight: 800;
  left: 76%;
  top: 52%;
  width: 20%;
  height: 15px;
  margin: 0 auto 2 auto;
}

div#links {
  padding: 0.5em 0 0 0;
}
.divfile {
  position: absolute;
  left: 510px;
  top: 670px;
  width: 300px;
  height: 300px;
  margin: 0 auto 2 auto;
  label{ 
	font-size: 25px;
  }
}

.select {
  position: absolute;
  left: 800px;
  top: 570px;
  margin: 0 1em 1em 0;
  font-size: 12px;
  width: 20%;
}
.switchrecord1 {
	position: absolute;
	left:0%;
	top:76%;
	input[type="radio"].with-gap:checked + span:before {
		border: 2px solid red !important;
	}
	
	input[type="radio"]:checked + span:after {
		background-color: red !important;
		border: 2px solid red !important;
	}
}

.switchecc1 {
	position: absolute;
	left:0%;
	top:82%;
}

.switchag1 {
	position: absolute;
	left:0%;
	top: 88%;
}

.switchns1 {
	position: absolute;
	left:0%;
	top: 94%;
}

.switchrecord2 {
	position: absolute;
	left:19%;
	top:76%;
	input[type="radio"].with-gap:checked + span:before {
		border: 2px solid red !important;
	}
	
	input[type="radio"]:checked + span:after {
		background-color: red !important;
		border: 2px solid red !important;
	}
}
.switchecc2 {
	position: absolute;
	left:19%;
	top:82%;
}

.switchag2 {
	position: absolute;
	left:19%;
	top: 88%;
}

.switchns2 {
	position: absolute;
	left:19%;
	top: 94%;
}

.switchrecord3 {
	position: absolute;
	left:38%;
	top:76%;
	input[type="radio"].with-gap:checked + span:before {
		border: 2px solid red !important;
	}
	
	input[type="radio"]:checked + span:after {
		background-color: red !important;
		border: 2px solid red !important;
	}
}
.switchecc3 {
	position: absolute;
	left:38%;
	top:82%;
}

.switchag3 {
	position: absolute;
	left:38%;
	top: 88%;
}

.switchns3 {
	position: absolute;
	left:38%;
	top: 94%;
}

#media-control {
	position: absolute;
	top:66%;
	left: 57%;
	width: 60%;
	display: flex;
	align-items: center;
	gap: 20px; /* espace entre les blocs d’icônes */
    label{ 
	 font-size: 20px;
    }
}

#media-control .tool {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  font-size: 0.8em; /* plus petit texte */
}

#media-control .tool i {
  margin-bottom: 5px; /* espace entre l’icône et le texte */
  cursor: pointer;
}


.round-button {
  width:25%;
}
.round-button-circle {
  width: 100%;
  height:0;
  padding-bottom: 100%;
  border-radius: 50%;
  border:10px solid #cfdcec;
  overflow:hidden;
        
  background: #4679BD; 
  box-shadow: 0 0 3px gray;
}
.round-button-circle:hover {
  background:#30588e;
}
.round-button a {
  display:block;
  float:left;
  width:100%;
  padding-top:50%;
  padding-bottom:50%;
  line-height:1em;
  margin-top:-0.5em;
        
  text-align:center;
  color:#e2eaf3;
  font-family:Verdana;
  font-size:1.2em;
  font-weight:bold;
  text-decoration:none;
}

h1 {
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  margin: 0 0 0.8em 0;
  padding: 0 0 0.2em 0;
}

h2 {
  color: #444;
  font-weight: 500;
}

h3 {
  border-top: 1px solid #eee;
  color: #666;
  font-weight: 300;
  margin: 10px 0 10px 0;
  white-space: nowrap;
}

h4 {
  border-top: 1px solid #eee;
  color: #666;
  font-weight: 200;
  margin: 10px 0 10px 0;
  white-space: nowrap;
}

li {
  margin: 0 0 0.4em 0;
}

html {
  /* avoid annoying page width change
  when moving from the home page */
  overflow-y: scroll;
}

img {
  border: none;
  max-width: 100%;
}

input[type=radio] {
  position: relative;
  top: -1px;
}

p {
  color: #444;
  font-weight: 300;
}

p#data {
  border-top: 1px dotted #666;
  font-family: Courier New, monospace;
  line-height: 1.3em;
  max-height: 1000px;
  overflow-y: auto;
  padding: 1em 0 0 0;
}

p.borderBelow {
  border-bottom: 1px solid #aaa;
  padding: 0 0 20px 0;
}

section p:last-of-type {
  margin: 0;
}

section {
  border-bottom: 1px solid #eee;
  margin: 0 0 30px 0;
  padding: 0 0 20px 0;
}

section:last-of-type {
  border-bottom: none;
  padding: 0 0 1em 0;
}



h1 span {
  white-space: nowrap;
}

a {
  color: #6fa8dc;
  font-weight: 300;
  text-decoration: none;
}

h1 a {
  font-weight: 300;
  margin: 0 10px 0 0;
  white-space: nowrap;
}

a:hover {
  color: #3d85c6;
  text-decoration: underline;
}

a#viewSource {
  display: block;
  margin: 1.3em 0 0 0;
  border-top: 1px solid #999;
  padding: 1em 0 0 0;
}

div#errorMsg p {
  color: #F00;
}

div#links a {
  display: block;
  line-height: 1.3em;
  margin: 0 0 1.5em 0;
}

div.outputSelector {
  margin: -1.3em 0 2em 0;
}

p.description {
  margin: 0 0 0.5em 0;
}

strong {
  font-weight: 500;
}

textarea {
  resize: none;
  font-family: 'Roboto', sans-serif;
}





ul {
  margin: 0 0 0.5em 0;
}

@media screen and (max-width: 650px) {
  .highlight {
    font-size: 1em;
    margin: 0 0 20px 0;
    padding: 0.2em 1em;
  }

  h1 {
    font-size: 24px;
  }
}

@media screen and (max-width: 550px) {
  button:active {
    background-color: darkRed;
  }

  h1 {
    font-size: 22px;
  }
}

@media screen and (max-width: 450px) {
  h1 {
    font-size: 20px;
  }
}

#drop-area {
      border: 1px solid blue;
      padding: 15px;
      margin-top:5px;
}

div.participant {
/*
  background: center no-repeat url("data:image/svg+xml;utf8,<svg class='bi bi-person-fill' width='80' height='45' viewBox='0 0 16 16' fill='currentColor' xmlns='http://www.w3.org/2000/svg'><path fill-rule='evenodd' d='M3 14s-1 0-1-1 1-4 6-4 6 3 6 4-1 1-1 1H3zm5-6a3 3 0 100-6 3 3 0 000 6z' clip-rule='evenodd'/></svg>");
  border: 1px solid gray;
  display: inline-flex;
  height: 90px;
  margin: 10px 5px;
  max-width: 160px;
  overflow: hidden;
*/
}

div.participant > video {
  position: absolute;
  left: 829px;;
  top: 107px;
  background: #222;
  margin: 0 0 20px 0;
  width: 313px;
  height: 275px;
  max-width: 100%;
  object-fit: cover;
}

div.participant.main {
  height: inherit;
  margin: 10px 0;
  max-width: 100%;
  width: 100%;
}

div.participant.main > video {
  position: absolute;
  left: 15px;
  top: 15px;
  background: #222;
  margin: 0 0 20px 0;
  width: 313px;
  height: 275px;
  max-width: 100%;
  object-fit: cover;
}

div.item {
	position: absolute;
	left : 50%;
	top: 50%;
	//overflow: auto;
	cursor: pointer;
    width: 50%;
    height: 45%;
    margin: 0 auto 2 auto;
    label{ 
	 font-size: 25px;
    }
}
#audiofile1 {
	position: absolute;
	left: 0%;
	top: 0%;
}

#duration1 {
	position: absolute;
	left: 40%;
	top: 0%
}

#no-playback {
	position: absolute;
	left: 60%;
	top: -1%;
	font-weight: 800;
	width: 20%;
	height: 29px;
	margin: 0 auto 2 auto;
}

#overview1 {
	position: absolute;
	top: 8%;
	left: 0%;
	width: 100%;
	height: 20%;
}

#overview2 {
	position: absolute;
	top: 31%;
	left: 0%;
	width: 100%;
	height: 20%;
}

.progress{
	display: none;
    align-items: center;
	justify-content: center;
	background-color: #acc3bf;
	position: absolute;
	top: 70%;
	z-index: 100;
	width: 100%;
	height: 4px;	
	left: 40px;
}

.progress .determinate {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    background-color: #2631a6;
    -webkit-transition: width .3s linear;
    transition: width .3s linear
}

/* on change la taille des icones de commande, medium est trop grand small trop petit. */

i.medium {
    font-size: 3rem;
}


.material-icons {
	user-select: none;      /* Empêche la sélection de texte */
}
.material-icons.enabled {
	cursor: default;
}

.material-icons.disabled {
  opacity: 0.4;
  /*pointer-events: none;*/ /* désactive les clics */
  cursor: not-allowed;
}

div.synchro {
	position: absolute;
	left : 0%;
	top: 50%;
	//overflow: auto;
    width: 60%;
    height: 10%;
    margin: 0 auto 2 auto;
    label{ 
	 font-size: 20px;
    }
}

div.record-control {
	position: absolute;
	left : 50%;
	top: 48%;
    width: 60%;
    height: 25%;
	display: flex;
	align-items: center;
	gap: 20px; /* espace entre les blocs d’icônes */
    label{ 
	 font-size: 20px;
    }
}

.record-control .tool {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  font-size: 0.8em; /* plus petit texte */
}

.record-control .tool i {
  margin-bottom: 5px; /* espace entre l’icône et le texte */
  /*cursor: pointer;*/
}

div.wrapper {
	position: absolute;
	left : 50%;
	bottom: 0%;
	overflow: auto;
    width: 50%;
    height: 80px;
    margin: 0 auto 2 auto;

    label{ 
	 font-size: 25px;
    }
}

/*#chat {
	position: absolute;
	left: 0%;
	top: 82%;
	overflow: auto;
	width: 50%;
	height: 14%;
}
*/
#messages {
	position: absolute;
	left: 0%;
	top:calc(var(--selfvideo) + 22%);
	overflow: auto;
	width: 50%;
	height: 20%;
}
	
#formulaire {
	position: absolute;
	left: 0%;
	top: 91%;
	width: 45%;
	height: 5%;
	font-size: 14px;
}

#submit_chat {
	position: absolute;
	background-color: blue;
	left: 94%;
	top: 45%;
	width: 14%;
	height: 57%;
}

* {
    margin: 0;
    padding: 0;
	
}

/*------------------- Midi Piano -----------------------*/

div#pianoposition {
	position: absolute;
	top: calc(var(--selfvideo) + 12%);
	left:0%;
	width: 50%;
	height: 10%;
}

#piano {
	left: 10px;
    clip-path: inset(0px 0px 0px 0px);
    
}

.white-key {
    stroke: #555555;
    fill: #FFFFF7;
}
.black-key {
    stroke: #979797;
    fill: #4b4b4b;
}
.white-key-text {
    font-size: 1.3em;
    pointer-events: none;
    user-select: none;
}
.black-key-text {
    font-size: 1em;
    fill: #fff;
    font-weight: 200;
    pointer-events: none;
    user-select: none;
}
.show {
    fill: #f5f541;
}

.show.black-key ~ text {
    fill: #000;
}

