/* --- GLOBAL STYLES --- */
body {
    background-color: black;
    color: #ff8c00;
    font-family: "Courier New", monospace;
    margin: 0;
    padding: 0; /* Changed to 0 since we're using absolute positioning */
    text-shadow: 0 0 5px #ff8c00;
    overflow: hidden; /* Keeps the focus on the UI boxes */
}

#content {
    position: relative;
    z-index: 10;
    width: 100vw;
    height: 100vh;
}

pre {
    font-size: 16px;
    line-height: 1.2;
    margin: 0;
}

/* --- LINKS --- */
a {
    color: #ff8c00;
    text-decoration: none;
}

a:hover {
    text-shadow: 0 0 10px #ff8c00;
}

/* --- ABSOLUTE UI BOXES --- */

/* Title Position */
.title {
    position: absolute;
    top: 5%;
    left: 12%;
    transform: translate(-50%, 0);
    z-index: 20;
}

/* Banner Box: Absolute position + original underline style */
.banner {
    position: absolute;
    top: 8%; /* Adjusted to align better with the title */
    left: 30%; 
    transform: translate(0, 0);
    
    background: #0F092F;
    background: linear-gradient(0deg, rgba(15, 9, 47, 1) 0%, rgba(15, 9, 47, 0.74) 35%, rgba(15, 9, 47, 0.49) 100%);
    
    border-bottom: 2px solid #ff8c00;
    padding-left: 20px;
    padding-bottom: 10px;
    z-index: 20;
    white-space: nowrap; /* Keeps links on one line */
}

.banner a {
    margin-right: 20px;
}

/* The Main Content Box (Middle) */
.main-text {
    font-size: 30;
    position: absolute;
    /*position: relative;
    top: 55%; 
    left: 50%;
    transform: translate(-50%, -50%);
    
    width: 80%;
    max-width: 1200px;
    
    /* Your Image Border Logic */
    border: 10px solid transparent; 
    border-image: url("border.png") 10 round; 
    
    background-color: rgba(15, 9, 47, 0.5);
    background-clip: padding-box; 
    padding: 20px;
    color: #ff8c00;
    
    /* Scrollbar if content gets too long */
    max-height: 70vh;
    overflow-y: auto;
    
    /* 1. Add Standard Scrollbar Styles Here */
    scrollbar-width: thin;
    scrollbar-color: #ff8c00 rgba(15, 9, 47, 0.5); /* Thumb | Track */
}

/* Generic Box (Small) */
.box {
  position: absolute;
  top: 50%; 
  left: 50%;
  transform: translate(-50%, -50%);
  
  border: 2px solid white;
  padding: 15px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
}

/* --- ANIMATIONS & UTILITIES --- */

.blink {
    animation: blink 1s steps(2, start) infinite;
}

@keyframes blink {
    0%, 50% { visibility: visible; }
    50.01%, 100% { visibility: hidden; }
}

.flash-red {
    background-color: red;
    color: white;
    border: 4px solid red;
    padding: 30px;
    width: 300px;
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: flash 0.8s infinite;
}

@keyframes flash {
    0% { background-color: red; color: white; }
    50% { background-color: black; color: red; }
    100% { background-color: red; color: white; }
}

/* --- BACKGROUND --- */
canvas {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}