body, html {
    padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom, 16px) env(safe-area-inset-left, 8px);
    box-sizing: border-box;
}

.menu-container {
    padding-bottom: env(safe-area-inset-bottom, 16px); /* Fallback to 16px */
    padding-left: env(safe-area-inset-left, 8px); /* Fallback to 8px */
    box-sizing: border-box;
}

.pkm-sprite {

}

.item-sprite {
    object-fit: contain;
    align-self: center;
}

.square-slot {
    aspect-ratio: 1 / 1;
}

.slot-selected {
    background-color: orange;
}

.slot-fill :hover {
    transform-origin: center;
    animation: bounce 500ms linear infinite;
}

.current-tera-type-image {
    align-self: center;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.plus-nature > div > div {
    color: red;
    font-weight: bold;
}

.minus-nature > div > div {
    color: blue;
    font-weight: bold;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    padding: 16px;
}

.form-field {
    margin-bottom: 8px;
}

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

.loading-progress circle {
    fill: none;
    stroke: #e0e0e0;
    stroke-width: 0.6rem;
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
}

.loading-progress circle:last-child {
    stroke: #1b6ec2;
    stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
    transition: stroke-dasharray 0.05s ease-in-out;
}

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

.loading-progress-text:after {
    content: var(--blazor-load-percentage-text, "Loading");
}
