    html, body {
      height: 100%;
      margin: 0;
      padding: 0;
    }
    body {
      height: 100vh;
      display: flex;
      flex-direction: column;
      background: #000;
    }

    /* Main content area to fill remaining space */
    .mainContainer {
        padding: 5px;
    }

    .title-bar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      width: 100%;
      background-color: black;
      color: white;
      padding: 5px;
      box-sizing: border-box;
    }

.tb-text {
  flex: 1;
  text-align: center;
  font-size: 24px;
  color: white;
  font-weight: bold;
  word-wrap: break-word;
  white-space: normal;
}

.tb-left-align {
  margin-left: auto; /* Ensures it's pushed to far right */
  display: flex;
}

.mediaButton, .mediaButtonLarge {
    background-color: gainsboro;
    border: none;
    border-radius: 50%; /* Make the button circular */
    width: 44px; /* Set width */
    height: 44px; /* Set height */
    cursor: pointer;
    font-size: 36px; /* Increase font size for icon */
    box-shadow: 0 2px 2px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center; /* Center icon horizontally */
    align-items: center; /* Center icon vertically */
}
.mediaButton img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Keeps icon proportions */
}

.mediaButton:hover, .mediaButtonLarge:hover {
    background-color: #e0e0e0;
}
.mediaButtonLarge {
    width: 66px; /* Set width */
    height: 66px; /* Set height */
}

.message-box {
    display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 10px;
  border-radius: 4px;
  box-shadow: 0 0 20px rgba(0,0,0,0.2);
  z-index: 1000;
  max-width: 100%;
  text-align: center;
  font-size: 25px; /* Larger font size */
  color: #ff0000; /* Red text color */
  font-weight: bold; /* Optional: makes text bolder */
}

.message-box {
  /* Previous styles */
  animation: fadeIn 0.3s ease-out;
}

.media-container {
    position: relative;
    width: 100%;
    max-width: 1024px;
    margin: 0 auto;
    padding-top: 45%; /* Reduced from 56.25% for a slightly smaller height */
    background: #000;
    overflow: hidden;
    flex: 0 0 auto;
}

.slideshow-images {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

#slideshow-images img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fade-out {
  opacity: 0;
}

.ken-burns {
    animation: kenBurns 80s infinite alternate;
    animation-play-state: running;
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}

.ken-burns-slow {
    opacity: 1;
    animation: kenBurns 100s infinite alternate;
    animation-play-state: running;
}

