/* Modal styles for Valdle Instructions */
.valdle-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8);
  align-items: center;
  justify-content: center;
}

.valdle-modal-content {
  background-color: #0f1923;
  margin: auto;
  border: 2px solid #ff4655;
  width: 90%;
  max-width: 700px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 5px 15px rgba(255, 70, 85, 0.5);
  animation: modalOpen 0.3s ease-out;
  border-radius: 5px;
  color: #ece8e1;
  font-family: "Tungsten Bold", "Tungsten", sans-serif;
}

@keyframes modalOpen {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.valdle-modal-header {
  padding: 15px 20px;
  background-color: #ff4655;
  position: relative;
  color: #0f1923;
  display: flex;
  justify-content: center;
  align-items: center;
}

.valdle-modal-header h2 {
  margin: 0;
  text-align: center;
  font-size: 28px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.valdle-modal-close {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: #0f1923;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.2s;
}

.valdle-modal-close:hover {
  color: #ece8e1;
}

.valdle-modal-body {
  padding: 20px 25px;
  line-height: 1.5;
  font-family: "DIN Next LT W04 Medium", "Arial", sans-serif;
}

.valdle-modal-body p {
  font-size: 16px;
  margin-bottom: 20px;
  color: #ece8e1;
}

.instruction-section {
  margin-bottom: 15px;
  background-color: rgba(255, 70, 85, 0.1);
  padding: 10px;
  border-radius: 5px;
  border-left: 3px solid #ff4655;
}

.instruction-section h3 {
  margin-top: 0;
  margin-bottom: 12px;
  color: #ff4655;
  font-size: 20px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.instruction-section ul,
.instruction-section ol {
  margin: 0;
  padding-left: 25px;
}

.instruction-section li {
  margin-bottom: 8px;
  color: #ece8e1;
}

.instruction-section li strong {
  color: #ff4655;
}

.valdle-modal-footer {
  padding: 15px 20px;
  background-color: rgba(255, 70, 85, 0.15);
  text-align: center;
  border-top: 1px solid rgba(255, 70, 85, 0.3);
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.valdle-modal-footer-content {
  font-style: italic;
  color: #ece8e1;
  font-size: 14px;
  text-align: center;
  padding: 0 15px;
}

.valdle-modal-button {
  background-color: #ff4655;
  color: #0f1923;
  border: none;
  padding: 10px 25px;
  font-size: 16px;
  font-weight: bold;
  text-transform: uppercase;
  cursor: pointer;
  transition: 0.2s;
  border-radius: 3px;
  letter-spacing: 1px;
  margin: 0 auto;
  font-family: "Tungsten Bold", "Tungsten", sans-serif;
}

.valdle-modal-button:hover {
  background-color: #ff2a3c;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Info button styles */
.info-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background-color: rgba(255, 70, 85, 0.7);
  color: #0f1923;
  border-radius: 50%;
  cursor: pointer;
  font-weight: bold;
  font-size: 16px;
  margin-left: 10px;
  transition: all 0.2s ease;
  border: none;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  position: relative;
}

.info-button:hover {
  background-color: #ff4655;
  transform: scale(1.1);
}

/* Tip box that appears on hover */
.tip-container {
  position: relative;
  display: inline-flex;
  align-items: center;
  text-align: center;
  color: #ece8e1;
}

.tip-content {
  display: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 35px;
  width: 90%;
  max-width: 500px;
  background-color: rgba(15, 25, 35, 0.95);
  border: 1px solid #ff4655;
  border-radius: 5px;
  padding: 15px;
  color: #ece8e1;
  font-family: "DIN Next LT W04 Medium", "Arial", sans-serif;
  z-index: 1500;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  font-size: 14px;
  line-height: 1.5;
  text-align: left;
  max-height: 80vh;
  overflow-y: auto;
}

@media (hover: hover) {
  .info-button:hover + .tip-content,
  .tip-content:hover {
    display: block;
    animation: tipFadeIn 0.2s ease-out;
  }
}

@keyframes tipFadeIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.tip-content h3 {
  color: #ff4655;
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tip-content ul {
  margin: 0;
  padding-left: 20px;
}

.tip-content li {
  margin-bottom: 6px;
  font-size: 13px;
}

/* Center the header text with info button */
.prompt .tip-container {
  justify-content: center;
  width: 100%;
}

.prompt .tip-container p {
  margin: 0;
}

/* General tooltip system for any element */
.tooltip {
  position: relative;
  display: inline-block;
}

.tooltip .tooltip-text {
  visibility: hidden;
  width: auto;
  min-width: 120px;
  max-width: 200px;
  background-color: rgba(15, 25, 35, 0.95);
  color: #ece8e1;
  text-align: center;
  border-radius: 4px;
  padding: 5px 10px;
  position: absolute;
  z-index: 100;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s;
  font-size: 12px;
  border: 1px solid #ff4655;
  pointer-events: none;
}

.tooltip .tooltip-text::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #ff4655 transparent transparent transparent;
}

@media (hover: hover) {
  .tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
  }
}

/* Footer links styling */
.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0px auto;
  gap: 20px;
  font-family: "DIN Next LT W04 Medium", "Arial", sans-serif;
  font-size: 14px;
  padding: 15px 0;
  width: 100%;
  position: relative;
}

/* For small content pages - fixed at bottom */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.footer-links-container {
  margin-top: auto;
  width: 100%;
  order: 9999; /* Ensure this is always the last element */
  z-index: 50; /* Keep it above other content but below modals */
  position: relative; /* Create stacking context */
}

.footer-links a {
  color: #ece8e1;
  text-decoration: none;
  padding: 5px 10px;
  border-radius: 4px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
}

.footer-links a:hover {
  color: #ff4655;
  background-color: rgba(255, 70, 85, 0.1);
}

.footer-links a img {
  height: 16px;
  margin-right: 5px;
}

/* Color Guide Styling */
.color-guide {
  position: fixed;
  bottom: 15px;
  right: 15px;
  background-color: #0f1923;
  border: 2px solid #ff4655;
  border-radius: 5px;
  padding: 15px;
  width: 280px;
  z-index: 99;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
  font-family: "DIN Next LT W04 Medium", "Arial", sans-serif;
}

.color-guide-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(255, 70, 85, 0.3);
  padding-bottom: 8px;
}

.color-guide-header h3 {
  margin: 0;
  color: #ff4655;
  font-size: 16px;
  text-transform: uppercase;
}

.color-guide-close {
  background: none;
  border: none;
  color: #ece8e1;
  font-size: 18px;
  cursor: pointer;
  padding: 0 5px;
  transition: color 0.2s;
}

.color-guide-close:hover {
  color: #ff4655;
}

.color-guide-content {
  color: #ece8e1;
  font-size: 13px;
}

.color-guide-content ul {
  margin: 0;
  padding-left: 15px;
}

.color-guide-content li {
  margin-bottom: 8px;
  display: flex;
  align-items: center;
}

.color-guide-content .color-sample {
  display: inline-block;
  width: 15px;
  height: 15px;
  border-radius: 3px;
  margin-right: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.color-guide-toggle {
  position: fixed;
  bottom: 15px;
  right: 15px;
  background-color: rgba(15, 25, 35, 0.9);
  border: 2px solid #ff4655;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 98;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
}

.color-guide-toggle:hover {
  transform: scale(1.1);
}

.color-guide-toggle span {
  color: #ff4655;
  font-size: 22px;
  font-weight: bold;
}

/* Guess Text Prompt Styling */
.guess-prompt {
  display: block;
  text-align: center;
  color: #ece8e1;
  font-family: "DIN Next LT W04 Medium", "Arial", sans-serif;
  font-size: 18px;
  margin: 5px 0;
  padding: 10px;
  /* background-color: rgba(255, 70, 85, 0.1); */
  border-radius: 5px;
  animation: pulseFade 2s infinite;
}

@keyframes pulseFade {
  0% {
    opacity: 0.7;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.7;
  }
}

/* Media queries for responsiveness */
@media screen and (max-width: 768px) {
  .valdle-modal-content {
    width: 95%;
    margin: 10px;
  }

  .valdle-modal-header h2 {
    font-size: 22px;
  }

  .instruction-section {
    padding: 10px;
  }

  .tip-content {
    max-width: 90%;
    right: -45%;
  }
}
