
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Default scrolling behavior */
html, body {
  width: 100% !important;
  height: 100% !important;
}

body {
  font-family: 'Figtree', Arial, Helvetica, sans-serif;
  background-color: #fdfaf4;
  min-height: 100vh;
  padding: 20px;
  padding-bottom: 80px;
  color: #7a5a18;
  width: 100%;
}

/* Header Styles */
.header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 60px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.back-arrow {
  font-size: 24px;
  color: #333;
  cursor: pointer;
}

.date-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#today {
  font-size: 16px;
  color: #7a5a18;
  font-weight: normal;
  margin-left: auto;
  margin-right: auto;
  font-family: 'Poppins';
}

.setter {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
  margin-top: 4px;
}

.setter-name {
  font-size: 12px;
  color: #AA6C06;
  opacity: 0.7;
  font-weight: 400;
  text-align: center;
  font-family: 'figtree';
  font-style: normal;
}

.header-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  font-weight: bold;
  color: #7a5a18;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-family: 'Poppins', sans-serif;
}

.icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #7a5a18;
  cursor: pointer;
  border: 1px solid #e6b13a;
}

/* Clue Container */
.clue-container {
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 24px;
  max-width: 300px;
  font-weight:600;

  /* Center horizontally */
  margin-left: auto;
  margin-right: auto;
}

.clue-text {
  font-size: 24px;
  color: #4C3104;
  text-align: center;
  line-height: 1.4;
  font-family: 'Figtree';
  font-weight: 400;
  width: 100%;
}

/* Input Styles */
.input-container {
  margin-bottom: 16px;
  margin-left: auto;
  margin-right: auto;
}

.letter-inputs-container {
  display: flex;
  justify-content: center;
  gap: 8px;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
  flex-wrap: wrap;
}

.letter-input {
  width: 45px;
  height: 45px;
  padding: 0;
  font-size: 18px;
  font-weight: 600;
  border: 2px solid #AA6C06;
  border-radius: 8px;
  text-align: center;
  background-color: #FFF7EA;
  outline: none;
  color: #7a5a18;
  text-transform: uppercase;
}

.letter-input:focus {
  border-color: #7a5a18;
  box-shadow: 0 2px 0 0 rgba(170, 108, 6, 100%);
}

.letter-input.answer-correct {
  border-color: #0F6326;
  background-color: #F3FFF6;
  box-shadow: 0 2px 0 0 rgba(15,99,38,1);
  color: #0F6326;
}

.letter-input.answer-incorrect {
    border-color: #C9241B;
    background-color: #FFF3F2;
    box-shadow: 0 2px 0 0 rgba(201,36,27,1);
    color: #C9241B;
  }

/* Legacy answer-input class for backward compatibility */
.answer-input {
  width: 100%;
  max-width: 420px;
  padding: 15px;
  font-size: 16px;
  border: 1px solid #AA6C06;
  border-radius: 6px;
  text-align: center;
  background-color:#FFF7EA;
  outline: none;
  display: block;
  margin-left: auto;
  margin-right: auto;
  color: #7a5a18;
}

.answer-input:focus {
  border-color: #7a5a18;
  box-shadow: 0 2px 0 0 rgba(170, 108, 6, 100%);
}

.answer-input.answer-correct {
  border-color: #0F6326;
  background-color: #F3FFF6;
  box-shadow: 0 2px 0 0 rgba(15,99,38,1);
  color: #0F6326;
}

/* Progress Dots */
.progress-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #e6b13a;
  border: 1px solid transparent;
}

.dot.active {
  border: 2px solid #7a5a18;
  background-color: #fff;
}

/* Button Container */
.button-container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 20px;
  position: fixed;
  left: 0;
  right: 0;
  bottom: env(safe-area-inset-bottom, 0);
  z-index: 100;
  padding: 16px 0 calc(8px + env(safe-area-inset-bottom, 0)) 0;
  margin: 12px;
}

