body {
  font-family: 'Montserrat', sans-serif;
  background-color: #110f0e;
  color: #f1f1f1;
  margin: 0;
  padding: 20px 10px;
  text-align: center;
}

.container {
  max-width: 1400px;
  margin: auto;
  padding: 0 10px;
}

.attempt-skip-container {
  width: 100%;
  margin: 10px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

#attemptCounter {
  display: inline-block;
}

#skipButton {
  padding: 10px 20px;
  font-size: 1em;
  background-color: #2f2f2f;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.2s;
}
#skipButton:hover {
  background-color: #444;
}

.controls {
  margin: 15px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.nav-buttons {
  margin: 10px 0;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

img {
  margin: 10px 0;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

input {
  padding: 10px;
  font-size: 1em;
  background-color: #1f1f1f;
  color: #fff;
  border: 1px solid #333;
  border-radius: 5px;
  box-sizing: border-box;
}

#guessInput {
  width: 40%;
}

#submitBar {
  width: 40%;
  padding: 10px 20px;
  font-size: 0.9em;
  background: linear-gradient(135deg, #ff7e14, rgb(219, 99, 1));
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  box-sizing: border-box;
  transition: transform 0.2s, background 0.3s, box-shadow 0.3s;
}
#submitBar:hover {
  transform: translateY(-3px);
  background: linear-gradient(135deg, #fd9b1a, #ff7e14);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

button {
  padding: 10px 20px;
  font-size: 1em;
  background-color: #2f2f2f;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.2s;
}
button:hover {
  background-color: #444;
}

.hidden {
  display: none;
}


#mainImage, #modReveal, #origReveal {
  max-width: 500px;
  max-height: 600px;
  border-radius: 10px;
  transition: transform 0.3s ease;
}


#mainImage:hover,
#modReveal:hover,
#origReveal:hover {
  transform: scale(1.2);
  z-index: 2;
}

#imageArea {
  margin-top: 20px;
  position: relative;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

#floating-buttons {
  position: fixed;
  top: 60px;
  left: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 9999; /* ✅ Passe au-dessus de listContainer */
  pointer-events: auto;
}

#floating-logo {
  width: 80px;
  height: auto;
  margin: 0 auto 10px;
  display: block;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

#floating-title {
  margin: 0 0 10px 0;
  font-size: 1.2em;
  color: #fee7a2;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
  text-align: center;
}

#floating-buttons button {
  background: linear-gradient(135deg, #ff7e14, rgb(219, 99, 1));
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 0.9em;
  cursor: pointer;
  transition: transform 0.2s, background 0.3s, box-shadow 0.3s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
#floating-buttons button:hover {
  transform: translateY(-3px);
  background: linear-gradient(135deg, #fd9b1a, #ff7e14);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}
#floating-buttons button.active-menu {
  background: linear-gradient(135deg, #fcbe37, #ffb109);
}

#kofiButton {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
}
#kofiButton img {
  width: 175px;
  height: auto;
  transition: transform 0.3s ease;
}
#kofiButton:hover img {
  transform: scale(1.2);
}

.attempt {
  display: inline-block;
  width: 30px;
  height: 30px;
  line-height: 30px;
  text-align: center;
  border: 2px solid #fff;
  border-radius: 5px;
  font-weight: bold;
}
.attempt-active {
  background-color: #555;
}
.attempt-wrong {
  border-color: red;
  color: red;
}
.attempt-close {
  border-color: orange;
  color: orange;
}
.attempt-correct {
  border-color: green;
  color: green;
}

#logo {
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  width: 250px;
  max-width: 100%;
  height: auto;
  margin: 16px auto 8px auto;
}

#social-icons-desktop {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 4px;
}
#social-icons-desktop img {
  width: 33px;
  box-shadow: none;
  border: none;
  border-radius: 0;
  transition: transform 0.3s ease;
}
#social-icons-desktop img:hover {
  transform: scale(1.2);
}
.images {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.day-button {
  width: 80px;
  height: 40px;
  margin: 2px;
  padding: 0;
  font-size: 0.9em;
  border: 1px solid #444;
  border-radius: 4px;
  background-color: #1f1f1f;
  color: #ccc;
  cursor: pointer;
  box-sizing: border-box;
  line-height: 40px;
  text-align: center;
  flex-shrink: 0;
}
.day-button.active-day {
  border: 2px solid #fcbe37;
  background-color: #333 !important;
  color: #fcbe37 !important;
  font-weight: bold;
}

.day-button.success:not(.active-day) {
  background-color: #2e7d32 !important;
  border-color:     #2e7d32 !important;
  color:            #fff    !important;
}
.day-button.fail:not(.active-day) {
  background-color: #c62828 !important;
  border-color:     #c62828 !important;
  color:            #fff    !important;
}
.day-button.active-day.success {
  background-color: #2e7d32 !important;
  color:            #fff    !important;
}
.day-button.active-day.fail {
  background-color: #c62828 !important;
  color:            #fff    !important;
}

#newChallengeBanner {
  position: absolute;
  top: 10px;
  left: calc(50% + 270px);
  width: 110px; /* 👈 Augmenté ici */
  opacity: 0;
  animation:
    bounceIn 0.8s ease-out forwards,
    floatY 3s ease-in-out 1s infinite;
  z-index: 10;
  pointer-events: none;
  box-shadow: none;
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.8) translateY(30px);
  }
  60% {
    opacity: 1;
    transform: scale(1.05) translateY(-5px);
  }
  80% {
    transform: scale(0.97) translateY(2px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes floatY {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(6px);
  }
  100% {
    transform: translateY(0);
  }
}
@keyframes glowPulse {
  0% {
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.2));
  }
  50% {
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.6));
  }
  100% {
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.2));
  }
}
#kofiButton img {
  width: 175px;
  height: auto;
  animation: glowPulse 3s ease-in-out infinite;
  transition: transform 0.3s ease;
}
#rulesBtn {
  padding: 8px 14px;
  font-size: 0.9em;
  background-color: #ffc107;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}
