﻿body, html {
    width: 100vw;
    height: 100vh;
    margin: 0;
    padding: 0;
    background: #000;
    font-family: 'Gotham', 'Segoe UI', Arial, sans-serif;
}

/* Shared background for all main containers */
#loading-screen, #player, #registration-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: #000 no-repeat center center;
    background-size: cover;
}

/* Player background is solid black (#000) defined in shared styles above */

#loading-screen {
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 1;
    transition: opacity 0.5s;
}

#loading-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.branding {
    font-size: 2rem;
    margin-bottom: 2rem;
    letter-spacing: 1px;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 6px solid #333;
    border-top: 6px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

#player {
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.1s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

#registration-overlay {
    color: #fff;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

#registration-overlay.hidden {
    display: none;
}

.reg-content {
    background: #222;
    padding: 2rem 3rem;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
    text-align: center;
}

#reg-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    display: block;
}

#reg-code {
    font-size: 2rem;
    font-weight: bold;
    letter-spacing: 2px;
}

/* Gotham Font Faces */
@font-face {
    font-family: 'Gotham';
    src: url('../fonts/Gotham-Light.woff') format('woff'),
         url('../fonts/Gotham-Light-Regular.otf') format('opentype'),
         url('../fonts/Gotham-Book.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}
@font-face {
    font-family: 'Gotham';
    src: url('../fonts/Gotham-Book.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}


.network-status-icon-online {
    width: 8px;
    height: 8px;
    background-color: green;
    border-radius: 50%;
    display: inline-block;
}

.network-status-icon-offline {
    width: 8px;
    height: 8px;
    background-color: red;
    border-radius: 50%;
    display: inline-block;
}

.network-indicator {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1000;
}

@keyframes flickerAnimation {
  0%   { opacity:1; }
  50%  { opacity:0; }
  100% { opacity:1; }
}
@-o-keyframes flickerAnimation{
  0%   { opacity:1; }
  50%  { opacity:0; }
  100% { opacity:1; }
}
@-moz-keyframes flickerAnimation{
  0%   { opacity:1; }
  50%  { opacity:0; }
  100% { opacity:1; }
}
@-webkit-keyframes flickerAnimation{
  0%   { opacity:1; }
  50%  { opacity:0; }
  100% { opacity:1; }
}

.animate-flicker {
    -webkit-animation: flickerAnimation 1s infinite;
    -moz-animation: flickerAnimation 1s infinite;
    -o-animation: flickerAnimation 1s infinite;
    animation: flickerAnimation 1s infinite;
}