:root {
    /* --primary-color: #007bff;
    --font-stack: Arial, sans-serif; */
}
html, body {
    height: 100%;  /* older browsers */
    height: 100dvh;  /* modern browsers */
    margin: 0;
    padding: 0;
    overflow: hidden;  /* prevents any accidental scroll */
}
body, button, select, .last-updated, .data-source {
    /* font-family: SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace; */
    font-family: monospace;
}
body {
    /* font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; */
    background: white;
    color: #0A0B0D;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* height: 100vh; */
    margin: 0;
    /* padding: 20px; */
    box-sizing: border-box;
    text-align: center;
    /* padding: 40px; */
    /* padding: 0 40px 40px; */
}
body.dark-mode {
    background-color: #0A0B0D;
    color: #FFFFFF;
}
/* .container {
    padding: 40px;
} */
header {
    position: absolute;
    top: 32px;
    left: 0;
    right: 0;
    padding: 2rem 5% 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
h1 {
    font-size: 12vw;
    margin: 1.5rem 0 2.25rem;
    line-height: 1;
}
button {
    background: #EEF0F3;
    border: 1px solid #EEF0F3;
    padding: 4px 12px;
    border-radius: 9999px;
    height: 32px;
    font-weight: bold;
    display: flex;
    align-items: center;
    margin-left: auto;
}
button.dark-mode {
    background: transparent;
    border-color: #5b616e;
    color: #FFFFFF;
}
button.dark-mode:hover {
    background: #FFFFFF;
    border-color: #FFFFFF;
    color: #0A0B0D;
}
button, select {
    font-size: 16px;
    border-radius: 9999px;
    height: 32px;
    font-weight: bold;
}
button:hover, select:hover, .select-wrapper:hover {
    cursor: pointer;
}
button:hover, .select-wrapper:hover {
    background: #E5E7EA;
}
.about-section {
    position: absolute;
    top: 150px;
    left: 0;
    right: 0;
    width: 90%;
    max-width: 840px;
    margin-left: auto;
    margin-right: auto;
}
.about-section p {
    font-size: 14px;
    margin: 0;
}
.sun-icon, .moon-icon {
    width: 16px;
    height: 16px;
    margin-right: 4px;
}
.moon-icon.dark-mode {
    -webkit-filter: invert(100%);
    filter: invert(100%);
}
.moon-icon:hover.dark-mode::after {
    -webkit-filter: invert(0%);
    filter: invert(0%);
}
select {
    height: 32px;
    border-radius: 9999px;
    border: none;
    background: transparent;
    font-weight: bold;
}
select:focus {
    outline: none;
}
select option {
    background-color: #FFFFFF;
    color: #0A0B0D;
}
.selectors {
    display: flex;
    gap: 10px;
    margin-bottom: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}
.select-wrapper {
    box-sizing: border-box;
    background: #EEF0F3;
    border: 1px solid #EEF0F3;
    position: relative; /* Essential for positioning the custom arrow */
    display: inline-block;
    display: flex;
    align-items: center;
    border-radius: 9999px;
}
.select-wrapper.dark-mode {
    background: transparent;
    border-color: #5b616e;
}
.select-wrapper.dark-mode:hover {
    background: #EEF0F3;
    border-color: #EEF0F3;
}
.select-wrapper.dark-mode:hover > select {
    color: #0A0B0D;
}
.select-wrapper.dark-mode > select {
    color: #FFFFFF;
}
.select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 100%; /* Ensure it fills the wrapper */
    border: none;
}
.select-wrapper::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%); /* Vertically center the arrow */
    pointer-events: none; /* Allows clicks to pass through to the select */
    font-size: 14px; /* Customize arrow size */
    width: 17px;
    height: 17px;
    background-image: url("/assets/icons/app/down-arrow-caret.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}
.select-crypto {
    width: 227px;
    padding-left: 4px;
}
.select-crypto.extend-width {
    width: 272px;
}
.select-crypto > select {
    padding-left: 8px;
}
.select-currency {
    width: 76px;
}
.select-currency > select {
    padding-left: 12px;
}
.select-crypto-icon {
    height: 24px;
    width:24px;
    border-radius: 9999px;
}
.select-wrapper.dark-mode::after {
    -webkit-filter: invert(100%);
    filter: invert(100%);
}
.select-wrapper:hover.dark-mode::after {
    -webkit-filter: invert(0%);
    filter: invert(0%);
}
.last-updated {
    font-size: 12px;
    color: #5b616e;
    margin-top: 20px;
}
.data-source p, .data-source a {
    font-size: 12px;
    color: #5b616e;
    text-decoration: none;
}
.info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    /* padding: 0 5% 2rem; */
    padding: 0 0 2rem;
    font-size: 14px;
}
.info p {
    width: 90%;
    max-width: 840px;
    margin-left: auto;
    margin-right: auto;
}
a {
    color: #0052ff;
}
.hide {
    display: none !important;
}
.positive-trend {
    color: #098551;
}
.negative-trend {
    color: #CF202F;
}
.crypto-stats-wrapper {
    display: flex;
    justify-content: center;
    gap: 20px 40px;
    flex-wrap: wrap;
}
.crypto-metric-title {
    margin-top: 0;
    margin-bottom: 0.175rem;
}
.crypto-metric-value {
    font-size: 14px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.market-cap-display {
    margin-right: 0.5rem;
}
.trend-icon, .market-cap-trend-icon {
    height: 17px;
    width: 17px;
    margin-right: 0.25rem;
}
.stock-ticker {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    --gap: 27px;
    display: flex;
    font-size: 14px;
    gap: var(--gap);
    overflow: hidden;
    user-select: none;
}
.stock-ticker ul {
    align-items: center;
    animation: scroll 70s linear infinite;
    display: flex;
    flex-shrink: 0;
    gap: var(--gap);
    justify-content: space-between;
    list-style: none;
    min-width: 100%;
    margin: 0.75rem 0;
    padding: 0;
}
.stock-ticker:hover ul,
.pause-animation ul {
    animation-play-state: paused;
}
.stock-ticker ul > li {
    display: flex;
    align-items: center;
}
.stock-ticker .company,
.stock-ticker .price {
    font-weight: bold;
}
.stock-ticker .company {
    margin-right: 1rem;
}
.plus {
    color: #098551;
}
.minus {
    color: #CF202F;
}
@keyframes scroll {
    to {
        transform: translateX(calc(-100% - var(--gap)));
    }
}