html,
body {
    background-color: #F6F8FC;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    width: 100%;
}

header {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    background-color: #000;
    flex-shrink: 0;
    margin-bottom: 20px;
    background-image: url("assets/img/pokemonheader.PNG");
    object-fit: contain;
    border-bottom: 1.5mm ridge black;
    border-left: 1.5mm ridge black;
    border-right: 1.5mm ridge black;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

footer {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    background-color: #0b162a;
    color: white;
    flex-shrink: 0;
    margin-top: 20px;
}

main {
    flex: 1 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    max-width: 1440px;
    margin: 0 auto;
    width: 100%;
}

.custom-input {
    width: 60%;
}

.loadingoverlay {
    background-color: rgba(0, 0, 0, 0.5);
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: white;
}

.overlayhtml {
    position: fixed;
    inset: 0;
    z-index: 9999;
}

.buttonmore{

}

.pokecard {
    border-radius: 25px;
    border: 1.5mm ridge black;
    background-color: #F6F8FC;
    text-align: center;
    color: black;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 50px;
}

.pokecard:hover {
    transition: transform 0.3s ease;
    transform: scale(1.15);
    cursor: pointer;
}

.images {
    height: 113px;
    width: 120px;
}

.images:hover {
    transition: transform 0.3s ease;
    transform: scale(2.05);
    cursor: pointer;
    position: relative;
    z-index: 2;
}

.statsrender {
    border-radius: 25px;
    border: 1.5mm ridge black;
    background-color: #F6F8FC;
    text-align: center;
    color: black;
    padding: 50px;
    padding-bottom: 20px;
    cursor: default;
    position: relative;
}

.overlaystats {
    background-color: rgba(0, 0, 0, 0.5);
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.imagesoverlay {
    height: 113px;
    width: 120px;
}

.evolution-chain {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

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

.evo-box img {
    width: 130px;
    height: 130px;
}

.arrowevolution {
    font-size: 24px;
}

.icons {
    height: 60px;
    width: 60px;
    cursor: pointer;
}

.icon.x:hover svg circle,
.icon.x:hover svg path {
    fill: red;
    transition: stroke 0.3s ease;
}

.icon.x {
    cursor: pointer;
    display: inline-block;
}

.icon.x:hover svg {
    transform: scale(1.1) scaleX(var(--flip, 1));
    transition: transform 0.2s ease, stroke 0.3s ease;
}

.icon.arrow svg {
    transform: scaleX(var(--flip, 1));
}

.icon.arrow svg path {
    transition: fill 0.3s ease;
}

.icon.arrow:hover svg path {
    fill: #000000;
}

.icon.arrow:hover svg .cls-1 {
    fill: #0d6efd;
}

.icon.arrow:hover svg {
    transform: scale(1.1);
    transition: transform 0.2s ease;
}



.arrow-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 20px;
}

.arrow {
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: stroke 0.2s ease;
}

.arrow:hover path {
    stroke: blue;
}

.autocomplete-container {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.autocomplete-item {
    padding: 8px 12px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.autocomplete-item:hover {
    background-color: #f0f0f0;
}

.input-group {
    position: relative;
}

.arrowplacement {
    display: flex;
    justify-content: center;
    gap: 500px;
}

@media screen and (min-width: 320px) and (max-width: 780px) {

    html,
    body {
        width: 100%;
    }

    .pokecard {
        padding: 15px;
        width: 90%;
    }

    .statsrender {
        padding: 10px;
        width: 95%;
        margin: 0 auto;
    }

    .images {
        height: 60px;
        width: 60px;
    }

    .custom-input {
        width: 90%;
    }

    .evolution-chain {
        display: none;
    }

    .evo-box img {
        width: 80px;
        height: 80px;
    }

    p {
        margin: 0px;
    }

    .arrowplacement {
        display: flex;
        justify-content: center;
        gap: 150px;
        margin-bottom: 20px;
    }

    .footercontent {
        padding: 30px;
    }
}

@media screen and (min-width: 320px) and (max-width: 768px) {
    .pokecard {
        padding: 20px;
        width: 90%;
    }

    .statsrender {
        padding: 15px;
        width: 90%;
        margin: 0 auto;
    }

    .custom-input {
        width: 85%;
    }

    .images {
        height: 70px;
        width: 70px;
    }
}

@media screen and (min-height: 900px) {
    main {
        justify-content: center;
        align-items: center;
    }

    .pokecard {
        margin: 20px 0;
    }

    .statsrender {
        margin: 20px 0;
    }
}