body {
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    background-color: #f0f0f0;
}

.container {
    width: 90%;
    max-width: 400px; /* Limit maximum width for better readability */
    text-align: center;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.frames {
    margin: 20px 0;
}

.frame-selection {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.frame-selection img {
    width: 70px; /* Smaller images for better mobile view */
    height: 70px;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 8px;
    transition: transform 0.2s; /* Smooth animation on hover */
}

.frame-selection img.selected {
    border-color: #007bff;
    transform: scale(1.1); /* Slightly enlarge the selected frame */
}

button {
    display: block;
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #0056b3;
}

canvas {
    display: block;
    margin: 20px auto;
    border: 1px solid #ddd;
    max-width: 100%;
    height: auto;
}

@media (min-width: 600px) {
    /* Styles for larger screens */
    .container {
        max-width: 600px;
    }

    .frame-selection img {
        width: 100px;
        height: 100px;
    }
}