.share-container {
  display: none;
  background: #FFFFFF;
  border: 2px solid #f3e7d4;
  border-radius: 16px;
  width: 100%;
  max-width: 420px;
  padding: 24px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  margin-top: 32px;
  margin-bottom: 20px;
}

.share-container-header {
  margin-bottom: 16px;
}

.share-icon {
  width: 60px;
  height: 60px;
  background: #fff9f0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin: 0 auto;
}

.share-title {
  font-size: 18px;
  color: #AA6C06;
  margin-bottom: 20px;
  line-height: 1.4;
  font-weight: 500;
  font-family: 'Figtree';
}

.streak-container {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-left: 20px;
  padding-right: 20px;
  padding-top: 16px;
  padding-bottom: 16px;
  text-align: center;
  background-color: #FFF7EA;
  border: 1px solid #E7D6BB;
  border-radius: 18px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 16px;
  margin-bottom: 16px;
  max-width: 420px;
}

@media (max-width: 600px) {
  .streak-container {
    margin: 24px 24px 24px 24px;
    width: auto;
    max-width: none;
  }
}

.streak-title {
  font-size: 12px;
  color: #80796C;
  font-family: 'poppins';
}

.streak-text {
  font-size: 20px;
  color: #000000;
  font-family: 'figtree';
  font-weight: 600;
  margin-top: 4px;
  text-align: center;
}

@media (min-width: 601px) {
  .button-container {
    position: static;
    box-shadow: none;
    padding: 0;
    margin: 40px 0 20px 0;
    background: none;
  }
}

.hint-btn, .check-btn {
  padding: 12px 30px;
  font-size: 16px;
  border: 2px solid #4C3104;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 1px;
  font-family: 'figtree';
  /* text-transform: lowercase; */
  outline: none;
  transition: all 0.2s ease;
  color: #4C3104;
  background-color: #fdf6e3;
}

.hint-btn {
  background-color: #FFF7EA;
  color: #4C3104;
}

.check-btn {
  background-color: #4C3104;
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  font-family: 'figtree';
  letter-spacing: 1px;
  border: none;
  border-radius: 999px;
  padding: 18px 48px;
  box-shadow: 0 6px 0 0 #AA6C06;
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.1s;
  outline: none;
  display: inline-block;
}

#shareBtn {
  background-color: #996308;
  color: #fff;
  font-weight: 400;
  font-size: 16px;
  font-family: 'figtree';
  letter-spacing: 1px;
  border: none;
  border-radius: 999px;
  padding: 18px 48px;
  box-shadow: 0 6px 0 0 #492F03;
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.1s;
  outline: none;
  display: inline-block;
  text-decoration: none;
  width: 100%;
  text-align: center;
}

#shareBtn:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 0 #492F03;
}

#shareBtn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(122, 90, 24, 0.2);
}

#shareBtn:disabled {
  background-color: #e5e5e5;
  color: #9a9a9a;
  cursor: not-allowed;
  transform: none;
  box-shadow: 0 2px 0 0 #c0c0c0;
  opacity: 0.6;
  border-color: #c0c0c0;
}

#shareBtn:disabled:hover {
  transform: none;
  box-shadow: 0 2px 0 0 #c0c0c0;
}

.check-btn:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 0 #AA6C06;
}

.hint-btn:hover, .check-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(122, 90, 24, 0.2);
}

/* Disabled button styles */
.hint-btn:disabled, .check-btn:disabled {
  background-color: #e5e5e5;
  color: #9a9a9a;
  cursor: not-allowed;
  transform: none;
  box-shadow: 0 2px 0 0 #c0c0c0;
  opacity: 0.6;
  border-color: #c0c0c0;
}

.hint-btn:disabled:hover, .check-btn:disabled:hover {
  transform: none;
  box-shadow: 0 2px 0 0 #c0c0c0;
}

