body {
  margin: 0;
  background-color: rgb(46, 41, 41);
  font-family: "Atma-Regular", sans-serif;
}
body.modal-open {
  overflow: hidden;
}


/* Styling für die Navbar */
.navbar {
  padding: 30px 0;
  background-color: rgb(63, 13, 199) !important;
}
.con-nav{
  max-width: 1440px;
  margin: 0 auto;
}
.navbar>.container, .navbar>.container-fluid, .navbar>.container-lg, .navbar>.container-md, .navbar>.container-sm, .navbar>.container-xl, .navbar>.container-xxl {
    display: flex
;
    flex-wrap: inherit;
    align-items: center;
    justify-content: space-evenly;
}

/* Styling für die Bilder */
#content {
  display: flex;
  padding: 10px;
  flex-direction: column;
  justify-content: center;
}
.header-image {
  width: 70px;
  height: 70px;
  margin: 0 10px;
}

/* Styling für das Logo */
.logo-image {
  height: 1.5rem;
  margin-right: 10px;
}

/* Flexbox für Container */
.container-fluid {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  width: 100%;
}

/* Styling für das Navbar-Brand */
.navbar-brand {
  font-size: 1.5rem;
  margin-right: 15px;
  color: white !important;
}

/* Styling für das Suchformular */
form {
  display: flex;
  align-items: center;
}

/* Flexbox für die Ausrichtung der Elemente */
.d-flex {
  display: flex;
}

.justify-content-between {
  justify-content: space-between;
}

.justify-content-center {
  justify-content: center;
}

.align-items-center {
  align-items: center;
}

/* Styling für die Pokémon-Karte */
.pokemon_card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
  border: 2px solid white;
  border-radius: 15px;
  margin: 20px;
  text-align: center;
  width: 250px;
  height: 350px;
  transition: transform 0.3s ease-in-out;
  background-color: #4caf50; /* Grüne Hintergrundfarbe */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.pokemon_card:hover {
  transform: scale(1.05);
  cursor: pointer;
}

.pokemon_text {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

h1 {
  font-size: 2em;
  margin: 0;
  font-weight: bold;
  color: white;
}

.pokemon-image {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 150px;
  margin: 10px 0;
}

.pokemon-image img {
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.pokemon-image img:hover {
  transform: scale(1.1);
}

.pokemon-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
  border-radius: 5px;
  width: 100%;
}

.pokemon-type {
  display: flex;
  align-items: center;
  padding: 5px;
  border: 2px solid rgb(22, 147, 51);
  border-radius: 15px;
  margin: 5px;
}

.pokemon-type img {
  width: 24px;
  height: 24px;
  margin-right: 5px;
}

.pokemon-type p {
  margin: 0;
  font-size: 16px;
  color: white;
}

/* Styling für den Suchbutton */
.btn-outline-success {
  color: white;
  border-color: white;
}

.btn-outline-success:hover {
  background-color: white;
  color: rgb(63, 13, 199);
}

/* Styling für das Overlay */
/* Styling für das Overlay */
#overlay {
  position: fixed;
  display: none;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  cursor: pointer;
  justify-content: center;
  align-items: center;
}

.overlay-content {
  position: relative;
  background-color: white;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  width: 80%;
  max-width: 500px;
}

.overlay-content img {
  max-width: 100%;
  height: auto;
  margin-bottom: 20px;
}

.stats-table-overlay {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  margin-bottom: 10px;
}

.stats-table-overlay td {
  padding: 8px;
  border: 1px solid #ddd;
}

.stats-table-overlay tr:nth-child(even) {
  background-color: #921b1b;
}

.stats-table-overlay tr:hover {
  background-color: #842929;
}
/* Beispiel für benutzerdefinierte CSS */
/* Farbverlauf für den Hintergrund des Modals */
.modal-content {
  background: linear-gradient(
    to right,
    #ff4d4d,
    #4dff4d
  ); /* Rot links, Grün rechts */
  border-radius: 15px; /* Abgerundete Ecken */
  border: none; /* Entferne den Standard-Rahmen */
  transition: 0.3s ease;
}

.pokemon-img:hover {
  transform: scale(1.05);
  cursor: pointer;
}

/* Stil für den Header, um ihn vom Hintergrund abzuheben */
.modal-header {
  background-color: rgba(0, 0, 0, 0.5); /* Halbtransparentes Schwarz */
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
  color: white; /* Weiße Schrift */
}

/* Stil für die Tabelle, um sie lesbar zu halten */
.table {
  background-color: rgba(255, 255, 255, 0.8); /* Halbtransparentes Weiß */
  border-radius: 10px; /* Abgerundete Ecken */
  overflow: hidden; /* Verhindert, dass der Hintergrund überlappt */
}

