@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:#ff4a2a;

  text-shadow:
    0 0 10px #ff2200,
    0 0 20px #ff2200,
    0 0 40px #ff2200,
    0 0 80px rgba(255,50,0,0.9),
    0 0 120px rgba(255,50,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:#ff4a2a;
  letter-spacing:2px;

  text-shadow:
    0 0 8px #ff2200,
    0 0 16px #ff2200,
    0 0 32px #ff2200,
    0 0 64px rgba(255,50,0,0.8),
    0 0 96px rgba(255,50,0,0.5);
}

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;

  position:relative;

  display:flex;
  justify-content:center;
  align-items:center;

  padding:10px 15px;

  text-align:center;
}

.news-text{
  color:#ffffff;

  font-family:'Courier New', monospace;
  font-size:13px;
  letter-spacing:1px;
}

@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;
  margin:0;
  font-size:12px;
  line-height:1.6;
  font-family:'Courier Prime', monospace;
  color:#ff1a1a;
}

#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-family:'Courier Prime', monospace;
  text-align:center;
  margin-top:5px;
}

.search-wrapper{
  display:flex;
  gap:10px;
  align-items:center;
}

.search-wrapper .search-bar{
  flex:1;
  margin:1px 0;
}

.search-bar{
  width:calc(100% - 20px);
  padding:12px;
  background:#000000;
  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:#000000;
  color:#ff1a1a;

  font-family:'Courier New', monospace;
  font-size:24px;
  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:flex;
  justify-content:space-between;
  align-items:center;
  position:relative;
  width:calc(100% - 25px);
  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);
}

.entry-icons{
  position:absolute;
  right:12px;
  top:50%;
  transform:translateY(-50%);

  display:flex;
  gap:6px;
}

.entry-icon{
  width:32px;
  height:32px;

  border:1px solid #5a0000;
  background:#0a0a0a;

  position:relative;
  overflow:visible;
}

.entry-icon img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.entry-tooltip{
  position:absolute;

  top:50%;
  right:40px;

  transform:translateY(-50%);

  background:#111;
  border:1px solid #5a0000;

  padding:6px 10px;

  color:#eaeaea;
  font-size:12px;

  white-space:nowrap;

  opacity:0;
  pointer-events:none;

  transition:opacity 0.15s ease;

  z-index:100;
}

.entry-icon:hover .entry-tooltip{
  opacity:1;
}

.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;
  text-align:center;
  font-size:12px;
  line-height:1.6;

  color:#d0d0d0;

  font-family:'Courier Prime', monospace;
}

button.nav-btn{
  font-family:'Courier Prime', monospace;
  font-size:13px;
  font-weight:bold;

  appearance:none;
}

.container{
  animation: crtText 0.08s infinite;
}

.i-logo{
  animation:
    logoFlicker 0.12s infinite,
    logoShift 4s infinite alternate;
}

h2, p, a, button{
  text-shadow:
    0.5px 0 rgba(255,0,0,0.35),
   -0.5px 0 rgba(0,180,255,0.25);
}

@keyframes crtText{
  0%{
    transform:translate(0px, 0px);
  }

  20%{
    transform:translate(0.2px, -0.2px);
  }

  40%{
    transform:translate(-0.2px, 0.2px);
  }

  60%{
    transform:translate(0.15px, 0px);
  }

  80%{
    transform:translate(-0.15px, 0px);
  }

  100%{
    transform:translate(0px, 0px);
  }
}

@keyframes logoFlicker{
  0%{ opacity:0.96; }
  50%{ opacity:1; }
  100%{ opacity:0.98; }
}

@keyframes logoShift{
  from{
    filter:
      drop-shadow(2px 0 rgba(255,0,0,0.3))
      drop-shadow(-2px 0 rgba(0,150,255,0.2));
  }

  to{
    filter:
      drop-shadow(-2px 0 rgba(255,0,0,0.3))
      drop-shadow(2px 0 rgba(0,150,255,0.2));
  }
}
