html, body {
  height: 100%;
  margin: 0;
  background: #ffffff;
  color: #0b1220;
  font-family: Arial, Helvetica, sans-serif;
}

.screen {
  height: 100%;
  display: grid;
  grid-template-columns: 4fr 1fr; /* 4/5 and 1/5 */
}

.main {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto; /* header, table, ticker */
  padding: 24px;
  gap: 16px;
}

.side {
  border-left: 2px solid rgba(255,255,255,0.08);
  background: #ffffff;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.ad {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 10px;
}

.header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 0px solid #004ea3;
}

.title {
  font-size: 46px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #004ea3
}

.time {
  font-size: 26px;
  opacity: 0.9;
}

.rates-container {
  /*margin: 20px 60px;*/
}

.rates-header {
  background: #bd9732;
  color:#ffffff;
}

.rates {
  width: 100%;
  border-collapse: collapse;
  font-size: 26px;
  color: #004ea3;
}

.rates th, .rates td {
  padding: 18px 16px;
  border-bottom: 1px solid rgb(19 0 123 / 15%);
}

.rates thead th {
  font-size: 30px;
  opacity: 0.85;
}

.cur { font-weight: 800; }
.num { text-align: right; font-variant-numeric: tabular-nums; }

.ticker {
  overflow: hidden;
  border-top: 2px solid rgba(255,255,255,0.08);
  padding-top: 16px;
  height: 46px;
  background: #004ea3;
  color: #ffffff;
  border-radius: 0px;
}

.ticker-track {
  white-space: nowrap;
  display: inline-block;
  animation: scroll 22s linear infinite;
  font-size: 28px;
  opacity: 0.95;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo {
  height: 120px;          /* good size for 42" TV */
  width: auto;
  object-fit: contain;
  margin-bottom:-30px;
}

.spacer { margin: 0 28px; opacity: 0.6; }

@keyframes scroll {
  from { transform: translateX(0%); }
  to   { transform: translateX(-50%); }
}