@keyframes kenBurns {
    0% {
        transform: scale(1) translate(0, 0);
    }
    50% {
        transform: scale(1.2) translate(-2%, -2%);
    }
    100% {
        transform: scale(1) translate(0, 0);
    }
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    z-index: 100;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.media-container.ready .overlay {
    opacity: 0;
}

.media-container.ready:hover .overlay {
    opacity: 1;
}

.media-container:hover .overlay {
    opacity: 1;
}

.media-controls {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    z-index: 20;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.media-container:hover .media-controls {
    opacity: 1;
}


.play-pause-button {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    border: none;
    cursor: pointer;
    position: relative;
    transition: transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-icon, .pause-icon {
    position: absolute;
    width: 30px;
    height: 30px;
    transition: opacity 0.3s ease;
}

.play-icon {
    opacity: 1;
    background: #333;
    clip-path: polygon(0 0, 0 100%, 100% 50%);
}

.pause-icon {
    opacity: 0;
    background: #333;
    clip-path: path('M0 0h8v30H0zm22 0h8v30h-8z');
}

.play-pause-button:hover {
    transform: scale(1.1);
}

/* Show pause icon when playing */
body.playing .play-icon {
    opacity: 0;
}

body.playing .pause-icon {
    opacity: 1;
}

.text-overlay {
        position: absolute;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        text-align: center;
        background: rgba(0, 0, 0, 0.7);
        color: white;
        padding: 10px 20px;
        border-radius: 4px;
        font-size: 24px;
        z-index: 99;
        opacity: 1;
        transition: opacity 0.3s ease;
        display: none; /* Initially hidden */
}

.broadcast-text {
    width: 100%;
    max-width: 1024px;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    display: inline-block;
    min-height: 30px;
    max-width: 80%;
    line-height: 1.5;
    font-size: 24px;
    text-align: center;
    box-sizing: border-box;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5); /* Optional: subtle shadow */
    text-shadow: 1px 1px 2px white; /* White drop shadow for text */
}

#youtube-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: black;
}

#youtube-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

footer {
    text-align: center;
    padding: 2px;
    background: #333;
    font-size: 24px;
    color: white;
    margin-top: auto;
    flex-shrink: 0;
    position: fixed;
    bottom: 0;
    width: 100%;
}

        #subtitles {
            margin-top: 20px;
            font-size: 18px;
            color: blue;
            background-color: rgba(0, 0, 0, 0.3); /* Black background with 30% transparency */
            padding: 10px 20px;
            border-radius: 5px;
            display: inline-block;
            min-height: 30px;
            max-width: 80%;
            line-height: 1.5;
            text-align: center;
            box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5); /* Optional: subtle shadow */
            text-shadow: 1px 1px 2px white; /* White drop shadow for text */
        }

        /* Style for the loading box */
        #loadingPopup {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            background-color: rgba(0, 0, 0, 0.8); /* Semi-transparent black */
            color: white;
            text-align: center;
            font-size: 24px;
            padding: 10px 0;
            z-index: 1000; /* Ensure it appears on top of other elements */
            display: none; /* Initially hidden */
        }

        .copyright-notice {
            padding: 2px;
            background: #333;
            font-size: 24px;
            color: white;
            margin-top: auto;
            flex-shrink: 0;
            position: fixed;
            bottom: 0;
            width: 100%;
        }

        @media (min-width: 180px) {
            .li-button { flex: 1 1 calc(50% - 10px); } /* 2 divs per row */
        }

        @media (min-width: 300px) {
            .li-button { flex: 1 1 calc(33.33% - 10px); } /* 3 divs per row */
        }

        @media (min-width: 440px) {
            .li-button { flex: 1 1 calc(25% - 10px); } /* 4 divs per row */
        }

        @media (min-width: 590px) {
            .li-button { flex: 1 1 calc(20% - 10px); } /* 5 divs per row */
        }

        @media (min-width: 770px) {
            .li-button { flex: 1 1 calc(16% - 10px); } /* 6 divs per row */
        }

  .li-img img {
    width: 60px;
    height: 60px;
  }

    .biblecalendar-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 20px;
    }
    .biblecalendar-header h1 {
      margin: 0;
      font-size: 2em;
    }
    .biblecalendar-header button {
      padding: 5px 10px;
      font-size: 1em;
      cursor: pointer;
    }
    .biblecalendar {
      display: grid;
      grid-template-columns: repeat(7, 1fr);
      gap: 3px;
    }
    .weekday {
      font-weight: bold;
      text-align: center;
      background: #dee2e6;
      padding: 8px;
      border-radius: 8px;
    }
    .day {
      background: #fff;
      border-radius: 10px;
      box-shadow: 0 2px 6px rgba(0,0,0,0.1);
      transition: background 0.2s, box-shadow 0.2s;
      padding: 10px;
      min-height: 50px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
    }
    .day:hover {
      background: #e3f2fd;
      box-shadow: 0 2px 8px rgba(25, 118, 210, 0.15);
      cursor: pointer;
    }
    .day-small {
      background: #fff;
      border-radius: 10px;
      box-shadow: 0 2px 6px rgba(0,0,0,0.1);
      transition: background 0.2s, box-shadow 0.2s;
      padding: 2px;
      min-height: 50px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
    }
    .day-small:hover {
      background: #e3f2fd;
      box-shadow: 0 2px 8px rgba(25, 118, 210, 0.15);
      cursor: pointer;
    }
    .day-number {
      font-weight: bold;
      margin-bottom: 5px;
    }
    .todo-list {
      list-style: none;
      padding: 0;
      margin: 0;
      font-size: 0.9em;
    }
    .todo-list li {
      background: #e3f2fd;
      margin-bottom: 4px;
      padding: 4px 6px;
      border-radius: 5px;
    }
    .todo-list-small {
      list-style: none;
      padding: 0;
      margin: 0;
      font-size: 0.5em;
    }
    .todo-list-small li {
      background: #e3f2fd;
      margin-bottom: 2px;
      border-radius: 5px;
    }

