/* General Styles */
body {
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #121212;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Navbar */
.navbar {
  background-color: #7c2721;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar .logo img {
  height: 50px;
}

.nav-links {
  padding: 0.5em;
  list-style: none;
  display: flex;
  gap: 1rem;
}

.nav-links a {
  text-decoration: none;
  color: white;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.nav-links a:hover {
  color: rgb(255, 255, 255);
  transition: transform 0.2s ease;
}

/* Main Content */
.main-content {
  padding: 2rem;
  flex: 1;
}

/* Search Bar */
.search-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1rem;
  position: relative;
}

.search-bar input {
  padding: 0.8rem;
  background-color: #2a2a2a;
  color: #ffffff;
  border: 1px solid #444;
  border-radius: 4px;
  width: 50%;
  max-width: 600px;
}

.search-bar input::placeholder {
  color: #888;
}

.search-bar button {
  margin-left: 0.5rem;
  padding: 0.8rem;
  background-color: #7c2721;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.search-bar button:hover {
  transform: scale(1.1); /* Expand on hover */
}

.search-bar input:focus {
  outline: none;
  border: 1px solid #7c2721;
  box-shadow: 0 0 5px #7c2721;
  background-color: #2a2a2a;
  color: #ffffff;
}

/* Search Results Popup */
.search-results {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background-color: #2a2a2a;
  color: white;
  border-radius: 4px;
  padding: 1rem;
  width: 50%;
  max-width: 600px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
  display: none;
  z-index: 999;
}

.search-result-item {
  padding: 0.5rem;
  cursor: pointer;
  border-bottom: 1px solid #444;
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover {
  background-color: #444;
}

/* Buttons */
.button-container {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.stylized-button {
  padding: 0.6rem;
  background-color: #7c2721;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  width: 40px;
  height: 40px;
  transition: all 0.2s ease;
}

.stylized-button i {
  font-size: 1.2rem;
}

.stylized-button:hover {
  background-color: #521b17;
  transform: scale(1.1);
}

/* Styling for the vertical buttons container */
.misc-button-container {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  max-width: 600px; /* Optional: adjust to limit container size */
  margin: 0 auto;   /* Centers the container on the page */
}

/* Styling for individual buttons */
.misc-button {
  display: block;
  background-color: #7c2721;
  color: white;
  text-align: center;
  text-decoration: none;
  padding: 15px;
  margin: 5px 0;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.misc-button:hover {
  background-color: #521b17;
  transform: scale(1.05);
}


/* Newsfeed */
.newsfeed-container {
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}

.newsfeed-box {
  background-color: #1f1f1f;
  padding: 1.5rem;
  border-radius: 8px;
  margin-top: 1rem;
}

.news-item {
  margin-bottom: 1rem;
}

hr {
  border: 1px solid #444;
  margin: 1rem 0;
}

/* Footer */
footer {
  background-color: #1f1f1f;
  color: white;
  text-align: center;
  padding: 1rem 0;
  margin-top: auto;
}

/* Flexbox container for Pokémon list */
.pokemon-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px; /* Adjust gap between the elements */
  justify-content: center;
}

/* Each Pokémon card */
.pokemon-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 200px; /* Increased width of the card */
  text-align: center;
  padding: 10px;
}

.pokemon-card a {
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.pokemon-card img {
  max-width: 100%; /* Images take full width of the card */
  height: auto;
  display: block;
  margin-bottom: 10px;
}

.pokemon-card span {
  font-size: 16px; /* Increased font size */
  margin-top: 5px;
}

.pokemon-card:hover {
  transform: scale(1.05);
  transition: transform 0.2s ease;
}

/* Media query for smaller screens */
@media (max-width: 1200px) {
  .pokemon-card {
    width: 150px; /* Adjust width for medium screens */
  }
}

@media (max-width: 800px) {
  .pokemon-list {
    justify-content: space-evenly; /* More evenly spaced items on smaller screens */
  }

  .pokemon-card {
    width: 130px; /* Adjust for smaller screens */
  }
}

@media (max-width: 500px) {
  .pokemon-card {
    width: 100px; /* Further reduce size on very small screens */
  }
}

/* Flexbox container for character list */
.character-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px; /* Adjust gap between the elements */
  justify-content: center;
}

/* Each character card */
.character-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 200px; /* Increased width of the card */
  text-align: center;
  padding: 10px;
}

.character-card a {
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.character-card img {
  max-width: 100%; /* Images take full width of the card */
  height: auto;
  display: block;
  margin-bottom: 10px;
}

.character-card span {
  font-size: 16px; /* Increased font size */
  margin-top: 5px;
}

.character-card:hover {
  transform: scale(1.05);
  transition: transform 0.2s ease;
}

/* Media query for smaller screens */
@media (max-width: 1200px) {
  .character-card {
    width: 150px; /* Adjust width for medium screens */
  }
}

@media (max-width: 800px) {
  .character-list {
    justify-content: space-evenly; /* More evenly spaced items on smaller screens */
  }

  .character-card {
    width: 130px; /* Adjust for smaller screens */
  }
}

@media (max-width: 500px) {
  .character-card {
    width: 100px; /* Further reduce size on very small screens */
  }
}

/* General Style for Pokémon Entry Page */
.pokemon-entry {
  width: 80%;
  margin: 20px auto;
  padding: 20px;
  background-color: #1f1f1f;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pokemon-entry .pokemon-name {
  margin-bottom:auto;
  text-align: center;
  font-size: 2em;
  color: white;
}
.pokemon-entry .pokemon-desc {
  margin-bottom:auto;
  text-align: center;
  font-size: 1em;
  color: white;
  font-style: italic;
}

/* Pokémon Artwork */
.pokemon-entry .pokemon-artwork {
  display: flex;
  justify-content: center;
  margin-bottom: 15px;
  width: 100%;
  justify-content: center;
  align-items: center;
}

.pokemon-entry #pokemon-artwork {
  width: 300px;
  height: auto;
  transition: transform 0.3s;
}

.pokemon-entry #gif-toggle {
  align-self:flex-end;
  background-color: #7c2721;
  color: white;
  width: 30px;
  height: 30px;
  padding: 0;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  border-radius: 4px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 10px;
  position: relative;
}

