
/* Fundo tipo quadro de cortiça / placard */
.postits-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin: 0;
    padding: 30px;
}

/* Estilo dos post-its */
.postit {
    position: relative;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #ccc;
    background: linear-gradient(145deg, #ffff99, #fff9c4);
    box-shadow: 5px 8px 20px rgba(0,0,0,0.35), inset 0 -2px 3px rgba(255,255,255,0.2);
    transform: rotate(-1deg);
    --r: -1deg;
    transform: rotate(var(--r));

    /*transition: transform 0.2s, box-shadow 0.2s;*/
    cursor: grab;
}

/* Pequena sombra inferior simulando “colado” */
.postit::after {
    content: '';
    position: absolute;
    width: 60%;
    height: 6px;
    background: rgba(0,0,0,0.05);
    bottom: -6px;
    left: 20%;
    border-radius: 50%;
    filter: blur(2px);
}

/* Fita adesiva nos cantos */
.postit::before {
    content: '';
    position: absolute;
    width: 40px;
    height: 10px;
    background: rgba(255, 255, 150, 0.7);
    top: -5px;
    left: 50%;
    transform: translateX(-50%) rotate(-2deg);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    border-radius: 2px;
}

/* Hover com efeito de “levantamento” */
.postit:hover {
    /*transform: rotate(0deg) scale(1.05);*/
    animation: swing 0.6s ease-in-out;
    box-shadow: 8px 10px 25px rgba(0,0,0,0.45), inset 0 -2px 3px rgba(255,255,255,0.2);
}

/* Títulos e links */
.postit h3 {
    margin-top: 0;
    font-size: 18px;
    font-family: 'Comic Sans MS', cursive, sans-serif;
}

.postit a {
    display: inline-block;
    margin-top: 10px;
    text-decoration: none;
    color: #1e73be;
}

.postit a:hover {
    text-decoration: underline;
}

/* cores aleatórias mais realistas */
.postit.verde { background: linear-gradient(145deg, #c8e6c9, #a5d6a7); border-color: #81c784; }
.postit.amarelo { background: linear-gradient(145deg, #fff9c4, #fff59d); border-color: #fff176; }
.postit.laranja { background: linear-gradient(145deg, #ffe0b2, #ffcc80); border-color: #ffb74d; }

/* rotações aleatórias para cada post-it 
.postit:nth-child(3n+1) { transform: rotate(-2deg); }
.postit:nth-child(3n+2) { transform: rotate(1deg); }
.postit:nth-child(3n+3) { transform: rotate(-1deg); }
*/

.postit:nth-child(3n+1) { --r: -2deg; }
.postit:nth-child(3n+2) { --r: 1deg; }
.postit:nth-child(3n+3) { --r: -1deg; }


/* Pequenas deformações de “papel amassado” */
.postit::before,
.postit::after {
    filter: blur(0.5px);
}

 



@keyframes swing {
    0%   { transform: rotate(var(--r)) scale(1.03); }
    20%  { transform: rotate(calc(var(--r) + 3deg)) scale(1.05); }
    40%  { transform: rotate(calc(var(--r) - 3deg)) scale(1.05); }
    60%  { transform: rotate(calc(var(--r) + 2deg)) scale(1.05); }
    80%  { transform: rotate(calc(var(--r) - 1deg)) scale(1.04); }
    100% { transform: rotate(var(--r)) scale(1.03); }
}




/* modal */
 
#modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: none;            /* escondido por defeito */
    justify-content: center;  /* centro horizontal */
    align-items: center;      /* centro vertical */
    z-index: 99999;

    
}

#modal.ativo {
     display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}
 


.modal-content {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    position: relative;
    animation: modalFade 0.25s ease;
}

@keyframes modalFade {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

#fechar-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 26px;
    cursor: pointer;
}










