#primary-ad-container {
  width: 480px;
  height: 400px;
  overflow: hidden;
}

#primary-ad-container #nbw-primary {
  position: relative;
  width: 100%;
}

#secondary-ads-container {
  height: 5.625rem;
  order: 3;
  overflow: hidden;
  background: black;
}

#secondary-ads-container #nbw-secondary {
  position: relative;
  width: 100%;
  height: 90px;
}

#secondary-ads-container #nbw-secondary img {
  margin-left: 0.42rem;
}

#secondary-ads-container #nbw-secondary img:last-child {
  margin-right: 0.42rem;
}

.takeover-ad {
  left: 0;
  position: absolute;
  width: 100%;
  z-index: 99999;
  max-height: 700px;
}
[class*="futures-table-widget"] {
  margin: 0 !important;
}

[class*="futures-table-widget"] dtn-table > table tbody td {
  padding: 0.15em 0.05em !important;
}

/* Custom styles for mobile view */
body.mobile-view .row {
  max-height: 60vh !important;
  overflow: hidden !important;
}

body.mobile-view #contract-viewport [class*="futures-table-widget"] h1,
body.mobile-view #contract-viewport [class*="futures-table-widget"] dtn-table,
body.mobile-view #contract-viewport [class*="futures-table-widget"] dtn-table th,
body.mobile-view #contract-viewport [class*="futures-table-widget"] span,
body.mobile-view #contract-viewport [class*="futures-table-widget"] small {
  font-size: 0.5rem !important;
  line-height: 0.75rem !important;
}

body.mobile-view #contract-viewport [class*="futures-table-widget"] img {
  max-width: 100px !important;
  max-height: 15px !important;
}

body.mobile-view #contract-viewport [class*="futures-table-widget"] small {
  display: block !important;
}

body.mobile-view #contract-viewport [class*="futures-table-widget"] span {
  padding-left: 1rem !important;
}

body.mobile-view #contract-viewport [class*="futures-table-widget"] div:has(img[alt="CME Logo"]) {
  line-height: 1rem !important;
}
footer {
  height: 6.25rem;
  color: #fff;
}

footer h2.title {
  background-color: #0a789d;
  border-bottom: 0.4rem solid #c4c4c4;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 0;
  padding: 0.3rem;
  width: 100%;
}

footer .component {
  background-color: #515151;
  border: 0.4rem solid #c4c4c4;
  width: 100%;
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.25;
}

footer .clock-container {
  width: 16%;
}

footer .component .clock {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
  margin: 0;
  padding-top: 0.45rem;
}

footer .component .price-point {
  padding: 0.25rem;
}

footer .component:not(:last-child) {
  border-right: 0;
}

/* Mobile view overrides */
body.mobile-view footer {
  height: 10vh;
  overflow: hidden;
}

body.mobile-view footer h2.title {
  border-bottom: 0.1rem solid #c4c4c4;
  font-size: clamp(0.5rem, 1.3vw, 1rem);
  line-height: 1.1;
  padding: 0.2vh 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.mobile-view footer .component {
  border: 1px solid #c4c4c4;
  height: 100%;
  display: flex;
  flex-direction: column;
  font-size: clamp(0.65rem, 1.8vh, 1.3rem);
  line-height: 1.1;
  overflow: hidden;
}

body.mobile-view footer .component .clock {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-grow: 1;
  font-size: clamp(0.6rem, 1.4vw, 2rem);
  padding-top: 0;
}

body.mobile-view footer .component .price-point {
  padding: 0.10rem;
}

body.mobile-view footer .component .price-point-container > div {
  flex-grow: 1;
  height: auto !important;
}
header {
  background-color: #9d2626;
  height: 5rem;
}
#news-item-ticker-viewport {
  height: 31.875rem;
  overflow: hidden;
  position: relative;
  background-color: black;
}

#news-item-ticker-viewport #news-item-ticker {
  width: 100%;
}

#news-item-ticker-viewport #news-item-ticker .news-item {
  margin-bottom: 1rem;
  font-size: 32px;
  color: lightgrey;
}

#news-item-ticker-viewport #news-item-ticker .ad-promo {
  background-color: #78c698;
  color: #2b2b2b;;
}