.pokemon-entry #gif-toggle i {
  font-size: 1.2rem;
  display: block;
}


/* Type Icons */
.pokemon-entry .pokemon-types {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 15px;
  padding: 10px;
}

.pokemon-entry .type {
  width: 100px;
  height: 22px;
  background-size: cover;
  border-radius: 5px;
  }

/* Type Background Images */
.pokemon-entry .type.fire {
  background-image: url('images/types/fire.png');
}

.pokemon-entry .type.water {
  background-image: url('images/types/water.png');
}

.pokemon-entry .type.grass {
  background-image: url('images/types/grass.png');
}

.pokemon-entry .type.electric {
  background-image: url('images/types/electric.png');
}

.pokemon-entry .type.ice {
  background-image: url('images/types/ice.png');
}

.pokemon-entry .type.fighting {
  background-image: url('images/types/fighting.png');
}

.pokemon-entry .type.poison {
  background-image: url('images/types/poison.png');
}

.pokemon-entry .type.ghost {
  background-image: url('images/types/ghost.png');
}

.pokemon-entry .type.dark {
  background-image: url('images/types/dark.png');
}

.pokemon-entry .type.dragon {
  background-image: url('images/types/dragon.png');
}

.pokemon-entry .type.fairy {
  background-image: url('images/types/fairy.png');
}

.pokemon-entry .type.rock {
  background-image: url('images/types/rock.png');
}

.pokemon-entry .type.bug {
  background-image: url('images/types/bug.png');
}

.pokemon-entry .type.steel {
  background-image: url('images/types/steel.png');
}

.pokemon-entry .type.normal {
  background-image: url('images/types/normal.png');
}

.pokemon-entry .type.psychic {
  background-image: url('images/types/psychic.png');
}

.pokemon-entry .type.flying {
  background-image: url('images/types/flying.png');
}

.pokemon-entry .type.ground {
  background-image: url('images/types/ground.png');
}

/* Container for both the Pokedex description and stats */
.pokemon-container {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  justify-content: space-between;
  width: 100%;
  margin: 0 auto;
  max-width: 1200px;
}

