#a-graph,
#b-graph,
#c-graph,
#d-graph {
    min-height: 100vh;
    width: 100%;
    position: relative;
}

#a-content .legend {
    margin-bottom: -6em;
    margin-top: 2em;
}

#a-graph-legend {
    width: 90%;
    max-width: 80em;
}

/*#a-graph-legend .text-content{
    padding: 1px;
}*/
#a-graph-legend .content {
    width: 85%;
}

#a-graph-legend .name {
    font-size: 1.2em;
    border-bottom: 1px solid #101010;
    width: 100%;
    text-align: right;
    font-weight: bolder;
    font-style: italic;
    letter-spacing: 0.2em;
}

#a-graph-legend .content .explain {
    font-size: 0.9em;

}

#a-graph-legend .img-container {
    background: #101010;
    width: 6.5em;
    height: 6.5em;
    clip-path: polygon(0 6%, 13% 2%, 65% 0, 100% 5%, 100% 96%, 86% 100%, 54% 97%, 25% 100%, 0 97%, 0 77%);
}

#a-graph-legend .img-container img {
    width: 80%;
}

#b-content {
    overflow: visible;
    position: relative;

}

#b-graph {
    align-items: center;
    display: flex;
    justify-content: center;
    min-height: auto;
    flex-direction: column;
    /*height: 70vh;
    width: 100vw;
    max-height: 500px;*/
    top: 0;
    z-index: 1;
    background: #fff;
}

#b-graph svg {
    order: 0;
}

#b-graph-legend {
    /*position: absolute;
    right: 0;
    top: 20%;*/
}

#b-graph-analysis,
#c-graph-analysis {
    padding: 1em;
    font-size: 0.9em;
    line-height: 1.8;
}

#b-graph-analysis button,
#c-graph-analysis button {
    background: none;
    border: 0;
    position: relative;
    color: #fff;
    padding: 0 0.4em;
}

#b-graph-analysis button:before,
#c-graph-analysis button:before {
    content: "";
    position: absolute;
    background: #101010;
    width: 100%;
    height: 1.4em;
    top: 0.2em;
    left: 0;
    z-index: -1;
    clip-path: polygon(0 6%, 13% 2%, 65% 0, 100% 5%, 100% 96%, 86% 100%, 54% 97%, 25% 100%, 0 97%, 0 77%);

}

/*cast timeline*/
#c-content {
    position: relative;
    overflow: visible;
}

#c-content .tip {
    width: 8em;
}

#c-graph {
    align-items: center;
    display: flex;
    justify-content: center;
    z-index: 1;
}

#c-graph .cast {
    padding-right: 1em;
}

#c-graph .cast .best-container {
    width: 4em;
    height: 4em;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

#c-graph .cast .best-container img {
    width: 100%;
    height: 100%;
    border-radius: 100%;
    border: 0.2em solid;
    margin-bottom: -1.2em;

}

#c-graph .cast .name {
    font-weight: bold;
    background: #fff;
    color: #000;
    /*border-radius: 0.1em;*/
    clip-path: polygon(0 6%, 13% 2%, 65% 0, 100% 5%, 100% 96%, 86% 100%, 54% 97%, 25% 100%, 0 97%, 0 77%);
    font-size: 0.8em;
    padding-right: 1em;
}

#c-graph .cast .best-container .name {
    background: #000;
    color: #fff;
    z-index: 1;


}

#c-graph .cast-list .stats {
    font-size: 0.7em;
    opacity: 0.8;
    font-style: italic;
    /*z-index: 1;*/
}

#c-graph .cast-list .stats .num {
    font-size: 1.2em;
    font-weight: bold;
}

#c-graph-analysis {
    width: 65%;
}

.dotcirclechart .dramacount {
    /*font-style:italic;*/
    fill: #999;
    font-size: 0.8em;
}


.wrapper.circularpackedcirclechart .circle {
    display: inline-block;
    width: 1.4em;
    height: 1.4em;
    margin-right: -0.6em;
    margin-top: -0.2em;
    border: 2px solid;
    border-radius: 100%;
}

.wrapper.dotcirclechart {
    display: flex;

}

