@import url('https://fonts.googleapis.com/css2?family=Courier+Prime&display=swap');

body{
  background:#050505;
  color:#eaeaea;
  font-family:'Courier New', monospace;
  margin:0;

  background-image:url("../img/bg.png");
  background-repeat:repeat;
  background-size:180px;

  animation:
    scrollBG 60s linear infinite,
    flicker 0.15s infinite;
}

/* CRT / VHS FILTER */
body::before{
  content:"";
  position:fixed;
  top:0;
  left:0;
  width:100%;
  height:100%;
  pointer-events:none;
  z-index:99999;

  background:

    repeating-linear-gradient(
      to bottom,
      rgba(255,255,255,0.03) 0px,
      rgba(255,255,255,0.03) 1px,
      transparent 2px,
      transparent 4px
    ),

    linear-gradient(
      rgba(0,0,0,0.15),
      rgba(0,0,0,0.3)
    );

  mix-blend-mode:screen;
}

.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;

  text-shadow:
    0 0 3px #ff0000,
    0 0 6px #ff0000,
    0 0 12px rgba(255, 0, 0, 0.6);
}

h2{
  margin-top:13px;
  margin-bottom:8px;
  font-size:18px;
  color:#ff1a1a;
  text-align:center;
}

h3{
  text-align:center;
  font-size:32px;
  margin:6px 0;
  color:#ff2a2a;
  letter-spacing:2px;

  text-shadow:
    0 0 3px #ff0000,
    0 0 6px #ff0000,
    0 0 12px rgba(255, 0, 0, 0.6);
}

hr{
  border:0;
  border-top:1px solid #3a0000;
  margin:10px 0;
}

.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{
  font-family:'Courier Prime', monospace;
}

.text p{
  font-size:12px;
  line-height:1.6;
}

.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;
  transition:all 0.2s ease;
}

.nav-btn:hover{
  background:#1f0000;
  transform:scale(1.02);
  box-shadow:0 0 10px rgba(255,0,0,0.4);
}

.news-box{
  background:#000000;
  border:1px solid #5a0000;
  overflow:hidden;
  white-space:nowrap;
  position:relative;
}

.news-text{
  display:inline-block;
  color:#ffffff;
  padding:10px 0;
  padding-left:100%;
  animation:scrollNews 12s linear infinite;
}

@keyframes scrollNews{
  from{
    transform:translateX(-100%);
  }
  to{
    transform:translateX(0);
  }
}

.i-header{
  text-align:center;
  padding:20px;
  border:1px solid #5a0000;
  margin-bottom:15px;
}

.i-logo{
  width:80px;
  margin-bottom:10px;
}

footer{
  margin-top:18px;
  font-size:11px;
  text-align:center;
  color:#8a8a8a;
  font-family:'Courier Prime', monospace;
}

@keyframes scrollBG{
  from{
    background-position:0 0;
  }
  to{
    background-position:0 1000px;
  }
}

@keyframes flicker{
  0%{ opacity:0.98; }
  50%{ opacity:1; }
  100%{ opacity:0.99; }
}

.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;
  transition:all 0.2s ease;
  cursor:pointer;
  user-select:none;
  font-family:'Courier New', monospace;
}

.return-btn:hover{
  background:#1f0000;
  transform:scale(1.02);
  box-shadow:0 0 10px rgba(255,0,0,0.4);
}

.entity-container{
  display:flex;
  gap:30px;
}

.entity-main{
  flex:3;
}

.entity-sidebar{
  flex:1;
}

.ad-card{
  border:1px solid #5a0000;
  padding:15px;
  background:#0f0000;
  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;
}

.profile-card{
  border:1px solid #5a0000;
  padding:15px;
  background:#0f0000;
}

.profile-card h2{
 margin:5px auto;
}

.profile-card img{
  width:100%;
  max-width:260px;
  height:auto;
  display:block;
  margin:3px auto;
  border:3px solid #5a0000;
}

.caption{
  font-size:12px;
  text-align:center;
  opacity:0.7;
  margin-bottom:5px;
  color:#999;
  font-family:'Courier Prime', monospace;
}

.loading{
  color:#ff1a1a;
  font-style:italic;
  text-align:center;
  margin-top:5px;
}

.search-wrapper{
  display:flex;
  gap:10px;
  align-items:center;
}

.search-wrapper .search-bar{
  flex:1;
  margin:10px 0;
}

.search-bar{
  width:calc(100% - 20px);
  padding:12px;
  background:#111;
  border:1px solid #5a0000;
  color:#ff1a1a;
  font-family:'Courier New', monospace;
  font-size:14px;
  box-sizing:border-box;
  display:block;
  margin:10px auto;
}

.search-bar::placeholder{
  color:#ff1a1a;
  opacity:1;
}

.random-btn{
  width:42px;
  height:42px;

  border:1px solid #5a0000;
  background:#140000;
  color:#ff2a2a;

  font-family:'Courier New', monospace;
  font-size:18px;
  font-weight:bold;

  cursor:pointer;

  transition:all 0.2s ease;
}

.random-btn:hover{
  background:#1f0000;
  transform:scale(1.03);
  box-shadow:0 0 10px rgba(255,0,0,0.4);
}

.entity-item{
  display:block;
  width:calc(100% - 20px);
  padding:12px;
  margin:0 auto 10px auto;
  border:1px solid #5a0000;
  background:#0f0f0f;
  color:#eaeaea;
  text-decoration:none;
  font-size:14px;
  transition:all 0.2s ease;
}

.entity-item:hover{
  background:#1a0000;
  box-shadow:0 0 10px rgba(255,0,0,0.4);
  transform:scale(1.01);
}

.levels-grid{
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  gap:14px;
  margin-top:20px;
}

.level-card{
  border:1px solid #4a0000;
  background:#050505;

  padding:18px 20px;

  transition:border-color 0.2s ease;
}

.level-card h3{
  margin:0 0 14px 0;
  
  color:#ff3300;
  font-size:15px;
  text-align:center;

  letter-spacing:1px;

  text-shadow:
    0 0 3px #ff0000,
    0 0 6px rgba(255,0,0,0.5);
}

.level-card p{
  margin:0;

  font-size:12px;
  line-height:1.6;

  color:#d0d0d0;

  font-family:'Courier Prime', monospace;
}

button.nav-btn{
  font-family:'Courier New', monospace;
  font-size:13px;
  font-weight:bold;

  appearance:none;
}