.Linewrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    width: 100%;
    column-gap: 12px;
    row-gap: 12px;
}

.Linediv1 {
    background-color: #1A212B;
    padding: 25px 30px;
    color: white;
    width: 100%;
    max-width: 854px;
    font-family: 'NotoSans KR', sans-serif;
    justify-self: center;
    border-radius: 12px;
}

.Linediv2 {
    display: flex;
    flex-direction: row;
    -ms-flex-direction: row;
    column-gap: 17px;
    margin-bottom: 18px;
    /* padding-left: 15px; */
    align-items: center;
}

.Linediv3 {
    display: flex;
    flex-direction: row;
    -ms-flex-direction: row;
    column-gap: 17px;
    align-items: center;
}


.Linehead {
    font-size: 1.7rem;
    font-weight: bold;
    font-family: 'bccardl', sans-serif;
    letter-spacing: -1px;
    line-height: 1.4;
}

.loadAllgph {
    font-size: 16px;
    font-family: 'NotoSans KR', sans-serif;
    color: white;
    background-color: transparent;
    padding: 5px 16px 6px;
    border-style: solid;
    border-color: white;
    border-width: 1px;
    border-radius: 50px;
    margin: 0;
    cursor: pointer;
    transition: all 200ms linear;
}

.loadAllgph:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.Linetxt {
    font-size: 15px;
}

.Graphwrapper {
    display: flex;
    flex-direction: column;
    -ms-flex-direction: column;
    align-items: center;
    justify-content: center;
}

.legend-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-template-rows: auto;
    row-gap: 2px;
    column-gap: 5px;
    align-items: center;
    width: 100%;
    /* padding-left: 34px; */
}

.legend-itemG,
.legend-itemS1,
.legend-item3F,
.legend-itemL1 {
    display: flex;
    align-items: center;
    justify-content: center;
    justify-self: start;
    padding: 3px 14px;
    border-style: solid;
    border-color: transparent;
    border-width: 1px;
    border-radius: 50px;
    cursor: pointer;
    word-break: keep-all;
    transition: all 200ms linear;
}

.legend-itemG:hover,
.legend-itemS1:hover,
.legend-item3F:hover,
.legend-itemL1:hover {
    border-style: solid;
    border-color: white;
    border-width: 1px;
    border-radius: 50px;
    background-color: rgba(255, 255, 255, 0.2);
}

.legend-color-box {
    width: 16px;
    height: 16px;
    border-radius: 20px;
    margin-right: 5px;
}

.legend-label {
    font-size: 17px;
    color: white;
    font-weight: 400;
}


@media screen and (max-width: 1366px) {
    .Linewrapper {
        display: flex;
        flex-direction: column;
        -ms-flex-direction: column;
        row-gap: 12px;
    }

    .Linediv1 {
        width: 100%;
        max-width: 100%;
    }

}

@media screen and (max-width: 767px) {
    .Linediv1 {
        padding: 20px 12px;
    }

    .Linediv2 {
        flex-direction: column;
        -ms-flex-direction: column;
        justify-content: start;
        align-items: start;
        row-gap: 10px;
        margin-bottom: 18px;
    }

    .loadAllgph {
        font-size: 15px;
        font-weight: 400;
        padding: 4px 16px 5px;
    }

    .Linetxt {
        font-size: 14px;
        font-weight: 400;
    }

    .Graphwrapper {
        align-items: end;
        justify-content: end;
    }

    .legend-container {
        grid-template-columns: 1fr 1fr 1fr;
        padding-left: 0px;
    }

    .legend-color-box {
        width: 14px;
        height: 14px;
        margin-right: 4px;
    }

    .legend-label {
        font-size: 16px;
    }

}

@media screen and (max-width:497px) {}
/* 20261024 responsive: legend 2 columns on phones */
@media screen and (max-width: 479px) {
  .legend-container { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 4px; }
  .legend-itemG, .legend-itemS1, .legend-item3F, .legend-itemL1 { padding: 3px 6px; max-width: 100%; box-sizing: border-box; }
  .legend-label { font-size: 15px; }
}
