/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
/* Document
   ========================================================================== */
/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */
html {
  line-height: 1.15; /* 1 */
  -webkit-text-size-adjust: 100%; /* 2 */
}

/* Sections
   ========================================================================== */
/**
 * Remove the margin in all browsers.
 */
body {
  margin: 0;
}

/**
 * Render the `main` element consistently in IE.
 */
main {
  display: block;
}

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */
h1 {
  font-size: 2em;
  margin: 0.67em 0;
}

/* Grouping content
   ========================================================================== */
/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */
hr {
  box-sizing: content-box; /* 1 */
  height: 0; /* 1 */
  overflow: visible; /* 2 */
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
pre {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

/* Text-level semantics
   ========================================================================== */
/**
 * Remove the gray background on active links in IE 10.
 */
a {
  background-color: transparent;
}

/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */
abbr[title] {
  border-bottom: none; /* 1 */
  text-decoration: underline; /* 2 */
  text-decoration: underline dotted; /* 2 */
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */
b,
strong {
  font-weight: bolder;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
code,
kbd,
samp {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

/**
 * Add the correct font size in all browsers.
 */
small {
  font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */
sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/* Embedded content
   ========================================================================== */
/**
 * Remove the border on images inside links in IE 10.
 */
img {
  border-style: none;
}

/* Forms
   ========================================================================== */
/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */
button,
input,
optgroup,
select,
textarea {
  font-family: inherit; /* 1 */
  font-size: 100%; /* 1 */
  line-height: 1.15; /* 1 */
  margin: 0; /* 2 */
}

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */
button,
input { /* 1 */
  overflow: visible;
}

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */
button,
select { /* 1 */
  text-transform: none;
}

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */
button,
[type=button],
[type=reset],
[type=submit] {
  -webkit-appearance: button;
}

/**
 * Remove the inner border and padding in Firefox.
 */
button::-moz-focus-inner,
[type=button]::-moz-focus-inner,
[type=reset]::-moz-focus-inner,
[type=submit]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

/**
 * Restore the focus styles unset by the previous rule.
 */
button:-moz-focusring,
[type=button]:-moz-focusring,
[type=reset]:-moz-focusring,
[type=submit]:-moz-focusring {
  outline: 1px dotted ButtonText;
}

/**
 * Correct the padding in Firefox.
 */
fieldset {
  padding: 0.35em 0.75em 0.625em;
}

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *    `fieldset` elements in all browsers.
 */
legend {
  box-sizing: border-box; /* 1 */
  color: inherit; /* 2 */
  display: table; /* 1 */
  max-width: 100%; /* 1 */
  padding: 0; /* 3 */
  white-space: normal; /* 1 */
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */
progress {
  vertical-align: baseline;
}

/**
 * Remove the default vertical scrollbar in IE 10+.
 */
textarea {
  overflow: auto;
}

/**
 * 1. Add the correct box sizing in IE 10.
 * 2. Remove the padding in IE 10.
 */
[type=checkbox],
[type=radio] {
  box-sizing: border-box; /* 1 */
  padding: 0; /* 2 */
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */
[type=number]::-webkit-inner-spin-button,
[type=number]::-webkit-outer-spin-button {
  height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */
[type=search] {
  -webkit-appearance: textfield; /* 1 */
  outline-offset: -2px; /* 2 */
}

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */
[type=search]::-webkit-search-decoration {
  -webkit-appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */
::-webkit-file-upload-button {
  -webkit-appearance: button; /* 1 */
  font: inherit; /* 2 */
}

/* Interactive
   ========================================================================== */
/*
 * Add the correct display in Edge, IE 10+, and Firefox.
 */
details {
  display: block;
}

/*
 * Add the correct display in all browsers.
 */
summary {
  display: list-item;
}

/* Misc
   ========================================================================== */
/**
 * Add the correct display in IE 10+.
 */
template {
  display: none;
}

/**
 * Add the correct display in IE 10.
 */
[hidden] {
  display: none;
}

h1, h2, h3, .logo {
  font-family: "Poppins", sans-serif;
}

p, a {
  font-family: "Roboto", sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  background-color: #ffffff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
}

main {
  flex: 1;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
  box-sizing: border-box;
}

.main-scroll-area {
  height: 100vh;
  overflow-y: auto;
  scroll-behavior: smooth;
}

footer {
  margin: 0;
}

.about-page .container {
  padding: 2rem 1rem;
  max-width: 800px;
  margin: 0 auto;
}
.about-page h2 {
  text-align: center;
  margin-bottom: 1.5rem;
}
.about-page h3 {
  margin-top: 2rem;
  color: #222;
}
.about-page p, .about-page li {
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
}
.about-page ul {
  padding-left: 1.25rem;
  margin-top: 0.5rem;
}
.about-page a {
  color: #007acc;
  text-decoration: none;
}
.about-page a:hover {
  text-decoration: underline;
}
.about-page .github-link {
  font-weight: bold;
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.about-page .github-link i {
  font-size: 1.4rem;
}
.about-page .bio-box {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-top: 1rem;
}
.about-page .bio-box .bio-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
}
.about-page .bio-box p {
  flex: 1;
}

.site-header {
  background-color: #ffcb05;
  color: #2A75BB;
  padding: 20px 0;
  border-bottom: 4px solid #2A75BB;
}
.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}
.site-header .logo {
  font-size: 2rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2px;
}
.site-header .logo a {
  color: #2A75BB;
  text-decoration: none;
  transition: color 0.3s ease;
}
.site-header .logo a:hover {
  color: #f08030;
}
.site-header .mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: #2A75BB;
  transition: color 0.3s ease;
}
.site-header .mobile-menu-toggle:hover, .site-header .mobile-menu-toggle.active {
  color: #f08030;
}
.site-header nav .nav-links {
  gap: 20px;
  align-items: center;
}
.site-header nav .nav-links li {
  list-style: none;
}
.site-header nav .nav-links a {
  color: #2A75BB;
  font-size: 1rem;
  font-weight: bold;
  text-transform: uppercase;
  transition: color 0.3s ease;
  text-decoration: none;
}
.site-header nav .nav-links a:hover {
  color: #f08030;
}

.site-header nav {
  position: absolute;
  top: 100%;
  right: 0;
  width: 100%;
  background-color: #ffcb05;
}
.site-header .nav-links {
  display: none;
  flex-direction: column;
  padding: 1rem;
  width: 100%;
  gap: 10px;
  border-top: 2px solid #2A75BB;
}
.site-header .nav-links.open {
  display: flex;
}
.site-header .nav-links a {
  text-align: center;
  padding: 0.75rem 0;
}
.site-header .mobile-menu-toggle {
  display: block;
}

@media (min-width: 769px) {
  .site-header .nav-links {
    display: flex;
    flex-direction: row;
    padding: 0;
    border-top: none;
  }
  .site-header .mobile-menu-toggle {
    display: none;
  }
  .site-header nav {
    position: static;
    width: auto;
    background: none;
  }
}
.site-footer {
  background-color: #ffcb05;
  color: #2A75BB;
  padding: 20px 0;
  border-top: 4px solid #2A75BB;
}
.site-footer .container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
  box-sizing: border-box;
  text-align: center;
}
.site-footer p {
  font-size: 1rem;
  margin: 0;
}
.site-footer p a {
  color: #2A75BB;
  font-weight: bold;
  text-decoration: none;
  transition: color 0.3s ease;
}
.site-footer p a:hover {
  color: #E3350D;
}

.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 3rem;
  height: 3rem;
  background-color: #2a75bb;
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.back-to-top.show {
  opacity: 1;
  visibility: visible;
}
.back-to-top:hover {
  background-color: #ffcb05;
  color: #2a75bb;
}

.pokemon-grid {
  display: grid;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 2rem;
  grid-template-columns: repeat(4, 1fr);
}

.pokemon-card {
  background-color: #ffffff;
  border: 1px solid #dddddd;
  border-radius: 10px;
  padding: 1rem;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.pokemon-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
}
.pokemon-card .pokemon-image {
  width: 100%;
  max-width: 200px;
  height: auto;
  display: block;
  margin: 0 auto 1rem auto;
}
.pokemon-card img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 0.5rem;
}
.pokemon-card h4 {
  font-size: 1.2rem;
  margin: 0.5rem 0;
  color: #333333;
  word-break: break-word;
  text-align: center;
}
.pokemon-card p {
  font-size: 0.9rem;
  color: #666666;
  margin: 0.5rem 0;
}
.pokemon-card .type {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: bold;
  color: #ffffff;
  background-color: #ffcb05;
  text-transform: capitalize;
}
.pokemon-card .type.electric {
  background-color: #f8d030;
}
.pokemon-card .type.fire {
  background-color: #f08030;
}
.pokemon-card .type.grass {
  background-color: #78c850;
}
.pokemon-card .type.water {
  background-color: #6890f0;
}
.pokemon-card .card-btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: bold;
  color: #ffffff;
  background-color: #2a75bb;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}
.pokemon-card .card-btn:hover {
  background-color: #ffcb05;
  color: #2a75bb;
  transform: translateY(-2px);
}
.pokemon-card .card-btn:active {
  transform: translateY(0);
}

.featured-pokemon h3 {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #2A75BB;
}

@media (min-width: 769px) and (max-width: 1024px) {
  .pokemon-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pokemon-card {
    padding: 1.2rem;
  }
  .pokemon-card img {
    width: 100px;
    height: 100px;
  }
  .pokemon-card h4 {
    font-size: 1.2rem;
  }
  .pokemon-card .card-btn {
    font-size: 0.9rem;
  }
}
@media (max-width: 768px) {
  .pokemon-grid {
    grid-template-columns: 1fr;
    padding: 0 0.5rem;
  }
  .pokemon-card {
    width: 100%;
    max-width: 100%;
    justify-self: center;
    padding: 2rem 1rem;
  }
  .pokemon-card img {
    width: 140px;
    height: 140px;
  }
  .pokemon-card h4 {
    font-size: 1.6rem;
  }
  .pokemon-card p {
    font-size: 1.1rem;
  }
  .pokemon-card .type {
    font-size: 0.9rem;
    padding: 0.4rem 1rem;
  }
  .pokemon-card .card-btn {
    font-size: 1rem;
    padding: 0.75rem 1.25rem;
  }
}
.hero {
  background: linear-gradient(135deg, #ffcb05, #2A75BB);
  color: #ffffff;
  text-align: center;
  padding: 50px 20px;
  border-bottom: 4px solid #2A75BB;
}
.hero .container {
  max-width: 1200px;
  margin: 0 auto;
}
.hero h2 {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(50, 50, 50, 0.3);
}
.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}
.hero input[type=search] {
  width: 100%;
  max-width: 400px;
  padding: 10px 15px;
  font-size: 1rem;
  border: none;
  border-radius: 25px;
  outline: none;
  box-shadow: 0 4px 6px rgba(50, 50, 50, 0.1);
}
.hero input[type=search]::placeholder {
  color: #95A5A6;
}
.hero input[type=search]:focus {
  box-shadow: 0 4px 8px rgba(50, 50, 50, 0.2);
}

.type-filters {
  margin: 2rem 0;
}
.type-filters .container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
  box-sizing: border-box;
  text-align: center;
}
.type-filters h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #2A75BB;
}
.type-filters .types {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}
.type-filters .types .type-btn {
  padding: 0.5rem 1rem;
  border: none;
  background-color: #95A5A6;
  border-radius: 999px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
  color: #333333;
}
.type-filters .types .type-btn:hover {
  background-color: #2A75BB;
  color: #ffffff;
}
.type-filters .types .type-btn[data-type=fire] {
  background-color: #f08030;
}
.type-filters .types .type-btn[data-type=water] {
  background-color: #6890f0;
}
.type-filters .types .type-btn[data-type=grass] {
  background-color: #78c850;
}
.type-filters .types .type-btn[data-type=electric] {
  background-color: #f8d030;
}

.modal {
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  text-align: center;
  visibility: visible;
  opacity: 1;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.hidden {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.modal-content {
  background: white;
  padding: 30px;
  border-radius: 12px;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  margin: auto;
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  transition: all 0.3s ease;
}

.modal-title {
  font-size: 2rem;
  margin-bottom: 1rem;
  text-transform: capitalize;
}

.modal-description {
  font-style: italic;
  margin-bottom: 15px;
  color: #666;
}

.modal-pokemon-image {
  width: 180px;
  height: auto;
  object-fit: contain;
  margin-bottom: 20px;
}

.close-button {
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 1.5rem;
  cursor: pointer;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 2rem;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  z-index: 1001;
}

.modal-stats p {
  margin: 6px 0;
  font-size: 1rem;
}

.modal-section-label {
  font-size: 1.1rem;
  font-weight: 600;
  text-align: center;
  margin: 1.5rem 0 0.5rem;
  color: #444;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* === TYPE BADGES (No Icons) === */
.modal-types {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0;
}
.modal-types .type-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: capitalize;
  color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}
.modal-types .type-badge:hover {
  transform: scale(1.05);
}
.modal-types .type-badge.type-normal {
  background-color: #A8A878;
}
.modal-types .type-badge.type-fire {
  background-color: #F08030;
}
.modal-types .type-badge.type-water {
  background-color: #6890F0;
}
.modal-types .type-badge.type-electric {
  background-color: #F8D030;
}
.modal-types .type-badge.type-grass {
  background-color: #78C850;
}
.modal-types .type-badge.type-ice {
  background-color: #98D8D8;
}
.modal-types .type-badge.type-fighting {
  background-color: #C03028;
}
.modal-types .type-badge.type-poison {
  background-color: #A040A0;
}
.modal-types .type-badge.type-ground {
  background-color: #E0C068;
}
.modal-types .type-badge.type-flying {
  background-color: #A890F0;
}
.modal-types .type-badge.type-psychic {
  background-color: #F85888;
}
.modal-types .type-badge.type-bug {
  background-color: #A8B820;
}
.modal-types .type-badge.type-rock {
  background-color: #B8A038;
}
.modal-types .type-badge.type-ghost {
  background-color: #705898;
}
.modal-types .type-badge.type-dragon {
  background-color: #7038F8;
}
.modal-types .type-badge.type-dark {
  background-color: #705848;
}
.modal-types .type-badge.type-steel {
  background-color: #B8B8D0;
}
.modal-types .type-badge.type-fairy {
  background-color: #EE99AC;
}

.modal-weaknesses {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0;
}
.modal-weaknesses .type-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: capitalize;
  color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}
.modal-weaknesses .type-badge:hover {
  transform: scale(1.05);
}
.modal-weaknesses .type-badge.type-normal {
  background-color: #A8A878;
}
.modal-weaknesses .type-badge.type-fire {
  background-color: #F08030;
}
.modal-weaknesses .type-badge.type-water {
  background-color: #6890F0;
}
.modal-weaknesses .type-badge.type-electric {
  background-color: #F8D030;
}
.modal-weaknesses .type-badge.type-grass {
  background-color: #78C850;
}
.modal-weaknesses .type-badge.type-ice {
  background-color: #98D8D8;
}
.modal-weaknesses .type-badge.type-fighting {
  background-color: #C03028;
}
.modal-weaknesses .type-badge.type-poison {
  background-color: #A040A0;
}
.modal-weaknesses .type-badge.type-ground {
  background-color: #E0C068;
}
.modal-weaknesses .type-badge.type-flying {
  background-color: #A890F0;
}
.modal-weaknesses .type-badge.type-psychic {
  background-color: #F85888;
}
.modal-weaknesses .type-badge.type-bug {
  background-color: #A8B820;
}
.modal-weaknesses .type-badge.type-rock {
  background-color: #B8A038;
}
.modal-weaknesses .type-badge.type-ghost {
  background-color: #705898;
}
.modal-weaknesses .type-badge.type-dragon {
  background-color: #7038F8;
}
.modal-weaknesses .type-badge.type-dark {
  background-color: #705848;
}
.modal-weaknesses .type-badge.type-steel {
  background-color: #B8B8D0;
}
.modal-weaknesses .type-badge.type-fairy {
  background-color: #EE99AC;
}

/* === EVOLUTION STYLING === */
.modal-evolution {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}
.modal-evolution .evolution-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #f7f7f7;
  border-radius: 12px;
  padding: 10px;
  width: 100px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}
.modal-evolution .evolution-box:hover {
  transform: scale(1.05);
}
.modal-evolution .evolution-box img {
  width: 80px;
  height: 80px;
  object-fit: contain;
}
.modal-evolution .evolution-box span {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: capitalize;
}

/* === Stat Bar Chart === */
.stat-bars {
  margin-top: 1.5rem;
  text-align: left;
}
.stat-bars .stat {
  margin-bottom: 0.75rem;
}
.stat-bars .stat .label {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}
.stat-bars .stat .bar-container {
  background: #eee;
  border-radius: 10px;
  overflow: hidden;
  height: 14px;
}
.stat-bars .stat .bar-container .bar {
  height: 100%;
  background-color: #4caf50;
  transition: width 0.3s ease;
}

.modal-content.fade-out {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-content.fade-in {
  opacity: 1;
  transition: opacity 0.3s ease;
}

/* === Responsive Layouts === */
@media (max-width: 1024px) and (min-width: 769px) {
  .modal-content {
    width: 80%;
    max-width: none;
    padding: 25px;
  }
  .modal-pokemon-image {
    width: 140px;
    height: 140px;
  }
  .close-button {
    font-size: 1.4rem;
    right: 12px;
    top: 10px;
  }
  .modal-stats p {
    font-size: 0.95rem;
  }
}
@media (max-width: 768px) {
  .modal-content {
    width: 90%;
    max-width: none;
    padding: 20px;
  }
  .modal-pokemon-image {
    width: 120px;
    height: 120px;
  }
  .close-button {
    font-size: 1.2rem;
    right: 10px;
    top: 8px;
  }
  .modal-stats p {
    font-size: 0.9rem;
  }
}
.types-main {
  flex: 1;
}
.types-main .container {
  padding: 2rem 1rem;
}
.types-main h2 {
  text-align: center;
  margin-bottom: 2rem;
}
.types-main .type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}
.types-main .type-card {
  padding: 1.5rem;
  border-radius: 12px;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  border-top: 5px solid #ccc;
  text-align: center;
  transition: transform 0.3s ease;
  background: #999;
}
.types-main .type-card:hover {
  transform: translateY(-4px);
}
.types-main .type-card.normal {
  background: #a8a878;
}
.types-main .type-card.fire {
  background: #f08030;
}
.types-main .type-card.water {
  background: #6890f0;
}
.types-main .type-card.electric {
  background: #f8d030;
}
.types-main .type-card.grass {
  background: #78c850;
}
.types-main .type-card.ice {
  background: #98d8d8;
}
.types-main .type-card.fighting {
  background: #c03028;
}
.types-main .type-card.poison {
  background: #a040a0;
}
.types-main .type-card.ground {
  background: #e0c068;
}
.types-main .type-card.flying {
  background: #a890f0;
}
.types-main .type-card.psychic {
  background: #f85888;
}
.types-main .type-card.bug {
  background: #a8b820;
}
.types-main .type-card.rock {
  background: #b8a038;
}
.types-main .type-card.ghost {
  background: #705898;
}
.types-main .type-card.dragon {
  background: #7038f8;
}
.types-main .type-card.dark {
  background: #705848;
}
.types-main .type-card.steel {
  background: #b8b8d0;
}
.types-main .type-card.fairy {
  background: #ee99ac;
}
.types-main .type-card .type-header {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.types-main .type-card .type-header .icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}
.types-main .type-card .type-header h3 {
  font-size: 1.2rem;
  margin: 0;
  text-transform: capitalize;
}
.types-main .type-card .damage,
.types-main .type-card .examples {
  font-size: 0.9rem;
  margin-top: 1rem;
  line-height: 1.5;
}

.mechanics-page .container {
  padding: 2rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}
.mechanics-page h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
}
.mechanics-page .mechanics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.mechanics-page .mechanic-card {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}
.mechanics-page .mechanic-card:hover {
  transform: translateY(-4px);
}
.mechanics-page .mechanic-card h3 {
  margin: 1rem 0;
  text-transform: capitalize;
}
.mechanics-page .mechanic-card .poke-art {
  width: 120px;
  height: auto;
  margin-bottom: 1rem;
}
.mechanics-page .mechanic-card .stat-list {
  margin-top: 1rem;
}
.mechanics-page .mechanic-card .stat-list .stat-row {
  margin-bottom: 0.75rem;
  text-align: left;
}
.mechanics-page .mechanic-card .stat-list .stat-row .stat-label {
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-block;
  width: 120px;
}
.mechanics-page .mechanic-card .stat-list .stat-row .bar-container {
  background: #eee;
  border-radius: 6px;
  overflow: hidden;
  height: 14px;
}
.mechanics-page .mechanic-card .stat-list .stat-row .bar-container .bar {
  background: #4caf50;
  height: 100%;
  color: #fff;
  font-size: 0.75rem;
  padding-left: 4px;
  line-height: 14px;
  border-radius: 6px 0 0 6px;
}
.mechanics-page .stat-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}
@media (max-width: 768px) {
  .mechanics-page .stat-info-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .mechanics-page .stat-info-grid {
    grid-template-columns: 1fr;
  }
}
.mechanics-page .stat-info-card {
  background-color: #f8f8f8;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  transition: transform 0.3s ease;
}
.mechanics-page .stat-info-card:hover {
  transform: translateY(-4px);
}
.mechanics-page .stat-info-card .emoji {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}
.mechanics-page .stat-info-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  text-transform: capitalize;
  word-wrap: break-word;
}
.mechanics-page .stat-info-card p {
  font-size: 0.95rem;
  color: #333;
  line-height: 1.4;
  word-wrap: break-word;
}
.mechanics-page .type-relations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}
@media (max-width: 1024px) {
  .mechanics-page .type-relations-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .mechanics-page .type-relations-grid {
    grid-template-columns: 1fr;
  }
}
.mechanics-page .type-relation-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  text-align: center;
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.mechanics-page .type-relation-card:hover {
  transform: translateY(-4px);
}
.mechanics-page .type-relation-card h3 {
  font-size: 1.4rem;
  text-transform: capitalize;
  margin-bottom: 0.5rem;
}
.mechanics-page .type-relation-card .relation-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
}
.mechanics-page .type-relation-card .relation-row .type-badge {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: bold;
  text-transform: capitalize;
  color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.type-badge.normal {
  background-color: #a8a878;
}

.type-badge.fire {
  background-color: #f08030;
}

.type-badge.water {
  background-color: #6890f0;
}

.type-badge.grass {
  background-color: #78c850;
}

.type-badge.electric {
  background-color: #f8d030;
}

.type-badge.ice {
  background-color: #98d8d8;
}

.type-badge.fighting {
  background-color: #c03028;
}

.type-badge.poison {
  background-color: #a040a0;
}

.type-badge.ground {
  background-color: #e0c068;
}

.type-badge.flying {
  background-color: #a890f0;
}

.type-badge.psychic {
  background-color: #f85888;
}

.type-badge.bug {
  background-color: #a8b820;
}

.type-badge.rock {
  background-color: #b8a038;
}

.type-badge.ghost {
  background-color: #705898;
}

.type-badge.dragon {
  background-color: #7038f8;
}

.type-badge.dark {
  background-color: #705848;
}

.type-badge.steel {
  background-color: #b8b8d0;
}

.type-badge.fairy {
  background-color: #ee99ac;
}

/*# sourceMappingURL=style.css.map */
