body {
    font-family: 'Kanit', sans-serif;
    font-size: 16pt;
    background-color: #f6f8fb;
}

.header {
    z-index: 1;
}

.asideframe {
    height: 80vh;
    overflow-y: auto;
}

.maincontent {
    height: 85vh;
    overflow-y: auto;
}

.piechart {
    width: 100%;
    height: 50vh;
}

.header-title-1 {
    font-size: 16pt;
    color: darkblue;
}

.header-title-2 {
    font-size: 20pt;
    color: rgb(255, 64, 0);
}

.card {
    border-radius: 1rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.05);
}

.infographic-container {
    position: relative;
    width: 100%;
}

.infographic {
    width: 100%;
    height: auto;
}

.link-box {
    position: absolute;
    display: block;
    background: rgba(255, 0, 0, 0);
    border-radius: 5px;
}

.nav-link {
    font-size: 1rem;
}

.dot {
    height: 15px;
    width: 15px;
    background-color: #f03e20;
    border-radius: 50%;
    display: inline-block;
}

.role {
    color: #f03e20;
}

.barchart {
    height: 50vh;
}

table {
    font-size: 1rem;
}

.paragraph {
    font-size: 1rem;
}

.pic-number {
    font-size: 1rem;
    color: coral;
}

.pic-title {
    font-size: 1rem;
}

.table-title {
    font-size: 1.1rem;
    color: blue;
}

.pic-source {
    font-size: 0.9rem;
}

.main-topic {
    font-size: 16pt;
}

.sub-topic {
    font-size: 14pt;
    color: #f03e20;
}

@media (max-width: 992px) {

    .main-topic {
        font-size: 1rem;
    }

    .sub-topic {
        font-size: 0.8rem;
        color: #f03e20;
    }

    table {
        font-size: 0.8rem;
    }

    .paragraph {
        font-size: 0.8rem;
    }

    .pic-number {
        font-size: 0.8rem;
        color: coral;
    }

    .pic-title {
        font-size: 0.8rem;
    }

    .table-title {
        font-size: 0.9rem;
        color: blue;
    }

    .pic-source {
        font-size: 0.7rem;
    }
}

@media (max-width: 576px) {
    .header-title-1 {
        font-size: 14pt;
        color: darkblue;
    }

    .header-title-2 {
        font-size: 16pt;
        color: rgb(255, 64, 0);
    }

    .piechart {
    width: 100%;
    height: 50vh;
}

}

@media (max-width: 400px) {

    .main-topic {
        font-size: 0.75rem;
    }

    .sub-topic {
        font-size: 0.6rem;
        color: #f03e20;
    }

    .header-title-1 {
        font-size: 10pt;
        color: darkblue;
    }

    .header-title-2 {
        font-size: 12pt;
        color: rgb(255, 64, 0);
    }

    table {
        font-size: 0.4rem;
    }

    .paragraph {
        font-size: 0.5rem;
    }

    .pic-number {
        font-size: 0.6rem;
        color: coral;
    }

    .pic-title {
        font-size: 0.6rem;
    }

    .table-title {
        font-size: 0.7rem;
        color: blue;
    }

    .pic-source {
        font-size: 0.5rem;
    }
}

@media (max-width: 300px) {

    .main-topic {
        font-size: 0.5rem;
    }

    .sub-topic {
        font-size: 0.3rem;
        color: #f03e20;
    }

    .paragraph {
        font-size: 0.3rem;
    }

    .pic-number {
        font-size: 0.4rem;
        color: coral;
    }

    .pic-title {
        font-size: 0.3rem;
    }

    .table-title {
        font-size: 0.5rem;
        color: blue;
    }

    .pic-source {
        font-size: 0.3rem;
    }

}


.chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
    justify-content: center;
}

.legend-item {
    display: flex;
    align-items: center;
    margin: 5px;
    cursor: pointer;
}

.legend-color {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    border: 2px solid #fff;
}

.legend-text {
    font-size: 14px;
}