/*
   Fixed-size web application
   Uses rem units for proportional scaling during development
   Layout is intentionally non-responsive
*/

/*   **********    SETUP OF DOCUMENT     **********     */

html {
   font-size: 16px;
}
@font-face {
    font-family: 'oswald';
    src: url(../assets/fonts/oswald/static/Oswald-Regular.ttf);
}
@font-face {
    font-family: 'oswald-light';
    src: url(../assets/fonts/oswald/static/Oswald-Light.ttf);
}
@font-face {
    font-family: 'lato';
    src: url(../assets/fonts/lato/Lato-Regular.ttf);
}
@font-face {
    font-family: 'lato-bold';
    src: url(../assets/fonts/lato/Lato-Bold.ttf);
}

body {
    font-family: 'oswald';
    background-color: #000;
}

/*   **********    MAIN ELEMENTS     **********     */

main {
    width: 120.0rem;
    height: 67.5rem;
    margin: 0 auto;
    /* outline: 0.25rem solid #444; */
    /* outline-offset: 1.5rem; */
    display: grid;
    grid-template-columns: 42.0rem 78.0rem;
    grid-template-rows: 62.5rem 5.0rem;
}

/*   **********    Container ELEMENTS     **********     */

.left-side {
    background-color: #BBB;
    display: grid;
    grid-template-rows: 12.5rem 12.5rem 37.5rem;
}

.right-side {
    background-color: #AAA;
    display: grid;
    grid-template-rows: 43.875rem 18.625rem;
}

.bottom {
    grid-column: 1 / -1;
    background-color: #ABABAB;
}

/*   **********    Content ELEMENTS     **********     */

/* main > div > div, .bottom {
    color: #000;
    padding: 1.0rem;
    font-size: 2.0rem;
} */
/* REMOVE CSS STYLE ABOVE BEFORE STYLING BELOW */

.left-side-top {
    height: 12.5rem;
    background-color: #ffffff;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    flex-direction: column;
 
    gap: 1.7rem;
}

.left-side-middle {
    height: 12.5rem;
    background-color: #909090;
}

#weather-container {
    padding: 0.8rem;
    background-color: #ffffff;
    color: #333;
    font-family: 'lato';
    font-size: 1.2rem;
    line-height: 1.4;
    border-radius: 0.5rem;
    box-shadow: 0 0.2rem 0.5rem rgba(0,0,0,0.1);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.5rem;
    align-items: stretch;
    justify-items: stretch;
    min-height: 0;
    height: 100%;
    margin: 0.5rem;
    overflow: hidden;
    box-sizing: border-box;
}

.weather-pane {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.5rem;
}

.weather-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0.4rem;
    padding: 0.65rem 0.45rem;
    background-color: #fff;
    color: #3E2B2F;
    font-size: 1.4rem;
    border-right: solid 0.25rem transparent;
    position: relative;
    border-radius: 0.5rem;
    box-shadow: 0 0.2rem 0.4rem rgba(0,0,0,0.12);
    min-height: 0;
    min-width: 0;
    overflow: hidden;
    text-align: center;
}

.weather-tab .day {
    font-size: 1.35rem;
    font-weight: 700;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    line-height: 1;
    margin: 0;
    padding: 0;
}

