body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', Arial, sans-serif;
    background-color: #1a1f3b;
    color: rgb(12, 186, 255);
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

#generator-mode {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 90%;
    max-width: 500px;
    position: relative;
}

.logo {
    font-size: 2.5rem;
    font-weight: bold;
    color: #00d4ff;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.8);
    margin-bottom: 10px;
}

.key-display {
    background-color: #000000;
    border: 2px dashed #010202;
    border-radius: 5px;
    padding: 20px;
    margin: 20px 0;
    font-family: monospace;
    font-size: 2rem;
    word-break: break-all;
    letter-spacing: 3px;
}

.description {
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 20px;
    background: linear-gradient(90deg, rgba(0, 212, 255, 0.1), rgba(255, 255, 255, 0.1));
    padding: 10px 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.link-part1 {
    color: #000000;
    font-weight: bold;
}

.link-part2 {
    color: #ffffff;
    font-weight: bold;
}

.btn {
    background-color: #1896af;
    color: #0a0f2b;
    border: none;
    padding: 12px 20px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    margin: 5px 0;
    width: 100%;
}

.btn-view {
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.8);
    margin-bottom: 10px;
}

#player-mode {
    display: none;
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    margin: 0;
    padding: 0;
    background-color: #000;
}

#media-display {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin: 0;
    padding: 0;
    background-color: #000;
}

#media-display img,
#media-display video,
#media-display iframe {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: absolute;
    top: 0;
    left: 0;
}

.text-content {
    font-size: 24px;
    padding: 20px;
    max-width: 90%;
    word-wrap: break-word;
    text-align: center;
    position: relative;
    z-index: 1;
}

.media-info {
    display: none;
}

.connection-status {
    display: none;
}

.connection-status.offline-cached {
    color: #55ff55;
    font-weight: bold;
}

.fullscreen-mode {
    cursor: none;
}

.exit-button {
    position: fixed;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.7);
    color: rgb(7, 255, 19);
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s;
}

.back-button {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.9);
    color: #ffffff;
    border: 4px solid #00ffcc; /* Neon cyan border */
    box-shadow: 
        0 0 30px #00ffcc, 
        0 0 60px #00ffcc, 
        0 0 90px #00ffcc, 
        0 0 120px #00ffcc, 
        inset 0 0 20px #00ffcc; /* Enhanced neon glow with inner shadow */
    padding: 25px 50px;
    border-radius: 15px;
    cursor: pointer;
    z-index: 1001;
    font-size: 2.5rem; /* Larger text */
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 4px;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
    pointer-events: auto;
    animation: neonPulse 1.5s infinite alternate; /* Pulsing animation */
}

@keyframes neonPulse {
    from {
        box-shadow: 
            0 0 30px #00ffcc, 
            0 0 60px #00ffcc, 
            0 0 90px #00ffcc, 
            0 0 120px #00ffcc, 
            inset 0 0 20px #00ffcc;
    }
    to {
        box-shadow: 
            0 0 50px #00ffcc, 
            0 0 80px #00ffcc, 
            0 0 110px #00ffcc, 
            0 0 150px #00ffcc, 
            inset 0 0 30px #00ffcc;
    }
}

.back-button:hover {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 
        0 0 60px #00ffcc, 
        0 0 90px #00ffcc, 
        0 0 120px #00ffcc, 
        0 0 180px #00ffcc, 
        inset 0 0 40px #00ffcc;
}