/* GLOBAL VARIABLE  */
@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;700&display=swap');
* {
  box-sizing: border-box;
}

:root {
  --body-bg-color: #d9d9d9;
  --crypto-bg-color: #fff;
  --crypto-topic-text: #000;
  --crypto-header-bg-color: #777;
  --crypto-header-text-color: #fff;
  --up-color: #16c784;
  --down-color: #ea3943;
  --box-shadow: 0px 4px 24px rgba(88, 102, 126, 0.08),
    0px 1px 2px rgba(88, 102, 126, 0.12);
  --row-hover-bg-color: #f8fafd;
  --font-family-sans-serif: 'Vazirmatn', sans-serif;
}

/* START OF GLOBAL STYLE  */

body {
  /* background-color: var(--body-bg-color); */
  font-family: var(--font-family-sans-serif);
  margin: 0;
  padding: 0;
}

form,
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  padding: 0;
}

.main_wrapper {
  /* max-width: 1200px; */
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.crypto-down-color {
  color: var(--down-color);
  font-size: 0.75rem;
}

.crypto-up-color {
  color: var(--up-color);
  font-size: 0.75rem;
}

/* END OF GLOBAL STYLE  */
.crypto_cnt {
  /* padding: 16px 16px 0 16px; */
  background-color: var(--crypto-bg-color);
  box-shadow: var(--box-shadow);
}

.one-hour {
  min-width: 83px;
}

.overflow-box {
  overflow-x: auto;
}

.crypto_topic {
  margin-bottom: 32px;
}

.crypto_topic h2 {
  text-align: center;
  font-size: 1.2em;
  color: var(--crypto-topic-text);
}

.crypto-table {
  border-collapse: collapse;
  width: 100%;
}

.crypto-table tr {
  text-align: left;
  border-bottom: 1px solid #eee;
  transition-duration: 0.3s;
  transition-timing-function: ease;
}

.crypto-table tr:last-child {
  border-bottom: none;
}

.crypto-table .row-table:hover {
  background-color: var(--row-hover-bg-color);
}

.crypto-table th,
.crypto-table td {
  padding: 8px 6px;
  font-size: 0.75em;
  text-align: right;
}

/* HEADER TABLE  */
.crypto-table .header-row {
  background-color: var(--crypto-header-bg-color);
}

.crypto-table th {
  padding: 8px;
  color: var(--crypto-header-text-color);
  font-size: 0.9em;
  text-align: right;
}
/* START  ROW */
.name-symbol-coin {
  display: flex;
  align-items: center;
  gap: 8px;
}

img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
}

.symbol-coin {
  color: #808a9d;
  font-size: 0.8em;
}

.name-coin {
  font-weight: bold;
}

.mrb-3 {
  margin-bottom: 3px;
}
.volume {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sub-volume {
  color: #808a9d;
  display: inherit;
  justify-content: left;
  font-size: 0.9em;
}

.icon-value svg:first-child {
  order: 2;
}

.icon-value {
  display: flex;
  gap: 2px;
  align-items: center;
}

.sub-volume-symbol {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.error_accrued {
  text-align: center;
  background: #c20606;
  padding: 4px;
  font-size: 0.95em;
  font-weight: bold;
  color: #fff;
}

/* END OF ROW */

.last-24 {
  display: inline-block;
  min-width: 176px;
}

.price-card {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--crypto-header-text-color);
}

.header-box {
  font-size: 0.75rem;
  color: var(--crypto-header-text-color);
}

.market-cap {
  font-size: 0.8rem;
  font-weight: bold;
  color: var(--crypto-header-text-color);
  text-align: center;
}

:is(.top-row) :is(.right, .left) {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.card {
  padding: 8px;
  background-color: var(--crypto-header-bg-color);
}

.top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bottom-row {
  border-top: 1px solid #eee;
  margin-top: 16px;
  display: flex;
  flex-direction: row;
  gap: 8px;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
}

:is(.bottom-row) :is(.first-row, .second-row) {
  display: flex;
  align-items: center;
  gap: 12px;
}

:is(.date-time) :is(.time, .date) {
  color: var(--crypto-header-text-color);
  font-size: 0.8rem;
  text-align: center;
}

:is(.bottom-row) :is(.right, .left) {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
