/*===================================================================================================================
=================================================== DEFAULT STYLE ===================================================
===================================================================================================================*/
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}

li {
    list-style: none;
    margin: 0;
    padding: 0;
}

li a {
    display: inline-block;
    margin: 0;
    padding: 0;
}

li a img {
    display: block;
    margin: 0;
    padding: 0;
}

input:focus, textarea:focus, select:focus{
    color: var(--text-default-dark);
}

input:focus-visible, textarea:focus-visible, select:focus-visible{
    color: var(--text-default-dark);
}

/* ================================ POPPINS ================================ */

@font-face {
  font-family: 'Poppins';
  src: url('fonts/Poppins-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url('fonts/Poppins-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url('fonts/Poppins-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url('fonts/Poppins-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url('fonts/Poppins-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url('fonts/Poppins-ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/*===================================================================================================================
====================================================== GLOBALS ======================================================
===================================================================================================================*/

:root {
    --transition-duration: 0.3s;
}

body{
    width: 100vw;
    height: 100vh;
    align-content: center;
    font-family: 'Poppins';
    font-size: 1rem;
    color: white;   
    background-color: rgb(12, 12, 25);    
    overflow: hidden;
    letter-spacing: 0.05rem;
}

h1{
    font-weight: bold;
    padding: 1rem;
    font-size: 4rem;
    letter-spacing: 0.7rem;
    text-transform: uppercase;
}

p{
    padding: 1rem;
    font-size: 1.3rem;
}

button{
    font-family: 'Poppins';
    font-weight: medium;
    color: white;
    border: none;
    background: radial-gradient(#bec8f85c, rgba(255, 255, 255, 0.611));
    padding: 1.3rem 4rem;
    border-radius: 200px;
    font-size: 1.5rem;
    margin: 2rem 0;
    border: 2px white solid;
    cursor: pointer;
    transition: ease 0.3s;
    backdrop-filter: blur(4px);
}

.button{
    margin: 5rem 0;
    transition: ease 0.3s;
}

a{
    width: 100%;
    height: 100%;
    text-decoration: none;
    font-family: 'Poppins';
    font-weight: medium;
    color: white;
    border: none;
    background: radial-gradient(#bec8f85c, rgba(255, 255, 255, 0.611));
    padding: 1.3rem 4rem;
    border-radius: 200px;
    font-size: 1.5rem;    
    border: 2px white solid;
    cursor: pointer;
    transition: ease 0.3s;
    backdrop-filter: blur(4px);
}

button:hover{
    transform: scale(1.1);
    filter: brightness(1.1);
}

button:active {
    transform: scale(0.9);
}

a:hover{    
    filter: brightness(1.1);
}

.button:hover{
    transform: scale(1.03);
}

strong{
    font-weight: bold;
}

.bkg-layer{    
  width: 100vw;
  height: 100vh;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -999;  
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

#transition {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background-color: black;
  opacity: 1;
  transition: opacity var(--transition-duration) ease;
  z-index: 9999;
  pointer-events: none;
}

/*================================= START SCREEN =================================*/

#smartphone{
  background-color: rgb(156, 19, 19);
  line-height: 1.5rem;
}

/*================================= START SCREEN =================================*/

#start-screen{    
    padding: 3rem;
    text-align: center;
}

#start-screen p{
    padding: 2rem;
    font-size: 2rem;
    letter-spacing: 1.2rem;
    text-transform: uppercase;
}

#start-screen .bkg-layer{
  background-image: url('img/backgrounds/start-screen.jpg');
}

#lottie-animation-timer{    
    width: 300px;
    height: auto;
    margin: 5rem auto 3rem auto;
}

.launch-button button{
  margin: auto;
}

#start-screen .mini p{
  text-transform: none;
  font-size: 1rem;
  letter-spacing:normal;  
  background-color: rgb(25, 23, 33);
  position: absolute;
  bottom: 3%;
  transform: translate(-50%, -50%);
  left: 50%;
  border-radius: 0.5rem;
  transition: 0.3s ease;
}

#start-screen .mini p:hover{
  filter: brightness(1.3);
}

/*================================= SCENARIO =================================*/

#scenario{  
    line-height: 2rem;
    padding: 3rem;
    width: 50vw;
    margin: auto;
    text-align: center;
}

#scenario .bkg-layer{
  background-image: url('img/backgrounds/situation-screen.jpg');
}

#scenario .frame-objective{
    padding: 3rem;
    background: radial-gradient(#0c9adc7f, #02395545);
    border: 2px #78DBFF solid;
    box-shadow: 0px 0px 15px rgba(27, 217, 255, 0.144);
    border-radius: 1rem;
    backdrop-filter: blur(8px);
    margin: 2rem 0;
    cursor: pointer;
    transition: 0.3s ease;
}

#scenario .frame-objective:hover{
  transform: scale(1.05);
}

#scenario .text{
    margin: 2rem 0;
}

/*================================= GAME =================================*/

.scene {
  position: relative;
  width: 100vw;
}

.scene-image {
  width: 100%;
  height: auto;
  display: block;
  z-index: -999;
}

.objective{
    position: absolute;
    top: 1rem; 
    left: 2rem;   
    background: radial-gradient(#bec8f85c, rgba(255, 255, 255, 0.611));
    padding: 1rem 2rem;
    border-radius: 1rem;
    margin: 2rem 0;
    border: 2px white solid;
    backdrop-filter: blur(4px);
    z-index: 999;
    transition: 0.3s ease;
    cursor: pointer;
}

.objective:hover{
  transform: scale(1.01);
  filter: brightness(1.1);
}

.objective p{
    color: white;
    font-size: 1.5rem;
}

.errors{
    z-index: 999;
    position: absolute;
    bottom: 2rem; 
    left: 2rem; 
}

.errors p{
    font-size: 2.5rem;
    color: #FF5B5B;
}

#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.75);
    display: none;
    z-index: 900;
}

