body { 
    font-family: Arial, sans-serif; 
    text-align: center; 
    margin: 0; 
    padding: 10px; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
    min-height: 100vh; 
}
#diagram-container { 
    position: relative; 
    width: 100%; 
    max-width: 400px; 
    margin-bottom: 20px; 
}
#diagram-container img {
    width: 100%; 
    height: auto; 
    border: 1px solid #ccc; 
}
#diagram { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: transparent; 
}
#bile-path { stroke: transparent; stroke-width: 10; fill: none; stroke-linecap: round; } /* Made transparent to overlay on image duct */
.particle { fill: green; r: 3; }
#stone { fill: brown; display: none; }
.obstructed #bile-path { stroke: transparent; } /* Keep transparent */
.obstructed .particle { fill: green; } /* Change particle color when obstructed */
#stent { display: none; stroke: silver; stroke-width: 14; stroke-dasharray: 3,3; fill: none; stroke-linecap: round; }
button { 
    margin: 5px; 
    padding: 8px 12px; 
    font-size: 16px; /* Adjusted for text */
    width: auto; 
    min-width: 100px; /* Adjusted for text width */
    border: 1px solid #ccc;
    border-radius: 20px;
    background: #f8f8f8;
    cursor: pointer;
    transition: background 0.3s, transform 0.1s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
button:hover {
    background: #e0e0e0;
    transform: scale(1.05);
}
.button-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}
.image-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}
.image-container img {
    max-width: 100%;
    height: auto;
    border: 1px solid #ccc;
    border-radius: 8px;
}

@media (min-width: 600px) {
    button { 
        margin: 5px; 
    }
    .image-container {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
	
	
    .image-container img {
        max-width: 45%;
    }
}

