.pokedexbox{
font-family: 'Quantico';
display: flex;
width: 300px;
min-width: 320px;
height: 300px;
padding: 20px;
flex-direction: column;
justify-content: center;
align-items: center;
gap: 12px;
flex-shrink: 0;
border-radius: 20px;
border: 10px solid #4F5049;
background: #D9D9D9;
z-index: 10 ;
position: relative;
    /* width: 100%;
    max-width: 280px;
    height: auto;
    padding: 20px; */
}


/*cool lil hover for interactivenss // same feature ass tailwind logic for badges on dashboard*/
.pokedexbox:hover {
  transform: scale(1.05);
  transition: transform 0.3s ease-in-out;
  box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.2);
}


.pokeimage{
width: 170px;

height: 170px;
flex-shrink: 0;
}
.pokedexname{
display: inline-block;
height: 37px;
flex-direction: column;
justify-content: center;
flex: 1 0 0;
color: #000;
text-align: center;
font-family: Quantico;
font-size: clamp(18px, 4vw, 32px);
font-style: normal;
font-weight: 400;
line-height: normal;
text-transform: capitalize;
overflow-wrap: break-word;
text-align: center;
overflow-wrap: break-word; /* Ensures it doesn't overflow */
text-overflow: ellipsis; /* Adds "..." if it’s too long */
white-space: normal;
max-width: 90%; /* Ensures it fits within the box */
display: block; /* Keeps text on one line */
}

.pokedextypingdiv{
display: flex;
width: 254px;
height: 40px;
justify-content: center;
align-items: center;
align-content: center;
gap: 12px;
flex-shrink: 0;
flex-wrap: wrap;
}
.pokedextype{
display: flex;
width: 120px;
height: 40px;
padding: 6px 24px;
flex-direction: column;
justify-content: center;
align-items: center;
flex-shrink: 0;
border-radius: 10px;
}
.pokedextypestyle{
color: #FFF;
text-align: center;
font-family: Quantico;
font-size: 24px;
font-style: normal;
font-weight: 400;
line-height: normal;
text-transform: capitalize; /*capitalize first letter of type badge*/
}
.pokedexnum{
position: absolute;
left: 17px;
top: 17px;
}



