* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #e9e9e9;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

#article{
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 100%;
}

h1 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    font-size: 32px;
}

.input-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    font-weight: bold;
    color: #555;
    font-size: 14px;
}

.input-group input {
    padding: 12px 16px;
    font-size: 18px;
    border: 2px solid #ddd;
    border-radius: 8px;
    transition: all 0.3s;
    font-family: inherit;
}

.input-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

#startButton {
    width: 100%;
    padding: 15px;
    font-size: 18px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
    margin-bottom: 30px;
}

#startButton:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

#startButton:active {
    transform: translateY(0);
}

#startButton:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

#result {
    position:relative;
}

#resultCanvas {
    border-radius: 10px;
    display: block;
    border: 1px solid #ccc;
    position:absolute;
    top: 0;
    left: 0;
}
#imageCanvas {
    border-radius: 10px;
    background: #f8f9fa;
    display: block;
    position:absolute;
    top: 0;
    left: 0;
}

.image_loader{
    margin:10px 0;
}
#preview {
    max-width: 300px;
    max-height: 300px;
    display: none;
    border: 1px solid #ccc;
}