@font-face {
    font-family: 'automatico mono';
    src: url('fonts/AutomaticoMono-Regular.woff2') format('woff2'),
        url('fonts/AutomaticoMono-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'automatico';
    src: url('fonts/AutomaticoText-Medium.woff2') format('woff2'),
        url('fonts/AutomaticoText-Medium.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'automatico', sans-serif;
  margin: 0;
  width: 100%;
  height: 100vh;
  font-size: 16px;
  line-height: 1.2;
}

ul{margin:0; padding:0;}
li{list-style: none;}
img{width:100%;}

figure{
  padding:0;
  margin:0;
}

#sketch {
  height: calc(100vh - 5vw - 70px);
  background: #F8F8F8;
  position: relative;
}

#sketch.edit{
  background: #FFECE7;
}

canvas {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
  cursor: -webkit-grab;
  background: #FFF;
  position: absolute; 
  left: 50%;
  top:50vh;
  transform: translate(-50%, -62%);
  border-radius: 40px;
}


#text-input{
  font-size: 40px;
  width: calc((2480px/3.3) - 40px);
  height: calc((1754px/3.3) - 40px);
  background: #FFF;
  padding: 20px;
  font-family: 'automatico', sans-serif;
  position: absolute; 
  left: 50%;
  top:50vh;
  transform: translate(-50%, -62%);
  z-index: 3;
  resize: none;
  border-radius: 40px;
  border: 1px solid red;
}

body.edit #guiWrapper{
  background: #FFECE7;
}

#guiWrapper{
  width: calc(100% - 20px);
  padding: 10px;
  background: #F8F8F8;
}

#guiWrapper .gui-line{
  display: flex;
  flex-wrap: wrap;
}

.context-menu{
  opacity: 0;
  display: flex;
  flex-wrap: wrap;
}

.context-menu.active{
  opacity: 1;
}

.gui-group.gui-btn.in-action, .gui-group.gui-textbtn.in-action{
  background: #FFB6AF;
}


.gui-group {
  padding: 7px 15px 0px;
  border: 1px solid #000000;
  border-radius: 50px;
  cursor: pointer;
  background: #FFF;
  margin: 5px;
  font-size: 1.3vw;
  height: 1.9vw;
}

.gui-group.noir{
  background: #000;
  color: #FFF;
  border: none;
} 

.gui-group.gris{
  background: #A3A3A3;
  color: #FFF;
  border: none;
} 

.gui-group:hover, .gui-group.active {
  background: #FFB6AF;
}


.tippy-box[data-theme~='light'] {
  background-color: #CCCCCC;
  color: #3F3F3F;

}

.tippy-box[data-theme~='light'][data-placement^='bottom'] > .tippy-arrow::before {
   border-bottom-color: #CCCCCC;
}

body.edit footer{
  background: #FFECE7;
}

footer{
  padding: 10px;
  color: #7F7F7F;
  background: #F8F8F8;
  font-size: 12px;
}

footer p{
  margin:0;
}


 /*--------- HOME PAGE --------- */
body.home{
  background: #F8F8F8;
}

.home h1{
  width: 100%;
  font-size: 4vw;
  text-align: center;
  margin-top: 20vh;
}

.home .btn-wrapper{
  display: flex;
  justify-content: center;
  width: 100%;
}

.home .btn-wrapper a{
  padding: 1.5vw 2vw;
  border: 1px solid #000000;
  border-radius: 50px;
  cursor: pointer;
  background: #FFF;
  margin: 20px;
  font-size: 2.5vw;
  color: #000;
  text-decoration: none;
}

.home .btn-wrapper a:hover{
  background: #FFB6AF;
}

 /*--------- COMPRENDRE PAGE --------- */
body.comprendre{
  background: #F8F8F8;
  max-width: 1300px;
  width: 80%;
  margin: 30px auto;
}

.comprendre a{
  color: #000;
  /*text-decoration: none;*/
}

.comprendre a.none{
  text-decoration: none;
}

.comprendre h1{
  width: 100%;
  font-size: 4vw;
  margin-bottom: 0;
  text-align: center;
}

.flex-wrapper{
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

video{
  width:100%;
}

.flex-wrapper article{
  width: 46%;
  margin-bottom: 50px;
  margin-top: 50px;
}

article{
  font-family: "automatico mono", monospace;
  font-size: 1.2em;
  line-height: 1.4;
}

.couper-decaler{
  margin-bottom: 50px;
  margin-top: 50px;
}

.couper-decaler article{
  width: 65%;
}

.couper-decaler article:nth-child(even){
  margin-left: 35%;
}

/* RESPONSIVE PAGE COMPRENDRE*/
@media screen and (max-width: 800px){
  .couper-decaler article{
    width: 100%;
  }

  .couper-decaler article:nth-child(even){
    margin-left: 0;
  }
}

@media screen and (min-width: 2000px){
  .comprendre h1{
    font-size: 70px;
  }
}

/* RESPONSIVE MESSAGE - DESACTIVER LE RESPONSIVE */
#responsive-message{
  display: none;
  font-size: 2em;
  color: red;
  padding: 40px;
}

/* RESPONSIVE */
@media screen 
  and (min-device-width: 1440px) 
  and (-webkit-min-device-pixel-ratio: 1) { 

  #text-input{
    width: calc((2480px/2.3) - 40px);
    height: calc((1754px/2.3) - 40px);
  }

}

@media screen and (max-width: 1150px){
  .gui-group{
    font-size: 1.2vw;
  }
}

@media screen and (max-width: 1024px){
  #guiWrapper, #sketch, #text-input, footer{
    display: none;
  }

  #responsive-message{
    display: block;
  }
} 

@media screen and (max-height: 680px){
  #guiWrapper, #sketch, #text-input, footer{
    display: none;
  }
  #responsive-message{
    display: block;
  }
}


