
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800;900&family=Roboto+Mono:wght@700&display=swap');

body {
  font-family: 'Inter', sans-serif;
  background-color: #121826;
}

header .logo {
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

#current-price, #dollar-sign, #price-timestamp { 
  font-family: 'Roboto Mono', monospace;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
  min-width: 0; 
}

#price-change-value {
   font-family: 'Roboto Mono', monospace;
}

.price-up { color: #34d399; }
.price-down { color: #f87171; }

.price-container-glow { 
  box-shadow: 0 0 15px rgba(253, 224, 71, 0.15), 0 0 5px rgba(253, 224, 71, 0.1);
}

.countdown-time {
  font-size: 4.5rem; 
  font-weight: 900;
  line-height: 1; 
  letter-spacing: -0.05em;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
  transition: color 0.5s, transform 0.1s;
}

#reset-button-container button {
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.1);
}

/* Leaderboard */

.leaderboard-item:nth-child(1) { color: #facc15; } /* Gold */
.leaderboard-item:nth-child(2) { color: #9ca3af; } /* Silver */
.leaderboard-item:nth-child(3) { color: #b45309; } /* Bronze */

/* Chart */

#chart-container {
  background-color: #1f2937;
  border-radius: 0.75rem;
  overflow: hidden;
  height: 150px;
  border: 1px solid #374151;
}

@media (max-width: 640px) {
  #chart-container {
    height: 100px;
  }
}

/* Collapsible Sections */

.collapsible-label {
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.collapsible-label .title::after {
  content: ":";
  opacity: 0;
  transition: opacity 0.3s linear;
}

.collapsible-label i {
  transform: rotate(90deg);
  transition: transform 0.2s linear;
}

.collapsible-content {
  overflow: hidden;
  max-height: 100px;
  padding: 0 .75rem .75rem;
  transition: all 0.3s linear, margin-top 0.2s linear;
  opacity: 1;
}

#current-stake-label,
#current-timeframe-label {
  opacity: 0;
  transition: opacity 0.3s linear;
}

.collapsible-section.collapsed .collapsible-label .title::after,
.collapsible-section.collapsed #current-stake-label,
.collapsible-section.collapsed #current-timeframe-label {
  opacity: 1;
}

.collapsible-section.collapsed .collapsible-label i {
  transform: rotate(0deg);
}

.collapsible-section.collapsed .collapsible-content {
  max-height: 0;
  padding: 0 .75rem;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s linear, margin-top 0.15s linear 0.15s;
}

/* Animations */

@keyframes text-wave {
  0%, 100% {
    opacity: 0.7; 
  }
  50% {
    opacity: 1; 
  }
}

@keyframes loading-dots {
  0%   { content: ''; }
  20%  { content: '.'; }
  40%  { content: '..'; }
  60%  { content: '...'; }
  90%  { content: ''; }
  100% { content: ''; }
}

.loading-anim {
  animation: text-wave 2s ease-in-out infinite;
}

.loading-anim:before,
.loading-anim:after {
  content: '';
  min-width: 3ch;
  display: inline-block;
}

.loading-anim:after {
  animation: loading-dots 2s step-start infinite;
}
