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

*{ box-sizing: border-box; }

a{
  text-decoration :none;
}

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{ 
  display:grid; 
  grid-template-columns: 60px 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 {
  top: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  background:var(--panel);
}

.menu #separateur_enonce{
  width:45px;
  border-bottom: 1px solid #b3b3b3;
}

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


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


.menu .bt_menu2{
  background-color: white;
  margin:0.5em 0.5em 0.5em 0.5em;
  padding:3px 3px 3px 3px ;
  border:1px solid #d1d5db; 
  border-radius:5px;
  display: flex;
  justify-content: center;
  align-items: center; 
}

.menu .bt_menu2:hover, button:hover{ 
  border:1px solid #000000;
}

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

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

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

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

hr{
  border: 1px solid #e5e7eb;
}

.conteneur_reponse{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 1fr ;
  column-gap: 10px;
  align-items: center; 
  justify-items: center;
  padding-bottom: 5px;
}

#bt_reponse{
  margin: 0.3em;
}

.conteneur_nombre, .conteneur_nature{
  margin-top: 1.5em;
  text-align: center;
 }

 .conteneur_reponse label{
  font-size: 0.8em;
 }

#reponse_eleve_nature, #reponse_eleve_sommets {
  margin-top: 1em;
}

#reponse_eleve_nature input[type=number]{
  width:5em;
}

#conteneur_elements_formulaire{
  display: grid;
  grid-template-columns: 1fr;
  column-gap: 10px;
  row-gap: 5px;
  align-items: center; 
  justify-items: center; 
}


#validation_nature{
  margin-top: 0.5em;
  /*grid-column: span 2;*/
}


/*menu canvas*/

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

#bt_mode{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border:2px solid #d1d5db;
  width:30px;
  height:30px;
}

#bouton_mode{
  font-size: 1.5em;
  color: #d1d5db;
}

/*menu aide*/
#menu_aide{
  font-size: 0.85em;
}

#menu_aide h2{
  margin-bottom: 0;
}

/*menu sommets*/
.menu_solide{
  position: absolute;
  top: 110px;
  left:0em;
  z-index: 1;
  width: 200px;
  min-width:200px;
  height:auto;
  margin:.75rem;
}

#aff_menu_solide{
  top: 180px;
  left:0em;
}

.conteneur_solide{
  display: grid;
  grid-template-columns: 60px 1fr;
  grid-template-rows: 1fr 1fr 1fr ;
  column-gap: 10px;
  row-gap:3px;
  align-items: center; 
  justify-items: center;
  height:100%;
}

.conteneur_solide .gauche{
  justify-self: start;
  text-align: left;
}

.conteneur_solide .droite{
  justify-self: end;
  text-align: right;
}

#conteneur1, #conteneur2{
  margin-bottom: 40px;
}

.conteneur3{
  grid-template-rows: 1fr 1fr;
}


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

.fusion{
  padding: 5px;
  border-right: 1px solid black;
  height:100%;
  grid-column-start: 1;
  grid-row-start: 1;
  grid-row-end: 4;

}

.menu_colorier_face{
  position: absolute;
  top: 240px;
  left:0em;
  z-index: 1;
  width: 130px;
  min-width: 130px;
  height:auto;
  margin:.75rem;
}

.menu_vue_face{
  position: absolute;
  top: 180px;
  left:0em;
  z-index: 1;
  width: 130px;
  min-width: 130px;
  height:auto;
  margin:.75rem;
}

.texte_colorier_face{ 
  font-size: 0.8em;
  margin-top: 1em;
  text-align: left;
}

.texte_vue_face{
  font-size: 0.8em;
  text-align: left;
}

.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; 
}

/*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; 
}


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

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


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

.export_menu{
  position: absolute;
  top: 0em;
  left:0em;
  z-index: 2;
  width: 320px;
  min-width: 320px;
  height:auto;
  max-height:calc(100vh - 100px) ;
  margin:.75rem;
}

/*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;
}

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

input.instance1,input.instance2{
  width: 100px;
  height: 25px;
  border-radius: 10px;
  border-style: none ;
  cursor: grab;
}

/*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;
}

/*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;
}

/*Slider*/ 
input[type="range"] {
    appearance: none;
    background: #a5a5a5;
    width:100px;
    height: 10px;
    border-radius: 50px;
    background-image: linear-gradient(#0078af,#2bb8fa);
    background-size: 50% 100%;
    background-repeat: no-repeat;
}

input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  border: 1px solid #000000;
  height: 16px;
  width: 16px;
  border-radius: 8px;
  background: #ffffff;
  cursor: pointer;
  /*margin-top: -14px; /* You need to specify a margin in Chrome, but in Firefox and IE it is automatic */
}

/* All the same stuff for Firefox */
input[type=range]::-moz-range-thumb {
  border: 1px solid #000000;
  height: 16px;
  width: 16px;
  border-radius: 8px;
  background: #ffffff;
  cursor: pointer;
}

/* All the same stuff for IE */
input[type=range]::-ms-thumb {
  border: 1px solid #000000;
  height: 16px;
  width: 16px;
  border-radius: 8px;
  background: #ffffff;
  cursor: pointer;
}

/*affichage mode*/
#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;
}

/*disposition adptative*/
@media (max-width: 930px){
  .menu_solide{
    top:0;
  }
}

@media (max-width: 930px){
  .menu_vue_face{
    top:0;
  }
  .menu_colorier_face{
    top:0;
  }
}

@media (max-width:586px) {
  header h1{ 
    font-size:1rem; 
    letter-spacing:0px;
  }
  .logo_irem img{
    height:30px;
  }
}

@media (max-width:500px) {
.logo_irem img{
  display:none;
}

@media (max-width:319px) {
#application{ 
  height: calc(100vh - 95px); 
}



