@import url("https://fonts.googleapis.com/css2?family=Patrick+Hand&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Bangers&display=swap");

.patrick-hand-regular {
  font-family: "Patrick Hand", cursive;
  font-weight: 400;
  font-style: normal;
}

.bangers-regular {
  font-family: "Bangers", system-ui;
  font-weight: 400;
  font-style: normal;
}

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

html,
body {
  background-color: #f9c611;
  margin: 0;
  padding: 0;
  height: 100%;
}

.hero {
  background-image: url("images/header.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 200px;
  width: 100vw;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  position: relative;
}

.two-columns {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 20px;
  padding: 40px;
  width: 50%;
  margin: 0 auto;
}

.left-panel {
  flex: 1;
  background-color: #28438b;
  padding: 20px;
  border-radius: 8px;
  max-height: 550px;
  overflow-y: scroll;
  color: #f9c611;
  font-family: "Bangers", system-ui;
  text-align: center;
}
/* 
.left-panel h2 {
      text-align: center;
} */

.left-panel ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.left-panel li {
  padding: 8px 12 px;
  margin-bottom: 6px;
  background-color: transparent;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s;
  color: #f9c611;
  font-family: "Patrick Hand", cursive;
}

.left-panel::-webkit-scrollbar {
  width: 6px;
}
.left-panel::-webkit-scrollbar-thumb {
  background-color: white;
  border-radius: 3px;
}
.left-panel::-webkit-scrollbar-track {
  background-color: transparent;
}

.right-panel {
  flex: 1;
  padding: 0px;
  border-radius: 8px;
  background-image: url("images/pokemon_frames/frame.png"); /* static background */
  background-size: contain;
  background-position: top;
  background-repeat: no-repeat;
  position: relative;
  min-height: 550px;
  width: 100%
}

@media (max-width: 900px) {
  .two-columns {
    width: 75%;
  }
}

@media (max-width: 1024px) {
  .two-columns {
    width: 95%;
  }
}

.pokemon-card img {
  image-rendering: pixelated;
  display: block;
  margin: 0 auto;
  width: 180px;
}

.pokemon-card h2 {
  font-family: "Bangers", system-ui;
  color: #28438b;
  margin: 20px 0 0 110px;
}

.pokemon-card h4 {
  margin: 8px 0;
  font-size: 1rem;
  color: #28438b;
  font-family: "Patrick Hand", cursive;
  text-align: center;
}
#pokemon-id {
  display: inline-block;
  background-color: #28438b;
  color: #f9c611;
  padding: 0px 10px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-family: "Bangers", system-ui;
  margin-top: 62px;
  margin-left: 315px;
  margin-bottom: 10px;
  letter-spacing: 1px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.carousel-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px
}

.carousel-buttons button {
    padding: 10px 20px;
    background-color:#28438b;
    font-family: "Patrick Hand", cursive;
    color:#f9c611;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: opacity 0.2s ease;

}

.carousel-buttons button:hover {
    opacity: 0.8;
}

.carousel-buttons button:disabled {
    background-color: #f9c611;
    cursor: default;
}

.right-panel-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 550px;
}

/* Card Transition */
.pokemon-card {
    opacity: 0;
    transition: opacity 0.4s ease;
}

.pokemon-card.fade-in {
    opacity: 1;
}

.loader {
    display: flex;
    justify-content: center;
    align-items: top;
    height: 100%;
    min-height: 550px;
    background-color: transparent;
}

.loader::before {
    content: "";
    display: block;
    width: 250px;
    height: 250px;
    background-image: url("images/gifs/pikachu-running.gif");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

