html {
    font-size: 16px;
    margin: 0px;
    padding: 0px;
    scroll-behavior: smooth;
    background-color: #05FF00;
    font-family: monospace;
    color: white;
    height: 100%; 
}

body {
    display: flex;
    flex-direction: column;
  
    justify-content: space-around;
    max-width: 100vw;
    height: 100%;
    margin: 0px;
    padding: 0px;

  
}

.latest-tracks {
    display: flex;
}
.track {
    cursor: pointer;
    margin: 10px;
}
.track-name {
    font-size: 8px;
    margin: 10px;
}

pre {
    all: unset;
    font-family: monospace;
    white-space: pre;
    display: block;
}

a {
    color: #05FF00;
}

.news-banner {
    width: 100%;
    max-width: 100vw;
    background-color: #000;
    color: #fff;
    overflow: hidden;
    white-space: nowrap;
    border-bottom: 2px solid #fff;
    font-family: monospace;
    font-size: 14px;
    padding: 5px 0;
    position: fixed;
    top: 0;
    z-index: 1000;
}

.player {
    width: 100%;
    max-width: 100vw;
    background-color: #000;
    color: #fff;
    overflow: hidden;
    white-space: nowrap;
    border-bottom: 2px solid #fff;
    font-family: monospace;
    font-size: 14px;
    padding: 5px 0;
    position: fixed;
    top: 30px;
    z-index: 1000;
}

.player-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px 10px;
}

button {
    background-color: transparent;
    border: #fff;
    color: white;
}

.active-btn {
    color: #D912FF;
    text-decoration: underline;
}

.online-stream {
    color: #05FF00;
}

.loading-stream {
    color: #FF5C11;
}

.offline-stream {
    color: #DB303D;
}

.news-scroll {
    padding: 0px 10px;
    display: inline-block;
    padding-left: 100%;
    animation: scroll-left 20s linear infinite;
}

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


.main-doc {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: transparent;
    margin-top: 60px;
    max-width: 100vw;
    flex: 1; 
}

.contact-container {
    font-size: 1.15rem;
    list-style: none;
}

.footer {
    display: flex;
    justify-content: space-around;
    font-size: 12px;
    color: purple;
    flex-wrap: wrap;
    padding: 4px;
    margin-top: auto; /* Added to push footer to bottom */
}

/* ✅ MEDIA QUERY FOR MOBILE */
@media screen and (max-width: 646px) {

    .footer {
        font-size: 8px;
        flex-direction: row;
        align-items: center;
        gap: 4px;
        text-align: center;
    }
}

/* Background Canvas */
#bgCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-color: #000;
}

.chat-box-container {
    position: fixed;
    top: 60px; 
    right: 0;
    width: 100%;
    max-width: 300px;
    background-color: #000;
    color: white;
    font-family: monospace;
    border-left: 2px solid #05FF00;
    border-bottom: 2px solid #05FF00;
    padding: 10px 10px;
    z-index: 999;

    overflow-y: auto;
}

.chat-box-title {
    font-size: 1rem;
    margin-bottom: 10px;
    border-bottom: 1px solid #05FF00;
    padding-bottom: 4px;
}

.messages-container {
    font-size: 0.9rem;
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 10px;
}

.message-form {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.message-form input,
.message-form textarea {
    background-color: #111;
    color: #05FF00;
    border: 1px solid #05FF00;
    font-family: monospace;
    font-size: 0.9rem;
    width: 100%;
    box-sizing: border-box;
}

.message-form button {
    background-color: transparent;
    border: 1px solid #D912FF;
    color: #D912FF;
    font-family: monospace;
    cursor: pointer;
    padding: 4px;
    font-size: 0.9rem;
}

.message-form button:hover {
    background-color: #D912FF;
    color: black;
}

@media screen and (max-width: 646px) {
      .chat-box-container {
        position: relative;
        width: 100vw; /* slightly less than full viewport */
        max-width: 100vw; /* enforce max width */
        box-sizing: border-box; /* include padding and borders in width */
        background-color: #000;
        color: white;
        font-family: monospace;
        border: 2px solid #05FF00;
        z-index: 999;
    }

    .chat-box-title {
     display: none;
    }
    
    .message-form {
        display: none;
    }

    .messages-container {
        display: none;
    }

    .chat-box-container::after {
        content: "🛈 live chat not on mobile";
        display: block;
        font-size: 0.9rem;
        color: #05FF00;
        margin-top: 10px;
        font-style: italic;
    }
}
