html {
  overflow-x: hidden;
}

body {
  max-width: 100%;
  overflow-x: hidden;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  min-width: 0;
}

img,
svg,
video,
canvas,
iframe {
  display: block;
  max-width: 100%;
  height: auto;
}

.font-mono {
  overflow-wrap: anywhere;
  word-break: break-word;
}

@media (max-width: 1023px) {
  #tradingview_chart_container {
    height: 420px !important;
  }
}

@media (max-width: 767px) {
  .text-5xl {
    font-size: clamp(2rem, 8vw, 3rem) !important;
    line-height: 1.1 !important;
  }

  .text-4xl {
    font-size: clamp(1.75rem, 7vw, 2.25rem) !important;
    line-height: 1.15 !important;
  }

  .text-3xl {
    font-size: clamp(1.35rem, 6vw, 1.875rem) !important;
    line-height: 1.2 !important;
  }

  .text-2xl {
    font-size: clamp(1.2rem, 5vw, 1.5rem) !important;
  }

  header > div[class*="max-w-"] {
    height: auto !important;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
  }

  header > div[class*="max-w-"] > nav {
    order: 3;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  header > div[class*="max-w-"] > div:last-child {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  header > div[class*="max-w-"] > div:last-child > * {
    flex: 0 1 auto;
  }

  .ticker-scroll {
    gap: 2rem !important;
  }

  .ticker-scroll > div {
    gap: 2rem !important;
  }

  .grid.grid-cols-5 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.75rem !important;
  }

  .grid.grid-cols-5 > :nth-child(5) {
    grid-column: 1 / -1;
  }

  .grid.grid-cols-5 > .justify-self-end {
    justify-self: start !important;
  }

  .grid.grid-cols-5 > .text-right {
    text-align: left !important;
  }

  .grid.grid-cols-5 > .flex.items-center.justify-end {
    justify-content: flex-start !important;
    flex-wrap: wrap;
  }

  .mb-8.flex.items-center.justify-between,
  .mb-5.flex.items-center.justify-between {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.75rem;
  }

  [class*="min-w-[250px]"] {
    min-width: 100% !important;
    width: 100%;
  }

  section[class*="max-w-"],
  main[class*="max-w-"] {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }

  #recent-orders-list > div,
  #recent-transactions-list > div {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
}

@media (max-width: 479px) {
  .grid.grid-cols-3 {
    grid-template-columns: 1fr !important;
  }

  .rounded-\[3\.5rem\] {
    border-width: 10px !important;
    border-radius: 2.5rem !important;
  }

  .phone-screen {
    width: min(100%, 240px) !important;
    height: 500px !important;
  }
}
