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

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

}

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

*::-webkit-scrollbar-thumb {
    background-color: navy;
    border-radius: 20px;
    border: 1px solid grey;
}

html {
    height: 100%;
    scroll-behavior: smooth;
}


body {
    font-family: "Roboto", sans-serif;
    font-size: 1.125rem;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

.no-scroll {
    overflow: hidden;
}

p {
    color: white;
}

.font-size {
    font-size: 1.5rem;
}

img {
    max-width: 100%;
    display: block;
}

/* Header-Settings */

header {
    background-color: yellow;
}

.header-content {
    max-width: 1920px;
    padding: 0em 2em;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-pokemon-logo-image {
    width: 150px;
    height: 150px
}

.header-pokemonball-image {
    width: 75px;
    height: 75px;
}

/* Main-Section */

.bg-navy {
    background-color: navy;
    min-height: 100vh;
}

.inputfield-container {
    margin-top: 1em;
    display: flex;
    justify-content: center;
}

.inputfield-container input {
    height: 3em;
    width: 20em;
    padding-left: 0.5em;
    font-weight: bold;
    display: flex;
    justify-content: center;
}

#search-input-field {
    display: none;
}

.load-more-pokemon-wrapper {
    color: white;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Load-more-Button */

.load-more-button-container {
    display: flex;
    justify-content: center;
    margin-bottom: 1em;
}

.load-more-button-container button {
    border-radius: 100px;
    transition: .3s ease-in-out;
}

.load-more-button-container button:hover {
    cursor: pointer;
    transform: scale(1.1);
}

.load-more-button-container button img {
    width: 80px;
    height: 80px;
}

/* Content */

.content-container {
    min-height: 65vh;
    max-width: 1920px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.card {
    border: solid 10px yellow;
    padding: 0.5em;
    margin: 1.75em 2em;
    border-radius: 15px;
    width: 16em;
    height: 32em;
    transition: .3s ease-in-out;
}

.card:hover {
    cursor: pointer;
    transform: scale(1.02);
}

.single-card {
    border: solid 10px yellow;
    padding: 0.5em;
    border-radius: 15px;
    width: 16em;
}

.single-card h1 {
    font-size: 1.5rem;
}

.pokemon-image-container {
    padding: 1em 1em;
    margin-top: 1em;
    box-shadow: 0px 1px 8px black;
    display: flex;
    justify-content: center;
}

.pokemon-image {
    width: 150px;
    height: 150px;
}

.abilities {
    height: 6em;
    padding: 0.5em 1em;
    margin-top: 1em;
    color: white;
    box-shadow: 0px 1px 8px black;
}

.abilities h3 {
    margin-bottom: 0.5em;
}

.stats {
    padding: 0.5em 1em;
    margin-top: 1em;
    color: white;
    box-shadow: 0px 1px 8px black;
}

.stats h3 {
    margin-bottom: 0.5em;
}

.types {
    display: flex;
    flex-basis: 10ch;
    flex-direction: column;
    align-items: end;
    gap: 12px;
    color: white;
}

.name-and-id-container {
    box-shadow: 0px 1px 8px black;
    padding: 1em 1em;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: white;
}

.height-and-weight-container {
    color: rgb(255, 255, 255);
    padding: 0.5em 1em;
    margin-top: 1em;
    box-shadow: 0px 1px 8px black;
}

.dialog {
    background-color: rgba(128, 128, 128, 0.9);
    z-index: 999;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.close-Button-container {
    max-width: 1920px;
    height: 100%;
    width: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.close-button {
    position: absolute;
    top: 32px;
    right: 32px;
    padding: 1em 2em;
    background-color: yellow;
    border: solid 5px black;

}

.show-single-card {
    background-color: transparent;
    width: 30em;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
}

.next-image-button {
    border: none;
    padding: 1.5em 2.5em;
    background-color: yellow;
    cursor: pointer;
}

.next-image-button-disabled {
    border: none;
    padding: 1.5em 2.5em;
    background-color: rgb(160, 160, 90);
    cursor: pointer;
}

.previous-image-button {
    border: none;
    padding: 1.5em 2.5em;
    background-color: yellow;
    cursor: pointer;
}

.previous-image-button-disabled {
    border: none;
    padding: 1.5em 2.5em;
    background-color: rgb(160, 160, 90);
    cursor: pointer;
}

.button-arrow {
    font-size: 1.125rem;
}

.stats-and-move-button-container {
    color: white;
    margin-top: 1em;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.stats-and-move-button-container button {
    color: white;
    padding: 0.5em 1em;
    cursor: pointer;
    border: solid 3px black;
}

.moves p {
    padding: 0.25em 0em;
}

.d-none {
    display: none;
}

.sound-button {
    margin-top: 1em;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 100px;
    cursor: pointer;
}

progress {
    /* RESETS */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border: none;
    height: 10px;
}

progress::-webkit-progress-bar {
    background-color: transparent;
    border-radius: 20px;
    height: 10px;
}

/* progress::-webkit-progress-value {
    background: linear-gradient(to right, red, green);
} */

progress.low::-webkit-progress-value {
    background: red;
}

progress.medium::-webkit-progress-value {
    background: orange;
}

progress.high::-webkit-progress-value {
    background: green;
}

progress.low::-moz-progress-bar {
    background: red;
}

progress.medium::-moz-progress-bar {
    background: orange;
}

progress.high::-moz-progress-bar {
    background: green;
}

.pokemon-not-found-container {
    text-align: center;
    padding: 0em 2em;
    height: 30em;
    width: 120em;
    display: flex;
    justify-content: center;
    align-items: center;
}

.stats {
    height: 150px;
    overflow: auto;
    scrollbar-width: 0px;
}

.stats::-webkit-scrollbar {
    display: none;
}

.type-grass {
    background-color: #78C850;
}

.type-fire {
    background-color: #F08030;
}

.type-water {
    background-color: #6890F0;
}

.type-bug {
    background-color: #A8B820;
}

.type-normal {
    background-color: #A8A878;
}

.type-poison {
    background-color: #A040A0;
}

.type-electric {
    background-color: #F8D030;
}

.type-ground {
    background-color: #E0C068;
}

.type-fighting {
    background-color: #C03028;
}

.type-psychic {
    background-color: #F85888;
}

.type-rock {
    background-color: #B8A038;
}

.type-ghost {
    background-color: #705898;
}

.type-ice {
    background-color: #98D8D8;
}

.type-dragon {
    background-color: #7038F8;
}

.type-dark {
    background-color: #705848;
}

.type-steel {
    background-color: #B8B8D0;
}

.type-fairy {
    background-color: #EE99AC;
}

.type-padding {
    padding: 0.25em 0.5em;
    border-radius: 10px;

}

.bg-normal {
    background-color: #d1cf88;
}

.bg-fire {
    background-color: red;
}

.bg-water {
    background-color: blue;
}

.bg-electric {
    background-color: #d7ae09;
}

.bg-grass {
    background-color: #44ad07;
}

.bg-ice {
    background-color: #34d2ca;
}

.bg-fighting {
    background-color: #a3241f;
}

.bg-poison {
    background-color: #4d0a4b;
}

.bg-ground {
    background-color: #eed28d;
}

.bg-flying {
    background-color: #A98FF3;
}

.bg-psychic {
    background-color: #c7456c;
}

.bg-bug {
    background-color: #6e7b0f;
}

.bg-rock {
    background-color: #867416;
}

.bg-ghost {
    background-color: #8c66bd;
}

.bg-dragon {
    background-color: #5930bf;
}

.bg-dark {
    background-color: #4a392d;
}

.bg-steel {
    background-color: #9797ad;
}

.bg-fairy {
    background-color: #D685AD;
}

.spinner {
    width: 120px;
    height: 120px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translateX(-50%);
}

.spinner-render-more-pokemon {
    width: 80px;
    height: 80px;
}

.spinner-image {
    width: 100%;
    height: 100%;
    animation: spin 2s linear infinite;
}

/* Spinner Animation */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

footer {
    background-color: #DD032C;
    margin-top: auto;
    padding: 5em 0em;
}

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

@media (max-width: 720px) {
    .card {
        margin: 1.75em 1em;
    }

    .header-content {
        padding: 0em 1em;
    }
}

@media (max-width: 650px) {
    .content-container {
        justify-content: center;
    }

    .card {
        margin: 1em 1em;
    }
}

@media (max-width: 600px) {

    .close-Button-container {
        flex-direction: column;
    }

    .dialog {
        flex-direction: column;
    }

    .mobile-switch-image-container {
        width: 15em;
        display: flex;
        justify-content: space-between;
        margin-top: 1em;
    }

    #previous-button {
        display: none;
    }

    #next-button {
        display: none;
    }

    .header-pokemon-logo-image {
        width: 100px;
        height: 100px;

    }

    .header-pokemonball-image {
        width: 50px;
        height: 50px;
    }
}


@media (max-width: 450px) {
    body {
        font-size: 1rem;
    }

    .card {
        height: 30em;
    }

    .stats h3 {
        font-size: 1.1rem;
    }

    .pokemon-image {
        width: 100px;
        height: 100px;
    }

    .mobile-switch-image-container {
        margin-top: 0.5em;
        height: 2em;
    }

    .next-image-button {
        padding: 0.5em 1em;
    }

    .next-image-button-disabled {
        padding: 0.5em 1em;
    }

    .previous-image-button {
        padding: 0.5em 1em;
    }

    .previous-image-button-disabled {
        padding: 0.5em 1em;
    }

    .close-button {
        top: 8px;
        right: 8px;
        padding: 0.25em 0.5em;
        background-color: yellow;
        border: solid 1px black;
    }
}