/* 共享的基础样式 */

html {
  font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  font-weight: 400;
  color-scheme: light dark;
  color: #fff;
  background-color: #000;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
}

body {
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

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

#wsMsg {
  display: flex;
  flex-wrap: wrap;
}

.coin-box {
  display: flex;
  flex-direction: column;
  line-height: 1;
  justify-content: center;
}

.symbolName {
  font-weight: 600;
  font-size: 1.5rem;
}

.symbolPrice {
  font-weight: 600;
}

.symbolPrice.rise {
  color: #00b300;
}

.symbolPrice.fall {
  color: #ff0000;
}

.top {
  display: flex;
  justify-content: space-between;
}

.percent {
  font-weight: bolder;
  background: currentColor;
  padding: 0.2rem 0;
  width: 5rem;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.percent.rise {
  background: #00b300;
}

.percent.fall {
  background: #ff0000;
}

sub {
  font-size: 0.5em;
}

