body {
    font-family: 'Arial', sans-serif;
    background-color: #f0f0f0;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.container {
    margin: 20px;
    width: 250px; /* Set the desired width of the container */
}

.image-container {
    position: relative;
    overflow: hidden; /* Hide overflowing content (e.g., larger images) */
    border-radius: 8px;
}

.image-container img {
    width: 100%; /* Set width to 100% to make the image responsive within the container */
    height: auto;
}

.overlay-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.5);
    text-align: center;
    width: 100%;
    margin: 0;
    padding: 10px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 8px;
    box-sizing: border-box;
}