/* Wiggle animation for submit-clue-container */
@keyframes wiggle {
  0% { transform: rotate(0deg); }
  8.33% { transform: rotate(3deg); }
  16.66% { transform: rotate(-3deg); }
  25% { transform: rotate(2deg); }
  33.33% { transform: rotate(0deg); }
  41.66% { transform: rotate(3deg); }
  50% { transform: rotate(-3deg); }
  58.33% { transform: rotate(2deg); }
  66.66% { transform: rotate(0deg); }
  75% { transform: rotate(3deg); }
  83.33% { transform: rotate(-3deg); }
  91.66% { transform: rotate(2deg); }
  100% { transform: rotate(0deg); }
}

.wiggle {
  animation: wiggle 1.8s ease-in-out;
}

/* Fire emoji wiggle animation */
@keyframes fire-wiggle {
  0%, 100% { transform: rotate(0deg) scale(1); }
  10% { transform: rotate(-10deg) scale(1.1); }
  20% { transform: rotate(10deg) scale(1.05); }
  30% { transform: rotate(-8deg) scale(1.1); }
  40% { transform: rotate(8deg) scale(1.05); }
  50% { transform: rotate(-5deg) scale(1.1); }
  60% { transform: rotate(5deg) scale(1.05); }
  70% { transform: rotate(-3deg) scale(1.1); }
  80% { transform: rotate(3deg) scale(1.05); }
  90% { transform: rotate(-1deg) scale(1.02); }
}

.fire-wiggle {
  animation: fire-wiggle 0.8s ease-in-out;
  display: inline-block;
}

/* Text Elements */
.hint-text {
  /* margin-left: auto;
  margin-right: auto; */
  padding-left: 16px;
  padding-right: 16px;
  padding-top: 12px;
  padding-bottom: 12px;
  text-align: left;
  font-size: 16px;
  color: #3C4143;
  font-family: 'figtree';
}

.result-text {
  /* margin-left: auto;
  margin-right: auto; */
  padding-left: 16px;
  padding-right: 16px;
  padding-top: 12px;
  padding-bottom: 12px;
  text-align: center;
  font-size: 24px;
  color: #4C3104;
  font-weight: bold;
  font-family: 'figtree';
}

.result-text-incorrect {
    padding-left: 16px;
    padding-right: 16px;
    padding-top: 12px;
    padding-bottom: 12px;
    text-align: center;
    font-size: 16px;
    color: #4C3104;
    font-family: 'figtree';
    font-weight: 400;
}

.next-clue-text {
  font-size: 16px;
  color: #4C3104;
  font-family: 'figtree';
  text-align: center;
}


.hint-title {
    padding-left: 16px;
    padding-right: 16px;
    text-align: left;
    margin-top: 20px;
    font-size: 14px;
    color: #D45113;
    font-weight: 600;
    font-family: 'lora';
}

/* .result-text {
  font-weight: bold;
  margin-top: 16px;
} */

.hint-container {
  display: none;
  background: #FFFFFF;
  border: 2px solid #f3e7d4;
  border-radius: 18px;
  box-shadow: 0 2px 12px 0 rgba(170, 108, 6, 0.07);
  width: 100%;
  max-width: 420px;
  min-height: 40px;
  /* display: flex; */
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
  margin-top: 16px;
  /* padding-left: 16px;
  padding-right: 16px; */
}

.submit-clue-container {
  display: none;
  background: #FFFFFF;
  border: 2px solid #f3e7d4;
  border-radius: 16px;
  /* box-shadow: 0 2px 12px 0 rgba(170, 108, 6, 0.07); */
  width: 100%;
  max-width: 420px;
  padding: 24px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  margin-top: 32px;
  margin-bottom: 20px;
}

.submit-clue-container-header {
  margin-bottom: 16px;
}

.submit-clue-icon {
  width: 60px;
  height: 60px;
  background: #fff9f0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin: 0 auto;
}

.submit-clue-title {
  font-size: 18px;
  color: #AA6C06;
  margin-bottom: 20px;
  line-height: 1.4;
  font-weight: 500;
  font-family: 'Figtree';
}

