body {
    text-align: center;
    font-family: Arial, sans-serif;
}
.img_area {
    display: inline-block;
    width: 45%;
    height: 400px;
    border: 2px dashed #ccc;
    margin: 10px;
    vertical-align: top;
    position: relative;
}
.img_area p {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.img_area img {
    max-width: 100%;
    max-height: 100%;
}

.img_area canvas {
    max-width: 100%;
    max-height: 100%;
}

#gallery {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    padding: 10px;
    border: 1px solid #ccc;
    margin: 20px;
}

#gallery img {
    max-width: 120px;
    max-height: 90px;
    margin: 5px;
}