/*page*/
:root{
  --bg:#ffffff;
  --panel:#f3f4f6; 
  --muted:#e5e7eb; 
  --ink:#0f172a; 
  --accent:#BBD4FC;
  --accent2:#B2D9BA;
  --edge:#0b1220; 
  --line:#94a3b8;
}

*{ box-sizing: border-box; }

body{
  margin:0; 
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial; 
  background:var(--bg); 
  color:var(--ink); 
  display:grid; 
  grid-template-rows: auto 1fr auto;
  min-height:100vh;
  user-select: none;
  }

header{
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(180deg, #ffffff, #f8fafc); 
  border-bottom:1px solid #e5e7eb;
  height:50px;
  padding-right: 1em;
  padding-left: 1em;
  
}

header #titre_appli{ 
  font-size:1.5rem; 
  font-weight:normal ; 
  letter-spacing:.2px;
  cursor:pointer; 
}

#aff_mode{
  position:absolute;
  z-index: 2;
  width:400px;
  height:100px;
  left: 50%;
  top:50%;
  transform: translate(-50%, -50%);
  background-color: rgba(150, 150, 150, 0.6);
  border-radius: 10px;
}

#aff_mode #conteneur{
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height:100%;
}

#texte_mode{
  font-size:1.5rem;
}


#application{ 
  flex:1 1 auto; 
  display:grid; 
  grid-template-columns: 300px 1fr; 
  height: calc(100vh - 80px); 
}

.left{ 
  padding:.75rem;
  padding-top: 0; 
  background:var(--panel); 
  border-right:1px solid #e5e7eb; 
  overflow:auto; 

}
.right{ 
  position:relative; 
  background:#ffffff; 
  display:flex; 
  min-height:0; 
}

.ligne{
  border-bottom:1px solid var(--line);
  display: block;
  width:100%;
}

/*canvas*/
#canvas{ 
  display:block; 
  flex:1 1 auto; 
  width:100%; 
  height:100%; 
}

footer{
  text-align:center; 
  font-size:.7rem; 
  color:#475569; 
  padding:.5rem; 
  border-top:1px solid #e5e7eb; 
  background:#fafafa;
}

footer a { 
  color:inherit; 
  text-decoration:underline dotted; 
}
footer span { 
  font-variant: small-caps; 
}

/*menu*/
.menu {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  background:var(--panel);
}

.menu .bt_menu{
  margin:0.5em 0.5em 0.5em 0.5em;
  border-bottom: 1px solid #00000000;
}

.menu #separateur_enonce{
  border-left: 1px solid #b3b3b3;
}

.menu .bt_menu:hover{
  cursor:grab;
  border-bottom: 1px solid #000000ff;
}

/*énoncé*/
.image_menu{
  position: absolute;
  top: 0em;
  left:0em;
  resize:inline;
  overflow:auto ;
  direction: ltr;
  z-index: 1;
  width: 300px;
  min-width: 180px;
  height:auto;
  max-height:calc(100vh - 100px) ;
  margin:.75rem;
}

.image_menu .conteneur{
  display: flex;
  flex-direction: column;
  align-items: center;
}

.image_menu img{
width: 100%;
height: auto;
}

#titre_enonce{
  font-weight: bold;
  user-select: none;
}

#texte_enonce{
  margin-top: 1em;
  margin-bottom: 1em;
  user-select: none;
}

.image p{white-space: nowrap;overflow: hidden; text-overflow: ellipsis;}

#conteneur_reponse{
  display:flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

#bt_reponse{
  margin: 0.3em;
}


/*score*/
.score_menu{
  position: absolute;
  top: 0em;
  right:0em;
  z-index: 1;
  width: auto;
  height:auto;
  margin:.75rem;
}

#score_titre{
  text-align: center;
  font-size:.8rem;

}

#score_texte{
  text-align: center;
  font-size:1.2rem;
}

/*menu canvas*/
#bt_enonce2{
  position: absolute;
  top:0.75em;
  left:0.75em;
  z-index:1;
}

#menu_canvas_haut{
  position: absolute;
  top: 0em;
  right:0em;
  z-index: 1;
  margin:.75rem .75rem 0.75rem .75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}


#menu_canvas_bas{
  position: absolute;
  bottom: 0em;
  right:0em;
  z-index: 1;
  margin:.75rem .75rem 0.75rem .75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}


#menu_aide{
  font-size: 0.85em;
}

#menu_aide h2{
  margin-bottom: 0;
}

.card{ 
  background:#fff; 
  border:1px solid #e5e7eb; 
  border-radius:14px; 
  padding:.75rem; 
  margin-bottom:.75rem; 
}

.card h2{ 
  margin:.25rem 0 .5rem; 
  font-size:1rem; 
  font-weight:600;
  text-align:center;
  margin-bottom:1rem; 
}

.column{
  display:flex;
  flex-direction: column;
}

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


