:root {
    --bg-primary: #1a1a2e;
    --bg-secondary: #16213e;
    --accent-primary: #0f3460;
    --accent-secondary: #e94560;
    --text-primary: #ffffff;
    --text-secondary: #a9a9a9;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    transition: all 0.3s ease;
}

.container {
    background-color: var(--bg-secondary);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 800px;
    width: 90%;
    transition: all 0.3s ease;
}

h1 {
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 700;
    font-size: 2.5rem;
    color: var(--accent-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.upload-area {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    height: 200px;
    border: 2px dashed var(--accent-primary);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.upload-area:hover {
    border-color: var(--accent-secondary);
    transform: scale(1.02);
}

.upload-label {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--accent-primary);
    color: var(--text-primary);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.upload-label:hover {
    background-color: var(--accent-secondary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.upload-label input[type="file"] {
    display: none;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(233, 69, 96, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(233, 69, 96, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(233, 69, 96, 0);
    }
}

.upload-area.highlight .upload-label {
    animation: pulse 1.5s infinite;
}

.output-area {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

#output {
    max-width: 100%;
    max-height: 500px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

#output:hover {
    transform: scale(1.02);
}

.button-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.button {
    padding: 1rem 2rem;
    font-size: 1rem;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    outline: none;
    color: var(--text-primary);
    border: none;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.primary-button {
    background-color: var(--accent-secondary);
    font-size: 1.5rem;
    padding: 1.5rem 3rem;
    width: 80%;
    max-width: 400px;
}

.primary-button:hover {
    background-color: #ff5a76;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.reddit-link {
    font-size: 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 5px;
}

.reddit-link::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-primary);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease;
}

.reddit-link:hover {
    color: var(--text-primary);
}

.reddit-link:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.button:active {
    transform: translateY(1px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

@media (max-width: 600px) {
    .container {
        padding: 2rem;
    }

    h1 {
        font-size: 2rem;
    }

    .primary-button {
        font-size: 1.3rem;
        padding: 1.2rem 2.5rem;
        width: 100%;
    }
}