:root {
  --pico-primary: #fdd835;
}

#loading-indicator {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  /* Optional: This will make the article take up the full height of its parent */
}

[data-theme="light"],
:root:not([data-theme="dark"]) {
  #loading-indicator svg {
    fill: var(--pico-primary);
  }
}

.flex-container {
  display: flex;
  gap: 20px;
  /* Optional: Adds space between the elements */
}

aside {
  flex: 1;
  /* Optional: Adjusts the width of the aside */
}

aside button {
  width: 100%;
  padding: 0;
}

#pokemon-container {
  flex: 3;
  /* Optional: Adjusts the width of the pokemon-container */
  /* Optional: Adds space between the elements */
}

#pokemon-container .overview {
  display: grid;
grid-template-columns: repeat(3, 1fr);
grid-template-rows: 1fr;
grid-column-gap: 10px;
grid-row-gap: 0px;
}


#pokemon-container .stats {
  grid-area: 1 / 2 / 2 / 3;
  /* Optional: Adjusts the width of the stats */
}

#pokemon-container .sprite-grid {
  grid-area: 1 / 1 / 2 / 2; 
  /* Optional: Adjusts the width of the sprite */
}

#pokemon-container .types {
  grid-area: 1 / 2 / 2 / 3;
}

#pokemon-container .evs {
  grid-area: 1 / 3 / 2 / 4;
}

#pokemon-container li {
  list-style: none;
}

img.sprite {
  width: 10rem;
  height: auto;
}

.grass { background-color: #9bcc50; }

.fire { background-color: #fd7d24; }

.water { background-color: #4592c4; }

.bug { background-color: #729f3f; }

.normal { background-color: #a4acaf; }

.poison { background-color: #b97fc9; }

.electric { background-color: #eed535; }

.ground { background-color: #ab9842; }

.fairy { background-color: #fdb9e9; }

.fighting { background-color: #d56723; }

.psychic { background-color: #f366b9; }

.rock { background-color: #a38c21; }

.ghost { background-color: #7b62a3; }

.ice { background-color: #51c4e7; }

.dragon { background-color: #53a4cf; }

.dark { background-color: #707070; }

.steel { background-color: #9eb7b8; }

.flying { background-color: #3dc7ef; }

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeOutStatBg {
  from { background-color: var(--pico-form-element-valid-focus-color); }
  to { background-color: transparent; }
}

.fade-in-element {
  opacity: 0;
  animation: fadeIn 0.5s ease-in-out;
  animation-fill-mode: forwards;
}

progress {
  margin-top: .5em !important;
  height: .8em !important;
}

table.stats {
  table-layout: fixed;
}

.stat-label {
  width: 10rem;
  text-align: right;
}

.stat-base {
  width: 5rem;
  text-align: center;
}

.flash-stat {
  animation: fadeOutStatBg 0.5s ease-in-out;
  animation-fill-mode: forwards;
}

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

.text-right {
  text-align: right;
}

.text-left {
  text-align: left;
}

.text-muted {
  color: #6c757d;
}

table.data td, table.data th {
  background: transparent;
}

table.data th {
  vertical-align: top;
  text-align: right;
}

table ul {
  padding-left: 0;
}

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

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

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

.evolution-stage img {
  width: 5rem;
  height: auto;
}

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

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

.mx {
  margin-left: 0.5rem;
  margin-right: 0.5rem;
}

.my {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.mr {
  margin-right: 0.5rem;
}

.m-0 {
  margin: 0;
}

.p-0 {
  padding: 0;
}

.mb {
  margin-bottom: 0.5rem;
}

.px {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.px-1 {
  padding-left: 1rem;
  padding-right: 1rem;
}

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

.evolution-arrow {
  font-size: 2.5rem;
  margin: 0 10px;
}

.evolution-condition {
  font-size: 1rem;
  margin-top: 5px;
  text-align: center;
}

button > a {
  color: inherit;
  text-decoration: none;
}

img.logo {
  width: 4rem;
  height: auto;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

a {
  /* Remove pico underline */
  text-decoration: none;
  cursor: pointer;
}

button.collection {
  background-color: steelblue;
}

.title-header {
  font-size: 1.75rem;
}

#search-form {
  /* text-align: center; */
  position: relative;
  width: fit-content;
}

#pokemon-collection {
  position: absolute;
  top: 100%;
  max-height: 30vh;
  z-index: 69;
  scrollbar-width: none;
  left: 0;
  right: 0;
  background: var(--pico-primary-background);
  border: 0.1rem solid var(--pico-primary-background);
  border-radius: 1rem;
}

.visible {
  visibility: visible !important;
}

.d-none {
  display: none;
}

#pokemon-collection::-webkit-scrollbar {
  display: none;
}

#pokemon-collection table {
  background-color: var(--pico-primary-background);
}

#pokemon-collection table th:hover {
  background-color: var(--pico-primary-hover-background);
  cursor: pointer;
}