body {
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    background-color: black;
    color: white;
}

button {
    cursor: pointer;
    border-radius: 5px;
    border: none;    
    background-color: #3D7DCA;
    color: white;
    padding: 10px 20px;
    font-size: 16px;
}

button:hover {
    cursor: pointer;
    color: #003A70;
    background-color: #FFCB05;
}

.capitalize {
    text-transform: capitalize;
}


/* Header */

header {
    background-color: #FFCB05;
    color: #003A70;
    padding: 0 10px;
    height: 60px;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    z-index: 1;
}

#headerLeft {
    display: flex;
    align-items: center;
    gap: 5px;
}

#headerLogo {
    height: 40px;
}

h1 {
    margin: 0;
}

h1:hover {
    cursor: pointer;
    color: white;
}

#headerRight {
    padding-right: 40px;
    display: flex;
    gap: 5px;
}


/* Search Bar */

input {
    border: 2px solid #3D7DCA;
    padding: 2px 5px;
    width: 150px;
}

.searchClearButtons {
    padding: 5px;
    font-size: 14px;
}

.searchClearButtons:hover {
    background-color: #003A70;
    color: white;
}


/* Search Alert */

.searchAlert {
    background-color: #3D7DCA;
    color: white; 
    padding: 30px;
    border-radius: 10px;
    margin: 3px;
}


/* Main */

#main {
    /* width: 100vw; */
    padding: 100px 5px;
    display: flex;
    flex-direction: column;
}

/* Pokemon Cards */

#content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.pokemonCard {
    width: 200px;
    height: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    border-radius: 5px;
}

.pokemonCard:hover {
    cursor: pointer;
}

.cardHeader {
    width: 180px;
    margin: 5px;
    padding: 5px;
    border-radius: 5px;
    background-color: black;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    text-align: right;
}

.pokemonImg {
    height: 100px;
}

.pokemonImg:hover {
    height: 110px;
    filter: saturate(3);
}

.pokemonTypes {
    padding-bottom: 10px;
}

.pokemonType {
    background-color: black;
    border-radius: 5px;
    padding: 5px 10px;
}


/* Pokemon Cards: Background Colors */

.bg-bug {
    background-color: #91A119;
}

.bg-dark {
    background-color: #624D4E;
}

.bg-dragon {
    background-color: #5060E1;
}

.bg-electric {
    background-color: #FAC000;
}

.bg-fairy {
    background-color: #EF70EF;
}

.bg-fighting {
    background-color: #FF8000;
}

.bg-fire {
    background-color: #E62829;
}

.bg-flying {
    background-color: #81B9EF;
}

.bg-ghost {
    background-color: #704170;
}

.bg-grass {
    background-color: #3FA129;
}

.bg-ground {
    background-color: #915121;
}

.bg-ice {
    background-color: #3DCEF3;
}

.bg-normal {
    background-color: #9FA19F;
}

.bg-poison {
    background-color: #9141CB;
}

.bg-psychic {
    background-color: #EF4179;
}

.bg-rock {
    background-color: #AFA981;
}

.bg-steel {
    background-color: #60A1B8;
}

.bg-stellar {
    background-color: #44628D;
}

.bg-water {
    background-color: #2980EF;
}


/* Big Cards */

.hideOverflow {
    overflow: hidden;
}

.bigCardContainerBg {
    background-color: rgba(0,0,0,0.6);
    z-index: 2;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

#bigCard {
    position: relative;
}

.bigCardBg {
    width: 450px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    border-radius: 5px;
}

.bigCardHeader {
    width: 430px;
    margin: 5px;
    padding: 5px;
    border-radius: 5px;
    background-color: black;
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.bigPokemonImg {
    height: 200px;
}

.bigPokemonImg:hover {
    filter: saturate(3);
}

.bigCardTypeImg {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 220px;
}

.bigCardTypes {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

hr {
    width: 430px;
    border: 3px solid #FFCB05;
    border-radius: 20px;
    position: absolute;
    top: 252px;
}

.bigCardButtonsContent {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 200px;
}

#bigCardButtons {
    text-align: center;
}

#bigCardButtons button {
    background-color: #FFCB05;
    border-radius: 0;
    color: #003A70;
    width: 100px;
}

