@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;600&display=swap');

body {
    font-family: 'Poppins', sans-serif;
    background: #e0e5ec;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    margin: 0;
    padding: 10px;
}

.container {
    background: #e0e5ec;
    padding: 25px;
    border-radius: 20px;
    box-shadow: 8px 8px 16px #b8babe, -8px -8px 16px #ffffff;
    text-align: center;
    width: 90%;
    max-width: 800px;
}

h1 {
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
}

.tagline {
    font-size: 14px;
    color: #555;
    margin-bottom: 20px;
}

/* Drag & Drop Zone */
#dropZone {
    padding: 20px;
    border: 2px dashed #b8babe;
    border-radius: 10px;
    background: #e0e5ec;
    box-shadow: inset 4px 4px 8px #b8babe, inset -4px -4px 8px #ffffff;
    text-align: center;
    cursor: pointer;
    transition: background 0.3s;
    margin-bottom: 20px;
}

#dropZone p {
    font-size: 16px;
    color: #2c3e50;
}

#dropZone input {
    display: none;
}

#dropZone.dragover {
    background: #d0d4d9;
}

/* Buttons */
.buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 10px;
    margin-bottom: 20px;
}

button {
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: bold;
    background: #e0e5ec;
    box-shadow: 4px 4px 8px #b8babe, -4px -4px 8px #ffffff;
    cursor: pointer;
    color: #2c3e50;
    transition: all 0.3s ease-in-out;
}

button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 6px 6px 12px #b8babe, -6px -6px 12px #ffffff;
}

/* Make Clear button same size as Download button */
#clearBtn {
    grid-column: span 2;
}

.output {
    text-align: left;
    padding: 10px;
    background: #fff;
    border-radius: 10px;
    box-shadow: inset 4px 4px 8px #b8babe, inset -4px -4px 8px #ffffff;
    max-height: 300px;
    overflow-y: auto;
}

.output img {
    width: 100%;
    max-width: 500px;
    margin: 10px auto;
    display: block;
    border-radius: 10px;
}

@media (max-width: 600px) {
    .buttons {
        grid-template-columns: repeat(1, 1fr);
    }
}
