/* Dot Matrix Profile Main Styles */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', sans-serif;
    text-align: center;
    background: #000000;
    color: #ffffff;
}

.main-container {
    padding: 2rem;
    margin: auto;
    max-width: 640px;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#bannerImage {
    width: 100%;
    height: auto;
}

canvas {
    display: none;
}

#cropImage {
    max-width: 100%;
    width: 100%;
    height: auto;
    border-radius: 8px;
}

#cropContainer {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

#cropContainer img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#output {
    display: grid;
    grid-template-columns: repeat(32, 1fr);
    gap: calc(100% / 108);
    line-height: 0;
    width: 100%;
    aspect-ratio: 1 / 1;
}

.dot {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    background: white;
}

.btn {
    width: 50%;
    padding: 0.6rem 1.2rem;
    font-size: 1rem;
    cursor: pointer;
    background: #222;
    color: #fff;
    border: 1px solid #333;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.btn:hover {
    background: #333;
}

.accentBtn {
    background: #D71921;
    color: #fff;
}

.btn.accentBtn:hover {
    background: #b00c0f;
}

.hidden {
    display: none !important;
}

#buttonGroup,
#resultButtons {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

#uploadLabel {
    display: inline-block;
    background: #222;
    color: #fff;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    border: 1px solid #333;
    cursor: pointer;
    margin-top: 2rem;
}

#uploadLabel:hover {
    background: #333;
}

#imageInput {
    display: none;
}