#bigCardButtons button:hover {
    color: white;
}

.bigCardButtonsActive {
    border: 4px solid #003A70;
    background-color: #3D7DCA;
    color: white;
}

.bigCardContent {
    align-self: center;
    padding: 20px;
}

.bigCardButtonsLeftRight {
    width: 30px;
}

.bigCardButtonsLeftRight:hover {
    filter: invert(100%);
    cursor: pointer;
}

#bigCardButtonLeft {
    position: absolute;
    top: 230px;
    left: 5px;
    z-index: 2;
}

#bigCardButtonRight {
    position: absolute;
    top: 230px;
    right: 5px;
    z-index: 2;
}


/* Big Cards Stats Bars */

.statContainer {
    width: 420px;
    padding: 1px;
}

.statBar {
    max-width: 420px;
    border-radius: 5px;
    border: 1px solid #003A70;
    white-space: nowrap;
    height: 20px;
    font-size: 14px;
    padding: 1px;
}


/* Big Cards Abilities Table */

table {
    margin: 0 20px;
}

td {
    border-radius: 10px;
    padding: 5px 10px;
}

td:first-child {
    background-color: #003A70;
}

td:last-child {
    background-color: #3D7DCA;
}


/* Button: Load more Pokemons */

#buttonArea {
    margin-top: 30px;
    text-align: center;
}

.pokemonNumber {
    padding-bottom: 20px;
}

/* Impressum */

#impressum {
    background-color: #3D7DCA;
    color: white;
    border-radius: 10px;
    padding: 20px 40px;
    margin: 3px;
}

h2 {
    /* margin: 40px 0; */
    font-weight: normal;
}

a {
    text-decoration: none;
    color: white;
}

a:hover {
    cursor: pointer;
    color: #003A70;
}


/* Footer */

footer {
    font-size: 16px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 40px;
    background-color: #3D7DCA;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
}

#linkImpressum {
    position: fixed;
    right: 15px;
}

#linkImpressum:hover {
    cursor: pointer;
    color: #003A70;
}


/* Progress Bar */ /* andere Möglichkeit: Loading Spinner direkt in Main*/

#progressBar {
    position: relative;
    height: 10px;
    width: 200px;
    border: 10px solid #003A70;
    border-radius: 15px;
}

#progressBar .color {
    position: absolute;
    background-color: white;
    width: 0px;
    height: 10px;
    border-radius: 15px;
    animation: progressBar 4s infinite linear;
}

.hide {
    display: none;
}


/* Responsiveness */

@media screen and (max-width: 500px) {

    input {
        width: 130px;
    }

    .bigCardBg {
        width: 400px;
    }

    .bigCardHeader {
        width: 380px;
    }

    hr {
        width: 380px;
    }

    .bigCardContent {
        padding: 10px;
    }

    .statContainer {
        width: 360px;
    }
    
    .statBar {
        max-width: 360px;
    }

    table {
        margin: 0 10px;
    }

}

@media screen and (max-width: 420px) {

    header {
        padding: 0 5px;
    }

    #headerLogo {
        height: 35px;
    }

    h1 {
        font-size: 24px;
    }

    #headerRight {
        padding-right: 25px;
    }

    .bigCardBg {
        width: 300px;
    }

    .bigCardHeader {
        width: 280px;
    }

    hr {
        width: 280px;
    }

    #bigCardButtons button {
        width: 80px;
        font-size: 14px;
        padding: 10px;
    }

    .statContainer {
        width: 260px;
    }
    
    .statBar {
        max-width: 260px;
    }

}

@media screen and (max-width: 380px) {

    #headerLeft {
        gap: 1px;
    }

    h1 {
        font-size: 22px;
    }

    #headerRight {
        gap: 2px;
    }

    input {
        width: 100px;
    }

}


/* For Progress Bar */

@keyframes progressBar {
    0% {
        width: 0%;
    }
    50% {
        width: 100%;
    }
    100% {
        width: 0%;
    }
};