body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
}

#character-buttons {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 100;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.character-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #ffffff;
    border: 2px solid #333333;
    border-radius: 10px;
    padding: 5px;
    cursor: pointer;
    transition: transform 0.2s;
}

.character-button:hover {
    transform: scale(1.05);
}

.character-button img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 50%;
}

.character-button span {
    margin-top: 5px;
    font-size: 12px;
    font-weight: bold;
}

#pose-switch-container {
    position: fixed;
    right: 240px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
}

#pose-switch-container button {
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

#top-gallery-button {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 10px 20px;
    background-color: #2196F3;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    z-index: 1000;
}

#pose-switch-container button:hover,
#top-gallery-button:hover {
    opacity: 0.9;
}

#control-buttons {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    padding: 15px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 1000;
}

.control-group {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    min-width: 200px;
}

.control-group label {
    color: white;
    font-size: 14px;
    margin-bottom: 4px;
}

.control-group input[type="range"] {
    width: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
}

.control-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 16px;
    width: 16px;
    border-radius: 50%;
    background: #ffffff;
    cursor: pointer;
    margin-top: -6px;
}

.control-group input[type="range"]::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    background: #444;
    border-radius: 2px;
}

.control-group input[type="range"]:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.control-group button {
    padding: 8px 12px;
    background: #444;
    border: 1px solid #666;
    color: white;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 4px;
}

.control-group button:hover {
    background: #555;
}