/* 1. CUSTOM FONTS */
@font-face {
  font-family: mybold;
  src: url("../fonts/Bold.otf");
}
@font-face {
  font-family: myextrabold;
  src: url("../fonts/ExtraBold.otf");
}
@font-face {
  font-family: myregular;
  src: url("../fonts/Regular.otf");
}

/* 2. GLOBAL BACKGROUND */
body {
  margin: 0;
  padding: 0;
  position: relative;
  min-height: 100vh;
}
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("../images/LDT_base_fondgris-03.jpg") center/cover no-repeat;
  opacity: 0.6; /* Increase if you want the background more visible */
  z-index: -1;
}

/* 3. HEADER IMAGE */
.header-container {
  text-align: center;
  padding: 1rem;
}
.header-image {
  width: 100%;
  max-width: 500px; /* Limits size on large screens */
  height: auto;
}


.header-image-no-animation {
  width: 100%;
  max-width: 500px; /* Limits size on large screens */
  height: auto;
}


/* 4. HEADERS, TEXT, ETC. */
.question_num {
  border-style: solid;
  border-color: #c00f19;
  background-color: #c00f19;
  color: white;
  border-width: 10px;
  width: 50px;
  font-family: mybold;
  text-align: center;
  vertical-align: middle;
  font-size: 150%;
}

.instructions,
.question-text,
.reponse-box {
  background-color: transparent;
  color: white;
  text-align: center;
}

/* 5. BUTTONS */

/* Override Bootstrap's .btn-primary with your brand color in a subtle gradient */
.btn-primary,
.btn-primary:hover,
.btn-primary:active,
.btn-primary:visited,
.btn-outline-primary,
.btn-outline-primary:hover,
.btn-outline-primary:focus {
  border: none;
  background: linear-gradient(45deg, #c00f19, #9b0a13); /* Adjust second color to taste */
  color: white;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.btn-primary:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

/* A custom "Nouveau Joueur" button that inverts on hover */
.btn-nouveau {
  background: #fff;
  border: 2px solid #c00f19;
  color: #c00f19;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  border-radius: 25px;
  font-weight: bold;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.btn-nouveau:hover {
  transform: scale(1.03);
  background: #c00f19;
  color: #fff;
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

/* 6. INPUT FOCUS EFFECT */
input:focus {
  border-color: #c00f19;
  box-shadow: 0 0 8px rgba(192, 15, 25, 0.5);
  transition: box-shadow 0.2s ease;
}

/* 7. ERROR STYLING */
.error {
  width: 92%;
  margin: 0 auto;
  padding: 10px;
  border: 1px solid #a94442;
  color: #a94442;
  background: #f2dede;
  border-radius: 5px;
  text-align: center;
}


/* 1. Full-screen background for the story */
/* Full-screen background for the story */
.story-bg {
  background: url("../images/story-bg.jpg") center/cover no-repeat;
  min-height: 100vh;
  position: relative;
}

/* Dark overlay for readability */
.story-bg::before {
  content: "";
  position: absolute;
  top: 0; 
  left: 0;
  width: 100%; 
  height: 100%;
  background: rgba(0, 0, 0, 0.6); /* Adjust opacity as needed */
  z-index: -1;
}

/* Semi-transparent black background for the story container */
.story-box {
  background-color: rgba(0, 0, 0, 0.8);
  border: 2px solid #333;
  border-radius: 8px;
  color: #fff; /* White text */
}

/* Ensure any text or headings remain white */
.story-box h1,
.story-box h2,
.story-box h3,
.story-box p,
.story-box li {
  color: #fff;
}

/* Styles for swipe hint overlay */
.swipe-hint {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: rgba(0,0,0,0.5);
  padding: 8px 12px;
  border-radius: 20px;
  z-index: 10;
}

.swipe-text {
  font-size: 1rem;
  color: #fff;
}

.swipe-arrow {
  width: 30px;
  height: 30px;
  animation: bounce 1.5s infinite;
}

/* Simple bounce animation for the arrow */
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* Full-screen background for the quiz section */
.question-bg {
  background: url("../images/quiz-bg.jpg") center/cover no-repeat;
  min-height: 100vh;
  position: relative;
}

/* Optional overlay for better contrast */
.question-bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: -1;
}

/* Semi-transparent black background for the question container */
.question-box {
  background-color: rgba(0, 0, 0, 0.8);
  border: 2px solid #333;
  border-radius: 8px;
  color: #fff;
  padding: 20px;
}

/* Ensure text inside remains white */
.question-box p,
.question-box h3,
.question-box li {
  color: #fff;
}


/* Styling for hint circles */
.hint-circle {
  width: 40px;
  height: 40px;
  background-color: #007bff; /* Blue color; adjust if desired */
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.2s;
}

.hint-circle:hover {
  transform: scale(1.1);
}

/* Optional: style the hint content area */
.hint-content {
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
}
/* Allow vertical scrolling but prevent horizontal overflow */
body, html {
  overflow-x: hidden;
  overflow-y: auto;
  background-color: #000; /* Fallback background color */
}
