body{
  background:#050505;
  color:#eaeaea;
  font-family:'Courier Prime', monospace;
  margin:0;

  background-image:url("../img/bg.png"); 
  background-repeat:repeat;
  background-size:300px;
  animation:scrollBG 60s linear infinite;
}

.container{
    width:90%;
    max-width:1100px;
    margin:40px auto;
    padding:25px;
    background:#0b0b0b;
    border:1px solid #3a0000;
    box-shadow:0 0 18px rgba(255,0,0,0.15);
}
 
h1{
    text-align:center;
    font-size:26px;
    margin:6px 0;
    color:#ff2a2a;
}
 
h2{
    margin-top:18px;
    margin-bottom:8px;
    font-size:18px;
    color:#ff1a1a;
    text-align:center;
}
 
hr{
    border:0;
    border-top:1px solid #3a0000;
    margin:10px 0 10px 0;
}
 
.breadcrumb{
    font-size:11px;
    color:#888;
    margin-bottom:4px;
    text-align:center;
}
 
.quote{ 
  background:#1a1a1a; 
  padding:6px 10px; 
  display:block; 
  width:fit-content; 
  margin:0 auto 16px auto; 
  text-align:center; 
  font-style:italic; 
  font-size:12px; 
}
 
.text p{
    font-size:13px;
    line-height:1.6;
}
 
.loading{
    color:#ff2a2a;
    font-style:italic;
    text-align:center;
}
 
.nav-buttons{
    display:flex;
    gap:14px;
    margin-top:10px;
}
 
.nav-btn{
    flex:1;
    text-align:center;
    padding:10px;
    border:1px solid #5a0000;
    background:#140000;
    color:#ff2a2a;
    text-decoration:none;
    font-size:13px;
    cursor:pointer;
    font-weight:bold;
}
 
.nav-btn:hover{
    background:#1f0000;
}
 
footer{
    margin-top:30px;
    font-size:11px;
    text-align:center;
    color:#8a8a8a;
}
 
.return-btn{
    display:inline-block;
    width:60%;
    padding:10px;
    border:1px solid #5a0000;
    background:#140000;
    color:#ff2a2a;
    text-decoration:none;
    font-size:13px;
    font-weight:bold;
    text-align:center;
}
 
.return-btn:hover{
    background:#1f0000;
}
 
.entity-container {
  display: flex;
  gap: 30px;
}
 
.entity-main {
  flex: 3;
}
 
.entity-sidebar {
  flex: 1;
}
 
.entity-main h2 {
  border-bottom: 1px solid #3a3a3a;
  padding-bottom: 8px;
  margin-bottom: 15px;
}
 
blockquote {
  background: #111111;
  border-left: 2px solid #3a3a3a;
  padding: 10px 15px;
  font-style: italic;
  margin-bottom: 20px;
}
 
.profile-card {
  border: 1px solid #5a0000;
  padding: 15px;
  background: #0f0000;
}
 
.profile-card h4 {
  text-align: center;
  margin-bottom: 10px;
  font-size: 14px;
  letter-spacing: 1px;
}
 
.profile-card img{
    width:100%;
    max-width:260px;
    height:auto;
    display:block;
    margin:10px auto;
    border:3px solid #5a0000;
}
 
.caption {
  font-size: 12px;
  text-align: center;
  opacity: 0.7;
  margin-bottom: 15px;
  color:#999;
}
 
.profile-table{
    text-align:center;
}
 
.profile-table div {
  display: flex;
  justify-content: center;
  border-top: 1px solid #3a3a3a;
  padding: 6px 0;
  font-size: 13px;
  text-align: center;
}
 
.profile-table span{
  color:#ffffff;
  cursor:pointer;
  display:block;
  padding:4px 0;
  transition:all 0.2s ease;
}
 
.profile-table span:hover{
  text-decoration:underline;
  opacity:0.8;
}
 
.profile-table span:active{
  transform:scale(0.95);
}
 
.ad-card {
  border: 1px solid #5a0000;
  padding: 15px;
  background: #0f0000;
  font-family:'Courier Prime', monospace;
  color:#ff1a1a;
  font-size:13px;
  line-height:1.6;
}
 
