@import url("https://fonts.cdnfonts.com/css/sf-pro-display");

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 100vh;
  padding: 40px 20px;
  background-color: #0d0f14;
  color: #d8dce8;
  font-family: "SF Pro Display", sans-serif;
  font-weight: 500;
}

#main {
  display: flex;
  flex-direction: row;
  gap: 24px;

}

#left {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 600px;
  flex-shrink: 0;
}

#right {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

h1 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: #ffffff;
  padding-bottom: 12px;
  border-bottom: 1px solid #2a2d38;
}

h2 {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #7a7f94;
  margin-bottom: 12px;
}

#latest,
#historical,
#monthly {
  background-color: #13161e;
  border: 1px solid #22253000;
  border-radius: 12px;
  padding: 20px 24px;
}

#price-summary {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: row;
  gap: 12px;
  font-size: 40px;
  font-weight: 700;
  color: #ffffff;
}

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
}

th {
  background-color: #1a1d28;
  color: #7a7f94;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.6px;
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid #2a2d38;
}

td {
  padding: 10px 12px;
  border-bottom: 1px solid #1e2130;
  color: #c8ccd8;
}

tr:last-child td {
  border-bottom: none;
}

tr:hover td {
  background-color: #1a1d28;
}

#right iframe {
  border-radius: 12px;
  overflow: hidden;
  display: block;
}

.chart-wrapper {
  position: relative;
  display: inline-block;
}

.chart-refresh-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10;
  padding: 6px 14px;
  background-color: #1a1d28;
  color: #7a7f94;
  border: 1px solid #2a2d38;
  border-radius: 6px;
  font-family: "SF Pro Display", sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}

.chart-refresh-btn:hover {
  background-color: #22253a;
  color: #d8dce8;
}

#greenbox-blurb {
	text-align: center;
	color: #e05c5c;
	margin-bottom: 40px;
	font-size: 18px;
}