@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: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;
}

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 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:13px;
    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 SCROLL */
.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);
  }
}

/* HEADER */
.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;
  }
}

.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;
}

.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 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;
  font-family:'Courier Prime', monospace;
}

.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;
}

.loading{
  color:#ff2a2a;
  font-style:italic;
  text-align:center;
}

.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;
}

.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);
}

.search-bar::placeholder{
  color:#ff1a1a;
  opacity:1;
}

.levels-grid{
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  gap:15px;
  margin-top:15px;
}

.level-card{
  height:85px;
  padding:12px;
  display:flex;
  flex-direction:column;
  justify-content:flex-start;
}

.level-card h3{
  font-size:14px;
  text-align:left;
  margin-bottom:-1px;
}

.level-card p{
  font-size:11px;
  line-height:1.4;
}

.info-btn{
  all:unset; /* elimina estilos por defecto del button */
  
  flex:1;
  text-align:center;
  padding:10px;
  border:1px solid #5a0000;
  background:#140000;
  color:#ff2a2a;
  font-size:13px;
  font-weight:bold;
  cursor:pointer;
  display:block;

  transition:all 0.2s ease;
}

.info-btn:hover{
  background:#1f0000;
  transform:scale(1.02);
  box-shadow:0 0 10px rgba(255,0,0,0.4);
}