body {
    margin: 0;
    background: #fff;
    color: #000;
    font-family: 'Helvetica-lokal', sans-serif;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    width: 100%;
    box-sizing: border-box;
}

@font-face {
  font-family: 'Helvetica-lokal';
  src: url('assets/Helvetica.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}


::selection {
    color: black;
    background: red;

}

.main-content {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    width: 100%;
    position: relative;
    padding-bottom: 60px;
    padding-top: 60px;
}

.live-banner {
    position: fixed;
    top: 0;
    height: 80px;
    background: white;
    overflow: hidden;
    display: none; 
    width: 100vw;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
}

.live-banner.show {
    display: block;
}

.marquee {
    display: flex;
    white-space: nowrap;
    will-change: transform;
    overflow: hidden;
    width: 100%;
}

.marquee-content {
    display: flex;
    gap: 20px;
    animation: marquee 20s linear infinite;
}

.marquee-text {
    height: 80px;
    width: 300px;
    flex-shrink: 0;
}

.live-banner.show .marquee {
    opacity: 1;
}

.banner-text {
    fill: red;
    font-family: 'Helvetica-lokal', sans-serif;
    font-weight: 700;
    font-size: 48px;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}


.player-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 50vh;
    position: relative;
    width: 220px;
    margin: 20px auto;
}

#airtime-player-container {
    position: relative;
    width: 220px;
    height: 220px;
    border-radius: 10%;
    border: #5b5b5b 4px solid;
    border-top: #aaa 4px solid;
    margin: 0 auto;
    overflow: hidden !important;
    background: #aaa;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.logo-container {
    width: 100%;
    max-width: 900px;
    height: auto;
    display: flex;
    justify-content: center;
    margin: 0 auto 0 auto;  
    position: relative;
}

.logo-img {
    width: 100%;
    height: auto;
    display: block;
    max-width: 900px;
    opacity: 0;
    pointer-events: none;
}
    .logo-dark {
        display: none;
    }
    .logo-light {
        display: block;
    }

.logo-fill {
    position: absolute;
    inset: 0;
    background-image: url('https://opendata.dwd.de/weather/webcam/Offenbach-W/Offenbach-W_latest_full.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    -webkit-mask-image: var(--logo-mask-image, url('/assets/logofinalb.png'));
    mask-image: var(--logo-mask-image, url('/assets/logofinalb.png'));
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    z-index: 1;
    pointer-events: none;
    transition: transform 0.3s ease;
}

.logo-container.scaled .logo-fill {
    transform: scale(0.9);
}

#airtime-player-container:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0,0,0,0.4);
}

#airtime-widget {
    position: absolute;
    top: 200px; 
    left: 295px;
    width: 340px; 
    height: 340px;
    transform: scale(3);
    transform-origin: center center;
    pointer-events: all;
}

.headphone-background {
    width: 100vw;
    position: absolute;
    top: 460px;
    left: 0;
    z-index: -1;
    display: flex;
    justify-content: center;
    pointer-events: none;
    overflow: hidden;
}

.headphone-background img {
    width: 36vw;
    height: auto;
    display: block;
    object-fit: 100%;
    user-select: none;
    pointer-events: none;
}

.toggle-header {
    margin-bottom: 40px;
    padding: 20px;
    background: none;
    border: none;
    color: inherit;
    text-decoration: underline;
    cursor: pointer;
    width: 300px;
    height: 80px;
    margin: 20px auto;
}

.header-text {
    width: 100%;
    height: 100%;
}

.shows-container {
    display: none;
    width: 100%;
}

.shows-container.show {
    display: block;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}


footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 0;
  letter-spacing: 1;
  font-family: 'Helvetica-lokal', sans-serif;
  text-align: center;
  position: relative;
  background: none;
  box-sizing: border-box;
}

.footer a {
  color: inherit;
  text-decoration: underline;
}

.footer-details {
  position: relative;
  text-align: right;
}

.footer-summary {
  cursor: pointer;
  display: inline-block;
  text-decoration: none;
  outline: none;
  position: relative;
  padding-right: 10px;
  line-height: 1;
}

.footer-summary::before {
  content: "▶︎";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  transition: transform 0.2s ease;
}

.footer-details[open] .footer-summary::before {
  transform: translateY(-50%) rotate(90deg);
}