/* Stil für die Tabellenzeilen */
.table-striped tbody tr:nth-of-type(odd) {
  background-color: rgba(
    255,
    255,
    255,
    0.9
  ); /* Leicht transparenter Hintergrund */
}

/* Hover-Effekt für die Tabellenzeilen */
.table-hover tbody tr:hover {
  background-color: rgba(255, 255, 255, 1); /* Vollständig weiß beim Hover */
}

/* Stil für das Pokémon-Bild */
.pokemon-img {
  max-width: 200px;
  margin: 0 auto;
  display: block;

  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Schatten für das Bild */
}

/* Stil für den Schließen-Button */
.btn-close-white {
  filter: invert(1); /* Macht das "X" weiß */
}

/* Modal-Stile */
/* Modal-Stile */
body.modal-open {
  overflow: auto !important; /* Verhindert das Scrollen im Hintergrund */
  padding-right: 0 !important;
}
#pokemonModal .modal-content {
  background-color: rgb(2, 2, 25);
  border-radius: 10px;
  max-width: 80vw;
  max-height: 80vh;
  position: relative;
  user-select: none;
  overflow-y: auto;
}

#pokemonModal .modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: none;
  padding: 10px 20px;
}

#pokemonModal .modal-title {
  color: white;
  font-size: 24px;
}

#pokemonModal .btn-close {
  color: white;
  background-color: transparent;
  border: none;
  font-size: 24px;
 
}

#pokemonModal .modal-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

#pokemonModal .pokemon-img {
  max-width: 200px; /* Gleiche Größe wie in der Karte */
  max-height: 200px;
  border-radius: 20px;
}

#pokemonModal .stats-table-overlay {
  color: white;
  margin-top: 20px;
  width: 100%;
  text-align: center;
   z-index: 1050 !important; /
}

#pokemonModal .stats-table-overlay td {
  padding: 5px 10px;
}

#pokemonModal #prevPokemon,
#pokemonModal #nextPokemon {
  font-size: 20px;
  color: rgb(40, 13, 13);
  cursor: pointer;
  user-select: none;
  margin: 10px 0; /* Buttons nach unten verschieben */
  background-color: transparent;
  border: none;
  
}
/*
::after, ::before {
    box-sizing: border-box;
} */

.modal-backdrop {
  --bs-backdrop-zindex: 1050;
  --bs-backdrop-opacity: 0.5;
    z-index: 1040 !important;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
}
.modal-backdrop.fade {
  opacity: 0;
}

#pokemonModal #prevPokemon::before {
  content: "\25C0";
}

#pokemonModal #nextPokemon::before {
  content: "\25B6";
}

#loadMore, #scrollToTop {
  margin: 10px;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
}

#scrollToTop {
  display: none; /* Verstecke den Button standardmäßig */
}

/* Zeige den "Nach oben"-Button, wenn der Benutzer scrollt */
body.scrolled #scrollToTop {
  display: inline-block;
}

#pokemon-container {
  max-width: 1440px; /* Standard-Bildschirmgröße */
  margin: 0 auto;
  overflow-x: hidden; /* Verhindert horizontales Scrollen */
}


/* Responsive Stile */
@media (max-width: 768px) {
  #pokemonModal .modal-content {
    max-width: 90vw;
    max-height: 90vh;
  }

  #pokemonModal .pokemon-img {
    max-width: 150px;
    max-height: 150px;
  }
}

@media (max-width: 480px) {
  #pokemonModal .modal-content {
    max-width: 95vw;
    max-height: 95vh;
  }

  .navbar-brand {
    font-size: 1rem; /* Noch kleinere Schriftgröße für sehr kleine Bildschirme */
  }
  .header-image {
    width: 20px; /* Noch kleinere Bilder für sehr kleine Bildschirme */
    height: 20px;
  }

  .pokemon_card {
    width: 90%; /* Eine Karte pro Reihe auf Smartphones */
    
  }
  .form-control {
    width: 100%; /* Vollständige Breite für das Suchfeld auf kleinen Bildschirmen */
  }

  .btn-outline-success {
    width: 100%; /* Vollständige Breite für den Suchbutton auf kleinen Bildschirmen */
   
  }

  #pokemonModal .pokemon-img {
    max-width: 120px;
    max-height: 120px;
  }
}
@media (max-width: 1440px) {
    .content-container {
        width: 100%; /* Stellt sicher, dass der Inhalt sich anpasst */
        max-width: 1400px;
        margin: 0 auto;
    }
}