/* --- POPUP EN AVANT-PLAN --- */
#popup, #popup-justification {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
    z-index: 999;
    text-align: center;
}

#popup img, #popup-justification img{
  width: 250px;
  height: auto;
  z-index: 999;
  cursor: pointer;
  transition: 0.3s ease;
}

#popup-justification img{
  height: 30vh;
  width: auto;
  padding: 2rem 0; 
}

#popup img:hover, #popup-justification img:hover{
  transform: scale(1.2);
}

#popup h2, #popup-justification h2{
  font-size: 2rem;
}

#popup p, #popup-justification p{
  line-height: 2rem;
  color: rgba(255, 255, 255, 0.858);
}

#popup .popup-content, #popup-justification .popup-content{
    background: #1d1c45da;
    padding: 3rem;
    border-radius: 1rem;
    max-width: 45rem;
    text-align: center;
    box-shadow: 0 0 20px #2bbfff34;
    border: 1px solid #2BBFFF;
}

.justif-correct #answer {
    color: #5DFFD1;
}

.justif-wrong #answer {
    color: #FF5D78;
}

.popup-content button{
  width: 25rem;
  display: block;
  margin: 2rem auto;
  margin-bottom: 0;
  background: radial-gradient(#048eff7e, #5AB7D0);
  border: 1px solid rgba(196, 231, 255, 0.896);
}

/* --- HOTSPOT --- */

.hotspot {
  position: absolute;
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: 0.3s ease;
}

.hotspot:hover{
    filter: contrast(0.7) brightness(2) ;
}

.notes {
  left:62.3%;
  top: 45.5%;
}

.usb {
  left: 27.65%;
  top: 75%;
}

.clock{
   left: 31.85%;
   top: 10.1%; 
}

.camera{
   left: 43.8%;
   top: 3.8%; 
}

.trashcan{
   left: 45.8%;
   top: 50.5%; 
}

.right-supervisor{
   left: 94.85%;
   top: 8.18%;
}

.left-supervisor{
   left: 88.1%;
   top: 8.5%; 
}

.front-monitor-01{
  left: 90.75%;
  top: 46.7%;
}

.front-monitor-02{
  left: 76.9%;
  top: 42.3%;
}

.front-monitor-03{
  left: 57.9%;
  top: 36%;
  z-index: 100;
}

.front-monitor-04{
  left: 51.28%;
  top: 33.8%;
}

.front-monitor-05{
  left: 30.65%;
  top: 26.8%;
}

.back-monitor-01{
  left: 93.42%;
  top: 29.9%;
}

.back-monitor-02{
  left: 73.3%;
  top: 26.6%;
}

.back-monitor-03{
  left: 44.6%;
  top: 22%;
}
/*================================= END-SCREEN =================================*/

#end-screen{
    padding: 3rem;
    margin: auto;
    text-align: center;    
}

#end-screen .bkg-layer{
  background-image: url('img/backgrounds/end-screen.jpg');
}

#end-screen p{
    font-size: 0.9rem;
}

#end-screen .logo{
    width: 350px;
    height: auto;
    margin: 1rem 0;
}

#end-screen h1{
    width: 35%;
    line-height: 3.3rem;
    margin: auto;
    text-transform: none;
    font-size: 2.5rem;
    letter-spacing: 0.1rem;
}

#end-screen .congrats h2{
    text-transform: uppercase;
    font-weight: bold;
    font-size: 14rem;
    opacity: 0.12;
}

#end-screen .contact{
    width: 400px;
    height: auto;
    position: absolute;
    bottom: 3rem;
    left: 3rem;
}

@media (max-width: 2000px) {
  #scenario {
    width: 65vw;
  }

  #end-screen .congrats h2 {
    font-size: 10rem;
  }

  #end-screen h1 {
    width: 50%;
    font-size: 1.8rem;
  }
}

@media (max-width: 1600px) {

  #lottie-animation-timer {
    width: 150px;
    height: auto;
    margin: 2rem auto 1rem auto;
  }

  #scenario {
    width: 85vw;
  }

  #end-screen .congrats h2 {
    font-size: 6rem;
  }

  #end-screen h1 {
    width: 80%;
    font-size: 1.4rem;
  }

  #scenario {
    line-height: 1.8rem;
    padding: 1rem;
  }

  #scenario h1 {
    margin-top: 4rem;
  }

  #scenario .text {
    margin: 1rem 0;
  }

  #scenario .frame-objective {
    padding: 1rem;
    margin: 1rem 0;
  }
}

@media (max-width: 1100px) {

  p{
    font-size: 1rem;
    padding: 0.5rem;
  }

  button{
    font-size: 1rem;
  }

  #game-canvas{
    height: 100%;
    display: flex;
    justify-content:flex-start;
    align-items: center;
    margin: 1rem 0;
  }

  .objective, .errors {
    display: block;
    position: static;
    align-items: center;
    align-content: center;
    margin: 0 1rem;
  }

  .errors p, .objective p {
    font-size: 1.5rem;
    padding: 0;
  }

  #popup h2, #popup-justification h2{
    font-size: 1rem;
  }

  #end-screen .contact{
    width: 250px;
    bottom: 1rem;
    left: 1rem;
}
  
}