* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.doto-en {
  font-family: "Doto", sans-serif;
  font-weight: 500;
  font-size: 1.2em;
}

.doto-jp {
  font-family: "Noto Sans JP", sans-serif;
}

body {
  font-family: monospace;
  background: black;
  min-height: 100vh;
  padding: 20px;
  color: white;
}

/* Layout */
.container {
  margin: 0 auto;
  background: #2b2b2b;
  border-radius: 15px 15px 0 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
}

.header {
  text-align: center;
  font-size: 1.7em;
}

.route-info {
  background: rgba(8, 100, 20, 0.9);
  padding: 10px;
}

.route-container {
  position: relative;
  display: flex;
  justify-content: center;
  background: #272727;
  padding: 10px;
  max-width: 100%;
  overflow: hidden;
}

.route-map {
  position: relative;
  width: 100%;
  margin: 0 auto;
}

.route-map img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
  object-fit: contain; /* Ensure image maintains aspect ratio */
  image-rendering: pixelated;
}

/* Hotspots */
.hotspot {
  position: absolute;
  width: 40px;
  height: 60px;
  cursor: pointer;
  border: 2px solid;
  transition: transform 0.2s;
}

.hotspot:hover {
  transform: scale(1.1);
}

.route-hotspot {
  background: rgba(0, 68, 255, 0.4);
  border-color: #001aff;
}

.town-hotspot {
  background: rgba(129, 231, 12, 0.4);
  border-color: #4caf50;
}

/* Tooltip */
.tooltip {
  position: absolute;
  background: rgba(0,0,0,0.9);
  color: white;
  padding: 12px;
  border-radius: 8px;
  font-size: 14px;
  max-width: 280px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s;
}

.tooltip.show {
  opacity: 1;
  visibility: visible;
}

.tooltip h3 {
  color: #ffeb3b;
  margin-bottom: 8px;
}

/* Encounters */
.pokemon-encounters {
  padding: 20px;
  background: #1b1b1b;
  border-top: 3px solid #ff18b2;
}

.pokemon-encounters h3 {
  text-align: center;
  color: #ffeb3b;
  margin-bottom: 15px;
}

.encounter-section {
  margin-bottom: 20px;
  background: rgba(255,255,255,0.05);
  padding: 15px;
  border-radius: 10px;
}

.encounter-section h4 {
  font-size: 30px;
  margin-bottom: 12px;
  border-bottom: 2px solid #4caf50;
}

.encounter-section[data-type="grass"] h4 {
  color: #4caf50;
}

.encounter-section[data-type="grass"] h4:before {
  content: "";
  display: inline-block;
  width: 30px;
  height: 30px;
  background-image: url('data/grass.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  image-rendering: pixelated;
  vertical-align: middle;
  margin-right: 8px;
  margin-bottom: 7px;
}

.encounter-section[data-type="water"] h4 {
  border-bottom-color: #2196f3;
}

.encounter-section[data-type="special"] h4 {
  color: #e4e727;
  border-bottom-color: #e4e727;
}

.encounter-section[data-type="special"] h4:before {
  content: "";
  display: inline-block;
  width: 30px;
  height: 30px;
  background-image: url('data/special_HoennSound.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  image-rendering: pixelated;
  vertical-align: middle;
  margin-right: 8px;
  margin-bottom: 7px;
}

.special-encounter {
  text-align: center;
  background: rgba(255, 255, 255, 0.1);
  padding: 6px 10px;
  border-radius: 6px;
  font-weight: bold;
  color: #ffeb3b;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.special-encounter[data-requirement="HoeenSound"]::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 24px;
  background-image: url('data/special_HoennSound.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  image-rendering: pixelated;
  vertical-align: middle;
}

.special-encounter[data-requirement="SinnohSound"]::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 24px;
  background-image: url('data/special_SinnohSound.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  image-rendering: pixelated;
  vertical-align: middle;
}

/* Grid */
.pokemon-grid {
  display: grid;
  gap: 15px;
  grid-template-columns: repeat(auto-fit, minmax(205px, 0fr));
}

.pokemon-card {
  background: rgba(255,255,255,0.08);
  /* padding: 15px; */
  /* border-top-left-radius: 8px;
  border-top-right-radius: 8px; */
  border-radius: 8px;
  transition: transform 0.2s;
}

.pokemon-card:hover {
  transform: translateY(-3px);
}

.pokemon-header {
    display: flex;
    align-items: center;
    margin-top: 0;
}

.pokemon-sprite {
    width: 64px;
    height: 64px;
    image-rendering: pixelated;
    margin-bottom: 10px;
}

.pokemon-name {
  color: #ffeb3b;
  font-weight: bold;
  flex-grow: 1;
}

/* Time Encounters */
.time-encounters {
  color: black;
  display: flex;
  flex-direction: column;
  /* gap: 8px; */
}

.time-encounter {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.1);
  padding: 6px 10px;
  /* border-radius: 6px; */
}

.time-encounter.morning { background: rgba(255, 165, 0, 0.2); }
.time-encounter.day { background: rgba(255, 223, 0, 0.2); }
.time-encounter.night { background: rgba(0, 0, 139, 0.2); border-bottom-left-radius: 8px; border-bottom-right-radius: 8px;}

.time-encounter::before {
    content: "";
    display: inline-block;
    background-image: url("data/morning.png");
    width: 20px;
    height: 20px;
    vertical-align: middle;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    image-rendering: pixelated;
}

.time-encounter.morning::before { background-image: url("data/morning.png"); }
.time-encounter.day::before { background-image: url("data/day.png"); }
.time-encounter.night::before { background-image: url("data/night.png"); }

.time-encounter::after {
  content: attr(data-rate) " • " attr(data-level);
  color: white;
  font-size: 0.9em;
  margin-left: auto;
}

/* Navigation */
.navigation {
  text-align: center;
  padding: 15px;
  background: #1a1a1a;
  border-top: 3px solid #ff18b2;
  border-bottom-left-radius: 15px;
}

.nav-button {
  font-family: monospace;
  background: black;
  color: white;
  border: none;
  padding: 10px 20px;
  margin: 0 8px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
}

.nav-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
