* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: sans-serif;
}

*::selection {
    background-color: #c5a1ec;
}

body {
    background-color: #0e1012;
    color: #e1d7f6;
    -webkit-tap-highlight-color: transparent;
}

button {
    position: relative;
    padding: 10px 20px;
    border-radius: 7px;
    border: 1px solid rgb(93, 61, 255);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    background: transparent;
    color: #e1d7f6;
    overflow: hidden;
    box-shadow: 0 0 0 0 transparent;
    -webkit-transition: all 0.2s ease-in;
    -moz-transition: all 0.2s ease-in;
    transition: all 0.2s ease-in;
}

button:hover {
    background: rgb(93, 61, 255);
    box-shadow: 0 0 30px 5px rgba(31, 0, 236, 0.815);
    -webkit-transition: all 0.2s ease-out;
    -moz-transition: all 0.2s ease-out;
    transition: all 0.2s ease-out;
}

button:hover::before {
    -webkit-animation: shadow 0.5s 0s linear;
    -moz-animation: shadow 0.5s 0s linear;
    animation: shadow 0.5s 0s linear;
}

button::before {
    content: '';
    display: block;
    width: 0px;
    height: 86%;
    position: absolute;
    top: 7%;
    left: 0%;
    opacity: 0;
    background: #e1d7f6;
    box-shadow: 0 0 50px 30px #e1d7f6;
    -webkit-transform: skewX(-20deg);
    -moz-transform: skewX(-20deg);
    -ms-transform: skewX(-20deg);
    -o-transform: skewX(-20deg);
    transform: skewX(-20deg);
}

@keyframes shadow {
    from {
        opacity: 0;
        left: 0%;
    }

    50% {
        opacity: 1;
    }

    to {
        opacity: 0;
        left: 100%;
    }
}

button:active {
    box-shadow: 0 0 0 0 transparent;
    -webkit-transition: box-shadow 0.2s ease-in;
    -moz-transition: box-shadow 0.2s ease-in;
    transition: box-shadow 0.2s ease-in;
}

button:disabled {
    filter: grayscale(1);
    cursor: not-allowed;
}

.essentials {
    display: block;
    margin: 30px;
}

.essentials img {
    display: block;
    margin-block: 30px;
}

.inventory {
    display: flex;
    align-items: center;
}

input[type="color"] {
    block-size: 42px;
    inline-size: 70px;
}


input[type="color"]:nth-of-type(1) {
    margin-inline-start: 30px;
}

.download {
    margin-block-start: 20px;
}


.bug {
    background: #92BC2C;
    box-shadow: 0 0 20px #92BC2C;
}

.dark {
    background: #595761;
    box-shadow: 0 0 20px #595761;
}

.dragon {
    background: #0C69C8;
    box-shadow: 0 0 20px #0C69C8;
}

.electric {
    background: #F2D94E;
    box-shadow: 0 0 20px #F2D94E;
}

.fire {
    background: #FBA54C;
    box-shadow: 0 0 20px #FBA54C;
}

.fairy {
    background: #EE90E6;
    box-shadow: 0 0 20px #EE90E6;
}

.fighting {
    background: #D3425F;
    box-shadow: 0 0 20px #D3425F;
}

.flying {
    background: #A1BBEC;
    box-shadow: 0 0 20px #A1BBEC;
}

.ghost {
    background: #5F6DBC;
    box-shadow: 0 0 20px #5F6DBC;
}

.grass {
    background: #5FBD58;
    box-shadow: 0 0 20px #5FBD58;
}

.ground {
    background: #DA7C4D;
    box-shadow: 0 0 20px #DA7C4D;
}

.ice {
    background: #75D0C1;
    box-shadow: 0 0 20px #75D0C1;
}

.normal {
    background: #A0A29F;
    box-shadow: 0 0 20px #A0A29F;
}

.poison {
    background: #B763CF;
    box-shadow: 0 0 20px #B763CF;
}

.psychic {
    background: #FA8581;
    box-shadow: 0 0 20px #FA8581;
}

.rock {
    background: #C9BB8A;
    box-shadow: 0 0 20px #C9BB8A;
}

.steel {
    background: #5695A3;
    box-shadow: 0 0 20px #5695A3;
}

.water {
    background: #539DDF;
    box-shadow: 0 0 20px #539DDF;
}

.type-disc {
    position: relative;
    padding: 6px;
    height: 20px;
    width: 20px;
    box-sizing: border-box;
    clip-path: circle(40%);
    scale: 2;
    transform-origin: 0;
}

