@import url('https://fonts.googleapis.com/css2?family=Anton&family=Bebas+Neue&family=JetBrains+Mono:ital,wght@0,100..800;1,100..800&family=Manrope:wght@200..800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Manrope', sans-serif;
}

body {
    background: rgb(230, 230, 240);
}

.app-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

h1 {
    font-size: 28px;
    font-family: "Anton", sans-serif !important;
    text-align: center;
    text-transform: uppercase;
    font-weight: 100;
    font-style: italic;
    margin: 20px 0;
    position: fixed;
    top: 8px;
    left: 0;
    right: 0;
}

.container {
    width: 100%;
    max-width: 640px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    padding: 28px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.preview-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-image #preview {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: #f4f6f8;
    border: 1px solid #e6e9ef;
    object-fit: contain;
    padding: 12px;
}

.input-details {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    align-content: start;
    min-width: 0; /* allow shrinking within grid */
}

.input-details input,
.input-details select {
    height: 44px;
    border: 1px solid #d5d9e0;
    border-radius: 10px;
    padding: 0 12px;
    background: #fbfbfd;
    outline: none;
    width: 100%;
}

.input-details input::placeholder {
    color: #9aa3af;
}

.copycode { 
    display: block; 
    min-width: 0; 
    scrollbar-width: thin;                      /* Firefox */
    scrollbar-color: #94a3b8 #0f172a; 
}

#code-block::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
#code-block::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 3px;
}
#code-block::-webkit-scrollbar-track {
    background: #0f172a;
}

.code-block-container { position: relative; min-width: 0; }

#copy-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    background: transparent; /* no background */
    color: #94a3b8;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: color 0.15s ease;
}

#copy-btn:hover { color: #e2e8f0; }
#copy-btn.copied { color: #22c55e; }

#code-block {
    font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 12px;
    line-height: 1.6;
    padding: 48px 48px 14px 14px; /* space above and right for icon */
    background: #0f172a;
    color: #e2e8f0;
    border-radius: 10px;
    border: 1px solid #1f2a44;
    min-height: 44px;
    width: 100%;
    max-width: 100%;
    white-space: pre; /* keep single line; enable horizontal scroll */
    overflow-x: auto; /* horizontal scrollbar when needed */
    overflow-y: auto; /* vertical scrollbar when needed */
    max-height: 140px; /* cap height so vertical scroll appears */
}

.copyright {
    margin-top: 14px;
    color: #6b7280;
    font-size: 12px;
    text-align: center;
}

@media (max-width: 720px) {
    .container { padding: 20px; }
}