*{
box-sizing:border-box;
}

body{
background:
radial-gradient(circle at top,#ff4b4b 0%,#c40000 40%,#2b0000 100%);
color:white;
font-family:Segoe UI, Arial, sans-serif;
margin:0;
padding-top:140px;
text-align:center;
overflow-x:hidden;
min-height:100vh;
background-attachment:fixed;
}

.chart-box{
width:260px;
height:260px;
margin:auto;
position:relative;
}

#statsChart{
width:100% !important;
height:100% !important;
}

/* HEADER */

.header{
position:fixed;
top:0;
width:100%;
background:linear-gradient(180deg,#ff5050,#a80000);
border-bottom:4px solid white;
padding:15px;
box-shadow:0 10px 35px rgba(0,0,0,.6);
z-index:1000;
}

.contador{
font-size:22px;
color:#00ffd5;
font-weight:bold;
letter-spacing:1px;
}

.search{
margin-top:10px;
padding:9px;
width:230px;
border-radius:8px;
border:none;
background:#2a2a2a;
color:white;
outline:none;
transition:.2s;
}

.search:focus{
box-shadow:0 0 8px #00ffd5;
}

.btn-reset{
margin-left:10px;
padding:9px 14px;
border:none;
background:#ff4b4b;
color:white;
border-radius:8px;
cursor:pointer;
transition:.25s;
}

.btn-reset:hover{
background:#ff2d2d;
transform:scale(1.05);
}

/* MENU */

.menu-btn{
position:absolute;
left:20px;
top:15px;
font-size:28px;
background:none;
border:none;
color:white;
cursor:pointer;
transition:.2s;
}

.menu-btn:hover{
transform:scale(1.15);
}

.close-btn{
position:absolute;
top:15px;
right:15px;
font-size:24px;
background:none;
border:none;
color:white;
cursor:pointer;
}

/* SIDEBAR */

.sidebar{
position:fixed;
left:-260px;
top:0;
width:260px;
height:100vh;
background:#111;
padding:20px;
transition:.3s;
overflow-y:auto;
overflow-x:hidden;
z-index:2000;
box-shadow:8px 0 30px rgba(0,0,0,.6);
}

.sidebar.open{
left:0;
}

.sidebar h3{
color:#00ffd5;
margin-top:20px;
border-bottom:1px solid #333;
padding-bottom:4px;
}

.sidebar label{
display:flex;
align-items:center;
gap:8px;
margin:6px 0;
font-size:14px;
cursor:pointer;
transition:.2s;
}

.sidebar label:hover{
color:#00ffd5;
}

.sidebar input[type="checkbox"]{
width:16px;
height:16px;
}

/* GRID */

.grid{
display:grid;
grid-template-columns:repeat(auto-fill,minmax(100px,1fr));
gap:18px;
padding:20px;
max-width:1400px;
margin:auto;
}

/* TARJETAS */

.poke{
background:linear-gradient(180deg,#2b2b2b,#1a1a1a);
border:2px solid #3b3b3b;
border-radius:14px;
padding:10px;
cursor:pointer;
transition:.25s;
display:flex;
flex-direction:column;
align-items:center;
box-shadow:0 6px 15px rgba(0,0,0,.5);
}

.poke:hover{
transform:translateY(-5px);
border-color:#666;
box-shadow:0 10px 25px rgba(0,0,0,.7);
}

.poke img{
width:72px;
height:72px;
image-rendering:pixelated;
filter:grayscale(1) opacity(.35);
transition:.25s;
}

.name{
font-size:11px;
margin-top:6px;
color:#999;
}

/* CAPTURADO */

.poke.active{
border-color:#00ffd5;
background:linear-gradient(180deg,#303030,#222);
box-shadow:0 0 12px rgba(0,255,213,.7);
}

.poke.active img{
filter:none;
transform:scale(1.12);
}

.poke.active .name{
color:#00ffd5;
font-weight:bold;
}

/* MODAL */

.modal{
position:fixed;
top:0;
left:0;
width:100%;
height:100%;
background:rgba(0,0,0,.8);
display:none;
align-items:center;
justify-content:center;
z-index:3000;
}

.modal-content{
background:#1a1a1a;
padding:35px;
border-radius:14px;
width:800px;
max-width:95vw;
max-height:95vh;
overflow:hidden;
box-shadow:0 0 25px black;
text-align:center;
position:relative;
}

.close-modal{
position:absolute;
right:20px;
top:20px;
background:none;
border:none;
color:white;
font-size:20px;
cursor:pointer;
}

#pokeName{
font-size:32px;
margin-bottom:20px;
}

/* LAYOUT */

.poke-layout{
display:flex;
gap:60px;
align-items:flex-start;
justify-content:center;
margin-top:20px;
}

.poke-left{
display:flex;
flex-direction:column;
align-items:center;
}

#pokeImg{
width:220px;
height:auto;
}

#pokeTypes{
margin-top:10px;
font-size:18px;
}

#pokeInfo{
margin-top:8px;
font-size:18px;
line-height:1.4;
text-align:center;
}

#pokeEvo{
margin-top:10px;
font-size:17px;
text-align:center;
line-height:1.3;
}

.poke-data{
flex:1;
display:flex;
flex-direction:column;
align-items:center;
text-align:left;
font-size:18px;
}

/* STATS */

.stat{
display:flex;
justify-content:space-between;
align-items:center;
margin:6px 0;
gap:40px;
min-width:220px;
}

.stat span:last-child{
font-weight:bold;
text-align:right;
min-width:40px;
}

canvas{
margin-top:20px;
display:block;
margin-left:auto;
margin-right:auto;
width:320px !important;
height:320px !important;
}

/* SCROLL */

::-webkit-scrollbar{
width:8px;
}

::-webkit-scrollbar-track{
background:#1a1a1a;
}

::-webkit-scrollbar-thumb{
background:#555;
border-radius:8px;
}

::-webkit-scrollbar-thumb:hover{
background:#777;
}