.row span{
  border-right: 1px solid #DDDADA;
  display: flex;
}

.nowrap{
  flex-wrap: nowrap; 
  overflow-x: hidden; 
}

.nowrap > *{ 
  white-space: nowrap; 
}

.centrer{
  justify-content: space-around;
}

#conteneur_base64{
  margin-top:1.5em;
  justify-content: center;
}

label{ 
  font-size:.85rem; 
}

.groupe{
  justify-content: stretch;
  margin-top:1.2em;
  margin-bottom: 1.2em;
  align-items: stretch;
}

.grouperow{
  flex:1;
  justify-content: space-between;
  margin:0.25em 0 0.25em 1em;
}

.groupecolumn{
  flex:1;
  align-items: stretch;
}

.group-label{
  font-size:1rem; 
  width:60px;
  text-align:left; 
  align-items: center;
}

#allscene{
  margin-left: 1em;
}

#histo{
  margin:0.25em 0 0.25em 0;
}

#couleur_cubes{
  margin:0.25em 3em 0.25em 1em;
}

#couleur_aretes{
  margin:0.25em 0em 0.25em 1em;
}

.row_qualite{
  justify-content: flex-start;
}

.texte_bouton{
  font-size: 0.8em;
  margin-left: 1em;
}

.texte_grille{
  font-size: 0.9em;
}

#trinoView{
  margin-left: 1em;
  margin-top: 0.25em;
}

#dim {
  padding-right: 15px;
  border-right: 1px solid #DDDADA;
}

#dim label{
  width:70px;
}

.row_dim{
  margin:0.25em 0 0.25em 0;
}

#applySize{
  align-self: center;
  margin-left: 1em;
}

/*boutons*/
.btn, button{ 
  background:#fff; 
  color:var(--ink); 
  border:1px solid #d1d5db; 
  border-radius:10px; 
  padding:.32rem .48rem; 
  font-size:.85rem; 
  cursor:pointer; 
  transition:.15s; 
}

.btn:hover, button:hover{ 
  border-color:#2B6CD6;
}

.btn[aria-pressed="true"]{ 
  border:1px solid #2B6CD6; 
  background-color: var(--accent); 
}



.btn_niveau:hover, button:hover{ 
  border-color:#279C16;
}

.btn_niveau[aria-pressed="true"]{
  border:1px solid #279C16;
  background-color: var(--accent2);
}

.danger{ 
  background:#fff5f5; 
  border-color:#fecaca; 
}

.muted{ 
  background:#f8fafc; 
}

.small{ 
  font-size:.8rem; 
  opacity:.85; 
}


/*input*/
input[type="number"], input[type="color"], select{ 
  background:#fff; 
  border:1px solid #d1d5db; 
  color:var(--ink); 
  border-radius:10px; 
  padding:.2rem .4rem; 
}


#reponse{
  font-size: 17px;
}

.aide_menu{
  position: absolute;
  top: 0em;
  left:0em;
  resize:inline;
  overflow:auto ;
  direction: ltr;
  z-index: 2;
  width: 300px;
  min-width: 180px;
  height:auto;
  max-height:calc(100vh - 100px) ;
  margin:.75rem;
}

/*color picker*/
.element_couleur .clr-field button{
  width: 100%;
  height: 100%;
  border-radius: 5px;
}

input.instance{
  width: 55px;
  height: 25px;
  border-radius: 10px;
  border-style: none ;
  cursor: grab;
}

/*bouton switch*/
 .switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 24px;
}

.switch input { 
  opacity: 0;
  width: 0;
  height: 0;
}

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

.bt_switch:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked + .bt_switch {
  background-color: #ccc;
}

input:focus + .bt_switch {
  box-shadow: 0 0 1px #2196F3;
}

input:checked + .bt_switch:before {
  -webkit-transform: translateX(16px);
  -ms-transform: translateX(16px);
  transform: translateX(16px);
}

/* Rounded bt_switchs */
.bt_switch.round {
  border-radius: 24px;
}

.bt_switch.round:before {
  border-radius: 50%;
}

#texte_switch {
  font-size: 0.8em;
  margin-bottom: 0.5em;
  margin-top: 0.5em;
}

#texte_switch_etat{
  font-size: 0.7em;
  margin-bottom: 0.5em;
}

#bt_qualite{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-top:0.5em;
  margin-bottom:0.5em;
}


/*fenetre dimension*/
#conteneur_dim{
  position: absolute;
  bottom: 0.5em;
  left:0.5em;
  z-index: 2;
  background-color: rgba(150, 150, 150, 0.6);
  border-radius: 5px;
}

#dim_fenetre{
  font-size: 0.8em;
  margin:0.5em;
}

/*disposition adptative*/
@media (max-width:586px) {
  #application{ 
    height: calc(100vh - 95px); 
  }
  header h1{ 
    font-size:1rem; 
    letter-spacing:0px;
  }
  .logo_irem img{
    height:30px;
  }
}
