.container {
    width: fit-content;
    height: 100%;
    overflow-wrap: break-word;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.card-container {
    margin: 20px;
    display: flex;
    justify-content: center;
}

.card {
    margin: 0px;
    width: 200px;
    height: 200px;
    background-color: var(--gray);
    color: var(--text);
    border-radius: 30px;
    display: flex;
    justify-content: center;
    transition: transform .7s ease-in-out, border-radius .2s ease-in-out;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
}

.card.lightmode {
    background-color: var(--brighter);
}

.active {
    transform: rotateY(-180deg);
}

.card:hover,
.card.active {
    border-radius: 10px;
}

.card figure,
.card span {
    transition: all .2s ease-out, color 0s;
    border-radius: 30px;
}

.card figure {
    width: 100%;
    height: 100%;
    margin: 0;
    background-size: 100%;
    outline: 4px solid #55FF55AA;
    image-rendering: pixelated;
    position: absolute;
    backface-visibility: hidden;
    display: flex;
    flex-direction: row;
    align-items: center;
    background-repeat: no-repeat;
}

.card.lightmode figure {
    outline: 4px solid #33DD33AA;
}

.card.disabled figure {
    outline: 4px solid #FF5555AA;
}

.card.lightmode.disabled figure {
    outline: 4px solid #DD3333AA;
}

.card figure:hover,
.card figure:hover span {
    border-radius: 10px;
}

.card figure>span {
    /* height: fit-content; */
    width: 100%;
    height: 100%;
    padding: 0px 20px;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.card figure>span>div {
    margin: 5px 2px;
    z-index: 1;
    display: flex;
    flex-direction: column;
}

.card img {
    border-radius: 50%;
    vertical-align: top;
    transition: all 0.2s ease-in-out;
    image-rendering: pixelated;
}

.card.active figure>span,
.card.active figure {
    border-radius: 5px;
}

.card.lightmode .status {
    filter: brightness(0.8);
}

.front:hover img {
    border-radius: 10%;
}

.back img {
    border-radius: 0%;
}

.back {
    transform: rotateY(180deg);
}

.back .content {
    min-width: fit-content;
}

.content {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.content span {
    margin: 0;
}

.kit-creator-img {
    top: 5px;
    right: 5px;
    height: 60px;
    width: 60px;
    position: absolute;
}

form {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    flex-wrap: wrap;
}

form ::placeholder {
    color: var(--navigator_main);
}

form.lightmode ::placeholder {
    color: var(--brighter);
}

form>section {
    margin: 5px;
}

form input,
.page-swap-bar .currentPage,
.perma-link-btn {
    border: none;
    cursor: pointer;
    border-radius: 5px;
    padding: 7px 6px;
    background-color: var(--brighter);
    color: var(--navigator_main);
}

form.lightmode input,
.perma-link.lightmode .perma-link-btn {
    background-color: var(--navigator_main);
    color: var(--brighter);
    fill: var(--brighter);
}

form input:disabled {
    filter: brightness(0.8);
    cursor: not-allowed;
}

form.lightmode input:disabled {
    filter: brightness(0.9);
}

form input:focus {
    outline: none;
}

.filter-input {
    cursor: text;
}

.perma-link {
    margin: 10px auto 0px auto;
    width: fit-content;
    background-color: transparent;
    color: var(--brighter);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.perma-link.lightmode {
    color: var(--darker);
}

.perma-link-img {
    fill: var(--navigator_main);
    vertical-align: top;
}

.perma-link.lightmode .perma-link-img {
    fill: var(--brighter);
}

.perma-link-btn {
    margin: 5px;
}

@media all and (max-width: 1434px) {
    .container {
        justify-content: center;
    }
}

@media all and (max-width: 520px) {
    html {
        margin: 0;
        padding: 0;
    }
    form.top-filter-bar {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
    }
    form.top-filter-bar section {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
    }
    input {
        margin: 2px;
    }
    .container {
        margin-left: 50%;
        transform: translateX(-50%);
    }
    .card-container {
        width: 200px;
        height: 140px;
    }
    .card {
        font-size: 14px;
        width: 100%;
        height: auto;
        min-width: 0;
    }
    .card img {
        height: 70px;
        width: auto;
    }
}