/*TODO : check how to save the dark or light mode setting*/
:root {
  --color-primary: #a9a9a9;
  --color-secondary: #262626;
}

.logo-dark {
  display: none;
}

@font-face {
  font-family: pixel;
  src: url('../img/PressStart2PRegular.ttf') format('truetype');
}

#theme {
  position: fixed;
  top: 15px;
  right:  15px;
  z-index: 1000;
  cursor: pointer;
  width: 52px;
  height: 23px;

  border: none;
  padding: 0;
  background-color: transparent; 

  background-image: url('../img/buttons_toggle_98.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

p {
	font-size: 0.7rem;	
	line-height:1.3rem;
	letter-spacing: 0.1rem;
}

body {
  background-color: var(--color-primary);
  color: var(--color-secondary);
  font-family: "pixel";
  text-align: center;
  margin: 0;
  padding: 0;
  image-rendering: pixelated;
  -ms-interpolation-mode: nearest-neighbor;
  font-size: 1rem;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body.mysteerie-page {
  background-color: #244625;
  color: #cfd93c;
}
a:link {
  text-decoration: none;
}
a:visited {
  color: #FFFAF0;
}

.container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
  text-align: center;
  flex-grow: 1;
}
table {
  border-collapse: separate;
  border-spacing: 0 10px;
  margin: 40px auto 0 auto;
}
.mysteerie-table {
  width: 100%;
  max-width: 560px;
}
.contact-table {
  width: 100%;
  max-width: 560px;
}
.contact-table td {
  width: 33.33%;
}
.footer {
  width: 100%;
  background-color: var(--color-primary);
  color: var(--color-secondary);
  font-size: 0.75rem;
  padding: 20px 0;
  margin-top: 60px;
}
.mysteerie-footer {
  background-color: #244625;
  color: #7ba36e;
}
.pied {
  font-family: pixel;
  margin: 0;
}


.logo {
  width: 378px;
  max-width: 50%;
  height: auto; 
  margin: 2% auto 0;
  image-rendering: pixelated;
  -ms-interpolation-mode: nearest-neighbor;
}

.logo-mysteerie {
  width: 560px;
  height: auto;
  max-width: 100%;
}
.video-wrapper {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
  margin-top: 0px;
}
.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}


.image-button {
  display: inline-block;
  background-repeat: no-repeat;
  background-position: center;
  image-rendering: pixelated;
  -ms-interpolation-mode: nearest-neighbor;
  height: 52px;
  background-size: contain;
}
.mysteerie-button {
  background-image: url('../img/button_mysteerie_88.png');
  width: 150px;
}
.mysteerie-button:hover {
  background-image: url('../img/button_mysteerie_89.png');
}
.contact-button {
  background-image: url('../img/button_contact_98.png');
  width: 52px;
}
.contact-button:hover {
  background-image: url('../img/button_contact_99.png');
}
.support-button {
  background-image: url('../img/button_assistance_98.png');
  width: 52px;
}
.support-button:hover {
  background-image: url('../img/button_assistance_99.png');
}



@media (prefers-color-scheme: dark) {
  :root {
    --color-primary: #262626;
    --color-secondary: #a9a9a9;
  }
  
  #theme {
    background-image: url('../img/buttons_toggle_88.png');
  }
  .logo-light {
    display: none;
  }
  .logo-dark {
    display: block;
  }
  .mysteerie-button {
    background-image: url('../img/button_mysteerie_88.png');
  }
  .mysteerie-button:hover {
    background-image: url('../img/button_mysteerie_89.png');
  }
  .contact-button {
    background-image: url('../img/button_contact_88.png');
  }
  .contact-button:hover {
    background-image: url('../img/button_contact_89.png');
  }
  .support-button {
    background-image: url('../img/button_assistance_88.png');
  }
  .support-button:hover {
    background-image: url('../img/button_assistance_89.png');
  }
  .logo {
    background-image: url('../img/button_logomallow_88.png');
  }
}

@media screen and (max-width: 600px) {
  body.mysteerie-page {
    font-size: 0.75rem;
  }
  p {
	font-size: 1.0rem;
  }
}


body.dark-mode {
  --color-primary: #262626;
  --color-secondary: #a9a9a9;
}
body.dark-mode .mysteerie-button {
  background-image: url('../img/button_mysteerie_88.png');
}
body.dark-mode .mysteerie-button:hover {
  background-image: url('../img/button_mysteerie_89.png');
}
body.dark-mode .contact-button {
  background-image: url('../img/button_contact_88.png');
}
body.dark-mode .contact-button:hover {
  background-image: url('../img/button_contact_89.png');
}
body.dark-mode .support-button {
  background-image: url('../img/button_assistance_88.png');
}
body.dark-mode .support-button:hover {
  background-image: url('../img/button_assistance_89.png');
}
body.dark-mode .logo {
  background-image: url('../img/button_logomallow_88.png');
}
body.dark-mode .logo-light {
  display: none;
}
body.dark-mode .logo-dark {
  display: block;
}
body.dark-mode #theme {
  background-image: url('../img/buttons_toggle_88.png');
}





body.light-mode {
  --color-primary: #a9a9a9;
  --color-secondary: #262626;
}
body.light-mode .mysteerie-button {
  background-image: url('../img/button_mysteerie_98.png');
}
body.light-mode .mysteerie-button:hover {
  background-image: url('../img/button_mysteerie_99.png');
}
body.light-mode .contact-button {
  background-image: url('../img/button_contact_98.png');
}
body.light-mode .contact-button:hover {
  background-image: url('../img/button_contact_99.png');
}
body.light-mode .support-button {
  background-image: url('../img/button_assistance_98.png');
}
body.light-mode .support-button:hover {
  background-image: url('../img/button_assistance_99.png');

}body.light-mode .logo {
  background-image: url('../img/button_logomallow_98.png');
}
body.light-mode .logo-light {
  display: block;
}
body.light-mode .logo-dark {
  display: none;
}
body.light-mode #theme {
  background-image: url('../img/buttons_toggle_98.png');
}