@font-face {
    font-family: EnterSansman;
    src: url(../fonts/entsans.ttf);
    font-weight: normal;
    font-style: normal;
    font-display: swap;
    font-stretch: normal;
}

@font-face {
    font-family: EnterSansman;
    src: url(../fonts/entsani.ttf);
    font-weight: normal;
    font-style: italic;
    font-display: swap;
    font-stretch: condensed;
}

body {
    overflow-y: scroll;
}

.character-section {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    width: 100%;
    height: auto;
}

#characters, #characterList {
    width: calc(100% - 320px);
    margin: 0 auto;
}

#characters {
    display: flex;
    flex-direction: column;
    min-height: 525px;
    position: relative;
}

#characters .preview-section {
    height: 100%;
    min-height: 525px;
    background-image: url('../design/characters/bg_character-preview1.webp');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    overflow: clip;
    display: flex;
    flex-direction: row-reverse;
    flex-grow: 1;
    align-items: end;
}

#characterInfo {
    width: 60%;
    max-width: 550px;
    position: absolute;
    left: 0;
    top: 3rem;
}

#characterInfo #birdName {
    padding: .3rem .3rem .3rem 2rem;
    border-top-right-radius: 3rem;
    font-size: 2rem;
    padding-left: 2rem;
    color: #fff;
    font-family: eurostile-extended, EnterSansman, 'Courier New', Courier, monospace;
    font-weight: bold;
    background: linear-gradient(to left, #5256b9 34.53%, rgba(153, 154, 238, 0.266917) 124.86%, rgba(179, 179, 255, 0) 157.76%);
    word-break: break-word;
}

#characterInfo #birdIntroduction {
    color: #5455C0;
    font-style: italic;
    font-size: 1.1rem;
    padding: 1.5rem;
    background: linear-gradient(to left, #F0E7FB 65.71%, rgba(240, 231, 251, 0) 159.39%);
    clip-path: polygon(100% 0, 100% 68%, 92% 100%, 0% 100%, 0 50%, 0% 0%);
}

#unlockRequirements li {
    font-weight: bolder;
}

#tagBtns, #birdEgg {
    margin: 0 1.5rem;
}

#tagBtns button {
    display: inline-block;
    background: #EFE4FA;
    color: #5256b9;
    font-weight: 400;
    font-size: 1.1rem;
    min-width: 25%;
    width: auto;
    max-width: 50%;
    border: none;
    padding: 0.35rem;
    text-transform: capitalize;
}

#tagBtns button.active {
    background-color: #25258c;
    color: #fff;
}

#birdEgg {
    color: #5256b9;
}

#birdEgg img.egg-img {
    margin-left: 1.5rem;
    width: auto;
    height: 92px;
}

#characterPreview {
    position: relative;
    right: 10%;
    bottom: -9rem;
    display: flex;
    flex-direction: column;
    min-height: 200px;
    pointer-events: none;
}

#characterPreview img {
    width: 200px;
    height: 200px;
}

#characterPreview img.egg-img {
    width: auto;
}

#characterPreview img#birdImg {
    transform: translate(9.75%,16.5%) scaleX(-1) scale(1.95);
    transform-origin: center bottom;
}

#charSkinFilterBtns {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    gap: 1.5rem 2rem;
}

#charSkinFilterBtns button {
    font-family: Nunito, 'Courier New', Courier, monospace;
    background-color: #BFC0EE;
    display: inline-block;
    min-width: min-content;
    width: 15%;
    max-width: 12rem;
    border: none;
    font-size: 1.5rem;
    font-weight: bold;
    border-radius: 2rem;
    color: #fff;
}

#charSkinFilterBtns button.active {
    background: #5256b9;
}

#characterList {
    min-height: 850px;
}

#characterList .character {
    cursor: pointer;
    border-radius: 0.3rem;
}

#characterList .character .box {
    border-radius: 0.3rem 0.3rem 0 0;
    background: #E5E5FF;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: clip;
}

#characterList .character .box img {
    display: block;
    width: 80%;
    height: auto;
    transform: translate(0%, -9%) scale(1.1);
}

#characterList .character .name {
    border-radius: 0 0 0.3rem 0.3rem;
    background: linear-gradient(269.97deg, rgba(98, 96, 201, 0.6) -1.24%, #5957C4 49.37%, rgba(98, 96, 201, 0.6) 99.98%);
    color: #fff;
    font-family: eurostile-extended, EnterSansman, 'Courier New', Courier, monospace;
    font-weight: bold;
    padding: 0.5rem 0 0.5rem 0;
    text-align: center;
    width: 100%;
    min-height: 10%;
    word-break: break-word;
    font-size: 1.5rem;
}

#characterList .character .box.active {
    background: #232887;
}

#characterList .character .name.active {
    background: #232887 linear-gradient(269.97deg, rgba(89, 87, 196, 0.3) -1.24%, #6260c9 49.37%, rgba(89, 87, 196, 0.3) 99.98%);
}

/* lg */
@media screen and (max-width: 1199px) {
    #characterList .character .name {
        font-size: 1.1rem;
    }
}

/* md */
@media screen and (max-width: 991px) {
    #characterList .character .name {
        font-size: 1rem;
    }

    #characters, #characterList {
        width: 100%;
    }
}

/* sm */
@media screen and (max-width: 767px) {
    #characterInfo {
        width: 75%;
    }

    #characterPreview {
        right: 5%;
        bottom: -7rem;
    }

    #characterPreview img {
        height: 150px;
        width: 150px;
    }

    #characterList .character .name {
        font-size: 0.85rem;
    }
}
