.character-container {
    display: flex;
    flex-direction: row;
    width: 90%;
    margin-top: 50px;
    margin-left: auto;
    margin-right: auto;
}

.sidebar {
    width: 20%;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-left: auto;
    margin-right: auto;
}

.sidebar ul {
    list-style-type: none;
    padding: 0;
}

.sidebar ul li {
    cursor: pointer;
    padding: 15px;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s;
    width: 100%;
    font-size: 28px;
}

.sidebar ul li:hover {
    background-color: #f0f0f0;
}

.sidebar ul li.active {
    background-color: #ddd;
    font-weight: bold;
}

.content {
    width: 80%;
    padding: 20px;
}

.character {
    display: none;
    opacity: 0;
    transition: opacity 0.5s;
}

.character.active {
    display: flex;
    opacity: 1;
}

.character img {
    width: 484px;
    height: auto;
    margin-right: 20px;
}

.text {
    flex-grow: 1;
}

.text h2 {
    margin-top: 0;
    font-size: 50px;
    font-weight: bold;
    margin-bottom: 20px;
}

.text p {
    font-size: 22px;
}

@media (max-width: 768px) {
    .character-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        order: 1;
    }

    .content {
        width: 100%;
        order: 2;
    }

    .character {
        flex-direction: column;
    }

    .character img {
        margin-bottom: 20px;
        width: 100%;
    }
}
