@import url('https://fonts.googleapis.com/css2?family=Alata&family=Roboto&family=RobotoMono&display=swap');

:root {
    --max-width: 600px;
    --fg-color: #FFF5E6;
    --bg-color: #001426;
    --bg-light-color: #001B33;
    --bg-dark-color: #000C17;
    --primary-color: #FFBC52;
    --border-radius: 0.8em;
}

body {
    background-color: var(--bg-dark-color);
    color: var(--fg-color);
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6em;
}

h1, h2, h3 {
    color: var(--primary-color);
    font-family: 'Alata', sans-serif;
    margin-top: 2em;
}

a, a:visited {
    color: inherit;
}

input[type="text"] {
    background-color: var(--fg-color);
    color: var(--bg-color);
    border-style: none;
    border: none;
    padding: 0.5em;
    font-family: inherit;
    font-size: 1em;
}

input[type="color"] {
    border: none;
}

button {
    font-family: 'Alata', sans-serif;
    background-color: var(--primary-color);
    padding: 1em;
    border-style: none;
    font-size: 1em;
    cursor: pointer;
}

#app {
    box-shadow: 0 0 1em black;
    margin: 2em auto;
    max-width: var(--max-width);
    border-radius: var(--border-radius);
}

@media screen and (max-width: 600px) {
    :root {
        --border-radius: 0;
    }
    #app {
        margin: 0;
    }
}

header {
    padding: 1em;
    text-align: center;
    background-color: var(--bg-light-color);
    border-top-left-radius: var(--border-radius);
    border-top-right-radius: var(--border-radius);
    margin-bottom: 1px;
}

main {
    padding: 2em;
    border-bottom-left-radius: var(--border-radius);
    border-bottom-right-radius: var(--border-radius);
    background-color: var(--bg-color);
}

footer {
    padding: 1em;
    margin: 3em auto;
    text-align: center;
    text-shadow: 0 0 0.6em black;
    max-width: var(--max-width);
}

#image-preview {
    position: relative;
    height: 200px;
    width: 200px;
    margin: 1em 0;
    overflow: hidden;
    cursor: grab;
    border-radius: 4px;
}

#image-preview img {
    position: absolute;
    top: 0;
    left: 0;
    /* Remove fixed size so transform works */
    width: auto;
    height: auto;
    /* Prevent drag ghost image */
    pointer-events: none;
    user-select: none;
}

#image-preview svg {
    position: absolute;
    top: 0;
    left: 0;
    /* SVG stays above and doesn't interfere */
    pointer-events: none;
}

#canvas-image {
    /* for debugging purpose you can make it visible */
    display: none;
    height: 200px;
    width: 200px;
}

/* Preset Badge Buttons */
#preset-badges {
    margin: 1.5em 0;
}

#preset-badges h3 {
    color: var(--fg-color);
    font-size: 0.9em;
    margin: 1em 0 0.5em 0;
    opacity: 0.8;
}

.badge-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4em;
}

.badge-group button {
    background-color: var(--bg-light-color);
    color: var(--fg-color);
    padding: 0.4em 0.7em;
    font-size: 0.85em;
    border: 1px solid var(--fg-color);
    border-radius: 4px;
    opacity: 0.9;
    transition: all 0.15s ease;
}

.badge-group button:hover {
    background-color: var(--primary-color);
    color: var(--bg-color);
    opacity: 1;
}