.normal { background-color: #A8A77A;}
.fire { background-color: #EE8130; }
.water { background-color: #6390F0; }
.electric { background-color: #F7D02C;}
.grass { background-color: #7AC74C; }
.ice { background-color: #96D9D6; }
.fighting { background-color: #C22E28; }
.poison { background-color: #A33EA1; }
.ground { background-color: #E2BF65; }
.flying { background-color: #A98FF3; }
.psychic { background-color: #F95587; }
.bug { background-color: #A6B91A; }
.rock { background-color: #B6A136; }
.ghost { background-color: #735797; }
.dragon { background-color: #6F35FC; }
.dark { background-color: #705746; }
.steel { background-color: #B7B7CE; }
.fairy { background-color: #D685AD; }
  


/*STATS FOR POKE CARD HERE BOY*/
.stat-container {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.stat-value {
  width: 40px;
  text-align: right;
  font-weight: bold;
}

.stat-name {
  width: 80px;
  text-align: left;
  font-weight: 500;
}

.stat-bar-container {
  flex-grow: 1;
  background-color: #d1d5db;
  border-radius: 10px;
  height: 8px;
  position: relative;
  max-width: 500px; 
  overflow: hidden;  /*  Prevents bars spilling from container */
}


.stat-bar {
  height: 100%;
  border-radius: 10px;
  position: absolute;
  left: 0;
  top: 0;
}


/* Filter Modal Container */
#filterModal {
  animation: fadeIn 0.3s ease-in-out;
}

/* Filter title Styling */
#filterModal h2 {
  font-family: "Quantico", sans-serif;
  font-size: 28px;
  font-weight: bold;
}

/* Checkbox Styling */
.filter-checkbox {
  width: 18px;
  height: 18px;
  accent-color: #3b82f6;
}




@font-face {
    font-family: 'Quantico';
    src: url('../fonts/Quantico/Quantico-Regular.ttf');
  }
  @font-face {
    font-family: 'Kode-Mono';
    src: url('../fonts/KodeMono/KodeMono-Medium.ttf');
  }

body{
    font-family: 'Kode-Mono';
}

/* Freeze all animations & scrolling */
.freeze-scroll * {
    animation: none !important;
    transition: none !important;
    overflow: hidden;
  }
  

  .spcontainer {
    display: flex;
    width: 100%;
    max-width: 500px;
    height: 940px;
    max-height: 110vh; 
    padding: 0px 34px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    border-radius: 20px;
    border: 3px solid #000;
    background: #D9D9D9;
  }
/* 
  .spcontainer {
    display: flex;
    width: 100%;
    max-width: 500px; 
    max-height: 85vh; 
    padding: 20px;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
    overflow-y: auto; 
    border-radius: 20px;
    border: 3px solid #000;
    background: #D9D9D9;
  } */

.spimg{
  width: 400px;
height: 400px;
flex-shrink: 0; 
}

.spstatcont{
  display: flex;
width: 577px;
height: 390px;
flex-direction: column;
align-items: center;
flex-shrink: 0;
}

.spmpouter{
display: flex;
width: 577px;
height: 509px;
padding: 10px 30px;
flex-direction: column;
align-items: center;
gap: 10px;
flex-shrink: 0;
}

.spmptable{
  display: flex;
  width: 577px;
height: 432px;
padding: 10px 20px;
flex-direction: column;
align-items: center;
gap: 10px;
flex-shrink: 0;
}

.spmatchups{
  display: flex;
  width: 685px;
  height: 359px;
  padding: 20px 34px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-shrink: 0; 
}

.main-grid {
  width: 100%;
  padding: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  border: 4px solid red;
  border-radius: 8px;
  background: #f0f0f0;
}


.box-container {
  background: #fff;
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  
}



.move-slot {
  min-height: 60px;
  font-size: 1.1em;
  text-transform: capitalize;
  position: relative;
  overflow: hidden;
  word-break: break-word;
}

.move-slot:hover {
  border-color: #ef4444;
}

.move-list-container {
  background: white;
  border-radius: 8px;
  margin: 15px 0;
  border: 1px solid #e5e7eb;
}

.move-row {
  transition: background-color 0.2s;
}

.move-row:hover {
  background-color: #f3f4f6;
}

#moveFilter {
  background-color: white;
  border: 2px solid #e5e7eb;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 1em;
  width: 100%;
  margin-bottom: 10px;
}

#moveFilter:focus {
  outline: none;
  border-color: #ef4444;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
}

.move-list-container thead {
  background-color: #f3f4f6;
  position: sticky;
  top: 0;
  z-index: 1;
}

.move-list-container th {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9em;
  color: #4b5563;
}

.move-list-container td {
  padding: 12px 16px;
  border-bottom: 1px solid #e5e7eb;
}

/*  MODAL STYLING */

.modal-backdrop {
  position: fixed; 
  top: 0; 
  left: 0; 
  width: 100%; 
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: none; /* hidden by default */
  align-items: center; 
  justify-content: center;
  z-index: 9999;
}

.modal-backdrop.active {
  display: flex; 
}

.modal-content {
  background: #D9D9D9;       
  border: 3px solid #000;  
  border-radius: 20px;      
  width: 800px;              
  max-width: 95%;           
  padding: 30px;
  font-family: 'Kode-Mono', sans-serif;
  color: #000;
}

.modal-title {
  font-size: 32px;
  
  text-align: center;
  margin-bottom: 10px;
}

/* For the move list (scrollable) */
.modal-list {
  max-height: 300px;
  overflow-y: auto;
  margin: 0;
  padding: 0;
  list-style: none;
}

.modal-list li {
  margin: 4px 0;
  cursor: pointer;
  font-size: 32px;
}
.modal-list li:hover {
  background: #eee;
}


.modal-field {
  margin-bottom: 10px;
}
.modal-label {
  font-weight: bold;
}


.modal-buttons {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 10px;
}
.modal-button {
  background: #f00;
  color: #fff;
  border: none;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
}
.modal-button:hover {
  background: #c00;
}
.font-quantico{
  font-family: Quantico, monospace;
}

/* Stats Edit Modal Styles */
.stats-edit-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 24px 0;
  max-height: 700px;
  overflow-y: auto;
  padding: 15px;
}

.stat-edit-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: #f5f5f5;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.stat-edit-name {
  font-weight: bold;
  width: 120px;
  font-size: 1.1em;
}

.stat-edit-controls {
  display: flex;
  gap: 30px;
  align-items: center;
  flex-grow: 1;
  justify-content: flex-end;
}

.iv-input {
  width: 70px;
  padding: 6px 8px;
  border: 2px solid #ccc;
  border-radius: 6px;
  font-size: 1.1em;
  text-align: center;
}

.ev-slider {
  width: 250px;
  height: 8px;
}

.ev-value {
  min-width: 50px;
  text-align: right;
  font-weight: bold;
  font-size: 1.1em;
}

/* Make the stats chart clickable */
.statsChart {
  cursor: pointer;
  transition: transform 0.2s;
}

.statsChart:hover {
  transform: scale(1.02);
}