h2 {
    text-transform: capitalize;
    font-size: 2rem;
}


li {
    border-radius: 50%;
    inline-size: 3ch;
    block-size: 3ch;
    text-align: center;
    padding-block-start: 4.5px;
    margin: 2px;
    color: #fff;
}

.weather {
    inline-size: 40px;
    block-size: 35px;
    object-fit: contain;
    image-rendering: optimizeQuality;
    opacity: 0.9;
    margin-inline: -5px;
    filter: invert(37%) sepia(86%) saturate(2442%) hue-rotate(227deg) brightness(101%) contrast(100%) grayscale(0.8);
}


.Rain {
    clip-path: circle(40%);
}

.Fog {
    padding: 8px
}

/* .Clear {
    padding: 7px;
} */

.Sunny {
    padding: 5px;
}

.Windy {
    padding: 5px;
}

.Snow {
    padding: 4px;
}

.PartlyCloudy {
    padding: 4px;
    translate: 0 -2.5px;
}

.Cloudy {
    padding: 3.5px;
    translate: -6px 0;
}

.tier {
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    margin-block: 50px;
    justify-content: center;
    gap: 10px;
}

.tier:last-of-type {
    margin-block-end: 20px;
}

.raid-pokemon {
    position: relative;
    user-select: none;
    background-color: #1a171dcf;
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    border-radius: 30px;
}

.pokemon-image {
    block-size: 150px;
    inline-size: 150px;
}

.disc-container {
    position: absolute;
    inset-inline-end: 40px;
    inset-block-start: 30px;
}

.tier-strip {
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    inline-size: 100%;
    background-color: #1a171dcf;
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    border-radius: 30px;
    color: #1a171d;
    border: 2px solid #1a171d;
    font-weight: bold;
    padding: 7px;
    font-size: 2.5rem;
}

.tier-strip:hover::after {
    user-select: none;
    position: absolute;
    content: "";
    inline-size: 100%;
    block-size: 100%;
    z-index: 1;
    border-radius: 30px;
    display: grid;
    place-items: center;
    background-color: rgba(241, 228, 252, 0.334);
    background-image: url("../images/eye.png");
    background-size: 50%;
    background-position: center;
    background-repeat: no-repeat;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    pointer-events: none;
    border: 2px solid #1a171d;
}

.tier-strip.tier1 {
    background-color: #973f62bd;
    border: 2px solid #d83c7a;
}


.tier-strip.tier3 {
    background-color: #ecb34188;
    border: 2px solid #deaf50;
}

.tier-strip.tier5 {
    background-color: #1d1f38ab;
    border: 2px solid #191c43;
}

.tier-strip:is(.shadowtier1, .shadowtier3, .shadowtier5) {
    background-color: #16071ad8;
    border: 2px solid #240f42;
}

