/* Menu */
.home {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 999;
  background-color: #e5e5e5;
}

.bcg-top, .bcg-bottom {
  background: url('../img/plaque02.png') no-repeat;
  background-origin: content-box;
  padding-right: .6vw;
  background-size: cover;
  background-position-x: center;
  position: absolute;
  left: 0;
  width: 100vw;
  height: 17vh;
  z-index: -1;
}

.bcg-top {
  top: 0;
  transform: scale(1,-1);
}

.bcg-bottom {
  bottom: 0;
}

.bcg-middle {
  background: url('../img/fond-ciel.jpg') no-repeat fixed;
  background-size: cover;
  background-position-x: center;
  position: absolute;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  z-index: -1;
}

.bcg-deco {
  background: url('../img/retour.png') no-repeat;
  background-size: cover;
  background-position: center center;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
}

.start-button--wrap {
  position: fixed;
  bottom: 23vh;
  width: 100vw;
  padding-right: 22vw;
  text-align: center;
}

.start-button {
  font-family: infini, sans-serif;
  font-weight: normal;
  font-style: italic;
  font-size: calc(.7rem + .3vw);
  color: white;
  line-height: calc(.2vw + 10px);
  padding: calc(.2vw + 10px);
  border: 2px white solid;
  border-radius: calc((.2vw + 10px)*2);
  background-color: black;
  transition: background-color .4s, color .4s, border .4s;
}

.start-button--hover:hover {
  color: black;
  background-color: white;
  border: 1px black solid;
}

.start-button-inactive {
  cursor:default;
}


.message-part2 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  transform: translateY(-100vw);
  transition: transform 1s ease-in-out;
  z-index: 999;
}

.message {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 1fr 1fr 1fr;
  position: relative;
  width: 100vw;
  height: 100vh;
  transform: translateY(-100vw);
  transition: transform 1s ease-in-out;
}

.message > p:first-child {
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  grid-row: 2/3;
  grid-column: 2/3;
}

.message > div {
  position: absolute;
  top:0;
  left:0;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100vh;
  grid-row: 2/3;
  grid-column: 2/3;
}

.message-brouillon,
.message-titre,
.message-content,
.message-bouton  {
  font-family: infini, sans-serif;
}

.message-brouillon {
  font-weight: normal;
  font-style: normal;
  color: white;
  font-size: 1.5rem;
  position: absolute;
  top: 20px;
  left: 157px;
}

.message-titre {
  font-weight: normal;
  font-style: italic;
  align-self: flex-start;
  font-size: 1.5rem;
  position: absolute;
  top: 85px;
  left: 200px;
  width: 150px;
  text-transform: uppercase;
}

.message-titre::after {
  content: "------------";
  position: absolute;
  top: 30px;
  left: -1px;
}

.message-content {
  font-weight: normal;
  font-style: italic;
  white-space: pre-line;
  position: absolute;
  width: 600px;
  line-height: 26px;
  font-size: 1.3rem;
  top: 150px;
  left: 200px;
}

.message-bold {
  font-weight: bold;
  font-style: normal;
  position: relative;
  right: 45px;
}

.tendre {
  top: -20px;
}

.amour {
  top: 25px;
}

.message-bouton {
  font-weight: normal;
  font-style: italic;
  position: absolute;
  top: 603px;
  width: 230px;
  font-size: 1.3rem;
  left: 207px;
  line-height: 50px;
  padding: 20px;
}
.message-active {
    transform: translateY(0vw);
}

/*  Map */

html, body, #cesiumContainer {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    font-family: sans-serif;
    background: #000;
}

button.cesium-infoBox-camera {
    display: none;
}

.cesium-viewer-bottom,
.cesium-viewer-toolbar,
.cesium-viewer-animationContainer,
.cesium-viewer-timelineContainer,
.cesium-viewer-fullscreenContainer {
  display: none;
}

.controller {
  width: 100vw;
  height: 100vh;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 950;
  filter: opacity(0);
}

.viewer-invert {
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: black;
  z-index: 998;
  -webkit-clip-path: inset(12% 3% 10% 3% round 20px);
  clip-path: inset(12% 3% 10% 3% round 20px);
  transition: opacity 3s;
}

.viewer-invert img {
  filter: invert(100%) contrast(1.2) saturate(120%) brightness(90%);
}

.viewer-container {
  transform: translateY(100vw);
  opacity: 1;
  /* clip-path: inset(6% 3% 55% 3% round 20px); */
}

.theend {
  opacity: 0;
}

.viewer {
  width: 100vw;
  height: 100vh;
  position: relative;
  top: -33vh;
  filter: invert(100%) contrast(1.2) saturate(120%) brightness(90%);
}

.v-top {
  -webkit-clip-path: inset(-1% 3% 45% 3% round 0 0 20px 20px);
  clip-path: inset(-1% 3% 45% 3% round 0 0 20px 20px);
  transform: scale(1,-1)
}

.v-bottom {
  -webkit-clip-path: inset(-1% 3% 77% 3% round 0 0 20px 20px);
  clip-path: inset(-1% 3% 77% 3% round 0 0 20px 20px);
  margin-top: -3px;
}

