:root {
    --bannerAnimTime: 10s;
}

body {
    margin: 0;
    background: #eee;
}

#display-area {
    width: 700px;
    height: 470px;
    background: black;
    position: absolute;
    top: 0;
    left: 0;
    position: relative;
    overflow: hidden;
}

#viewport-text-container {
    position: absolute;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    background-color: rgba(0, 0, 0, 0.5);
    border-top: 1px solid black;
    border-right: 1px solid black;
    border-bottom: 1px solid black;
    border-radius: 0 10px 10px 0;
    padding: 5px;
    top: 256px;
    left: -1px;
    max-width: 600px;
}

#viewport-text {
    color: white;
    font-family: Arial, Helvetica, sans-serif;
    position: relative;
    z-index: 3;
    text-shadow: 
        3px 3px 0 #000,  
        -1px -1px 0 #000,
        1px -1px 0 #000,
        -1px 1px 0 #000;
}

#viewport-text #clock {
    font-size: 118px;
    position: relative;
    margin-top: -20px;
}

#viewport-text #date {
    font-size: 36px;
}

#viewport-text #weather {
    font-size: 1.5em;
    position: relative;
    margin-top: -25px;
    text-wrap: nowrap;
}

#background-gif {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

#background-video {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.weather-container {
    position: absolute;
    bottom: 65px;
    left: 10px;
    height: 72px;  /* Match the height of your weather icon */
    overflow: hidden;
    z-index: 2;
}

.weather-icon {
    width: 72px;
    height: 72px;
    vertical-align: middle;
    margin-left: 10px;
    filter: drop-shadow(1px 1px 0 #000)
           drop-shadow(-1px -1px 0 #00000079)
           drop-shadow(1px -1px 0 #00000079)
           drop-shadow(-1px 1px 0 #00000079)
           drop-shadow(0 1px 0 #00000079)
           drop-shadow(1px 0 0 #00000079)
           drop-shadow(0 -1px 0 #00000079)
           drop-shadow(-1px 0 0 #00000079);
}

/* Update weather and slides styling */


.weather-slide {
    display: flex;
    align-items: center;
    white-space: nowrap;
    color: white;
    font-family: Arial, Helvetica, sans-serif;
    text-shadow:
        3px 3px 0 #000,
        -1px -1px 0 #000,
        1px -1px 0 #000,
        -1px 1px 0 #000,
        0 1px 0 #000,
        1px 0 0 #000,
        0 -1px 0 #000,
        -1px 0 0 #000;
    position: absolute;
    transition: all 1s ease-in-out;
    width: 100%;
    opacity: 0;
    transform: translateX(-250%);
    will-change: transform, opacity;
}

.slide-visible {
    transform: translateX(0);
    opacity: 1;
}

.slide-entering {
    transform: translateX(-250%);
    opacity: 1;
}

.slide-exiting {
    transform: translateX(-250%);
    opacity: 0;
}

#schedule {
    position: absolute;
    bottom: 5px;
    left: 5px;
    width: 98%;
    height: 70px;
    background: transparent;
    z-index: 2;
    color: white;
    font-family: Arial, Helvetica, sans-serif;
    display: flex;
    flex-direction: column;
    border-style: solid;
    border-width: 1px;
    border-color: rgba(0, 0, 0, 0.5);
    gap: 15px;
    padding: 5px;
    box-sizing: border-box;
}

.schedule-row {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    overflow: hidden;
}

.schedule-item {
    position: relative;
    display: flex;
    top: 2px;
    align-items: center;
    font-size: 18px;
    z-index: 3;
    text-shadow:
        1px 1px 0 #000,
        -1px -1px 0 #000,
        1px -1px 0 #000,
        -1px 1px 0 #000,
        0 1px 0 #000,
        1px 0 0 #000,
        0 -1px 0 #000,
        -1px 0 0 #000;
}

.activity-block {
    position: relative;
    z-index: 2;
    top: -1px;
    padding: 5px 10px;
    border-radius: 4px;
    margin-right: 10px;
    background-color: rgba(var(--block-color-rgb), 0.5) !important;
}

.progress-bar {
    position: absolute;
    top: -5px;
    left: -5px;
    height: 138%;
    background-color: rgba(0, 0, 0, 0.45);
    border-radius: 1px;
    width: 100vw;
    transform-origin: left;
    z-index: -1;
}

.schedule-label {
    font-weight: bold;
    margin-right: 10px;
    width: 120px;
}

#sliding-banner {
    position: absolute;
    top: 25%;
    right: -100%;
    transform: translateY(-50%);
    background-color: rgba(255, 0, 0, 0.8);
    color: white;
    padding: 15px 30px;
    font-family: Arial, sans-serif;
    font-size: 24px;
    white-space: nowrap;
    border-radius: 10px;
    z-index: 10;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

@keyframes slideAcross {
    0% {
        right: -100%;
    }
    100% {
        right: 100%;
    }
}

.sliding {
    animation: slideAcross var(--bannerAnimTime) linear;
}

#button-area {
    width: 200px;
    height: 412px;
    background: rgb(34, 34, 34);
    position: absolute;
    top: 50px;
    left: 816px;
    overflow: hidden;
    border: #000 solid 2px;
    display: block;
    justify-content: center;
    padding: 10px;
}

.button-area-text, .button-area-label {
    color: white;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 20px;
    z-index: 2;
    text-shadow:
        3px 3px 0 #000,
        -1px -1px 0 #000,
        1px -1px 0 #000,
        -1px 1px 0 #000,
        0 1px 0 #000,
        1px 0 0 #000,
        0 -1px 0 #000,
        -1px 0 0 #000;
}

.button-area-label {
    font-size: 15px;
}

.button {
    padding: 2px 2px;
    margin: 5px;
    font-size: 12px;
    cursor: pointer;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s;
    min-width: 100px;
    max-width: 180px;
    text-align: center;
}

.button:hover {
    background-color: #193d19;
    color: rgb(255, 255, 255);
    font-weight: bold;
}

.text-input {
    padding: 2px 2px;
    font-size: 12px;
    cursor: pointer;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s;
    min-width: 100px;
    max-width: 180px;
    resize: vertical;
    text-align: center;
}

#image-scroll-container {
    position: absolute;
    width: 708px;
    height: 190px; /* Adjust as needed */
    overflow-y: auto;
    background: rgb(34, 34, 34);
    display: flex;
    flex-direction: row;
    gap: 10px;
    left: 25px;
    top: 537px;
    padding: 10px;
}

#image-scroll-container img {
    width: 154px;  /* 10% of 768 */
    height: 102px; /* 10% of 512 */
    cursor: pointer;
    border-radius: 5px;
    transition: transform 0.2s;
    object-fit: cover;  /* This ensures images maintain aspect ratio without distortion */
}

#image-scroll-container img:hover {
    transform: scale(1.05);
}

#image-settings {
    position: absolute;
    width: 200px;
    height: 190px;
    background: rgb(34, 34, 34);
    color: white;
    top: 537px;
    left: 768px;
    padding: 10px;
    border: #000 solid 2px;
    display: block;
    justify-content: center;
}