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

body {
    background: #000;
    color: #fff;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 80px 20px;
}

.container {
    max-width: 1200px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

h1 {
    font-weight: 300;
    letter-spacing: 2px;
}

.upload-area {
    width: 100%;
    max-width: 600px;
    height: 150px;
    border: 2px dashed #333;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666;
}

.upload-area:hover,
.upload-area.dragover {
    border-color: #00ffcc;
    color: #00ffcc;
    background: rgba(0, 255, 204, 0.05);
}

.controls {
    display: flex;
    gap: 30px;
    align-items: center;
    background: #111;
    padding: 15px 30px;
    border-radius: 30px;
    border: 1px solid #222;
}

.output-area {
    width: 100%;
    overflow-x: auto;
    background: #050505;
    padding: 20px;
    border-radius: 10px;
    min-height: 200px;
    display: flex;
    justify-content: center;
}

#ascii-output {
    font-family: 'Courier New', Courier, monospace;
    /* Essential for ASCII */
    white-space: pre;
    font-size: 8px;
    /* Small font for high res */
    line-height: 8px;
    /* Match width for 1:1 feel, though chars are taller */
    color: white;
}

button {
    padding: 12px 24px;
    background: #fff;
    color: #000;
    border: none;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s;
}

button:hover {
    transform: scale(1.05);
}

/* Back Link Styles */
.back-link {
    position: fixed;
    top: 30px;
    left: 30px;
    z-index: 1000;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 10px 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 30px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.back-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-5px);
}

.back-link svg {
    width: 18px;
    height: 18px;
}