.weather-tab .weather-icons {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.weather-tab .weather-icon-frame {
    width: 7rem;
    height: 7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #3E2B2F;
    border-radius: 0.75rem;
    padding: 0.65rem;
    box-sizing: border-box;
}

.weather-tab .temp-row {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 0.2rem;
    overflow: visible;
    white-space: normal;
    line-height: 1;
}

.weather-tab .low,
.weather-tab .high {
    font-size: 1.45rem;
    font-weight: 700;
}

.weather-item {
    margin-bottom: 0.5rem;
    padding: 0.3rem 0;
    border-bottom: 1px solid #eee;
}

.weather-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.left-side-bottom {
    height: 37.5rem;
    background-color: #bdbdbd;
}

.right-side-top {
    height: 43.875rem;
    background-color: #ABABAB;
}

.right-side-bottom {
    height: 18.625rem;
    background-color: #888;
    overflow: hidden;
}

.news-container {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-header {
    height: 5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    background-color: #fff;
}

.news-header img {
    max-height: 4rem;
    object-fit: contain;
}

/* Logo and date and time */
.infographics-logo {
    display: block;
   max-width: 80%;
    max-height: 40%;
    height: auto;
   margin: 2rem auto 0;
    background-color: #fff;  
}

.date-container {
    display: grid;
    grid-template-columns: 1fr 18rem;
    font-size: 1.8rem;
    background-color: #0b7a50;

    
    align-items: center;
}

.time {
  z-index: 7;
    height: 3.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #0b3b26;
      overflow: hidden;
    position: relative;
    
}

.date {
    color: #ffffff;
    
    display: flex;
    align-items: center;
    padding-left: 7rem;
    font-family: 'oswald';
}

.outer-box {
    width: 100%;
    margin: 0;
}

.time::before {
    content: "";
    background-color: #90D5AC;
    position: absolute;
    left: 0;
    top: 0;
    right: 0.125rem;
    margin: auto;
    width: 11rem;
   height: 4rem;
    z-index: -1;
    transform: skewX(-40deg);
    border-top-left-radius: 1.5rem;
    border-bottom-right-radius: 1.5rem;
}

/*   **********    MOTION GRAPHIC ADs     **********     */

#gsap-iframe {
     width: 100%;
     height: 100%;
}

/*   **********    NEWS PANE    **********     */

#news-slider {
    height: 100%;
    background: #fff;
    position: relative;
    overflow: hidden;
}

#news-slider .news-slide {
    height: 100%;
    display: grid;
    grid-template-columns: 1fr 20.0rem;
    align-items: stretch;
    background: #fff;
    overflow: hidden;
    box-sizing: border-box;
}

#news-slider .news-slide h2,
#news-slider .news-slide .news-body {
    grid-column: 1;
    margin: 0;
}

#news-slider .news-slide h2 {
    padding: 0rem 0rem 0.4rem;
    font-size: 2.6rem;
     font-family: 'oswald';
    letter-spacing: 0.04rem;
    line-height: 1.0;
    color: #0b7a50;
}

/* Weather pane card row + day icons */
.weather-pane {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.5rem;
}

.weather-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0.4rem;
    padding: 0.65rem 0.45rem;
    background-color: #fff;
    color: #3E2B2F;
    font-size: 1.5rem;
    border-right: solid 0.25rem transparent;
    position: relative;
    border-radius: 0.5rem;
    box-shadow: 0 0.2rem 0.5rem rgba(0,0,0,0.12);
}

.weather-tab .day {
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1;
}

.weather-tab .low,
.weather-tab .high {
    font-size: 1.45rem;
    font-weight: 700;
}

.weather-icon-frame {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 7rem;
    height: 7rem;
    padding: 0.65rem;
    background-color: #3E2B2F;
    border-radius: 0.75rem;
    box-sizing: border-box;
}

.weather-icons {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

#weather-container {
    padding: 0.8rem;
    background-color: #ffffff;
    color: #333;
    font-family: 'lato';
    font-size: 1.2rem;
    line-height: 1.4;
    border-radius: 0.5rem;
    box-shadow: 0 0.2rem 0.5rem rgba(0,0,0,0.1);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.5rem;
    align-items: stretch;
    justify-items: stretch;
    min-height: 0;
    height: 100%;
    margin: 0.5rem;
    overflow: hidden;
    box-sizing: border-box;
}

.weather-item {
    margin-bottom: 0;
    padding: 0.6rem;
    border: 1px solid #ddd;
    border-radius: 0.5rem;
    background-color: #f8f8f8;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.weather-item .day {
    margin-bottom: 0.4rem;
}

.weather-item .temp-row {
    display: flex;
    gap: 0.25rem;
    align-items: baseline;
}

#news-slider .news-slide h2 img {
    width: 100%;
    height: auto;
    max-height: 4rem;
    object-fit: contain;
}

#news-slider .news-slide h2 .dc-news-img {
   
    max-width: 560%;
}
.dc-news-img{
    margin-top: 2rem;
    max-width: 50%;
}
/* #news-slider .news-slide h2 .dc-img {
    max-width: 40%;
} */

.dc-img {
    margin-top: 2rem;
    max-width:100% !important; 
}