.footer-info {
  color: inherit;
  margin-top: 10px;
  text-align: right;
}

.footer-info a {
  color: inherit;
  text-decoration: none;
}

details {
  -webkit-appearance: none;
  appearance: none;
}

details summary::-webkit-details-marker,
details summary::marker {
  display: none;
}


body::-webkit-scrollbar {
    display: none;
}

body::-webkit-scrollbar-thumb {
    display: none;
}

.chat-banner {
    width: 100%;
    max-width: 900px;
    margin: 40px auto 0 auto;
    background: #111;
    border-top: 2px solid #00ff00;
    border-bottom: 2px solid #00ff00;
    box-sizing: border-box;
    text-align: center;
}

.chat-banner svg {
  display: block;
}

.chat-wrapper {
    width: 100%;
    max-width: 900px;
    margin: 0 auto 40px auto;
    background: #111;
    border-bottom: 2px solid #00ff00;
    box-sizing: border-box;
    min-height: 400px;
    display: block;
    overflow: hidden;
}

.chat-section {
    gap: 0;
    width: 100%;
}

.mobile-chat-button {
    display: none;
}

.track-info-container {
    width: 100%;
    max-width: 940px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.current-show-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
}

.show-info {
    display: flex;
    align-items: center;
    gap: 0;
    width: 100%;
}

.show-title-svg {
    width: 100%;
    height: 40px;
    flex-grow: 1;
}

.show-image {
    width: 40px;
    height: 40px;
    object-fit: cover;
    flex-shrink: 0;
}

.now-playing-banner, .next-up-banner {
    width: 100%;
    height: 60px;
    overflow: hidden;
    box-sizing: border-box;
}

.now-playing-banner, .next-up-banner {
    width: 100%;
    height: 60px;
    overflow: hidden;
    margin: 5px 0;
    box-sizing: border-box;
}

.track-info {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    width: 100%;
    box-sizing: border-box;
    gap: 10px;
}

.label-text {
    width: 120px;
    height: 60px;
}

.clock-section {
    width: 400px;
    height: 40px;
    margin: 20px auto;
}

.clock-text {
    width: 100%;
    height: 100%;
}

#clockText {
    font-family: 'Helvetica-lokal', sans-serif;
    font-weight: 700;
}

.location {
   font-size: 16px;
   margin-top: 0;
    margin-bottom: 0;
}

.calendar-section {
    margin: 20px 0;
}


.title-section {
    width: 100%;
    overflow: hidden;
    padding: 0;
    box-sizing: border-box;
}

.title-section .title {
    width: 100% !important;
    margin: 0 !important;
    padding-left: 10px;
    padding-right: 10px;
    box-sizing: border-box;
}

.calendar-time {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    margin-bottom: 10px;
}

.calendar-container {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    width: 100%;
}

.calendar-container.show {
    max-height: none;
}

.calendar-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 20px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    justify-items: center;
}

.calendar-item {
    position: relative;
    width: 100%;
    max-width: 280px;
    aspect-ratio: 1;
    perspective: 1000px;
    cursor: pointer;
    margin-bottom: 20px;
}

.calendar-item .show-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.6s;
}

.calendar-item .show-front,
.calendar-item .show-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    background: #fff;
    padding: 15px;
    box-sizing: border-box;
}

.calendar-item .show-back {
    transform: rotateY(180deg);
    overflow: hidden;
}

.calendar-item .show-back iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.calendar-time {
    text-align: center;
    margin-bottom: 15px;
}

.calendar-time .day {
    display: block;
    font-weight: bold;
    color: #000000;
    font-size: 1.2em;
    margin-bottom: 5px;
}

.calendar-time .time {
    display: block;
    font-size: 1.1em;
}

.calendar-details {
    text-align: left;
    padding: 10px 0;
}

.calendar-details h3 {
    margin: 0 0 10px 0;
    font-size: 1.1em;
}

.calendar-details p {
    margin: 0;
    font-size: 0.9em;
    line-height: 1.4;
}

.back-button {
    position: absolute;
    top: 10px;
    left: 10px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    transform: rotate(0deg);
    transition: transform 0.3s ease;
}

.back-button::before {
    content: "↩";
    font-size: 28px;
}

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


