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

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

html {
    /* FINAL SIZE FOR MAKING IT 1920x1080 */
    font-size: 16px;
    /* SIZE FOR DEVELOPMENT */
    /* font-size: 8px; */
}

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

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

main {
    width: 120.0rem;
    height: 67.5rem;
    margin: 0 auto;
    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;
}

/*   **********    LOGO PANE STYLING     **********     */

.left-side-top {
    height: 12.5rem;
    background-color: #fff;
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.logo-container {
    background-color: #fff;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 3rem;
    gap: 0.8rem;
}

.logo-image {
    width: 13rem;
    height: 4.5rem;
    background-color: transparent;
    flex-shrink: 0;
}

.logo-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-divider {
    width: 0.125rem;
    height: 80%;
    background-color: #000;
    flex-shrink: 0;
}

.faculty-text {
    font-family: 'Lato', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.3;
    color: #000;
    text-align: left;
    flex-shrink: 0;
}

.time-date-container {
    height: 5rem;
    display: flex;
    align-items: stretch;
    position: relative;
}

.time-display {
    background-color: #3e2b2f;
    color: #fff;
    font-family: 'Oswald', sans-serif;
    font-size: 3.2rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1.5rem;
    letter-spacing: 0.03em;
    flex: 0 0 auto;
    min-width: 10rem;
}

.divider-line {
    width: 0.125rem;
    background-color: #fff;
    align-self: stretch;
}

.date-display {
    background: linear-gradient(90deg, #0f8261 0%, #92d0aa 100%);
    color: #fff;
    font-family: 'Oswald', sans-serif;
    font-size: 2rem;
    font-weight: 500;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1.5rem;
    letter-spacing: 0.08em;
    flex: 1;
}

/*   **********    OTHER PANES     **********     */

.left-side-middle {
    height: 12.5rem;
    background-color: #1a5c45;
    overflow: hidden;
    padding: 0;
}

.left-side-bottom {
    height: 37.5rem;
    background-color: #000;
    overflow: hidden;
    padding: 0;
}

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


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

#gsap-iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* ********** WEATHER PANE ********** */

#weather-container {
    display: flex;
    flex-direction: row;
    height: 100%;
    width: 100%;
}

.weather-day {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 1.0rem 0.5rem;
    border-right: 0.1rem solid rgba(255,255,255,0.15);
    box-sizing: border-box;
}

.weather-day:last-child {
    border-right: none;
}

/* Alternating gradients */
.weather-day:nth-child(odd) {
    background: linear-gradient(180deg, #0d4a32 0%, #1a7a55 100%);
}

.weather-day:nth-child(even) {
    background: linear-gradient(180deg, #1a7a55 0%, #0d4a32 100%);
}

.weather-day-name {
    font-family: 'Oswald', sans-serif;
    font-size: 1.6rem;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background-color: rgba(0,0,0,0.2);
    width: 100%;
    text-align: center;
    padding: 0.4rem 0;
}

.weather-icon {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
}

.weather-icon img {
    width: 3.5rem;
    height: 3.5rem;
    object-fit: contain;
}

.weather-condition {
    font-family: 'Lato', sans-serif;
    font-size: 1.1rem;
    font-weight: 400;
    color: #fff;
    text-align: center;
    padding: 0.3rem 0;
}

.weather-temps {
    display: flex;
    flex-direction: row;
    gap: 0.8rem;
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
    font-weight: 400;
    color: #fff;
}

.weather-high {
    color: #fff;
}

.weather-low {
    color: rgba(255,255,255,0.7);
}

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

.right-side-bottom {
    background-color: #fff;
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 18.625rem;
}

#news-slider {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    position: relative;
}

.slick-slider {
    position: relative;
    height: 100%;
}

.slick-list {
    height: 100% !important;
    overflow: hidden;
}

.slick-track {
    height: 100% !important;
}

.slick-slide > div {
    height: 100%;
}

.news-slide {
    display: flex !important;
    flex-direction: row;
    align-items: stretch;
    padding: 0;
    height: 100%;
    position: relative;
}

.news-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 0.8rem 1.2rem 0.6rem 1.2rem;
    justify-content: flex-start;
    margin-right: 18rem;
}

.news-header {
    padding: 0.6rem 1.5rem 0.4rem 1.5rem;
    flex-shrink: 0;
    border-bottom: 0.15rem solid #000;
}

.news-logo-dc {
    display: inline-flex;
    align-items: baseline;
    gap: 0.2rem;
}

.dc-big {
    font-family: 'Oswald', sans-serif;
    font-size: 2.8rem;
    font-weight: 700;
    color: #0f8261;
    line-height: 1;
    border-bottom: 0.2rem solid #0f8261;
}

.dc-small {
    font-family: 'Oswald', sans-serif;
    font-size: 1.6rem;
    font-weight: 400;
    color: #000;
    letter-spacing: 0.05em;
}

.news-headline {
    font-family: 'Oswald', sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: #000;
    line-height: 1.3;
}

.news-body {
    font-family: 'Lato', sans-serif;
    font-size: 1.3rem;
    font-weight: 400;
    color: #333;
    line-height: 1.5;
}

.news-image {
    width: 18rem;
    flex-shrink: 0;
    overflow: hidden;
    background-color: #ddd;
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Slick dots styling */
.slick-dots {
    display: block !important;
    position: absolute !important;
    bottom: 0.5rem !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    text-align: center !important;
    padding: 0 !important;
    margin: 0 !important;
    width: auto !important;
    list-style: none !important;
    z-index: 2 !important;
}

.slick-dots li button:before {
    color: #0f8261 !important;
    font-size: 0.7rem !important;
}

.slick-dots li.slick-active button:before {
    color: #0f8261 !important;
    opacity: 1 !important;
}

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

.bottom {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    padding: 0 !important;
    overflow: hidden;
}

.ticker-label {
    background-color: #3e2b2f;
    color: #fff;
    font-family: 'Oswald', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 1.2rem;
    flex-shrink: 0;
    line-height: 1.3;
}

.ticker-label-top {
    font-size: 1.0rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.ticker-label-bottom {
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    white-space: nowrap;
    opacity: 0.85;
}

.ticker-track {
    flex: 1;
    background: linear-gradient(90deg, #0f8261 0%, #92d0aa 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
    height: 100%;
}

#ticker-tape-container {
    white-space: nowrap;
    color: #fff;
    font-family: 'Oswald', sans-serif;
    font-size: 1.4rem;
    font-weight: 400;
    width: 100%;
}

.ticker-meal-label {
    font-weight: 700;
    color: #fff;
    font-size: 2rem;
    margin-right: 0.3rem;
}

.ticker-meal-content {
    font-weight: 400;
    color: #fff;
    font-size: 2rem;
    margin-right: 0.3rem;
}

.ticker-separator {
    color: #fff;
    font-size: 2rem;
}


/* ********** YOUTUBE ********** */

.right-side-top {
    position:relative;
    background-color: #000;
    overflow: hidden;
}

#youtube-iframe {
    position:absolute;
    width: 78.1rem;
    height: 60rem;
    top: -8rem;
    left: -0.1rem;
    pointer-events: none;
    
}

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

body {
    background-image: url(../assets/brick_wall.jpg);
    background-size: cover;
    background-position: center;
    pointer-events: none;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
}

#tv-wrapper {
    width: calc(120rem + 4rem);
    height: calc(67.5rem + 4rem);
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2rem solid #222;
    border-radius: 1rem;
    box-shadow:
        0 0 3rem rgba(0, 0, 0, 0.7),
        inset 0 0 2rem rgba(255, 255, 255, 0.05);
    background: linear-gradient(
        to top left,
        rgba(255, 255, 255, 0.05),
        rgba(255, 255, 255, 0)
    );
}

@media screen and (max-width: 1919px) {
    html {
        font-size: calc(round(nearest, 0.7vw, 1px));
    }
}