/* Mobile view overrides */
body.mobile-view #news-item-ticker-viewport {
  height: 60vh !important;
}

body.mobile-view #news-item-ticker-viewport #news-item-ticker .news-item {
  margin-bottom: 0.5rem;
  font-size: 16px;
}
#primary-price-point-container {
  margin: 0;
  height: 6.25rem;
}

.price-point:not(:last-child) {
  border-right: 0px !important;
}

#primary-price-point-container .price-point {
  border: 0.4rem solid #c4c4c4;
  font-weight: 600;
  background-color: #515151;
}

#primary-price-point-container .price-point .name {
  font-size: 1.2125rem;
}

#primary-price-point-container .price-point .value {
  font-size: 2.6875rem;
  line-height: 1.25;
}

#primary-price-point-container .price-point i {
  font-size: 5rem;
  position: absolute;
  top: -1.25rem;
}

#primary-price-point-container .price-point .d-inline-block {
  margin-left: 50px;
}

#secondary-price-point-container .arrow-icon {
  margin-right: -1.25rem;
}

#secondary-price-point-container .arrow-icon i {
  font-size: 2.6rem;
}

.price-point {
  color: white;
}

.bi-arrow-up::before, .bi-arrow-down::before {
  font-weight: 1000 !important;
}

/* Mobile view overrides */
body.mobile-view #primary-price-point-container {
  height: 10vh !important;
}

body.mobile-view #primary-price-point-container .price-point {
  border: 1px solid #c4c4c4;
}


body.mobile-view #primary-price-point-container .price-point .name {
  font-size: clamp(0.6rem, 1.8vh, 1.6rem);
}

body.mobile-view #primary-price-point-container .price-point .value {
  font-size: clamp(1rem, 4vh, 3.5rem);
  line-height: 1;
}

body.mobile-view #primary-price-point-container .price-point i {
  font-size: clamp(1.5rem, 6vh, 5rem);
  top: -.45rem;
}

body.mobile-view #primary-price-point-container .price-point .d-inline-block {
  margin-left: 0;
}

body.mobile-view #primary-price-point-container .price-point .card-body {
  display: flex !important;
  align-items: center;
  justify-content: center;
}

body.mobile-view #primary-price-point-container .price-point .price-arrow {
  position: absolute;
  left: 0.5vh;
  top: 50%;
  transform: translateY(-50%);
}

body.mobile-view #primary-price-point-container .price-point .price-arrow i {
  font-size: clamp(1rem, 4vw, 3.5rem);
  position: static;
  top: auto;
}

body.mobile-view #secondary-price-point-container .arrow-icon {
  margin-right: 0;
}

body.mobile-view #secondary-price-point-container .arrow-icon i {
  font-size: clamp(0.8rem, 2vw, 3rem);
}

body.mobile-view #secondary-price-point-container .price-value {
  font-size: clamp(0.6rem, 1.4vw, 2rem);
}

body.mobile-view footer .component.price-point-container > div {
  flex-grow: 1;
  height: auto !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 0.2rem !important;
  padding-right: 0.2rem !important;
}
body {
  background-color: #2b2b2b;
}

body.mobile-view {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}

@media screen and (orientation: portrait) {
  body.mobile-view {
    transform: rotate(90deg);
    transform-origin: bottom left;
    position: absolute;
    top: -100vw;
    width: 100vh;
    height: 100vw;
    overflow: hidden;
  }
}
@keyframes scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-100% - var(--gap)));
  }
}

.marquee {
  height: 100px;
  --gap: 1rem;
  gap: var(--gap);
}

.marquee > .scrollable {
  padding-left: 1920px;
  color: #e6e6e6;
  font-size: 2.25rem;
  line-height: 90px;
  min-width: 100%;
  gap: var(--gap);
  animation-name: scroll;
  animation-timing-function: linear;
}

/* Mobile view overrides */
body.mobile-view .marquee {
  height: 10vh !important;
  align-items: center;
}

body.mobile-view .marquee > .scrollable {
  padding-left: 100vw;
  height: 100%;
  font-size: unset;
  line-height: unset;
  align-items: center;
}

body.mobile-view .ticker-item {
  display: flex;
  align-items: center;
}

body.mobile-view .ticker img {
  height: 10vh !important;
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */

 @import 'root';
 @import 'layout/*';