#rulesBtn:hover {
  background-color: #ffb300;
}


#rulesBox {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #181411;
  color: #f1f1f1;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 16px;
  max-width: 400px;
  box-shadow: 0 0 10px rgba(0,0,0,0.4);
  z-index: 9999;
}

.rules-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  margin-bottom: 10px;
}

.rules-header button {
  background: none;
  border: none;
  color: #f1f1f1;
  font-size: 1.2em;
  cursor: pointer;
}
.rules-header button:hover {
  color: #ff7e14;
}

.rules-content ul {
  padding-left: 20px;
  margin: 0;
}
.rules-content li {
  margin: 6px 0;
}

#rulesBox img {
  max-width: 100%;
  border-radius: 6px;
  margin-top: 10px;
}

.hidden {
  display: none;
}
@keyframes pulse {
  0% { transform: scale(1); box-shadow: 0 0 0 rgba(255,193,7, 0.5); }
  50% { transform: scale(1.05); box-shadow: 0 0 12px rgba(255,193,7, 0.9); }
  100% { transform: scale(1); box-shadow: 0 0 0 rgba(255,193,7, 0.5); }
}

#rulesBtn.pulsing {
  animation: pulse 1.8s infinite;
}
#social-icons-mobile {
  display: none;
}
/* Footer simple */
#site-footer {
  margin-top: 8px;
  padding: 20px 0;
  text-align: center;
  font-size: 0.9em;
  color: #aaa;
}
#site-footer a {
  color: #aaa;
  text-decoration: none;
}
#site-footer a:hover {
  text-decoration: underline;
}


/* Mobile *//* Mobile *//* Mobile *//* Mobile *//* Mobile *//* Mobile *//* Mobile *//* Mobile */

/* Mobile */
@media (max-width: 768px) {
  body {
    padding: 10px;
  }

  .container {
    padding-top: 0;
  }
  #mainImage:hover,
  #modReveal:hover,
  #origReveal:hover {
    transform: none;
    z-index: auto;
  }
  #floating-title {
    display: none;
  }
  #guessInput,
  #submitBar {
    width: 90%;
    font-size: 1em;
  }

  .attempt-skip-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
  }

  #rulesBtn,
  #skipButton,
  #attemptCounter {
    flex: 1 1 auto;
    text-align: center;
  }

  #attemptCounter {
    display: flex;
    gap: 8px;
    justify-content: center;
  }

  .attempt {
    width: 30px;
    height: 30px;
    font-size: 0.9em;
  }

  #mainImage, #modReveal, #origReveal {
    max-width: 100%;
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  .controls {
    gap: 6px;
  }

  .nav-buttons {
    flex-direction: column;
    gap: 8px;
  }

.nav-buttons button:nth-child(3) {
    order: 1; /* Previous */
}
.nav-buttons button:nth-child(2) {
    order: 3; /* Play Previous Days */
}
.nav-buttons button:nth-child(1) {
    order: 2; /* Next */
}


  #kofiButton img {
    width: 140px;
  }

  #logo {
    width: 180px;
    margin: 8px auto 2px auto;
  }

  #imageArea {
    margin-top: 20px;
    position: relative;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
  }

  #floating-buttons {
    top: 10px;
    left: 10px;
    z-index: 9999;
    position: fixed;
    background: transparent;
    gap: 6px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    pointer-events: none;
  }

  #floating-buttons * {
    pointer-events: auto;
  }

  #floating-logo {
    width: 50px;
    margin-bottom: 5px;
  }

  #floating-buttons button {
    padding: 6px 10px;
    font-size: 0.75em;
  }

  #floating-title {
    font-size: 0.9em;
    user-select: none;
  }

  .day-button {
    width: 80px;
    height: 40px;
    margin: 6px;
  }

  #listContainer {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    position: relative;
    z-index: 1;
    touch-action: manipulation;
  }

  #social-icons-desktop {
    display: none;
  }

  #social-icons-mobile {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 2px 0 10px 0;
  }
  
  #social-icons-mobile img {
    width: 33px;
    transition: transform 0.3s ease;
    border: none;
    box-shadow: none;
    border-radius: 0;
  }
  
  #social-icons-mobile img:hover {
    transform: scale(1.2);
  }

  #newChallengeBanner {
    width: 90px !important;
    left: calc(50% + 95px) !important;
    top: 0px !important;
  }

  #kofiButton img {
    content: url("theme/kofi-mobile.png");
    width: 80px;
  }

  #rulesBox {
    position: fixed;
    top: 80px;
    left: 1% !important;
    transform: none !important;
    width: 92%;
    max-width: 93vw;
  }
}