.wrapper.dotcirclechart.best .content {
    padding: 1em 0 0 1em;
}

.wrapper.dotcirclechart img {
    width: 6em;
    height: 6em;
    border-radius: 100%;
    border: 0.2em solid;
}

.wrapper.dotcirclechart .rank,
.wrapper.beewwarmchart .rank,
#b-graph-analysis .rank,
#c-graph-analysis .rank {
    font-size: 0.8em;
    width: fit-content;
    text-align: center;
    border-radius: 100%;
    width: 1.6em;
    height: 1.6em;
    position: relative;
    display: inline-block;
    background: #fff;
    margin-right: 0.6em;
    line-height: 1.8em;
    color: #000;
}

.wrapper.beewwarmchart .rank {
    font-size: 0.6em;
    background: #000;
    color: #fff;
    margin-right: 0em;
    font-weight: bold;
}

.wrapper.beewwarmchart img {
    width: auto;
    height: 180px;
}


.wreath {
    height: 7em;
    width: auto;
}

.wreath.wreath-left {
    -webkit-transform: scaleX(-1);
    transform: scaleX(-1);
}

#bests-container .best-title {
    font-weight: bold;
    width: 3em;
}

#bests-container .best-list.dramas .name {
    border: 1px solid #000;
}

#bests-container .best-list .rank,
.best-container .rank {
    background: #fff;
    color: #000;
    font-weight: bold;
    font-size: 0.8em;
    z-index: 2;
    width: fit-content;
    text-align: center;
    border-radius: 100%;
    margin-bottom: -0.8em;
    display: inline-block;
    width: 1.6em;
    height: 1.6em;
    position: relative;
}

.rank:before {
    content: "";
    position: absolute;
    top: calc(-1.6em * 0.4);
    left: 0;
    font-size: 0.8em;
    width: 100%;
    height: 50%;
    background: url(../static/imgs/crown.svg);
    background-repeat: no-repeat;
    background-size: 100% auto;
    background-position: center;
}

#bests-container .best-list .name {
    font-weight: bold;
    clip-path: polygon(0 6%, 13% 2%, 65% 0, 100% 5%, 100% 96%, 86% 100%, 54% 97%, 25% 100%, 0 97%, 0 77%);
    font-size: 0.8em;
    background: #101010;
    color: #fff;
    z-index: 1;
    width: fit-content;
    text-align: center;
}

#bests-container .best-list.dramas .name {
    background: #101010;
    color: #fff;
    padding: 1.6em 1em 1em;
    line-height: 1.4;
}
#bests-container .best-list .en_name{
    font-size: 0.75em;
    line-height: 1;
}
#bests-container .best-list img {
    width: 4em;
    height: 4em;
    border-radius: 100%;
    border: 0.2em solid;
    margin-bottom: -1.2em;
}

#bests-container .best-list.actresses img {
    border-color: #E9A2C5;
}

#bests-container .best-list.actors img {
    border-color: #93BFEB;
}

#bests-container .best-list.dramas img {
    display: none;
}

#bests-container .best-container {
    flex-direction: column;
    display: flex;
    align-items: center;
}

#c-graph .cast .best-container {

    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

@media screen and (min-width: 2500px) {
    #b-content {
        width: 60%;
    }
}

@media screen and (max-width: 750px) {
    #c-content .tip {
        width: 20em;
        text-align: center;
        margin-bottom: 0;
    }

    #c-graph-analysis {
        width: 95%;
        max-height: 50vh;
        overflow-y: scroll;
        justify-content: start;
    }

    #b-graph-analysis {
        line-height: 1.8;
    }

    .dotcirclechart .dramacount {
        font-size: 0.7em;
    }

    .dotcirclechart .castscount {
        font-size: 0.8em;
    }

    .wrapper.dotcirclechart img {
        width: 5em;
        height: 5em;
    }
    #c-content .option-container{
        width: 45vw;
    }
}

@media (orientation: portrait) {
    #a-content .legend {
        margin-bottom: -2px;
        margin-top: 2em;
        width: 90%;
    }

    #a-graph-legend .img-container {
        width: 5em;
        height: 5em;
    }

    #a-graph {
        height: 150vh;
        margin-bottom: 3em;
    }


}