* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Courier New', monospace;
    overflow: hidden;
    height: 100vh;
    background-color: #000;
    color: #0f0;
}

/* Background container */
#background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-image: url('https://via.placeholder.com/1920x1080/000000/333333?text=DESKTOP+THEATRE');
    background-size: cover;
    background-position: center;
    opacity: 0.3;
}

#background-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

/* ASCII Categories scattered across page */
#ascii-categories {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.ascii-category {
    position: absolute;
    font-size: 11px;
    line-height: 1.2;
    white-space: pre;
    color: #0f0;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 0 0 5px #0f0;
    padding: 10px;
    border: 1px solid transparent;
}

.ascii-category:hover {
    color: #fff;
    text-shadow: 0 0 10px #0ff, 0 0 20px #0ff;
    border: 1px solid #0ff;
    background-color: rgba(0, 255, 255, 0.1);
    transform: scale(1.05);
}

/* Floating signifiers */
#floating-signifiers {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.floating-signifier {
    position: absolute;
    font-size: 14px;
    color: #ff00ff;
    cursor: pointer;
    pointer-events: all;
    animation: float 3s ease-in-out infinite;
    text-shadow: 0 0 5px #ff00ff;
    padding: 5px 10px;
    border: 1px solid #ff00ff;
    background-color: rgba(0, 0, 0, 0.7);
    transition: all 0.3s ease;
}

.floating-signifier:hover {
    color: #fff;
    text-shadow: 0 0 10px #ff00ff, 0 0 20px #ff00ff;
    transform: scale(1.1);
    background-color: rgba(255, 0, 255, 0.2);
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0px) translateX(0px); 
    }
    25% { 
        transform: translateY(-15px) translateX(10px); 
    }
    50% { 
        transform: translateY(-5px) translateX(-10px); 
    }
    75% { 
        transform: translateY(-20px) translateX(5px); 
    }
}

/* Passage viewer */
#passage-viewer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    background-color: rgba(0, 0, 0, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

#passage-content {
    background-color: #000;
    border: 2px solid #0f0;
    padding: 30px;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 0 30px #0f0;
}

#passage-title {
    color: #0ff;
    font-size: 24px;
    margin-bottom: 20px;
    text-shadow: 0 0 10px #0ff;
    border-bottom: 2px solid #0ff;
    padding-bottom: 10px;
}

#passage-lines {
    color: #0f0;
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 14px;
}

.passage-line {
    margin-bottom: 10px;
    padding-left: 10px;
    border-left: 2px solid #0f0;
}

#more-btn, #back-btn {
    background-color: transparent;
    color: #0ff;
    border: 2px solid #0ff;
    padding: 10px 20px;
    margin: 10px 10px 10px 0;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    transition: all 0.3s ease;
    text-shadow: 0 0 5px #0ff;
}

#more-btn:hover, #back-btn:hover {
    background-color: #0ff;
    color: #000;
    box-shadow: 0 0 15px #0ff;
}

#related-concepts {
    margin-top: 30px;
    border-top: 2px solid #ff00ff;
    padding-top: 20px;
}

#related-concepts h3 {
    color: #ff00ff;
    margin-bottom: 15px;
    text-shadow: 0 0 10px #ff00ff;
}

#concepts-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.concept-tag {
    background-color: transparent;
    color: #ff00ff;
    border: 1px solid #ff00ff;
    padding: 5px 15px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
}

.concept-tag:hover {
    background-color: #ff00ff;
    color: #000;
    box-shadow: 0 0 10px #ff00ff;
}

/* Scrollbar styling */
#passage-content::-webkit-scrollbar {
    width: 10px;
}

#passage-content::-webkit-scrollbar-track {
    background: #000;
}

#passage-content::-webkit-scrollbar-thumb {
    background: #0f0;
    border: 1px solid #000;
}

#passage-content::-webkit-scrollbar-thumb:hover {
    background: #0ff;
}