.offline-notification {
    position: fixed;
    left: 50%;
    top: 0;
    display: none;
    transform: translate(-50%, -120%);
    background: rgba(53, 53, 53, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: #5b5b5b 4px solid;
    border-top: #aaa 4px solid;
    padding: 16px 20px;
    border-radius: 14px;
    margin: 10px 0 0 0;
    z-index: 1000;
    color: #c1c1c1;
    width: auto;
    max-width: 90%;
    cursor: pointer;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    visibility: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    text-align: center;
}

.offline-notification.show {
    transform: translate(-50%, 30px);
    opacity: 1;
    visibility: visible;
}

.offline-notification.hide {
    transform: translate(-50%, -120%);
    opacity: 0;
    visibility: hidden;
}

.notification-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.notification-text {
    font-size: 16px;
    font-weight: 300;
}

.notification-arrow {
    font-size: 20px;
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Mobile styles */
@media (max-width: 768px) {

    .logo-img {
    max-width: 80%;
}

.player-container {
    margin: 0 auto;
}

    .toggle-header {
    font-size: 26px;
    margin-bottom: 40px;
    border-radius: 10px;
    padding: 20px;
    background: none;
    border: none;
    color: inherit;
    text-decoration: underline;
    cursor: pointer;
    width: 200px;
    height: 60px;
}

.live-banner {
    height: 60px;
    }
    
    .marquee-text text {
        transform: scaleX(0.8); 
    }

.location {
   font-size: 12px;
}

.headphone-background {
    top: 480px;
}

.headphone-background img {
    width: 140vw;
    object-fit: 100%;
}

    .chat-wrapper {
        display: none !important;
    }

.chat-banner {
    display: none !important;
}

    .mobile-chat-button {
        display: block;
        position: fixed;
        bottom: 10px;
        right: 10px;
        width: 140px;
        height: 60px;
        cursor: pointer;
        z-index: 1001;
    }

    .track-info-container {
        padding: 10px;
        max-width: 95%;
    }

    .show-image {
    width: 30px;
    height: 30px;
}

    .title-section {
        width: 100%;
        padding: 0;
        margin: 0;
    }

    .title-section .title {
        width: 100% !important;
        margin: 0 !important;
        box-sizing: border-box;
    }

    .track-info {
        width: 100%;
        box-sizing: border-box;
        padding: 0 5px;
    }


    .clock-section {
        width: 200px;
        height: 20px;
    }


    .calendar-content {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 10px;
    }

    .calendar-item {
        max-width: 300px;
        margin: 0 auto;
    }

    .calendar-content {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 10px;
    }


    .calendar-item {
        max-width: 280px;
        margin: 0 auto;
    }

    .shows-container.show {
        padding: 10px;
        max-width: 90%;
    }
    .track-info-container {
        padding: 5px;
        max-width: 100%;
    }

    .main-content {
        padding-bottom: 120px;
    }

    .notification-text {
        font-size: 12px;
    }

.notification-arrow {
    font-size: 14px;
    animation: none;
}

    .calendar-content {
        gap: 10px;
        padding: 10px;
    }

    .calendar-item {
        max-width: 280px;
    }

    footer {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
    gap: 10px;
    padding: 60px 20px;
  }

  .footer-details {
    text-align: right;
  }
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
    body {
        background: #000;
        color: #fff;
    }

    .logo-fill {
        -webkit-mask-image: url('/assets/logofinalw.png');
        mask-image: url('/assets/logofinalw.png');
    }

    ::selection {
    color: white;
    background: red;
    }
    
    .live-banner {
    background: black;
    }

            .logo-light {
            display: none;
        }
        .logo-dark {
            display: block;
        }
    
    .clock-text {
        fill: #fff !important;
    }
    .title-text {
        fill: #fff !important;
    }

    #currentShowTitle {
        fill: #fff !important;
    }

    .play-button {
        background: #444;
        color: #fff;
    }
    .now-playing-banner text, .next-up-banner text {
        fill: #fff !important;
    }
    .toggle-header svg text {
        fill: white;
    }
    .label-text text, .marquee-text:not(.live-banner .marquee-text) text {
        fill: white;
    }
    .footer {
        background: #000; /* Dark mode background */
    }
    
    .calendar-time .day {
        color: #ffffff;
    }

    .back-button {
        color: #fff;
    }
    
    .calendar-item .show-front,
    .calendar-item .show-back {
        background: #000;
    }
}
