* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f5f6fa;
    color: #2c3e50;
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #34495e;
}

.upload-section {
    text-align: center;
    margin-bottom: 20px;
}

.hidden {
    display: none !important;
}

.upload-btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: #3498db;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.upload-btn:hover {
    background-color: #2980b9;
}

.crop-container {
    position: relative;
    width: 400px;
    margin: 20px 0;
}

.crop-frame {
    width: 400px;
    height: 400px;
    border: 2px solid #3498db;
    position: relative;
    overflow: hidden;
    background-color: rgba(52, 152, 219, 0.1);
}

.preview-section {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: grab;
}

#previewImage {
    transform-origin: 0 0;
    position: absolute;
    pointer-events: none;
    object-fit: contain;
}

.preview-section.cropped #previewImage {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.btn {
    padding: 10px 20px;
    background-color: #2ecc71;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #27ae60;
}

#startSlice {
    background-color: #e74c3c;
}

#startSlice:hover {
    background-color: #c0392b;
}

.instructions {
    width: 100%;
    max-width: 400px;
    margin-top: 40px;
    margin-bottom: 20px;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.instructions h3 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.instructions ol {
    padding-left: 20px;
    margin-bottom: 10px;
}

.instructions li {
    margin-bottom: 8px;
    color: #34495e;
}

.instructions .tip {
    color: #e74c3c;
    font-size: 0.9em;
    margin-top: 10px;
    padding: 8px;
    background-color: #fdf2f0;
    border-radius: 4px;
}

.version {
    font-size: 0.4em;
    color: #7f8c8d;
    vertical-align: super;
    margin-left: 5px;
}

.footer {
    margin-top: 40px;
    padding: 20px 0;
    text-align: center;
    color: #7f8c8d;
    border-top: 1px solid #eee;
    width: 100%;
}

.footer a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s;
}

.footer a:hover {
    color: #2980b9;
    text-decoration: underline;
} 