#entityImage{
  cursor:pointer;
}
 
#imageOverlay{
  position:fixed;
  top:0;
  left:0;
  width:100%;
  height:100%;
  background:rgba(0,0,0,0.85);
  display:flex;
  justify-content:center;
  align-items:center;
  flex-direction:column;
  opacity:0;
  visibility:hidden;
  transition:opacity 0.4s ease, visibility 0.4s ease;
  z-index:9999;
}
 
#imageOverlay.active{
  opacity:1;
  visibility:visible;
}
 
#fullImage{
  max-width:85%;
  max-height:75%;
  transform:scale(0.95);
  transition:transform 0.4s ease;
  border:3px solid #5a0000;
}
 
#imageOverlay.active #fullImage{
  transform:scale(1);
}
 
#closeOverlay{
  cursor:pointer;
}

#imageOverlay .return-btn{
    width:auto;
    min-width:0;
    padding:10px 25px;
}

/* GRID */
.anomaly-grid{
  display:grid;
  grid-template-columns:repeat(5, 120px);
  justify-content:center;
  gap:15px;
}

.anomaly-grid img{
  width:120px;
  height:120px;
  object-fit:cover;
  border:3px solid #5a0000;
  display:block;
  transition:all 0.2s ease;
  cursor:pointer;
}

.anomaly-grid img:hover{
  transform:scale(1.05);
  box-shadow:0 0 10px rgba(255,0,0,0.4);
}

.anomaly-grid p{
  text-align:center;
  font-size:12px;
  margin-top:5px;
}

.anomaly-grid a{
  display:block;
}

/* CATALOGUE LAYOUT */
.ca-layout{
  display:flex;
  gap:30px;
  align-items:stretch;
}

.ca-layout .entity-sidebar{
  display:flex;
}

.ca-layout .entity-sidebar .profile-card{
  flex:1;
}

/* HEADER */
.i-header{
  text-align:center;
  padding:20px;
  border:1px solid #5a0000;
  margin-bottom:15px;
}

.i-logo{
  width:80px;
  margin-bottom:10px;
}

.i-title{
  font-size:32px;
  color:#ffffff;
  letter-spacing:2px;
}

.i-sub{
  color:#00e5ff;
  font-size:12px;
}

/* NAV */
.i-nav{
  display:flex;
  justify-content:center;
  gap:10px;
  margin-bottom:15px;
  flex:1;
}

.i-nav a:hover{
  background:#140000;
}

.i-layout{
  display:flex;
  gap:20px;
}

.i-sidebar{
  width:250px;
}

.i-box{
  border:1px solid #5a0000;
  padding:10px;
  margin-bottom:15px;
  background:#0f0000;
  font-size:12px;
}

.i-main{
  flex:1;
}

.i-image{
  width:100%;
  max-width:100px;
  display:block;
  margin:10px auto;
  border:2px solid #5a0000;
}

.profile-table span.active{
  color:#ff2a2a;
  text-decoration:underline;
  font-weight:bold;
}

.i-box .return-btn{
  background:#1a0000;
  border:1px solid #ff2a2a;
  color:#ff2a2a;
}

.nav-btn,
.return-btn{
  transition:all 0.2s ease;
}

.nav-btn:hover,
.return-btn:hover{
  transform:scale(1.05);
  box-shadow:0 0 10px rgba(255,0,0,0.4);
}

.nav-separator{
  border-top:1px solid #5a0000;
  margin:12px 0;
}

.ad-card h2{
    margin-top:0;
}

.fixed-ad-card{
  min-height: 250px; 
  display:flex;
  align-items:flex-start;
}

.dual-box{
  display:flex;
  gap:15px;
  width:100%;
}

.dual-item{
  width:50%;
  box-sizing:border-box;
}

.clickable{
  cursor:pointer;
}

.clickable:hover{
  background:#1f0000;
  transform:scale(1.05);
  box-shadow:0 0 10px rgba(255,0,0,0.4);
}

.clickable:active{
  transform:scale(0.95);
}

@keyframes scrollBG{
  from{
    background-position:0 0;
  }
  to{
    background-position:0 1000px;
  }
}