*::-webkit-scrollbar {
    width: 12px;
  }

  *::-webkit-scrollbar-track {
    background: #fff;
  }

  *::-webkit-scrollbar-thumb {
    background-color: #242424;
    border-radius: 10px;
    border: 3px none #ffffff;
  }

.card {
    border: none;
    border-radius: 10px;
}

.card:hover {
    filter: drop-shadow(1px 2px 3px rgba(0,0,0,0.7));
}

.image-container {
    height: 150px;
    overflow: hidden;
}

.image-container > img {
    height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: all 225ms;
}

.pokemon-category {
    background-color: rgba(0,0,0,0.3);
}

.type-icon {
    height: 32px;
    width: 32px;
}

.stage-icon {
    height: 48px;
    width: 48px;
}

/* popup overlay, which opens when a pokemon card is clicked */

.popup-overlay-bg {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    height: 100vh;
    width: 100%;
    background-color: rgba(0,0,0,0.5);
}

@media (min-width: 769px) {
    .overlay-outer-div {
        display: flex;
        flex-direction: column;
        width: 70%;
        margin: 0 auto;
    }
}

@media (min-width: 1025px) {
    .overlay-outer-div {
        display: flex;
        flex-direction: column;
        width: 50%;
        margin: 0 auto;
    }
}

@media (min-width: 1441px) {
    .overlay-outer-div {
        max-width: 720px;
        height: 100vh;
        display: flex;
        justify-content: center;
    }
}

.overlay-img-container {
    position: relative;
    padding: 16px;
    background-color: white;
}

#currentImage {
    width: 100%;
    max-height: 25vh;
    object-fit: contain;
}

@media (min-width: 481px) {
    #currentImage {
        height: 100%;
        object-fit: contain;
    }
}

.icon-container {
    position: absolute;
    top: 16px;
    left: 8px;
}

.icon-container:hover {
    background-color: rgba(0,0,0,0.1);
}

/* circle .parent behind type-images */

.type-container, .icon-container {
    border-radius: 50%;
    padding: 8px;
}

.loading-spinner-bg {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: white;
    z-index: 9999;
}

.loading-spinner {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
}

/* Content Section of overlay popup */

.overlay-content-section {
    height: 65vh;
    background-color: #242424;
    padding: 16px 16px;
    color: white;
}

@media (max-height: 769px) {
    .overlay-content-section {
        overflow-y: scroll;
    }
}

@media (min-width: 1441px) {
    .overlay-content-section {
        justify-content: center;
        height: 520px;
    }
}

.card-details-container {
    padding: 32px 8px;
}

.stats-container {
    padding: 16px 0px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.evolution-container {
    padding: 16px 0px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.evolution-img {
    height: 100px;
}

/* bg colors based on type */

.bg-color-normal, .type-container-normal {
    background-color: rgba(168, 168, 120, 1); /* Beige */
}

.bg-color-fighting, .type-container-fighting {
    background-color: rgba(192, 48, 40, 1); /* Dunkelrot */
}

.bg-color-flying, .type-container-flying {
    background-color: rgba(168, 144, 240, 1); /* Hellblau */
}

.bg-color-poison, .type-container-poison {
    background-color: rgba(160, 64, 160, 1); /* Violett */
}

.bg-color-ground, .type-container-ground {
    background-color: rgba(224, 192, 104, 1); /* Braun */
}

.bg-color-rock, .type-container-rock {
    background-color: rgba(184, 160, 56, 1); /* Dunkelbeige */
}

.bg-color-bug, .type-container-bug {
    background-color: rgba(168, 184, 32, 1); /* Grün */
}

.bg-color-ghost, .type-container-ghost {
    background-color: rgba(112, 88, 152, 1); /* Dunkelviolett */
}

.bg-color-steel, .type-container-steel {
    background-color: rgba(184, 184, 208, 1); /* Grau */
}

.bg-color-fire, .type-container-fire {
    background-color: rgba(240, 128, 48, 1); /* Orange */
}

.bg-color-water, .type-container-water {
    background-color: rgba(104, 144, 240, 1); /* Blau */
}

.bg-color-grass, .type-container-grass {
    background-color: rgba(120, 200, 80, 1); /* Grün */
}

.bg-color-electric, .type-container-electric {
    background-color: rgba(248, 208, 48, 1); /* Gelb */
}

.bg-color-psychic, .type-container-psychic {
    background-color: rgba(248, 88, 136, 1); /* Rosa */
}

.bg-color-ice, .type-container-ice {
    background-color: rgba(152, 216, 216, 1); /* Hellblau */
}

.bg-color-dragon, .type-container-dragon {
    background-color: rgba(112, 56, 248, 1); /* Dunkelblau */
}

.bg-color-dark, .type-container-dark {
    background-color: rgba(112, 88, 72, 1); /* Dunkelbraun */
}

.bg-color-fairy, .type-container-fairy {
    background-color: rgba(238, 153, 172, 1); /* Hellrosa */
}

/* Hover effect on card, based on bg-colors */

.bg-color-normal-hvr:hover {
    background-color: rgba(168, 168, 120, 0.7); /* Beige */
}

.bg-color-fighting-hvr:hover {
    background-color: rgba(192, 48, 40, 0.7); /* Dunkelrot */
}

.bg-color-flying-hvr:hover {
    background-color: rgba(168, 144, 240, 0.7); /* Hellblau */
}

.bg-color-poison-hvr:hover {
    background-color: rgba(160, 64, 160, 0.7); /* Violett */
}

.bg-color-ground-hvr:hover {
    background-color: rgba(224, 192, 104, 0.7); /* Braun */
}

.bg-color-rock-hvr:hover {
    background-color: rgba(184, 160, 56, 0.7); /* Dunkelbeige */
}

.bg-color-bug-hvr:hover {
    background-color: rgba(168, 184, 32, 0.7); /* Grün */
}

.bg-color-ghost-hvr:hover {
    background-color: rgba(112, 88, 152, 0.7); /* Dunkelviolett */
}

.bg-color-steel-hvr:hover {
    background-color: rgba(184, 184, 208, 0.7); /* Grau */
}

.bg-color-fire-hvr:hover {
    background-color: rgba(240, 128, 48, 0.7); /* Orange */
}

.bg-color-water-hvr:hover {
    background-color: rgba(104, 144, 240, 0.7); /* Blau */
}

.bg-color-grass-hvr:hover {
    background-color: rgba(120, 200, 80, 0.7); /* Grün */
}

.bg-color-electric-hvr:hover {
    background-color: rgba(248, 208, 48, 0.7); /* Gelb */
}

.bg-color-psychic-hvr:hover {
    background-color: rgba(248, 88, 136, 0.7); /* Rosa */
}

.bg-color-ice-hvr:hover {
    background-color: rgba(152, 216, 216, 0.7); /* Hellblau */
}

.bg-color-dragon-hvr:hover {
    background-color: rgba(112, 56, 248, 0.7); /* Dunkelblau */
}

.bg-color-dark-hvr:hover {
    background-color: rgba(112, 88, 72, 0.7); /* Dunkelbraun */
}

.bg-color-fairy-hvr:hover {
    background-color: rgba(238, 153, 172, 0.7); /* Hellrosa */
}
