/* Profile Frame Generator Styles */

/* Canvas and container styles */
#resultCanvas {
    cursor: grab;
    max-width: 100%;
    height: auto;
    border: 1px solid #ddd;
    display: block;
    margin: 0 auto;
    box-sizing: border-box;
}

.profile-frame-container {
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    padding: 0 10px;
}

.rendered-image {
    position: relative;
    width: 100%;
    height: auto;
    margin-top: 10px;
    text-align: center;
}

/* Accessible file input styles */
.file-input-container {
    margin: 15px 0;
    width: 100%;
}

.file-input-label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    color: #333;
}

.upload-photo {
    display: block;
    width: 100%;
    margin: 5px 0;
    padding: 10px 0;
}

.file-description {
    display: block;
    margin-top: 5px;
    font-size: 0.9em;
    color: #666;
}

/* Download button — styled via .ppfg-btn-primary in ppfg-controls.css */

/* Responsive styles */
@media (max-width: 768px) {
    /* Make canvas responsive */
    #resultCanvas {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    /* Ensure container fits screen */
    .profile-frame-container {
        width: 100%;
        max-width: 100%;
        padding: 0 5px;
        box-sizing: border-box;
    }
    
    /* Prevent overflow */
    .rendered-image {
        max-width: 100%;
        overflow: hidden;
    }
    
    /* #download-photo responsive — handled by .ppfg-btn-primary in ppfg-controls.css */
}