.main-app {
    width: 100%;
    min-height: 100%;
    display: flex;
    padding-bottom: 20px;
    flex-direction: column;
    color: white;
    padding-top: 5%;
}

.main-title {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-title > h1 {
    font-size: 2em;
    text-align: center;
    display: inline;
}

.main-title > img {
    margin: 0 1em;
}

.image-back {
    flex-shrink: 0;
    position: absolute;
    width: fit-content;
    font-size: 0;
    width: 100%;
    z-index: -1;
}

.image-back > img {
    min-height: 35vh;
    height: 100%;
    width: 100%;
    object-fit: cover;
    filter: brightness(0.5);
}

.image-back > .image-mask {
    height: 100%;
    width: 100%;
    background: rgb(40, 55, 83);
    background: linear-gradient(0deg, rgb(28, 38, 60) 15%, rgba(0, 0, 0, 0) 100%);
    min-height: 100%;
    display: block;
    position: absolute;
    top: 0;
}

.char-list-wrapper {
    width: 100%;
    display: flex;
    align-items: center;
    flex-direction: column;
}

.character-list {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 70%;
}

.character-wrapper {
    overflow: hidden;
    width: 150px;
    height: 180px;
    border-radius: 5px;
    background: rgb(43 56 85);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin: 10px;
    transition: .3s;
    cursor: pointer;
    position: relative;
    text-decoration: none;
}

.character-wrapper:hover {
    transform: scale(1.05);
    box-shadow: 5px 5px 5px rgb(0 0 0 / 40%);
}

.character-thumb {
    height: 100px;
    position: relative;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid lightgray;
    aspect-ratio: 1/1;
    background-color: rgb(0 0 0 / 50%);
}

.character-thumb-ct {
    height: 100%;
    position: relative;
    z-index: 2;
}

.character-thumb-bg {
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
}

.char-name {
    margin-top: 5px;
    color: white;
    text-align: center;
}

.char-ver {
    color: lightgray;
    font-size: 0.9em;
    text-align: center;
}

.char-representation {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    height: 70%;
    align-items: center
}

.character-thumb-at {
    height: 34%;
    aspect-ratio: 1/1;
    position: absolute;
    right: 10%;
    bottom: 10px;
    z-index: 0;
    z-index: 3;
    border-radius: 50%;
    border: 2px solid lightgray;
    overflow: hidden;
}

.character-thumb-at > img {
    background: rgb(0 0 0 / 40%);
    padding: 5px;
    height: 100%;
}

.attribute-heart {
    border-color: rgb(112 45 174);
    background-color: rgb(112 45 174);
}

.attribute-speed {
    border-color: rgba(72, 153, 240);
    background-color: rgba(72, 153, 240);
}

.attribute-tech {
    border-color: rgb(133 183 112);
    background-color: rgb(133 183 112);
}

.attribute-power {
    border-color: rgba(226, 75, 75);
    background-color: rgba(226, 75, 75);
}

.attribute-mind {
    border-color: rgb(228, 159, 49);
    background-color: rgb(228, 159, 49);
}

.character-bg {
    object-fit: cover;
    position: absolute;
    top: 0;
    height: 100%;
    width: 100%;
    filter: brightness(0.5);
}

.char-profile {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgb(0 0 0 / 70%);
    z-index: 1;
}

.page-buttons {
    font-size: 1em;
    margin-top: 2em;
    max-width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: center;
}

.page-buttons > div {
    display: inline;
    border-radius: 5px;
}

.page-buttons > .page-clickable {
    border: 1px solid white;
    padding: 2px 7px;
    cursor: pointer;
}

.page-buttons > .page-clickable:hover {
    background-color: rgb(210 210 210 / 30%);
}

.page-selected {
    padding: 2px 7px;
    background-color: rgb(59 74 112);
}

.curr-page {
    margin: 0 10px;
}

.page-changer {
    padding: 5px;
    cursor: pointer;
}

.search-input-wrapper {
    width: 30%;
}

.search-input-wrapper > input {
    background: rgb(20, 27, 40);
    width: 100%;
    border: none;
    outline: none;
    padding: 5px 10px;
    font-size: 1.2em;
    border-radius: 5px;
    color: lightgray;
    margin-bottom: 1em;
    border: 1px solid rgb(255 255 255 / 20%);
}

@media screen and (max-width: 768px) {
    .main-app {
        padding-top: 25%;
    }

    .char-list-wrapper {
        width: 100%;
    }

    .character-list {
        max-width: 90%;
    }

    .search-input-wrapper {
        width: 60%;
    }
}