body {
    background-color: #f0f0f0;
    margin: 0;               
    padding: 0;              
    font-family: 'Segoe UI', sans-serif;
    display: flex;           
    justify-content: center;
    align-items: center;     
    height: 100vh;           
}

.container {
    background-color: white;
    width: 75%;             
    max-width: 800px;      
    padding: 20px;          
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-radius: 12px;    
    display: flex;          
    flex-direction: column; 
    gap: 20px;              
}

.image-upload {
    border: 2px dashed #ccc;     
    border-radius: 8px;          
    height: 55%;                 
    aspect-ratio: 20 / 11;       
    padding: 3px;                
    display: flex;               
    justify-content: center;     
    align-items: center;         
    position: relative;          
    overflow: hidden;            
    cursor: pointer;             
    background-color: #fafafa;   
}

.image-upload img {
    max-width: 100%;       
    max-height: 100%;      
    object-fit: contain;   
}

.image-upload input {
    display: none;         
}

.result {
    font-size: 1.2em;      
    color: #333;           
    min-height: 1.5em;     
}

.buttons {
    display: flex;         
    gap: 12px;             
    justify-content: flex-end;
}

button {
    padding: 10px 20px;            
    border: none;                 
    border-radius: 8px;           
    background-color: #007bff;    
    color: white;                 
    cursor: pointer;              
    font-weight: bold;           
    transition: background 0.3s;  
}

button:hover {
    background-color: #0056b3;    
}

.clear-btn {
    background-color: #6c757d;    
}

.clear-btn:hover {
    background-color: #5a6268;    
}

#upload-hint {
    color: #888;
}