/* Add Animate.css to your project */
/* @import url("https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css"); */

html,
body {
  width: 100%;
  height: 100%;
  /*font-size: 1.8vh;*/
  color: #28282f;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  margin: 0em;
  padding: 0em;
  overflow: hidden;
  box-sizing: border-box;
  font-family: "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial,
    "Lucida Grande", sans-serif;
  background-color: #121212;
  cursor: url("https://www.rw-designer.com/cursor-view/97756.png") 16 16, auto;
}

p,
img,
div,
canvas {
  vertical-align: top;
}

::-moz-selection {
  /* Code for Firefox */
  background: #34495e;
  background-color: #34495e;
  color: #fff;
}

::selection {
  /* Code for Chrome, Safari and Opera */
  background: #34495e;
  background-color: #34495e;
  color: #fff;
}

.hide {
  display: none;
}

#menu {
  width: 40em;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  font-size: 1.2em;
  border-radius: 0.9em;
  box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

#menu .title {
  padding: 1em;
  background-color: rgba(52, 58, 125, 0.8);
  color: #f2c641;
  border-radius: 0.9em;
  position: relative;
  z-index: 2;
  text-shadow: 2px 2px 0px #f2c641, 4px 4px 0px rgba(0, 0, 0, 0.4);
  animation: fadeIn 2s ease-in, shadow-pulse 2s infinite;
}

@keyframes shadow-pulse {
  0% {
    text-shadow: 2px 2px 0px #2323be, 4px 4px 0px rgba(0, 0, 0, 0.4);
  }
  100% {
    text-shadow: 4px 4px 0px #2323be, 8px 8px 0px rgba(0, 0, 0, 0.4);
  }
}

#menu .title:hover {
  transform: rotateX(0deg); /* reset the transformation on hover */
}

.title-info {
  background-color: rgba(35, 37, 88, 0.8);
  color: #f2c641;
  padding: 1em;
  border-radius: 0.9em;
  width: 80%;
  text-align: center;
  margin: 0 auto;
}

#menu #content_container {
  padding: 1em;
  border-bottom-left-radius: 0.9em;
  border-bottom-right-radius: 0.9em;

  -webkit-box-shadow: 0em 0.25em 0.75em rgba(124, 124, 124, 0.5);
  -moz-box-shadow: 0em 0.25em 0.75em rgba(124, 124, 124, 0.5);
  box-shadow: 0em 0.25em 0.75em rgba(124, 124, 124, 0.5);
}

#menu #img_container {
  position: relative;
  height: 14.5em;
  overflow: hidden;
  border-top-left-radius: 0.9em;
  border-top-right-radius: 0.9em;
}

#menu #img_container img {
  flex-shrink: 0;
  width: 105%;
}

@keyframes fadeInSlideUp {
  0% {
    opacity: 0;
    transform: translateY(50px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

#menu {
  width: 40em;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  font-size: 1.2em;
  border-radius: 0.9em;
  box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

#menu .title h1 {
  margin: 0;
  font-size: 2.5em;
}

#menu #content {
  padding: 1em;
}

#menu #content p {
  font-size: 1.1em;
  line-height: 1.6em;
  margin: 0.5em 0;
}

#menu #play_button {
  display: inline-block;
  background-color: rgba(52, 58, 125, 0.8);
  color: #f2c641;
  border-radius: 0.9em;
  padding: 0.5em 1.5em;
  font-weight: bold;
  margin-top: 1em;
  margin-bottom: 1em;
  transition: all 0.4s;
}

#menu #play_button:hover {
  background-color: rgba(52, 58, 125);
  cursor: pointer;
  transform: scale(1.05);
}

canvas {
  align-content: center;
  width: 100%;
  height: 100%;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.title {
  position: relative;
  display: inline-block;
  margin-bottom: 1em;
}

#starry_night_bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("https://th.bing.com/th/id/R.cf8cb0d1a972300c5e60b3ebf20b5779?rik=QLOj5Ukvu%2brJNQ&pid=ImgRaw&r=0");
  background-size: cover;
  background-position: center;
  z-index: -1;
  animation: panBg 30s linear infinite;
  background-attachment: fixed;
}

#starry_night_bg:before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.4);
}

@keyframes panBg {
  0% {
    background-position: 0% 0%;
  }
  100% {
    background-position: 100% 0%;
  }
}

#painting-info {
  position: fixed;
  bottom: 2em;
  left: 2em;
  background-color: rgba(0, 0, 0, 0.7);
  padding: 0.5em;
  border-radius: 10px;
  font-family: "Arial", sans-serif;
  color: #fff;
  width: 20vw;
  height: auto;
  z-index: 10000;
  transition: all 0.3s ease-in-out;
  transform: translateY(100px);
  opacity: 0;

  
}

#painting-info.show {
  transform: translateY(0);
  opacity: 1;
}

#painting-info h3 {
  margin: 0 0 10px 0;
  font-size: 2vh;
  font-weight: bold;

}

#painting-info p {
  margin: 0;
  font-size: 1.5vh ;
}

