/* ================================
 * ✅ STYLE
 *
 * ✅ CONTROLS
 * ✅ MODAL
 * ✅ MEDIA
 *
 * ⛔️ DIAGNOSTIC
 * ⛔️ DASHBOARD
 * ⛔️ PLAYER
 *
 * ================================ */

@charset "UTF-8";
@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@0,300;0,400;0,500;1,300;1,400;1,500&family=Sorts+Mill+Goudy:ital@0;1&display=swap");

@import "ui.css";
@import "controls.css";
@import "modal.css";
@import "media.css";
@import "toaster.css";
@import "pages.css";

@import "dashboard.css";
@import "debriefing.css";
@import "emotion-evolution.css";
@import "list.css";
@import "widgets.css";
@import "sharing.css";
@import "form.css";
@import "pairing.css";
@import "product.css";
@import "lock.css";
@import "discovery.css";

:root {
  --color-main: white;
  --color-dark: black;
  --color-main-joie: #f5d4d7;
  --color-main-serenite: #d3dde6;
  --color-main-energie: #eaeb97;
  --color-alternate-joie: #e9bfc3;
  --color-alternate-serenite: #bdd1e4;
  --color-alternate-energie: #dfe160;
}

/* ================================
 * > GENERAL
 * ================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  list-style: none;
  color: var(--color-dark);

  font-family: "IBM Plex Mono", "Times New Roman", Times, serif;
  font-size: 12px;
  font-weight: 400;

  -webkit-tap-highlight-color: transparent;
}
a {
  text-decoration: none;
}
body {
  background-color: var(--color-main);
  overflow: hidden;
  /**
     * jouter correction du with & height
     */
}

/* ================================
 * > GRID CONTAINER
 * ================================ */

.container {
  display: grid;
  grid-template-columns: 1fr;
  height: 100vh;
  background-color: var(--color-main);
  transition: grid-template-columns 300ms ease-in-out 250ms;
}
.container.open {
  grid-template-columns: 1fr 1fr !important;
}
.container.dashboard {
  grid-template-columns: 1fr !important;
}

/* ================================
 * > GRID CONTAINER : CONTENT
 * ================================ */

#content {
  visibility: hidden;
  opacity: 0;
  transition: opacity 300ms ease 0s, visibility 0s ease 500ms;
}
#content:has(#form),
#content:has(#diagnostic) {
  display: flex;
  justify-content: center;
  align-items: center;
}
.container.open #content,
.container.dashboard #content {
  visibility: visible;
  opacity: 1;
  transition: visibility 0s ease 500ms, opacity 300ms ease 500ms;
}

/* ================================
 * > PLAYGROUND
 * ================================ */

#playground {
  --playground-width: 1000px;

  position: absolute;

  width: var(--playground-width);
  height: var(--playground-width);

  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

@media screen and (max-height: 800px) {
  #playground {
    --playground-width: 800px;
  }
}

#playground canvas {
  width: 100% !important;
  height: 100% !important;
  max-width: var(--playground-width) !important;
  max-height: var(--playground-width) !important;
}

#playground.debriefing {
  top: 50%;
  left: 25%;

  transform: translate(-50%, -50%) !important;
  width: 50vw !important;
  height: min-content;

  overflow: hidden;
}

#playground.debriefing canvas {
  width: 600px !important;
  height: 600px !important;
  display: block;
  margin: 0 auto;
}

/*#playground.qrcode {
    --playground-qrcode-width : 650px;

    top: 50% !important;
    left:25% !important;

    transform: translate(-50%, -50%) !important;
    width:var(--playground-qrcode-width) !important;
    height: min-content !important;
}

#playground.qrcode canvas {
    width  : var(--playground-qrcode-width) !important;
    height : var(--playground-qrcode-width) !important;
}*/

/*@media screen and (max-height: 800px) {
    #playground {
        --playground-qrcode-width: 500px;
    }
}*/

/* ================================
 * > LOGO
 * ================================ */

#logo {
  position: absolute;
  z-index: 2;
  width: 110px;
  left: 30px;
  top: 50%;
}

#finish {
  position: fixed;
  z-index: 3;

  display: inline;
  width: max-content;
  right: 50px;
  top: 50%;
  transform: translateY(-50%);

  font-family: "Sorts Mill Goudy", "Times New Roman", Times, serif;
  font-style: italic;

  font-size: 25px;
  letter-spacing: 6px;

  color: white;
}

#finish #finish_logo {
  width: 150px;
}

/* ================================
 * > INITIAL LOADER
 * ================================ */

#initialSync {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
}

#initialSync p {
  text-align: center;
  margin-top: 100px;
  color: white;
  font-weight: bolder;
}

.lds-ring {
  display: inline-block;
  position: absolute;
  width: 80px;
  height: 80px;
}
.lds-ring div {
  left: 50%;

  box-sizing: border-box;
  display: block;
  position: absolute;
  width: 64px;
  height: 64px;
  margin: 8px 0;
  border: 8px solid #fff;
  border-radius: 50%;
  animation: lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
  border-color: #fff transparent transparent transparent;
}
.lds-ring div:nth-child(1) {
  animation-delay: -0.45s;
}
.lds-ring div:nth-child(2) {
  animation-delay: -0.3s;
}
.lds-ring div:nth-child(3) {
  animation-delay: -0.15s;
}
@keyframes lds-ring {
  0% {
    transform: translateX(-50%) rotate(0deg);
  }
  100% {
    transform: translateX(-50%) rotate(360deg);
  }
}
