:root {
  --blue-color: #0000FF;
  --red-color: #FF0000;
}

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

html, body, #root {
  height: 100%;
  width: 100%;
  overflow: hidden;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.app {
  display: flex;
  height: 100vh;
  position: relative;
}

.blue-side, .red-side {
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  padding: 2rem;
  transition: width 0.5s ease-in-out;
  position: relative;
  overflow: hidden;
}

body.dragging .blue-side,
body.dragging .red-side {
  transition: none;
}

.blue-side {
  background-color: var(--blue-color);
}

.red-side {
  background-color: var(--red-color);
}

.content {
  text-align: center;
  width: 100%;
  padding: 15rem 1rem 0 1rem;
}

.mcap-label-main {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: lowercase;
  opacity: 0.6;
  margin: 0;
  margin-bottom: 0.5rem;
}

.market-cap-display {
  font-weight: 900;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
  white-space: nowrap;
}

.title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: bold;
  margin-bottom: 0.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.contract-address {
  font-size: 0.8rem;
  opacity: 0.8;
  margin-top: 0.5rem;
  word-break: break-all;
  font-family: monospace;
}

.description {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  margin-top: 1.5rem;
  line-height: 1.6;
  opacity: 0.9;
}

.links {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.buy-link, .social-link {
  padding: 0.75rem 1.5rem;
  background-color: white;
  text-decoration: none;
  font-weight: bold;
  border-radius: 8px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.blue-side .buy-link, .blue-side .social-link {
  color: var(--blue-color);
}

.red-side .buy-link, .red-side .social-link {
  color: var(--red-color);
}

.buy-link:hover, .social-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  padding: 0;
}

.social-link svg {
  width: 24px;
  height: 24px;
}

.dollar-sign {
  opacity: 0.5;
}


.divider {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 8px;
  cursor: col-resize;
  z-index: 11;
  transform: translateX(-50%);
}

.divider-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 80px;
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  transition: background-color 0.2s;
}

.divider:hover .divider-handle,
.divider:active .divider-handle {
  background-color: rgba(255, 255, 255, 0.5);
}

body.dragging {
  cursor: col-resize;
  user-select: none;
}

.floating-badge {
  position: absolute;
  top: 2rem;
  left: 50%;
  transform: translateX(-50%);
  background-color: white;
  border-radius: 24px;
  padding: 2rem 3rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  z-index: 10;
}

.badge-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.badge-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.call-to-action {
  font-size: 2.5rem;
  font-weight: 800;
  color: #333;
  letter-spacing: 2px;
  margin: 0;
  white-space: nowrap;
}

.badge-actions {
  display: flex;
  align-items: center;
  gap: 2rem;
  width: 100%;
  justify-content: center;
}

.badge-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.badge-ticker {
  font-size: 1.8rem;
  font-weight: bold;
  margin: 0;
}

.blue-badge-side .badge-ticker {
  color: var(--blue-color);
}

.red-badge-side .badge-ticker {
  color: var(--red-color);
}

.badge-links {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.badge-buy-link {
  padding: 0.75rem 2rem;
  text-decoration: none;
  font-weight: bold;
  border-radius: 8px;
  font-size: 1.1rem;
  white-space: nowrap;
  transition: transform 0.2s, box-shadow 0.2s;
}

.blue-badge-side .badge-buy-link {
  background-color: var(--blue-color);
  color: white;
}

.red-badge-side .badge-buy-link {
  background-color: var(--red-color);
  color: white;
}

.badge-buy-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.badge-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.blue-badge-side .badge-social-link {
  background-color: var(--blue-color);
  color: white;
}

.red-badge-side .badge-social-link {
  background-color: var(--red-color);
  color: white;
}

.badge-social-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.badge-social-link svg {
  width: 22px;
  height: 22px;
}


.badge-logo {
  height: 200px;
  width: auto;
}

.ticker-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.contract-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #f5f5f5;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  max-width: 300px;
}

.badge-contract {
  font-size: 0.7rem;
  color: #666;
  margin: 0;
  font-family: monospace;
  word-break: break-all;
  flex: 1;
  text-align: left;
}

.copy-button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  padding: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
  flex-shrink: 0;
}

.copy-button:hover {
  transform: scale(1.1);
}

.copy-button:active {
  transform: scale(0.95);
}

.launch-banner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  padding: 3rem 4rem;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  z-index: 100;
  animation: pulse 2s ease-in-out infinite;
  border: 4px solid #fff;
}

.launch-banner-content {
  text-align: center;
}

.launch-banner h2 {
  font-size: 3rem;
  font-weight: 900;
  color: #000;
  margin: 0 0 1rem 0;
  text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.5);
  letter-spacing: 3px;
}

.launch-banner p {
  font-size: 1.5rem;
  font-weight: 700;
  color: #000;
  margin: 0;
  letter-spacing: 2px;
}

@keyframes pulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.05);
  }
}

.status-indicator {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  z-index: 15;
  backdrop-filter: blur(10px);
}

.status-indicator.loading {
  background-color: rgba(255, 165, 0, 0.9);
  color: white;
}

.status-indicator.error {
  background-color: rgba(255, 0, 0, 0.9);
  color: white;
}

.status-indicator.success {
  background-color: rgba(0, 128, 0, 0.9);
  color: white;
}

.token-info {
  font-size: 0.9rem;
  margin-top: 0.5rem;
  opacity: 0.8;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.price-change {
  font-size: 0.8rem;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-weight: 600;
}

.price-change.positive {
  background-color: rgba(0, 255, 0, 0.2);
  color: #00ff00;
}

.price-change.negative {
  background-color: rgba(255, 0, 0, 0.2);
  color: #ff6b6b;
}

@media (max-width: 768px) {
  .launch-banner {
    padding: 2rem 1.5rem;
    max-width: 90%;
  }

  .launch-banner h2 {
    font-size: 1.8rem;
    letter-spacing: 2px;
  }

  .launch-banner p {
    font-size: 0.9rem;
    letter-spacing: 1px;
  }

  .content {
    padding: 12rem 0.5rem 0 0.5rem;
  }

  .mcap-label-main {
    font-size: 1rem;
  }

  .badge-logo {
    height: 80px;
  }

  .call-to-action {
    font-size: 1.1rem;
    letter-spacing: 1px;
  }
  
  .badge-actions {
    gap: 1rem;
  }
  
  .ticker-section {
    display: none;
  }
  
  
  .title {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
  }
  
  .description {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .buy-link {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
  
  .social-link {
    width: 40px;
    height: 40px;
  }
  
  .social-link svg {
    width: 20px;
    height: 20px;
  }
  
  .floating-badge {
    padding: 1.5rem 1rem;
    width: calc(100% - 2rem);
    max-width: 400px;
    top: 1rem;
  }
  
  .badge-content {
    gap: 1rem;
  }
  
  .badge-ticker {
    font-size: 1.2rem;
  }
  
  .badge-buy-link {
    padding: 0.5rem 0.8rem;
    font-size: 0.85rem;
  }
  
  .badge-social-link {
    width: 32px;
    height: 32px;
  }
  
  .badge-social-link svg {
    width: 16px;
    height: 16px;
  }
  
  
  .badge-contract {
    font-size: 0.6rem;
    max-width: 150px;
  }
  
  .status-indicator {
    top: 0.5rem;
    right: 0.5rem;
    font-size: 0.7rem;
    padding: 0.3rem 0.6rem;
  }
  
  .token-info {
    font-size: 0.8rem;
  }
  
  .price-change {
    font-size: 0.7rem;
  }
}