body {
    font-family: 'Comic Sans MS', 'Comic Sans', cursive, Arial, sans-serif;
    background: linear-gradient(135deg, #f9e7ff 0%, #e0f7fa 100%);
    margin: 0;
    padding: 0;
    text-align: center;
    min-height: 100vh;
}
#user-info, #desenhos-container, #colorir-container, #historia-container {
    margin: 20px auto;
    max-width: 750px;
    background: #fffbe7;
    border-radius: 28px;
    box-shadow: 0 6px 24px rgba(255, 182, 193, 0.15), 0 2px 8px rgba(0,0,0,0.07);
    padding: 28px 18px 28px 18px;
    border: 3px dashed #ffb6c1;
    position: relative;
}
#user-info:before, #historia-container:after {
    content: '🎨';
    font-size: 2.2rem;
    position: absolute;
    left: 18px;
    top: 18px;
}
#historia-container:after {
    content: '📖';
    left: unset;
    right: 18px;
    top: 18px;
}
#desenhos {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 18px;
    padding-bottom: 16px;
    justify-content: flex-start;
    background: #ffe0f7;
    border-radius: 16px;
    border: 2px dotted #ffb6c1;
    margin-bottom: 10px;
}
#desenhos img {
    width: 90px;
    height: 90px;
    object-fit: contain;
    margin: 0;
    cursor: pointer;
    border: 3px solid #fffbe7;
    border-radius: 18px;
    background: #fff;
    transition: border 0.2s, box-shadow 0.2s, transform 0.2s;
    box-shadow: 0 2px 8px rgba(255,182,193,0.13);
}
#desenhos img.selected {
    border: 3px solid #ffb6c1;
    box-shadow: 0 2px 16px rgba(255,182,193,0.25);
    transform: scale(1.08) rotate(-3deg);
}
#canvas {
    border: 4px dashed #ffb6c1;
    border-radius: 18px;
    background: #fff;
    margin-bottom: 12px;
    box-shadow: 0 2px 12px rgba(255,182,193,0.10);
    cursor: url('https://cdn.jsdelivr.net/gh/encharm/Font-Awesome-SVG-PNG@master/black/png/32/pencil.png') 0 32, pointer;
}
#canvas.pintando {
    cursor: url('https://cdn.jsdelivr.net/gh/encharm/Font-Awesome-SVG-PNG@master/black/png/32/pencil.png') 0 32, crosshair;
}
#paleta {
    margin: 12px 0 8px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
}
.paleta-cor {
    display: inline-block;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin: 2px;
    border: 3px solid #ffe0f7;
    cursor: pointer;
    transition: border 0.2s, transform 0.2s;
    box-shadow: 0 1px 4px rgba(255,182,193,0.10);
}
.paleta-cor.selected {
    border: 3px solid #ffb6c1;
    transform: scale(1.18) rotate(-5deg);
}
#tipos-lapis {
    margin-bottom: 12px;
}
#tipos-lapis button {
    margin: 0 7px;
    padding: 9px 20px;
    border-radius: 12px;
    border: 2px solid #ffb6c1;
    background: #ffe0f7;
    cursor: pointer;
    font-size: 1.1rem;
    font-family: 'Comic Sans MS', 'Comic Sans', cursive, Arial, sans-serif;
    color: #d72660;
    font-weight: bold;
    transition: background 0.2s, color 0.2s, border 0.2s;
    box-shadow: 0 1px 4px rgba(255,182,193,0.10);
}
#tipos-lapis button.selected {
    background: #ffb6c1;
    color: #fff;
    border: 2px solid #d72660;
}
#finalizar, #ouvir-historia, #voltar-desenho, #voltar-historia {
    margin-top: 18px;
    padding: 14px 32px;
    border-radius: 12px;
    border: 2px solid #ffb6c1;
    background: linear-gradient(90deg, #ffb6c1 60%, #ffe0f7 100%);
    color: #d72660;
    font-size: 1.2rem;
    font-family: 'Comic Sans MS', 'Comic Sans', cursive, Arial, sans-serif;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border 0.2s;
    margin-right: 10px;
    box-shadow: 0 2px 8px rgba(255,182,193,0.13);
}
#finalizar:hover, #ouvir-historia:hover, #voltar-desenho:hover, #voltar-historia:hover {
    background: linear-gradient(90deg, #ffe0f7 60%, #ffb6c1 100%);
    color: #fff;
    border: 2px solid #d72660;
}
#historia {
    font-size: 1.3rem;
    color: #d72660;
    margin: 22px 0 12px 0;
    min-height: 48px;
    font-family: 'Comic Sans MS', 'Comic Sans', cursive, Arial, sans-serif;
    background: #ffe0f7;
    border-radius: 12px;
    padding: 12px 10px;
    border: 2px dashed #ffb6c1;
    box-shadow: 0 1px 4px rgba(255,182,193,0.10);
}
input[type="text"] {
    padding: 10px 16px;
    border-radius: 8px;
    border: 2px solid #ffb6c1;
    font-size: 1.1rem;
    margin-left: 10px;
    margin-bottom: 10px;
    background: #ffe0f7;
    color: #d72660;
    font-family: 'Comic Sans MS', 'Comic Sans', cursive, Arial, sans-serif;
}
input[type="text"]::placeholder {
    color: #d72660;
    opacity: 0.7;
}
@media (max-width: 600px) {
    #user-info, #desenhos-container, #colorir-container, #historia-container {
        max-width: 98vw;
        padding: 10px;
    }
    #canvas {
        width: 98vw !important;
        height: 60vw !important;
        max-width: 98vw;
        max-height: 60vw;
    }
    #desenhos img {
        width: 60px;
        height: 60px;
    }
}