.pokedex-description {
  flex: 1;
  padding: 1rem;
  background-color: #2a2a2a;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.pokemon-stats {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Each stat section */
.pokemon-stat {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Labels for stat names and values */
.pokemon-stat .stat-labels {
  display: flex;
  justify-content: space-between;
  font-weight: bold;
}

/* Stat bar container */
.pokemon-stat .stat-bar-container {
  position: relative;
  background: rgba(0, 0, 0, 0.2);
  height: 15px;
  border-radius: 5px;
  overflow: hidden;
}

/* Stat bar styles */
.pokemon-stat .stat-bar {
  position: absolute;
  height: 100%;
  transition: width 1s ease-in-out; /* Animation duration and easing */
}

/* Stat value text styling */
.pokemon-stat .stat-value {
  font-size: 0.9em;
  color: white;
}

/* Base colors for stat bars */
#stat-hp .stat-bar { background-color: rgb(201, 68, 68); }
#stat-atk .stat-bar { background-color: rgb(219, 168, 74); }
#stat-def .stat-bar { background-color: rgb(215, 215, 74); }
#stat-spatk .stat-bar { background-color: rgb(83, 151, 218); }
#stat-spdef .stat-bar { background-color: rgb(95, 177, 85); }
#stat-speed .stat-bar { background-color: rgb(203, 122, 135); }

/* Responsiveness: Stack elements on smaller screens */
@media (max-width: 768px) {
  .pokemon-container {
    flex-direction: column;
  }

  .pokedex-description,
  .pokemon-stats {
    flex: 1 0 100%;
  }
}




/* Move List and Dropdown */
.pokemon-entry .move-list {
  max-width: 1200px;
  margin-top: 10px;
  align-self: center;
  background-color: #2a2a2a;
  padding: 10px;
  border-radius: 10px;
  width: 98.5%;
  display: flex;
  gap: 10px; /* Space between elements */
}

/* Move Category */
.pokemon-entry .move-category {
  max-width: 200px;
  display: flex;
  flex-direction: column; /* Stack items vertically inside each category */
  flex: 1 1 25%; /* Adjust category size */
  margin-right: 10px; /* Space between categories */
}

/* Move Category Headings */
.pokemon-entry .move-category h3 {
  margin-bottom: 10px;
  font-size: 1.2em;
  color: #f2f2f2;
}

/* Move List Button & Label */
.pokemon-entry .move-label-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Move Label */
.pokemon-entry .move-label {
  font-weight: bold;
  color: #f2f2f2;
  margin-top: 10px;
  margin-left: 7px;
}

/* Move Toggle Button */
.pokemon-entry .move-toggle {
  background-color: #7c2721;
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  font-size: 1.2rem;
  transition: transform 0.2s ease;
  padding: 1rem;
  order: -1;
}

/* Move Options Dropdown */
.pokemon-entry .move-options {
  display: none; /* Initially hidden */
  background-color: #2a2a2a;
  border-radius: 8px;
  padding: 10px;
  margin-top: 10px;
  animation: dropdown-snappy 0.3s ease-out;
  opacity: 0;
  overflow: hidden;
}

/* Show the dropdown when active */
.pokemon-entry .move-options.active {
  padding: 1em;
  display: flex;
  opacity: 1;
  max-height: 100%; /* Set a max height for the dropdown */
}

/* Snappy Dropdown Animation */
@keyframes dropdown-snappy {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Move Category List Styling */
.pokemon-entry .move-category ul {
  list-style-type: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap; /* Allow list items to be displayed side by side */
  gap: 10px; /* Space between list items */
  margin: 0;
}

/* Move Category List Item Styling */
.pokemon-entry .move-category ul li {
  flex: 1 1 30%; /* Allow list items to take up 30% of the available width */
  min-width: 100px; /* Ensure the items don't get too small */
  margin-bottom: 5px; /* Space between items */
}

/* Button Hover Effect */
.pokemon-entry .move-toggle:hover {
  transform: scale(1.1);
}

.pokemon-entry .move-toggle:active {
  transform: scale(0.95);
}





/* Pokémon Evolutions Section */
.pokemon-evolutions {

  text-align: center;
}

.pokemon-evolutions h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #7c2721;
}

.evolution-chain {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.evolution-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.evolution-stage img {
  width: 80px;
  height: 80px;
  border: 2px solid #7c2721;
  border-radius: 50%;
  background-color: #2a2a2a;
}

.evolution-stage p {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #7c2721;
}

.evolution-arrow {
  font-size: 1.5rem;
  color: #7c2721;
  margin-bottom: 33.5px;
}

/* Hover effect for evolution stages */
.evolution-stage a {
  text-decoration: none; /* Remove underline from links */
}

.evolution-stage:hover img {
  transform: scale(1.1); /* Slightly enlarge the image */
  border-color: white; /* Change the border color on hover */

  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.evolution-stage:hover p {
  color: white; /* Change text color on hover */
  transition: color 0.3s ease;
}


/* Abilities and Location Section Container */
.abilities-location-container {
  max-width:1200px;
  display: flex;
  gap: 4.5rem;
  justify-content: space-between;
  margin: 2rem 0;
}

/* Abilities Section */
.pokemon-abilities {
  flex: 1;
  text-align: center;
}

.pokemon-abilities h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #7c2721;
}

.pokemon-abilities ul {
  list-style-type: none;
  padding: 0;
}

.pokemon-abilities ul li {
  background-color: #2a2a2a;
  padding: 0.5rem;
  margin-bottom: 0.5rem;
  border-radius: 5px;
  color: white;
}

/* Location Data Section */
.pokemon-location {
  flex: 1;
  text-align: center;
}

.pokemon-location h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #7c2721;
}

.pokemon-location p {
  background-color: #2a2a2a;
  padding: 0.5rem;
  border-radius: 5px;
  color: white;
}

@media (max-width: 768px) {
  .abilities-location-container {
    flex-direction: column;
  }
}

/* Additional Media Queries for Improved Mobile Responsiveness */
@media (max-width: 1200px) {
  .pokemon-card, .character-card {
    width: 150px;
  }
}

@media (max-width: 800px) {

  .pokemon-list, .character-list {
    justify-content: space-evenly;
  }

  .pokemon-card, .character-card {
    width: 130px;
  }

  .search-bar {
    flex-direction: row;
    gap: 0.5rem;
  }
}

@media (max-width: 500px) {
  .pokemon-card, .character-card {
    width: 100px;
  }

  .pokemon-container {
    flex-direction: column;
    align-content: center;

  }

  .pokedex-description,
  .pokemon-stats {
    flex: 1 0 100%;
    margin-bottom: 1rem;
  }

  .abilities-location-container {
    flex-direction: column;
  }

  footer {
    font-size: 0.8rem;
    padding: 0.5rem;
  }
}

@media (max-width: 400px) {
  .navbar .logo img {
    height: 40px;
  }

  .nav-links a {
    font-size: 0.8rem;
  }

  .search-bar input {
    width: 90%;
  }
}



/* Character Page Layout */
.character-page {
  display: flex;
  width: 100%;
  height: 100vh; /* Full viewport height */
  overflow: hidden; /* Prevent unwanted overflow */
}

.character-left {
  width: 30%;
  background-color: #2a2a2a; /* Dark background to match */
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  position: fixed;
  height: 100%;
  border-right: 2px solid #7c2721; /* Add a blue border for separation */
}

.character-image img {
  width: 100%;
  max-width: 250px;
  border-radius: 8px;
  border: 3px solid #7c2721; /* Highlighted with blue border */
  background-color: #1a1a1a; /* Inner background */
}

.team-bubbles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  justify-items: center;
}

.bubble {
  width: 50px;
  height: 50px;
  background-color: #1a1a1a;
  border-radius: 50%;
  border: 2px solid #7c2721;
  overflow: hidden; /* Ensures the image stays within the bubble */
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.bubble img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures the PNG fits well inside the bubble */
}

.bubble:hover {
  transform: scale(1.1); /* Slight zoom effect */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  border-color: white;
}

.bubble:active {
  transform: scale(0.95); /* Click effect */
}



.character-right {
  margin-right: 10%;
  margin-left: 40%;
  padding: 20px;
  width: 100%;
  overflow-y: auto;
  height: 100vh;
  color: white; /* Text color to contrast */
}

.character-right h1 {
  font-size: 2rem;
  margin-bottom: 10px;
  color: #7c2721; /* Use blue for headings */
}

.character-right p {
  line-height: 1.6;
  margin-bottom: 20px;
  color: white; /* Ensure text is readable */
}

.character-right a {
  color: #7c2721;
  text-decoration: none;
  transition: color 0.2s ease;
}

.character-right a:hover {
  color: white; /* Inverse effect on hover */
}

/* Add responsiveness */
@media (max-width: 768px) {
  .character-left {
    width: 40%; /* Adjust size for smaller screens */
  }

  .character-right {
    margin-right: 0%;
    margin-left: 50%;
    width: 100%;
  }
}

@media (max-width: 500px) {
  .character-left {
    width: 100%;
    position: relative;
    height: auto;
  }

  .character-right {
    margin-left: 0;
    width: 100%;
  }
}
/* Available Pokemon Page Layout */
.pokemon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));
  gap: 15px;
  justify-items: center;
  padding: 10px;
}

.pokemon-bubble {
  width: 50px;
  height: 50px;
  background-color: #1a1a1a;
  border-radius: 50%;
  border: 2px solid #7c2721;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.pokemon-bubble img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pokemon-bubble:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  border-color: white;
}

.pokemon-bubble:active {
  transform: scale(0.95);
}

.video-container {
  position: relative;
  width: 80%; /* Adjust width as needed */
  max-width: 900px; /* Increase max size */
  margin: 0 auto; /* Centers the div */
  aspect-ratio: 16 / 9; /* Ensures correct aspect ratio */
}

.video-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.news-img {
  display: flex;
  justify-content: center;
  border-radius: 10px;
  outline: 2px solid #7c2721;
  outline-offset: 4px;
}