.submit-clue-btn {
  background-color: #996308;
  color: #fff;
  font-weight: 400;
  font-size: 16px;
  font-family: 'figtree';
  letter-spacing: 1px;
  border: none;
  border-radius: 999px;
  padding: 18px 48px;
  box-shadow: 0 6px 0 0 #492F03;
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.1s;
  outline: none;
  display: inline-block;
  text-decoration: none;
  width: 100%;
  text-align: center;
}

.submit-clue-btn:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 0 #AA6C06;
}

.submit-clue-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(122, 90, 24, 0.2);
}

@media (max-width: 600px) {
  .hint-container {
    margin-left: 0;
    margin-right: 0;
  }
}

.hint-container-header {
  background: #FFF7EA;
  display: flex;
  padding: 8px;
  width: 100%;
  box-sizing: border-box;
  border-top-right-radius: 18px;
  border-top-left-radius: 18px;
  font-family: 'Figtree', Arial, Helvetica, sans-serif;
  height: auto;
  align-items: center;
}

.hint-icon {
    display: flex;
    align-items: center;
  }

.footer {
  text-align: center;
  padding: 20px 0;
  pointer-events: none;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 10px;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #fdfaf4;
  border-top: 0.5px solid rgba(230, 177, 58, 0.5);
  z-index: 1000;
}

.instagram-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  margin-bottom: 10px;
  width: 24px;
  height: 24px;
  pointer-events: auto;
  transition: opacity 0.2s ease;
}

.instagram-icon:hover {
  opacity: 0.8;
}

.submit-clue-link {
  pointer-events: auto;
  color: #7a5a18;
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s ease;
  margin-left: 16px;
}

.submit-clue-link:hover {
  text-decoration: underline;
}

.submit-clue-simple {
  display: none;
  text-align: center;
  margin: 24px auto;
  max-width: 420px;
}

.submit-clue-simple .submit-clue-link {
  color: #7a5a18;
  text-decoration: none;
  font-size: 16px;
  font-family: 'Figtree';
  font-weight: 500;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.submit-clue-simple .submit-clue-link:hover {
  opacity: 1;
  text-decoration: underline;
}


@media (max-width: 600px) {
  /* Disable scrolling on mobile by default */
  html, body {
    overflow: hidden !important;
    position: fixed !important;
    touch-action: none !important;
    -webkit-overflow-scrolling: none !important;
  }
  
  body {
    padding: 0;
    padding-top: 80px; /* Space for sticky header */
    padding-bottom: 140px; /* Space for footer + buttons */
    width: 100%;
    height: 100vh;
  }

  .header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: #fdfaf4;
    z-index: 1000;
    padding: 15px 24px;
    border-bottom: 1px solid rgba(230, 177, 58, 0.2);
    flex-direction: column;
    align-items: center;
    margin-bottom: 0;
  }

  .header-title {
    position: static;
    transform: none;
    font-size: 20px;
    margin: 0;
  }

  .date-info,
  .setter {
    padding: 0 24px;
  }

  .clue-container {
    margin-top: 20px;
    padding: 0 24px;
  }

  .input-container {
    padding: 0 24px;
    margin-bottom: 20px;
  }

  .hint-container {
    margin: 24px 24px 20px 24px;
    width: auto;
    max-width: none;
  }

  .submit-clue-container {
    margin: 24px 24px 20px 24px;
    width: auto;
    max-width: none;
  }

  .share-container {
    margin: 24px 24px 20px 24px;
    width: auto;
    max-width: none;
  }

  .submit-clue-simple {
    margin: 20px 24px;
    max-width: none;
  }

  .letter-inputs-container {
    gap: 6px;
    max-width: 100%;
  }

  .letter-input {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }



  .hint-btn, .check-btn {
    width: 100%;
    padding: 12px 0;
    font-size: 16px;
  }

  .footer {
    display: none; /* Hide footer on mobile */
  }
}
