body {
    display: flex;
    justify-content: space-between;
    padding: 20px;
    margin: auto;
    height: 100vh;
    overflow: hidden;
    position: relative;
}
ul, li {
    -webkit-tap-highlight-color: transparent;
}

.main-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}
.flex-container {
    display: flex;
    justify-content: space-between;
    gap: 4%;
    width: 100%;
}

.chapter-container {
    width: 48%;
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 5px;
    height: 90vh;
    display: flex;
    flex-direction: column;
    background-color: #e3e6e9;
}
.chapter-container h3 {
    position: sticky;
    top: 0;
    margin: 0;
    padding: 10px;
    border-bottom: 1px solid #ccc;
    z-index: 10;
}
.chapter-list {
    list-style: none;
    padding: 0;
    margin: 0;
    margin-bottom: 10px;
    overflow-y: auto;
    flex-grow: 1;
}
.chapter {
    padding: 10px;
    border-bottom: 1px solid #ddd;
    user-select: none;
    background-color: #c9d4b3;
}
.chapter strong {
    cursor: pointer;
}

.character-container {
    width: 48%;
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 5px;
    height: 90vh;
    display: flex;
    flex-direction: column;
    background-color: #e3e6e9;
}
.character-container h3 {
    position: sticky;
    top: 0;
    padding: 10px;
    margin: 0;
    z-index: 1;
    border-bottom: 2px solid #ccc;
}
.character-list-wrapper {
    /*height: calc(90vh - 40px);*/
    overflow-y: auto;
}
.character-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 3px;
    flex-wrap: nowrap;
    padding: 0px 0;
}
.character {
    max-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
    padding: 0;
}
.character img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}
@media (max-width: 768px) {
    .character {
        height: 50px;
        border:1px solid;
    }
}

.sub-chapter-list, .chat-list {
    display: none;
    padding-left: 0px;
    overflow-y: auto;
    font-weight:bold;
    list-style-type: none;
    margin-top: 10px;
}        
.sub-chapter {
    cursor: pointer;
    padding: 10px 15px;
    background-color: #e9f4d3;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s;
}
/*.sub-chapter:hover, .sub-chapter:focus {
    background-color: #BDC2BD;
}*/
.sub-content {
    display: none;
    padding: 10px;
    background-color: #fff;
    border-top: 1px solid #ccc;
    font-size: 14px;
    color: #333;
    border-radius: 0 0 5px 5px;
}
.sub-content .choice {
    text-decoration: underline;
    cursor: pointer;
}
.reward {
    padding: 0 0 5px;
    border-bottom: 1px solid #bbb;
    margin-top: 10px;
    font-weight: normal;
    line-height: 1.6;
}
.reward img {
    width: 100%;
    height: 100%;
}
.pl10 {padding-left: 10px}
.pl15 {padding-left: 15px}
.pl20 {padding-left: 20px}
.pl30 {padding-left: 30px}
.pl40 {padding-left: 40px}
.pl45 {padding-left: 45px}
.pl60 {padding-left: 60px}


.copyright {
    user-select: none;
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none;    /* Firefox */
    -ms-user-select: none;     /* IE/Edge */
  }