.max-content {
    padding: 0 max(calc(50% - 720px), clamp(1rem, 4vw, 4rem));
}

.hide-mobile {
    display: none;
}

.hide-desktop {
    display: block;
}

.hide-tab-text {
    display: none;
}

.svg-button {
    margin: 0;
    padding: 0.5rem;
    width: 2rem;
    height: 2rem;
    border: none;
    border-radius: 50%;
    background: var(--primary-color);
    border: 1px solid var(--secondary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.svg-button svg {
    width: 1rem;
    height: 1rem;
    stroke: white;
}

.svg-button:hover {
    background: var(--secondary-color);
    transform: scale(1.2);
}

.svg-button:disabled {
    opacity: 0.3;
    pointer-events: none;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.header-brand {
    display: flex;
    align-items: center;
    text-transform: uppercase;
    gap: 1rem;
}

.searching-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-button svg {
    height: 1rem;
    width: 1rem;
}

.search-panel {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background: var(--secondary-color);
    padding: 1rem;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transform: translatex(100%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.search-panel.open {
    transform: translatex(0);
    opacity: 1;
}

.search-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

#search-reset {
    margin: 0;
    align-self: flex-end;
}

.search-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.search-group input {
    padding: 0.5rem;
    border-radius: 0.5rem;
    border: none;
    outline: none;
    background: var(--primary-color);
    color: white;
    caret-color: white;
}

.search-group input:focus {
    outline: 2px solid var(--highlight-color);
}

.search-group input::placeholder {
    color: white;
    opacity: 1;
}

#search-warning {
    color: #ff6b6b;
}

.no-results {
    text-align: center;
    padding: 2rem;
    font-size: 1.5rem;
}

.centered {
    align-items: center;
}

.loader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.loader img {
    width: 6rem;
    height: 6rem;
    animation: spin 1s linear infinite;
}

.hidden {
    display: none;
}

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

    to {
        transform: rotate(360deg);
    }
}

.load-btn {
    padding: 1rem 2rem;
}

#pokemon-container {
    min-height: calc(100vh - 20rem);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.pokemon-card {
    width: 14rem;
    height: 20rem;
    padding: 1rem;
    border-radius: 1.5rem;
    text-transform: uppercase;
    transition: transform 0.1s ease, box-shadow 0.1s ease;
    cursor: pointer;
}

.pokemon-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.4);
}

.card-inner {
    height: 100%;
    background: #202020;
    border-radius: 1rem;
    padding: 0.5rem;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: white;
}

.card-inner>img {
    width: 6rem;
    height: 6rem;
    filter: drop-shadow(0 0 1.2rem rgba(255, 255, 255, 0.3))
}

.type-icons {
    display: flex;
    gap: 0.5rem;
}

.type-icons img {
    height: 2rem;
    width: 2rem;
}

#pokemon-dialog {
    width: clamp(30rem, 80vw, 60rem);
    height: 80vh;
    border: none;
    border-radius: 2rem;
    color: white;
    overflow: hidden;
}

.dialog-inner {
    height: 100%;
    background: #202020;
    border-radius: 1rem;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-y: auto;
}

.dialog-inner p {
    text-align: center;
}

#pokemon-dialog::backdrop {
    background: rgba(0, 0, 0, 0.7);
}

.close-dialog-button {
    display: flex;
    align-self: flex-end;
}

.dialog-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.dialog-hero>img {
    width: clamp(4rem, 15vw, 8rem);
    height: clamp(4rem, 15vw, 8rem);
    filter: drop-shadow(0 0 1.2rem rgba(255, 255, 255, 0.3))
}

.fallback-image {
    width: clamp(12rem, 24vw + 1rem, 32rem);
    height: clamp(12rem, 24vw + 1rem, 32rem);
    filter: drop-shadow(0 0 1.2rem rgba(255, 255, 255, 0.3))
}

.dialog-tabs {
    display: flex;
    align-items: center;
    align-self: flex-start;
    gap: 0.25rem;
}

.dialog-tabs svg {
    width: 1rem;
    height: 1rem;
}

.tab-btn {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    gap: 0.5rem;
}

.tab-btn.active {
    background-color: var(--secondary-color);
}

.evo-chain-image {
    display: flex;
}

.tab-content {
    width: 100%;
    margin-top: 0.25rem;
    padding: 0.5rem;
    background-color: var(--primary-color);
    border: 1px solid var(--secondary-color);
    border-radius: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.info-table {
    font-size: clamp(14px, 1.5vw + 0.5rem, 16px);
    width: 100%;
    max-width: 24rem;
    border-collapse: collapse;
}

.abilities-row {
    display: none;
}

.info-table td {
    padding: 0.25rem 0;
}

.info-table td:first-child {
    font-weight: bold;
}

.info-table td:last-child {
    text-align: right;
}

.stats-list {
    font-size: clamp(14px, 1.5vw + 0.5rem, 16px);
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.stat-row {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-value {
    font-weight: bold;
}

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

.stat-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.stat-fill {
    height: 100%;
    background: var(--secondary-color);
    border-radius: 10px;
    transition: width 0.3s ease;
}

.evo-chain {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.evo-chain svg {
    height: 2rem;
    width: 2rem;
}

.evo-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.artwork-images {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.artwork-images img {
    width: clamp(4rem, 15vw, 8rem);
    height: clamp(4rem, 15vw, 8rem);
}

.dialog-footer {
    margin-top: auto;
    width: 100%;
    background-color: initial;
    height: auto;
    display: flex;
    flex-direction: column;
}

.dialog-footer nav {
    width: 100%;
    display: flex;
    justify-content: space-evenly;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.imprint-content {
    padding: 1rem 4rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.imprint-content h2,
h3 {
    text-align: start
}