@import url('https://fonts.googleapis.com/css2?family=Pixelify+Sans:wght@400..700&family=Sedgwick+Ave+Display&display=swap');

:root {
    --primary-text-light: #D3DAD9;
    --secondary-text-color: #d3dad994;
}

body {
    font-family: "Pixelify Sans", sans-serif; 
    padding: 1rem;
    background-color: #37353E;
}

h1, h2, h3 { 
    margin-top: 1.5rem; 
    color: var(--primary-text-light);
    font-style: normal;
    font-weight: 100;
    font-optical-sizing: auto;
}

.content {
    position: relative;
    display: grid;
    align-items: center;
    justify-content: center;
    margin: 2rem auto;
}

.section-step {
    display: flex;
    margin: auto;
    justify-content: center;
}

.section-step-right {
    text-align: right;
}


.section-number {
    display: flex;
    width: 55px;
    height: 55px;
    font-size: 1.5rem;
    border-radius: 100%;
    background-color: #4f4d5689;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    margin: 10px;
}

.section-number h2 {
    margin: none;
}

.color-picker-button {
    display: flex;
    gap: 1rem;
    margin: auto;
    padding: 1rem;
}

.button {
    padding: 4px;
    background-color: #44444E;
    color: #f0f0f0;
    height: fit-content;
    width: fit-content;
    border-color: var(--primary-text-light);
    border-radius: 5px;
    border-width: 1px;
    font-family: "Pixelify Sans", sans-serif;
    font-weight: 200;
    transition: 0.2s;
}

.button:hover{
    transition: 0.2s;
    scale: 1.1;
    transform: translateY(-2px);
}

.title {
    font-size: 3rem;
}

.title span {
    background-image: linear-gradient(40deg,#478C9C, #DCE7D6);
    background-clip: text;
    color: transparent;
}

/* palette */

.palette { 
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin: auto;
}

.palette input { 
    width: 55px;
    height: 55px;
    padding: 0;
    border: #D3DAD9;
    border-radius: 5px;
    background-color: #D3DAD9;
}

.image-select {
    background-color: #44444E;
    padding: 2rem 0;
    min-height: fit-content;
    width: 60dvh;
    max-width: 30rem;
    display: flex;
    gap: 1rem;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: auto;
    border: 1px;
    border-color: #D3DAD9;
    border-style: solid;
    border-radius: 10px;
    cursor: pointer;
}

.image-select p2 {
    color: var(--secondary-text-color);
    max-width: 70%;
}


.image-select input {
    color: var(--secondary-text-color);
}

.image-select input::file-selector-button {
    padding: 4px;
    background-color: #44444E;
    color: #f0f0f0;
    height: fit-content;
    width: fit-content;
    border-color: var(--primary-text-light);
    border-radius: 5px;
    border-width: 1px;
    font-family: "Pixelify Sans", sans-serif;
    font-weight: 200;
}


/* Step 3 Grid size */

.section-grid {
    display: grid;
    grid-template-columns: 1fr;
    margin: auto;
    color: var(--primary-text-light);
    font-size: 1.5rem;
}

.section-grid-item select, .section-grid-item input {
    background-color: var(--secondary-text-color);
    color: var(--primary-text-light);
    height: 1.5rem;
    border-radius: 5px;
    font-weight: 100;
    font-size: 1rem;

}

.section-download{
    display: flex;
    gap: 1rem;
    margin: 1.5rem auto;
    transition: 0.2s;

}




canvas { 
    border: 1px; 
    border-style: solid;
    border-color: var(--primary-text-light);
    margin: 0.5rem 0; 
}



.row {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.legend {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.5rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-text-light);
    font-size: 1.5rem;
}

.swatch {
    width: 25px;
    height: 25px;
    border: 1px solid #000;
}

@media print {
    body * { visibility: hidden; }
    #gridCanvas { visibility: visible; position: absolute; left: 0; top: 0; }
    @page { size: A4; margin: 10mm; }
}