@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&display=swap');

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Nunito', sans-serif;
    background-color: #f0ece3;
}

header {
    text-align: center;
    padding: 24px 0 12px;
}

header h1 {
    margin: 0;
    font-size: 2rem;
    font-weight: 800;
    color: #c0392b;
    letter-spacing: 1px;
}

main {
    display: flex;
    height: calc(100vh - 80px);
}

/* ── Painel de controles ── */
.painel-esquerdo {
    width: 180px;
    background-color: #c0392b;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 24px 16px;
}

input[type="color"] {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(255,255,255,0.5);
    border-radius: 50%;
    background: none;
    cursor: pointer;
    padding: 0;
}
input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; border-radius: 50%; }
input[type="color"]::-webkit-color-swatch { border: none; border-radius: 50%; }

button {
    width: 130px;
    padding: 10px 0;
    font-family: 'Nunito', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: #c0392b;
    background: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
}

#color-btn {
    background-color: #0a6610;
    color: white;
}

button:hover {
    background: #f5f5f5;
    transform: translateY(-1px);
}

button:active {
    transform: translateY(1px);
}

#sizeNumber {
    font-size: 0.8rem;
    font-weight: 700;
    color: rgba(255,255,255,0.85);
}

input[type="range"] {
    width: 130px;
    accent-color: #fff;
    cursor: pointer;
}

/* ── Área da tela ── */
.painel-direito {
    flex: 1;
    background-color: #e8e0cc;
    display: flex;
    justify-content: center;
    align-items: center;
}

.tela {
    width: 560px;
    height: 560px;
    background-color: white;
    border-radius: 4px;
    display: grid;
    box-shadow:
            0 0 0 10px #d4cfc4,
            0 0 0 12px #b0a898,
            0 8px 32px rgba(0,0,0,0.2);
}

.quadradinho {
    user-select: none;
}