@font-face {
  font-family: "PokemonClassic";
  src: url("../fonts/PokemonClassic.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}
#pixel-text-header {
  font-family: "PokemonClassic", monospace;
  font-size: 24px;          /* whole number only */
  letter-spacing: 1px;
  line-height: 1;
  -webkit-font-smoothing: none;
  font-smooth: never;
  text-rendering: optimizeSpeed;
}

body {
  font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    /* font-family: Inter, sans-serif; */
    background: #a89999;
    margin: 0;
    padding: 20px;
  }
  
  h1 {
    text-align: center;
  }
  
  .team {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 16px;
    max-width: 1300px;
    margin: 0 auto;
  }
  
  .slot {
    background: white;
    padding: 12px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  }
  h2{
    text-align: center;
  }
  
  label {
    font-weight: bold;
    display: block;
    margin-bottom: 6px;
  }
  
  select {
    width: 100%;
    padding: 6px;
  }

  .types {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 6px;
  }
  
  .type {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    color: white;
    text-transform: capitalize;
  }
.type.fire { background: #f08030; }
.type.water { background: #6890f0; }
.type.grass { background: #78c850; }
.type.electric { background: #f8d030; color: black; }
.type.ice { background: #98d8d8; color: black; }
.type.fighting { background: #c03028; }
.type.poison { background: #a040a0; }
.type.ground { background: #e0c068; color: black; }
.type.flying { background: #a890f0; }
.type.psychic { background: #f85888; }
.type.bug { background: #a8b820; }
.type.rock { background: #b8a038; }
.type.ghost { background: #705898; }
.type.dragon { background: #7038f8; }
.type.dark { background: #705848; }
.type.steel { background: #b8b8d0; color: black; }
.type.fairy { background: #ee99ac; color: black; }
.type.normal { background: #a8a878; color: black; }

#weakness-chart {
    max-width: 600px;
    margin: 20px auto;
  }
  
  .weakness-row {
    display: grid;
    grid-template-columns: 120px repeat(3, 1fr);
    gap: 8px;
    padding: 6px;
    background: white;
    margin-bottom: 4px;
    border-radius: 6px;
    align-items: center;
  }
  .N{
      width: 75px;   /* width of one sprite */
    height: 80px;
    background-image: url('N.png');
    image-rendering: pixelated;
  }
  .Ghetsis{
      width: 75px;   /* width of one sprite */
    height: 80px;
    background-image: url('N.png');
    image-rendering: pixelated;
  }
  #ghetsisTrainer{
    width: 75px;   /* width of one sprite */
    height: 80px;
    image-rendering: pixelated;
  }
  #hilbertTrainer{
    image-rendering: pixelated;
    width: 50px;   /* width of one sprite */
    height: 75px;
    background-image: url('Hilbert.png');
  }
  #hildaTrainer{
    image-rendering: pixelated;
    width: 45px;   /* width of one sprite */
    height: 80px;
    background-image: url('Hilda.png');
    float: right;
    margin-left: 15px; 
  }
  #nTrainer{
    image-rendering: pixelated;
    width: 55px;   /* width of one sprite */
    height: 80px;
    float: right;
    margin-left: 15px; 
  }
.trainer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  width: 100%;
}

.middle-text {
  text-align: center;
}
.pokemon-picker {
  max-height: 220px;
  overflow-y: auto;
  border: 2px solid #222;
  padding: 4px;
}

.pokemon-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px;
  cursor: pointer;
}

.pokemon-option:hover {
  background-color: #eee;
}

.pokemon-option img {
  width: 40px;
  height: 40px;
  image-rendering: pixelated;
}

#loading {
  position: fixed;
  inset: 0;
  background: #f8f8f8;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  font-size: 1.2rem;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 6px solid #ddd;
  border-top: 6px solid #e60012; /* Poké-red */
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 12px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
