body {
    font-family: monospace;
    text-align: center;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background-color: #000;
    overflow: hidden;
}

html {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
}

.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.vignette {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-shadow: inset 0 0 150px rgba(0, 0, 0, 0.35);
    pointer-events: none;
    z-index: 1;
}

.background-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    animation: zoomEffect 35s ease-in-out infinite;
    opacity: 1;
    transition: opacity 1s ease;
}

.background-image.fade {
    opacity: 0;
}

@keyframes zoomEffect {
    0% { transform: scale(1); }
    50% { transform: scale(1.10); }
    100% { transform: scale(1); }
}

#connectionInfo {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-family: monospace;
    font-size: 14px;
    border: none;
    width: 30%;
    margin: auto;
    overflow-wrap: break-word;
    transition: transform 0.3s ease;
}

#connectionInfo.hidden {
    transform: translate(-50%, -75%);
}

#connInfoBG {
    background-color: #e0e0e0;
    border-radius: 4px;
    opacity: 80%;
    padding: 0.7em;
}

#title {
    color: #555;
    font-weight: bold;
    font-size: 18px;
}

#userCount {
    font-weight: bold;
    color: #555;
}

#output {
    color: #666;
}

#hideButton {
    padding: 0.2em;
}

#hideButton img {
    margin: 3px;
    padding: 7px;
    border-radius: 50%;
    transition: background-color 0.1s ease;
}

#hideButton img:hover {
    background-color: rgba(148, 148, 148, 0.5);
    cursor: pointer;
}

#infoBox {
    background-color: #e0e0e0;
    border-radius: 4px;
    opacity: 80%;
    color: #555;
    width: 28%;
    padding: 0.3em;
    font-size: 14px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    padding-left: 1em;
    padding-right: 1em;
}

#infoBox p {
    max-width: 470px;
    margin-left: auto;
    margin-right: auto;
}

#closeButton {
    text-decoration: underline;
    font-size: 12px;
}

#closeButton:hover {
    cursor: pointer;
    color: #222;
}

#footer {
    color: #555;
    line-height: 1em;
    font-size: 14px;
    position: fixed;
    bottom: 10px;
    width: 30%;
    text-align: center;
    background-color: #e0e0e0;
    opacity: 80%;
    border-radius: 4px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.3em;
    padding-bottom: 0.4em;
    transition: transform 0.3s ease;
}

#footer.hidden {
    transform: translate(-50%, 150%);
}

#footer p {
    margin: 2px 0px;
}

.footerButton:hover {
    text-decoration: underline;
    cursor: pointer;
    color: #222;
}

.footerButton.active {
    text-decoration: underline;
    color: #222;
}

#playPauseButton {
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

#playPauseButton:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

#playPauseButton:active {
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

#liveIndicator {
    display: none;
    color: #c0392b;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 1px;
}

#liveIndicator .liveDot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #c0392b;
    margin-right: 4px;
    vertical-align: middle;
    animation: livePulse 1.5s ease-in-out infinite;
}

@keyframes livePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

a, a:visited {
    color: indianred;
    text-decoration: none;
}

a:hover, a:visited:hover {
    color: brown;
    text-decoration: underline;
}

@media (max-width: 1200px) {
    #connectionInfo, #footer { width: 40%; }
    #infoBox { width: 38%; }
}

@media (max-width: 1000px) {
    #connectionInfo, #footer { width: 50%; }
    #infoBox { width: 48%; }
}

@media (max-width: 800px) {
    #connectionInfo, #footer { width: 60%; }
    #infoBox { width: 58%; }
}

@media (max-width: 600px) {
    #connectionInfo, #footer { width: 70%; }
    #infoBox { width: 68%; }
}

@media (max-width: 500px) {
    #connectionInfo, #footer { width: 80%; }
    #infoBox { width: 78%; }
}

@media (max-width: 400px) {
    #connectionInfo, #footer { width: 90%; }
    #infoBox { width: 88%; }
}