.tier-strip:is(.mega, .megalegendary) {
    background-image: linear-gradient(-145deg, #f29a7ab3, #f4e87dac, #b4d67dbb, #c1e4e8ae, #7abbe7b2, #d6b9d7b7, #bf617dab);
    border: 2px solid #793363;
    opacity: 0.9;
    -webkit-backdrop-filter: blur(50px);
    backdrop-filter: blur(50px);
}

.tier-strip.tier4 {
    background-color: #3f6997bd;
    border: 2px solid #132865;
}

.tier-strip.ultrabeast {
    background-image: linear-gradient(45deg, #366071a7, #8a3882a4) !important;
    border: 2px solid #1d073f;
    opacity: 0.9;
    -webkit-backdrop-filter: blur(50px);
    backdrop-filter: blur(50px);
}

.tier-strip.primal {
    background-image: linear-gradient(45deg, #d83c3cb6 5%, #132765a3);
    border: 2px solid #BC909A;
    opacity: 0.9;
    -webkit-backdrop-filter: blur(50px);
    backdrop-filter: blur(50px);
}

.tier-strip.elite {
    background-color: #973f3fbd;
    border: 2px solid #d83c3c;
}

.difficulty-icons {
    position: relative;
    list-style: none;
    display: flex;
    translate: 0 10px;
}

.weather-wrapper {
    position: absolute;
    inset-inline-end: 60%;
    inset-block-end: 66px;
    /* translate: calc(-50px + 50%) 0; */
}

.non-boosted-cp {
    font-size: 1.5rem;
}

.boosted-cp {
    font-size: 2rem;
    color: rgb(225, 197, 128);
}

h3 {
    color: rgb(225, 197, 128);
    text-transform: capitalize;
    font-size: 1.5rem;
}

h3.empty {
    color: transparent;
}

.raid-pokemon {
    transition: all 0.3s ease-in-out;
    cursor: pointer;
}

.raid-pokemon:hover::after {
    user-select: none;
    position: absolute;
    content: "";
    inline-size: 100%;
    block-size: 100%;
    z-index: 1;
    border-radius: 30px;
    display: grid;
    place-items: center;
    background-color: rgba(241, 228, 252, 0.334);
    background-image: url("../images/eye.png");
    background-size: 50%;
    background-position: center;
    background-repeat: no-repeat;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
}

img.shiny {
    position: absolute;
    inset-block-start: 15px;
    inset-inline-start: 15px;
    z-index: 4;
    filter: invert(37%) sepia(86%) saturate(2442%) hue-rotate(227deg) brightness(101%) contrast(100%) grayscale(0.8) brightness(1.5);

}

img.shiny:hover {
    filter: invert(84%) sepia(12%) saturate(664%) hue-rotate(210deg) brightness(104%) contrast(93%);
}


.chart-container {
    background-color: #ffb499;
    background-image:
        radial-gradient(at 19% 66%, hsla(350, 94%, 65%, 1) 0px, transparent 50%),
        radial-gradient(at 2% 30%, hsla(290, 67%, 76%, 1) 0px, transparent 50%),
        radial-gradient(at 66% 56%, rgb(179, 150, 253) 0px, transparent 50%),
        radial-gradient(at 49% 84%, rgb(177, 89, 248) 0px, transparent 50%),
        radial-gradient(at 76% 0%, hsla(260, 60%, 77%, 1) 0px, transparent 50%),
        radial-gradient(at 33% 73%, rgb(124, 209, 233) 0px, transparent 50%);
    padding-block: 30px;
    padding-inline: 40px;
    overflow: hidden;
}

h1.title {
    position: relative;
    inset-block-start: 25px;
    font-size: 5rem;
    text-align: center;
    font-weight: bolder;
    color: #1a171d;
}

.image-logo {
    text-align: center;
    display: block;
    margin-inline-start: auto;
    margin-block-start: 60px;
}

.categoryImage {
    position: absolute;
    inset-inline-start: 100px;
    inset-block-start: 215px;
}

.info-tier {
    position: relative;
    background-color: #1a171d;
    border-radius: 10px;
    font-size: 2rem;
    cursor: pointer;
    inline-size: 400px;
    padding: 20px;
    margin-block-start: auto;
    margin-block-end: 30px;
}

.info-tier::after {
    position: absolute;
    content: "";
    border: 10px solid #1a171d;
    border-block-end-color: transparent;
    border-block-start-color: transparent;
    border-inline-start-color: transparent;
    inset-inline-start: -15px;
    inset-block-start: 10px;
}

.info-tier:hover {
    text-decoration: line-through;
    text-decoration-color: #dc143c;
}

@media screen and (width<768px) {
    body:not(.graphic-generated) .info-tier {
        inline-size: 100%;
    }

    body:not(.graphic-generated) .info-tier::after {
        border: 10px solid #1a171d;
        border-block-start-color: transparent;
        border-inline-end-color: transparent;
        border-inline-start-color: transparent;
        inset-inline-start: 15px;
        inset-block-start: -15px;
    }

    body:not(.graphic-generated) .image-logo {
        block-size: 50px;
        margin-inline: auto;
    }

    .button {
        inline-size: 100% !important;
        margin-inline: 0;
    }
}

.button {
    display: flex;
    align-items: center;
    font-weight: bold;
    padding: 6px 15px;
    gap: 8px;
    block-size: 60px;
    inline-size: max-content;
    white-space: nowrap;
    text-overflow: ellipsis;
    border-radius: 10px;
    cursor: pointer;
    justify-content: center;
    margin-inline: auto;
    margin-block-start: 20px;

}

.button:focus {
    outline: solid 2px #818CF8;
}

.button:hover {
    background: #573bf333;
}

.button:hover svg {
    animation: spin 2s linear infinite;
}

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

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

.difficultyLegend {
    background-color: #1a171de8;
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    box-sizing: content-box;
    padding: 20px;
    border-radius: 20px;
    max-inline-size: 100%;
}

.flex-div {
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
    justify-content: center;
}

.screenshot {
    background: unset;
    background-image: url(../images/loading_screen.png);
    background-size: cover;
    background-repeat: no-repeat;
}