#news-slider .news-slide .news-body {
    padding: 0.8rem 2.0rem 2.0rem;
    font-family: 'lato';
    font-size: 1.35rem;
    line-height: 1.3;
    color: #222;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    line-clamp: 5;
    -webkit-box-orient: vertical;
    word-break: break-word;
    overflow-wrap: anywhere;
}

#news-slider .news-slide img {
    grid-column: 2;
    grid-row: 1 / span 2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-left: 0.2rem solid #ececec;
}

#news-slider .news-slide .news-body * {
    max-width: 100%;
}

.news-body h3 {
    font-family: 'oswald';
    font-size: 2rem;
    margin: 0.5rem 0;
    color: #0b7a50;}

#news-slider .news-slide .news-body img {
    max-width: 100%;
    height: auto;
}
.news-para {
    font-family: 'lato';
    font-size: 1.35rem;
    line-height: 1.3;
    color: #0b0a0a;
    margin: -1.4rem 0;
}

/*   **********    TICKER TAPE     **********     */

#ticker-tape-container {
    width: 100%;
    height: 100%;
    background-color: #fff;
}

#ticker-tape-container .ticker-tape {
    display: flex;
    align-items: center;
    width: 120rem;
    height: 5rem;
    color: white;
    background-color: #fff;
    overflow: hidden;
    position: relative;
}

#ticker-tape-container .ticker-tape::before {
    content: "";
    background-color: #007853;
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    margin: auto;
    width: 92.5rem;
    height: 100%;
    z-index: 1;
    transform: skewX(-40deg);
    border-top-left-radius: 1.5rem;
    border-bottom-right-radius: 1.5rem;
}

#ticker-tape-container .dc-eats-menu {
    width: 10rem;
    margin-left: 1.5rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    font-weight: bold;
    color: #006937;
    z-index: 2;
}

#ticker-tape-container .dc-eats-menu img {
    width: 100%;
    height: auto;
    max-height: 3rem;
    object-fit: contain;
}

#ticker-tape-container .marquee-container {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    height: 100%;
    display: flex;
    align-items: center;
    z-index: 2;
}

#ticker-tape-container .marquee {
    white-space: nowrap;
    line-height: 1;
    font-size: 2rem;
    color: #fff;
}

/* Ensure jquery.marquee generated wrappers stay visible and centered */
#ticker-tape-container .marquee .js-marquee-wrapper {
    height: 100%;
}

#ticker-tape-container .marquee .js-marquee {
    height: 100%;
    display: inline-flex !important;
    align-items: center;
}

#ticker-tape-container .meal {
    display: inline-block;
    font-size: 2rem;
    margin-right: 0.8rem;
    color: #d8fff0;
}

#ticker-tape-container .meals {
    display: inline-block;
    font-size: 2rem;
    margin-right: 5rem;
    color: #fff;
}

#ticker-tape-container .day {
    width: 15rem;
    height: 100%;
    display: flex;
    font-weight: 300;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    color: #007853;
    z-index: 2;
    font-size: 2.5rem;
    text-transform: uppercase;
}

/* Youtube */
.youtube{
    width: 100%;
    height: 100%;
}

/*   **********    BRICK WALL / MONITOR     **********   */

body {
  background-image: url(../images/brick_wall.jpg);
  background-size: cover;
  pointer-events: none; /* Stops user interaction */
}

main {
  background-color: #000;
}

/* Wrapper slightly larger than main to hold TV frame */
#tv-wrapper {
  width: calc(120rem + 4rem);
  height: calc(67.5rem + 4rem);
  display: flex;
  justify-content: center;
  align-items: center;
    margin: auto;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  /* TV frame border */
  border: 2rem solid #222; /* dark bezel */
  border-radius: 1rem;
  box-shadow:
    0 0 3rem rgba(0, 0, 0, 0.7), /* soft shadow for depth */ 
    inset 0 0 2rem rgba(255, 255, 255, 0.05); /* subtle sheen inside */

  background: linear-gradient(
    to top left,
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0)
  ); /* small highlight */
}

/* update size of screen based on browser width */
@media screen and (max-width: 1919px) {
  html {
    font-size: calc(round(nearest, 0.7vw, 1px));
  }
}