:root {
  --primary-color: #0a5485;
  --secondary-color: aqua;
  --table-border-color: black;
  --hover-shadow: 0 0 30px -5px white, 0 0 10px -7px white,
    0 55px 35px -20px rgba(0, 0, 0, 0.5);
  --font-family: Arial, sans-serif;
  --card-width: 250px;
  --card-height: 350px;
  --border-radius: 20px;
  --type-color: aqua;
  --padding: 20px;
  --transition-duration: 0.3s;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
  font-family: var(--font-family);
  background-image: url(./imgs/background/Designer.jpeg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
  margin: 0;
}

main {
  flex-grow: 1;
  flex: 1;
  width: 100%;
}

.header, header {
  background-color: var(--primary-color);
  border: 2px solid var(--secondary-color);
  border-radius: var(--border-radius);
  padding: var(--padding);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  box-sizing: border-box;
}

.headline-box {
  display: flex;
  align-items: center;
  gap: 15px;
}

@keyframes bounce {
  0%, 100% { transform: rotate(0deg) scale(1.1); }
  25% { transform: rotate(90deg) scale(1.2); }
  50% { transform: rotate(180deg) scale(1.15); }
  75% { transform: rotate(270deg) scale(1.2); }
}

@keyframes spinLogo {
  0% {
    transform: rotate(0deg) scale(0.5);
    opacity: 0;
  }
  50% {
    transform: rotate(360deg) scale(1.1);
    opacity: 0.7;
  }
  100% {
    transform: rotate(720deg) scale(1);
    opacity: 1;
  }
}

.headline-icon {
  width: 80px;
  transition: all 0.3s ease;
  filter: drop-shadow(0 0 10px rgba(0, 255, 255, 0.5));
}

.header .headline-icon {
  animation: spinLogo 2s ease-in-out;
}

.headline-icon:hover {
  transform: rotate(360deg) scale(1.1);
  filter: drop-shadow(0 0 20px rgba(0, 255, 255, 0.8));
  animation: bounce 0.6s ease-in-out;
}

.headline {
  color: white;
}

.headline-box {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: row;
  width: 100%;
  box-sizing: border-box;
}

.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.flex-column {
  display: flex;
  flex-direction: column;
}

.flex-wrap {
  flex-wrap: wrap;
}

.footer {
  background-color: rgb(1, 48, 9);
  border: 2px solid var(--secondary-color);
  border-radius: var(--border-radius);
  color: rgb(11, 11, 11);
  text-align: center;
  padding: var(--padding);
  display: flex;
  justify-content: space-around;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  margin-top: 50px;
}

.footer .headline-icon.animate-logo {
  animation: spinLogo 2s ease-in-out;
  transform: translateY(17px);
}

.header .headline-icon.animate-logo {
  animation: bounce 2s ease-in-out;
}

.language-toggle {
  position: relative;
  width: 80px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
  font-size: 12px;
  font-weight: bold;
  color: rgba(255, 255, 255, 0.7);
}

.language-toggle:hover {
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.language-toggle .slider {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #00ff88 0%, #00ccaa 100%);
  border-radius: 50%;
  transition: transform 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 255, 136, 0.3);
  z-index: 1;
}

.language-toggle.en .slider {
  transform: translateX(38px);
}

.language-toggle .lang-label {
  position: relative;
  z-index: 2;
  transition: color 0.3s ease;
  margin: 0 3px;
}

.language-toggle .lang-label.active {
  color: #000;
  font-weight: bold;
}

.btn-base {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 3px solid black;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  text-align: center;
  font-family: inherit;
  font-size: 1rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #00e6e6 100%);
  color: black;
  border-radius: 25px;
  padding: 12px 24px;
  box-shadow: 0 4px 10px rgba(0, 255, 255, 0.3);
  margin: 5px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-rounded {
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(0, 255, 255, 0.3);
}

.button {
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  background: linear-gradient(135deg, var(--secondary-color) 0%, #00e6e6 100%);
  color: black;
  border: none;
  padding: 12px 24px;
  cursor: pointer;
  border-radius: 25px;
  margin: 5px;
  border: 3px solid black;
  box-shadow: 0 4px 10px rgba(0, 255, 255, 0.3);
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-base:hover, .btn-primary:hover {
  transform: translateY(-2px);
}

.btn-primary:hover {
  box-shadow: 0 8px 20px rgba(0, 255, 255, 0.5);
  background: linear-gradient(135deg, #00e6e6 0%, var(--secondary-color) 100%);
}

.btn-base:active, .btn-primary:active {
  transform: translateY(0);
}

.btn-primary:active {
  box-shadow: 0 2px 5px rgba(0, 255, 255, 0.3);
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 255, 255, 0.5);
  background: linear-gradient(135deg, #00e6e6 0%, var(--secondary-color) 100%);
}

.button:active {
  transform: translateY(0);
  box-shadow: 0 2px 5px rgba(0, 255, 255, 0.3);
}

.logo {
  text-decoration: none;
}

.main-wrapper {
  max-width: 800px;
  margin: 10px auto;
  padding: 0 30px;
  background-color: rgba(0, 0, 0, 0.50);
  color: white;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  line-height: 1.7;
  font-size: 1.05rem;
}

.main-wrapper a[href^="mailto:"],
.main-wrapper a[href*="adsimple.de"] {
  font-weight: bold;
  background-color: rgba(255, 255, 255, 0.8);
  padding: 2px 6px;
  border-radius: 4px;
  text-decoration: underline;
  transition: all 0.2s ease;
}

.main-wrapper a[href^="mailto:"]:hover,
.main-wrapper a[href*="adsimple.de"]:hover {
  background-color: rgba(255, 255, 255, 0.95);
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.main-wrapper h1:first-of-type {
  padding-top: 10px;
}

.main-wrapper p:last-of-type {
  padding-bottom: 15px;
}

#back-to-pokedex {
  display: block;
  margin-top: 20px;
  padding: 10px 20px;
  background-color: var(--secondary-color);
  color: black;
  text-decoration: none;
  border-radius: 5px;
  text-align: center;
  font-weight: bold;
}

#back-to-pokedex:hover {
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.loading-indicator {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 10px;
  font-size: 20px;
  z-index: 1000;
}

.tab-table {
  padding-top: 15px;
}

.tab-table table {
  font-size: 12px;
  font-family: var(--font-family);
  width: 100%;
  border-collapse: collapse;
  border: 2px solid var(--table-border-color);
}

.tab-table tr {
  border-bottom: 1px solid #ddd;
}

.tab-table th,
.tab-table td {
  padding: 1rem;
  text-align: left;
}

.tab-table td {
  text-align: right;
}

.tab-table th {
  font-weight: normal;
  color: #fff;
  text-align: left;
}

progress {
  width: 120px;
  height: 20px;
}

.arrow-button {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 3px solid black;
  font-size: 24px;
  transition: all 0.3s;
  background-color: aqua;
  color: rgb(7, 7, 7);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.arrow-button:hover {
  background: linear-gradient(135deg, #00ff88 0%, #00ccaa 100%);
  color: #000;
}

.no-scroll {
  overflow: hidden !important;
}

.card-effect-gradient {
  background-image: linear-gradient(
    115deg,
    transparent 20%,
    #ff000045 36%,
    #00ff0048 43%,
    #0000ff57 50%,
    #ffff0063 57%,
    #ff00ff7b 64%,
    transparent 80%
  );
  background-position: 50% 50%;
  background-size: 250% 250%;
  mix-blend-mode: color-dodge;
  opacity: 0.88;
  filter: brightness(0.66) contrast(1.33);
  transition: opacity 0.5s ease;
}

.load-more-btn {
  position: relative;
  padding: 1.2rem 3rem;
  margin: 3rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: 3px solid black;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
  overflow: hidden;
}

.load-more-btn:before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.load-more-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.load-more-btn:hover:before {
  left: 100%;
}

.load-more-btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.load-more-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  background: linear-gradient(135deg, #999 0%, #666 100%);
  pointer-events: none;
}

.load-more-btn:disabled:hover {
  transform: none;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
  background: linear-gradient(135deg, #999 0%, #666 100%);
}

.tab-button {
  position: relative;
  padding: 1rem 2rem;
  margin: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--secondary-color);
  color: black;
  border: 3px solid black;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 255, 255, 0.3);
  overflow: hidden;
  z-index: 10;
}

.tab-button:before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.tab-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 255, 255, 0.6);
  background-color: var(--secondary-color);
  filter: brightness(1.1);
}

.tab-button:hover:before {
  left: 100%;
}

.tab-button.active {
  font-weight: bold;
  background: linear-gradient(135deg, #00ff88 0%, #00ccaa 100%);
  border: 3px solid #00ff88;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 35px rgba(0, 255, 136, 0.4), 0 0 20px rgba(0, 255, 136, 0.3);
  color: #000;
  text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}

.tab-button.active:before {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
}

.tab-container {
  display: flex;
  justify-content: center;
}

@media (max-width: 431px) {
  html {
    background-image: url(./imgs/background/Designer.jpeg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
    min-height: 100%;
  }
  
  body {
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: transparent;
  }
  
  main {
    flex: 1;
  }
  
  .header-content {
    width: auto;
    flex-direction: row;
    justify-content: space-between;
    padding: 5px 10px;
    max-width: none;
  }
  
  .header, header {
    padding: 8px;
    height: auto;
    min-height: 60px;
  }
  
  .headline-box {
    margin-right: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    transform: translateY(-15px);
  }
  
  .headline-icon {
    width: 40px;
  }
  
  .headline {
    font-size: 1.2rem;
    margin: 0;
  }
  
  .language-toggle {
    width: 60px;
    height: 30px;
    font-size: max(10px, 11px);
    padding: 0 4px;
    transform: translateY(-15px);
  }
  
  .language-toggle .slider {
    width: 24px;
    height: 24px;
    top: 2px;
    left: 2px;
  }
  
  .language-toggle.en .slider {
    transform: translateX(28px);
  }
  
  .language-toggle .lang-label {
    width: 24px;
    height: 24px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
  }
  
  .language-toggle .lang-label:first-of-type {
    left: 2px;
  }
  
  .language-toggle .lang-label:last-of-type {
    right: 2px;
  }
  
  .main-wrapper {
    margin: 5px auto;
    padding: 0 15px;
    font-size: 0.9rem;
    line-height: 1.5;
  }
  
  .footer {
    font-size: small;
    justify-content: space-between;
    padding: 12px 20px;
    height: 75px;
    margin-top: 0;
    margin-bottom: 0;
  }
  
  .footer .headline-box .headline {
    display: none;
  }
  
  .footer .headline-icon {
    width: 70px;
  }
  
  .header .headline-icon {
    width: 70px;
  }
  
  .headline-box .headline {
    display: none;
  }
  
  .button {
    font-size: 0.9rem;
    padding: 10px 20px;
  }

  .tab-button {
    font-size: 16px;
    padding: 0.7rem 1.2rem;
    margin: 3px;
  }

  .arrow-button {
    position: static;
    transform: none;
    margin: 10px;
  }

  .pokemon-card:hover:before,
  .pokemon-card:hover:after {
    mix-blend-mode: normal;
    opacity: 0.3;
    background-image: linear-gradient(
      115deg,
      transparent 20%,
      rgba(255, 215, 0, 0.6) 36%,
      rgba(255, 255, 255, 0.8) 43%,
      rgba(255, 215, 0, 0.7) 50%,
      rgba(255, 255, 255, 0.6) 57%,
      rgba(255, 215, 0, 0.5) 64%,
      transparent 80%
    );
  }
}

@media (min-width: 432px) and (max-width: 768px) {
  .footer .headline-icon.animate-logo {
    transform: translateY(-3px);
  }
}

@media (max-width: 365px) {
  .tab-button {
    font-size: 14px;
    padding: 0.5rem 1rem;
    margin: 2px;
  }

  .arrow-button {
    background-color: aqua;
  }
}

@media (min-width: 432px) and (max-width: 1400px) {
  .details-card {
    background-image: linear-gradient(
      115deg,
      transparent 20%,
      rgba(255, 0, 0, 0.15) 36%,
      rgba(0, 255, 0, 0.15) 43%,
      rgba(0, 0, 255, 0.15) 50%,
      rgba(255, 255, 0, 0.15) 57%,
      rgba(255, 0, 255, 0.15) 64%,
      transparent 80%
    );
    background-position: 50% 50%;
    background-size: 250% 250%;
    background-attachment: local;
  }

}

@media (min-width: 1401px) {
  .details-card {
    background-image: linear-gradient(
      115deg,
      transparent 20%,
      rgba(255, 0, 0, 0.15) 36%,
      rgba(0, 255, 0, 0.15) 43%,
      rgba(0, 0, 255, 0.15) 50%,
      rgba(255, 255, 0, 0.15) 57%,
      rgba(255, 0, 255, 0.15) 64%,
      transparent 80%
    );
    background-position: 50% 50%;
    background-size: 250% 250%;
    background-attachment: local;
  }

}

@media (min-width: 769px) {
  .footer .headline-icon.animate-logo {
    transform: translateY(-6px) !important;
  }
}