body {
    margin: 0;
    font-family: 'cronos', Arial, Helvetica, sans-serif;
    background: url("./img/background.jpg")
}

@font-face {
    font-family: 'cronos';
    src: url('./fonts/Cronos-Pro_12459.ttf') format('truetype');
}

.o-hidden{
    overflow: hidden;
}

#title:hover{
    cursor: pointer;
    transform: scale(1.1);
    filter: brightness(1.2);
}

#error-div {
    position: absolute;
    top: calc(50% - 124px);
    left: calc(50% - 394.5px);
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 20px;
    background: white;
    font-size: 32px;
    padding: 20px;
    border-radius: 10px;
    border: 5px solid black;
    height: 200px;
    z-index: 10;
}

#close-error-div {
    margin: 0;
    font-size: 50px;
    border-radius: 10px;
    padding: 0 16px;
    border-radius: 40px;
}

#close-error-div:hover {
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.17);
}

.header {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
}

.search {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search button {
    margin-left: unset !important;
    font-size: 24px;
}

.search input {
    height: 20px;
    border-radius: 20px;
    padding: 5px 10px;
    border: 6px solid #E6C81D;
    outline: none;
}

#detail-window {
    position: absolute;
    width: 400px;
    top: calc(50% - 300px);
    left: calc(50% - 200px);
    border: 10px solid #E6C81D;
    border-radius: 53px
}

#pokemon-detail {
    min-height: 340px;
    color: black;
    display: flex;
    flex-direction: column;
    padding: 10px 24px;
    border-top-left-radius: 40px;
    border-top-right-radius: 40px;
}

#pokemon-pic {
    width: 250px;
    height: 250px;
    margin-top: -200px;
}

#info-container {
    background-color: white;
    min-height: 100px;
    margin-top: -40px;
    border-radius: 40px;
    display: flex;
    align-items: center;
    flex-direction: column;
    border: 1px solid black;
}

#headline {
    display: flex;
    justify-content: space-between;
}

#pokemon-categories {
    display: flex;
    gap: 16px;
}

#poke-index {
    font-weight: 900;
    padding: 4px 0;
}

.pokemon-type {
    background: rgba(0, 0, 0, 0.17);
    width: 86px;
    text-align: center;
    padding: 4px 0;
    border-radius: 10px;
}

.d-none {
    display: none !important;
}

.open-topic {
    color: black !important;
    border-bottom: 1px solid blue;
}

#info-topics {
    display: flex;
    padding: 40px 0;
    margin: -30px 0;
    justify-content: space-evenly;
    color: rgb(212, 214, 217);
}

.topic {
    padding-bottom: 10px;
}

.topic:hover {
    cursor: pointer;
}

#info-area {
    display: flex;
    justify-content: center;
    padding: 20px 0;
    height: 140px;
}

.progress-bar-outisde {
    width: 160px;
    background-color: #DAD3CB;
    height: 10px;
    border-radius: 10px;
}

.progress-bar-inside {
    height: 100%;
    background-color: #333333;
    border-radius: 10px;
}

#table-about {
    border-spacing: 50px 5px;
}

#table-base-stats {
    border-spacing: 25px 1px;
}

.pokemon {
    display: flex;
    width: 200px;
    height: 300px;
    border-radius: 10px;
    padding: 8px 12px;
    margin: 13.5px 10px;
    flex-direction: column;
    border: 12px solid #E6C81D;
    transition: 200ms;
}

.pokemon:hover {
    cursor: pointer;
    transform: scale(1.15);

    .pokemon-overview-pic {
        transform: scale(1.3);
    }
}

.pokemon-overview {
    color: black;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pokemon-overview-title {
    font-size: 24px;
    font-weight: 700;
}

.pokemon-overview-pic {
    height: 113px;
    margin-top: 20px;
    transition: 200ms;
}

#pokedex {
    display: flex;
    margin: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

#loading-animation {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    height: 100%;
    width: 100%;
    background-color: black;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 40px;
}

#turning-img {
    animation: spin 2s linear infinite;
    width: 200px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

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

#turning-slogan {
    width: 300px;
}

#pokedex-lock {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    height: 100%;
    width: 100%;
    backdrop-filter: blur(10px);
}

#close-pokemon {
    cursor: pointer;
    border-radius: 30px;
    padding: 0 9.5px;
}

#close-pokemon:hover {
    background-color: rgba(0, 0, 0, 0.17);
}

.img {
    display: flex;
    justify-content: center;
    width: 196px;
    height: 130px;
    border: 2px solid #E6C81D;
    margin: 8px 0 30px 0;
    background: url("./img/background_small.jpg");
}

.types {
    display: flex;
    gap: 10px;
}

#pokeball {
    width: 40px;
    height: 40px;
    padding-left: 10px;
}

#title-img {
    height: 120px;
    width: auto;
}

#title {
    display: flex;
    align-items: center;
    gap: 10px;
}

#blurred-background{
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 2;
}

.footer {
    margin: 10px;
    font-size: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.c-white {
    color: white;
}

button {
    padding: 5px;
    margin-left: calc(50% - 65px);
    color: #E6C81D;
    background: #375FAB;
    border: 1px solid #E6C81D;
    border-radius: 4px;
    font-weight: 700;
}

button:hover {
    cursor: pointer;
    transform: scale(1.1);
    filter: brightness(1.2);
}

.arrow {
    width: 50px;
    border-radius: 40px;
    padding: 2px;

}

#arrows {
    display: flex;
    justify-content: space-between;
    margin-top: 110px;
}

#arrows img:hover {
    background-color: rgba(0, 0, 0, 0.17);
    cursor: pointer;
}

@media(max-width: 900px) {
    .header {
        flex-direction: column;
    }

    #error-div {
        font-size: 18px;
        height: 120px;
        top: calc(50% - 84px);
        left: calc(50% - 239px);
    }

    #close-error-div {
        font-size: 32px;
        padding: 0px 10px;
    }
}

@media(max-width: 500px) {

    #error-div {
        width: 252px;
        left: calc(50% - 150px);
        font-size: 16px;
        height: 100px;
        top: calc(50% - 74px);
    }

    #close-error-div {
        font-size: 24px;
        padding: 0 8px;
    }

    #detail-window {
        width: 280px;
        border: 7px solid #E6C81D;
        border-radius: 48px;
        top: calc(50% - 217px);
        left: calc(50% - 147px);
    }

    #pokemon-detail {
        min-height: 232px;
    }

    #pokemon-pic {
        height: 125px;
        width: 125px;
        margin-top: -93px;
    }

    #table-base-stats {
        border-spacing: 10px 1px;
    }

    .progress-bar-outisde {
        width: 130px;
    }

    #table-about {
        border-spacing: 30px 5px;
    }

    .arrow {
        margin: 0 -25px;
        width: 40px;
        height: 40px;
    }

    #arrows {
        margin-top: 35px;
    }

    #info-topics {
        padding: 21.5px 0;
    }

    #info-area {
        padding: 20px 0px;
        height: 123px;
    }

    #table-base-stats {
        font-size: 14px;
    }

}

@media(max-width: 450px) {
    #title-img {
        height: 83px;
    }

    .search {
        flex-direction: column;
    }
}