#info-panel {
  position: fixed;
  bottom: 10px;
  right: 10px;
  width: 200px;
  background-color: rgba(35, 35, 190, 0.8);
  border-radius: 10px;
  padding: 10px;
  color: white;
  box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  transition: all 0.5s ease;
}

#info-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  cursor: pointer;
}

#info-header h3 {
  font-size: 1.5em;
  font-weight: bold;
  margin: 0;
}

#info-header button {
  background-color: rgba(255, 255, 255, 0.8);
  border: none;
  border-radius: 50%;
  padding: 5px;
  cursor: pointer;
  color: #2323be;
}

#info-content {
  font-size: 1em;
  line-height: 1.5em;
}

#info-content p {
  margin: 5px 0;
}

#info-panel.collapsed #info-content {
  max-height: 0;
  overflow: hidden;
}

#about-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 50px;
  box-sizing: border-box;
  transform: translateY(-100%);
  transition: transform 0.3s ease-in-out;
}

#about-overlay.show {
  transform: translateY(0);
}

#about-overlay h1 {
  margin-top: 0;
}

#close-about {
  background: none;
  border: none;
  color: white;
  font-size: 2em;
  position: absolute;
  top: 10px;
  right: 20px;
  cursor: pointer;
}

#about_button {
  display: inline-block;
  background-color: rgba(52, 58, 125, 0.8);
  color: #f2c641;
  border-radius: 30px;
  padding: 0.5em 1.5em;
  font-weight: bold;
  margin: 0 auto; /* Centered the button */
  transition: all 0.4s;
  border: 2px solid #2323be;
}

#about_button:hover {
  background-color: rgba(52, 58, 125);
  cursor: pointer;
  transform: scale(1.05);
}

#help_button {
  display: inline-block;
  background-color: rgba(52, 58, 125, 0.8);
  color: #f2c641;
  border-radius: 30px;
  padding: 0.5em 1.5em;
  font-weight: bold;
  margin: 0 auto; /* Centered the button */
  transition: all 0.4s;
  border: 2px solid #2323be;
}

#help_button:hover {
  background-color: rgba(52, 58, 125);
  cursor: pointer;
  transform: scale(1.05);
}

#help_button_container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 2010;
  text-align: center;
}

#audio_controls {
  position: fixed;
  top: 10px;
  right: 10px;
  z-index: 2; /* To make sure it shows up on top of other elements */
}

#audio_controls button {
  display: block;
  background-color: rgba(35, 37, 88, 0.8);
  color: #f2c641;
  border: none;
  border-radius: 10px;
  padding: 5px 10px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#audio_controls button:hover {
  background-color: rgba(52, 58, 125, 0.8);
}
/* Light box css */

.lightbox {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  min-height: 100%;
  z-index: 2010;
}

.lightbox img {
  position: relative;
  top: auto;
  left: auto;
  z-index: 2020;
  transform: none;
  max-height: 80vh;
  max-width: 95vw;
  width: auto;
  height: auto;
  display: block;
  border-radius: 12px;
}

/* Container for the lightbox injected by JS */
#lightbox-info {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100vh;
  display: none; /* default hidden; JS will add .show */
  pointer-events: none; /* avoid capturing pointer events when hidden */
  z-index: 3000;
  text-align: center;
  align-items: center;
  justify-content: center;
  overflow: auto;
  padding: 10px;
}

/* when JS adds .show, make it visible and interactive */
#lightbox-info.show {
  display: flex;
  pointer-events: auto;
  background: rgba(0, 0, 0, 0.9);
  touch-action: manipulation;
}

.lightbox,
.lightbox img,
#lightbox-info {
  touch-action: manipulation;
}

/* center the inner box and constrain size */
#lightbox-info .box {
  position: static;
  bottom: auto;
  left: auto;
  transform: none;
  margin: 10px auto 0;
  padding: 10px 14px;
  border-radius: 16px;
  text-align: center;
  max-width: 95%;
  width: auto;
  color: white;
  background-color: rgba(0, 0, 0, 0.85);
}
#menu-info {
  background-color: white;
  color: black;
  position: fixed;
  text-align: center;
  max-height: 95vh;
  max-width: 95vw;
  border-radius: 10px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  /*padding: 0px 15px;*/
  z-index: 2001;
  font-size: small;

}	
#menu-info h2 {
  font-size: large  ;
}
#menu-info h3 {
  font-size: medium ;
}

#wp-ml-expo-root {
  width: 100%;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

/* Controls pour la salle cinéma */
#cinema-controls {
  position: fixed;
  right: 20px;
  bottom: 120px;
  z-index: 20000;
  background:#fff;
  color:  rgba(0,0,0,0.75);
  padding: 8px 10px;
  border-radius: 8px;
  display: none;
  font-family: Arial, sans-serif;
  font-size: 14px;
}
#cinema-controls select, #cinema-controls button {
  background: #111;
  color: #fff;
  border: 1px solid #333;
  padding: 6px 8px;
  border-radius: 4px;
}
#cinema-controls button {
  cursor: pointer;
}
.iframe {
  pointer-events: auto;
}