.view-invert {
  -webkit-clip-path: inherit;
  clip-path: inherit;
}

/*  Interface */
.interface {
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 999;
  opacity: 0;
  transition: opacity .7s ease-in-out;
}

.generique {
  height: 100vh;
  width: 100vw;
  /* display: flex; */
  justify-content: center;
  align-items: center;
  display: none;
}

.generique > img {
  opacity: 0;
  transition: opacity 2s ease-in;
}

.generique > img:last-child {
  position: absolute;
  right: 11vw;
  bottom: 33vh;
}

.commands {
  position: absolute;
  bottom: 100px;
  left: 19px;
  bottom: 204px;
  left: 75px;
}

.commands-input {
  position: absolute;
  width: 130px;
  transition: opacity .7s ease-in-out;
}

.commands-input--m {
  width: 230px;
}

.commands-mouse {
  position: absolute;
  left: -26px;
  bottom: -129px;
  width: 255px;
  transition: opacity .7s ease-in-out;
}

/* Générique de fin */

.generique-end {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  color: white;
  font-family: infini, sans-serif;
  font-weight: normal;
  font-style: normal;
  font-size: 2.5rem;
  line-height: 2.8rem;
  background-color: #000;
  /* background-color: #2b0092; */
  -webkit-clip-path: inset(3% round 5px);
  clip-path: inset(3% round 5px);
  z-index: 999;
  transition: background-color 30s;
}

.generique-end h2 {
  font-weight: bold;
  color: white;
}

.generique-end h2 a {
  color: white;
  border: 2px solid;
  border-radius: 2.8rem;
  padding: 0 20px;
  margin-left: 10px;
}
.generique-end--1,
.generique-end--2,
.generique-end--3 {
  opacity: 0;
  position: absolute;
  height: 100%;
  width: 100%;
  padding: 3% 3%;
  transition: opacity 2s ease-in;
}

.generique-end--1 {
  display: grid;
  justify-content: center;
  align-content: center;
  grid-template: 3% auto auto auto auto 3% / auto auto;
  grid-column-gap: 135px;
}

.generique-end--1 h2:first-child {
  grid-row: 2;
  grid-column: 1;
  align-self: self-end;
  padding-bottom: 5px;
}

.generique-end--1 p:nth-child(2) {
  grid-row: 3;
  grid-column: 2;
  padding-bottom: 150px;
}

.generique-end--1 h2:nth-child(3) {
  grid-row: 4;
  grid-column: 1;
  align-self: self-end;
  padding-bottom: 60px;
}

.generique-end--1 ul:nth-child(4) {
  grid-row: 5;
  grid-column: 1;
}

.generique-end--2 {
  display: grid;
  justify-content: center;
  align-content: center;
  grid-template: 3% repeat(9, auto) 3% / auto auto;
  grid-column-gap: 75px;
}


.generique-end--2 h2:first-child {
  grid-row: 2;
  grid-column: 1;
  padding-bottom: 50px;
}

.generique-end--2 p:nth-child(2) {
  grid-row: 3;
  grid-column: 1;
  padding-bottom: 10px;
}

.generique-end--2 p:nth-child(3) {
  grid-row: 4;
  grid-column: 2;
}

.generique-end--2 p:nth-child(4) {
  grid-row: 5;
  grid-column: 1;
  padding-bottom: 10px;
}

.generique-end--2 p:nth-child(5) {
  grid-row: 6;
  grid-column: 2;
}

.generique-end--2 p:nth-child(6) {
  grid-row: 7;
  grid-column: 1;
  padding-bottom: 10px;
}

.generique-end--2 p:nth-child(7) {
  grid-row: 8;
  grid-column: 2;
  padding-bottom: 70px;
}

.generique-end--2 p:nth-child(8) {
  grid-row: 9;
  grid-column: 1;
  padding-bottom: 10px;
}


.generique-end--2 p:nth-child(9) {
  grid-row: 10;
  grid-column: 2;
  white-space: pre-line;
}

.generique-end--2 p:nth-child(9) span {
  font-weight: bold;
}

.generique-end--3 {
    display: grid;
    justify-content: center;
    align-content: center;
    grid-template: 3% auto auto 3% / auto auto;
    grid-column-gap: 150px;
}

.generique-end--3 > p:first-child {
  grid-row: 2;
  grid-column: 1;
  padding-bottom: 10px;
}

.generique-end--3 > h2:last-child {
  grid-row: 3;
  grid-column: 2;
}
/* JS class */

.generique-end--active {
  background-color: #2b0092;
}

.generique-endItem--active {
  opacity: 1;
}

section.command-active {
  opacity: 1;
}

img.generique-active {
  opacity: 1;

}

.next-startgame {
  transform: translateY(-100vw);
  transition: transform 1s ease-in-out;
}

.start-viewer {
  transform: translateY(0vw);
  transition: transform 1s ease-in-out, opacity 5s ease-out;
}

.invert-disable {
  opacity: 0;
}
