/* Fonts are loaded by the plugin (wp_enqueue_style), not @import, so they download in parallel */

:root{
    --wall:#f5f1e8;
    --ink:#1f2937;
    --red:#ef4444;
    --blue:#3b82f6;
    --green:#22c55e;
    --yellow:#facc15;
    --purple:#8b5cf6;
    --pink:#ec4899;
}

*{
    box-sizing:border-box;
}

html,
body{
    margin:0;
    height:100%;
}

body{
    overflow:hidden;

    /* Stack the cloud above the form so they never overlap */
    display:flex;
    flex-direction:column;
    height:100vh;
    height:100dvh;
    font-family:Inter,sans-serif;

    background:
        radial-gradient(circle at 15% 15%, rgba(255,214,102,.4) 0 8%, transparent 8%),
        radial-gradient(circle at 85% 20%, rgba(59,130,246,.15) 0 10%, transparent 10%),
        radial-gradient(circle at 30% 80%, rgba(236,72,153,.12) 0 12%, transparent 12%),
        var(--wall);
}

/* paper texture */

body::before{
    content:"";
    position:fixed;
    inset:0;
    pointer-events:none;
    opacity:.08;

    background:
        repeating-linear-gradient(
            0deg,
            transparent 0 3px,
            rgba(0,0,0,.05) 3px 4px
        );
}

.container{
    position:relative;
    z-index:2;
    flex:0 0 auto;
    display:grid;
    place-items:center;
    @media(min-width:1024px){
        padding:1rem 2rem 2rem;
    }
}
x
.dailyWall{
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:2rem;
}

.form{
    width:min(700px,95vw);
}

.input-wrapper{
    position:relative;
}

.form__field{

    width:100%;
    height:72px;

    padding:0 145px 0 24px;

    border:4px solid #222;
    border-radius:18px;

    background:white;

    font:inherit;
    font-size:1.1rem;

    box-shadow:
        10px 10px 0 #222;

    transition:.2s;
}

.form__field:focus{

    outline:none;

    transform:translate(-2px,-2px);

    box-shadow:
        14px 14px 0 #222;

}

.btn{

    position:absolute;

    top:8px;
    right:8px;
    bottom:8px;

    border:none;

    padding:0 24px;

    background:var(--red);

    color:white;

    border-radius:12px;

    font:inherit;
    font-weight:800;

    cursor:pointer;

    transition:.2s;
}

.btn:hover{

    transform:scale(1.05);

    background:#dc2626;

}

.form__message{
    min-height:1.25em;
    margin:.9rem 0 0;
    text-align:center;
    color:#b91c1c;
    font-weight:600;
}

.form__message:empty{
    min-height:0;
    margin:0;
}

.container__item--bottom{

    text-align:center;

    color:#555;

}

/* Cloud fills the space above the form; it scrolls instead of running under it */
.word_cloud{

    flex:1 1 auto;
    min-height:0;
    overflow-y:auto;

    padding:2rem 5%;

    display:flex;
    align-items:center;
    justify-content:center;

}

/* Center when it fits, but let the top stay reachable when it scrolls */
.word_cloud > .cloud{
    margin:auto;
}

.cloud{

    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    align-items:center;

    gap:14px;

    list-style:none;
    margin:0;
    padding:0;

}

.cloud li{

    position:relative; /* anchors the tape */

    display:inline-block;

    transition:
        transform .25s;

    cursor:default;

    line-height:3;

    padding:.15rem .3rem;

}

/* ------------ paint wall randomness ------------ */

.cloud li:nth-child(12n+1){

    color:var(--red);
    font-family:"Permanent Marker";

}

.cloud li:nth-child(12n+2){

    color:var(--blue);
    font-weight:800;

}

.cloud li:nth-child(12n+3){

    background:#fff;

    border:3px solid #222;

    box-shadow:6px 6px 0 #222;

    padding:.35rem .7rem;


}

.cloud li:nth-child(12n+4){

    color:var(--green);

    text-decoration:underline;

}

.cloud li:nth-child(12n+5){

    background:#fff3a8;

    padding:.4rem .8rem;
}

.cloud li:nth-child(12n+6){

    font-family:"Caveat";

    color:var(--purple);

    font-size:1.8em;

}

.cloud li:nth-child(12n+7){

    background:#222;

    color:white;

    padding:.3rem .7rem;


}

.cloud li:nth-child(12n+8){

    color:var(--pink);

    font-style:italic;

}

.cloud li:nth-child(12n+9){

    border-bottom:5px solid var(--yellow);

    font-weight:800;

}

.cloud li:nth-child(12n+10){

    background:white;

    border-radius:999px;

    padding:.35rem .9rem;

    box-shadow:
        0 6px 18px rgba(0,0,0,.15);

}

.cloud li:nth-child(12n+11){

    color:#111;

    text-transform:uppercase;

    letter-spacing:.08em;

}

.cloud li:nth-child(12n){

    color:#0f766e;


}

/* tape */

.cloud li:nth-child(3n)::before{

    content:"";

    position:absolute;

    top:-7px;
    left:50%;

    width:36%;

    height:9px;

    transform:translateX(-50%);

    background:#fff6b7;

    opacity:.85;

}

/* hover */

.cloud li:hover{

  

}

@media(max-width:768px){

    .form__field{

        height:64px;
        padding-right:120px;

    }

    .btn{

        padding:0 18px;

    }

    .cloud{

        gap:10px;

    }

}

.wall-quote {
    text-align: center;
    color: #555;
    font-size: 1rem;
}

.wall-quote span {
    display: block;
    margin-top: .4rem;
    font-family: "Permanent Marker", cursive;
    font-size: 2rem;
    color: #ff006e;
    @media(max-width:768px){
        font-size:1rem;
    }
}

.wall-note {
    position: relative;
    max-width: 420px;

    padding: 1.5rem 2rem;

    background: #fff9d8;

    border-radius: 6px;

    box-shadow:
        12px 12px 0 rgba(0,0,0,.12);

}

.wall-note::before{
    content:"";
    position:absolute;
    top:-12px;
    left:50%;

    width:80px;
    height:22px;

    background:#fff2a6;

    transform:
        translateX(-50%);
}

.wall-note small{
    display:block;
    margin-bottom:.5rem;

    text-transform:uppercase;
    letter-spacing:.12em;
    color:#777;
}

.wall-note h2{
    margin:0;

    font-family:"Permanent Marker", cursive;

    font-size:2.2rem;

    color:#ff595e;
}

.wall-note p{
    margin:.75rem 0 0;

    line-height:1.6;

    color:#333;
}
/* ------------ pictures ------------ */

.cloud li.cloud__pic{
    padding:3px;
    background:#fff;
    border:1px solid rgba(0,0,0,.08);
    border-radius:6px;
    box-shadow:0 1px 3px rgba(0,0,0,.08);
    line-height:1;
    font-size:1rem;
    text-decoration:none;
}

/* no tape on photos */
.cloud li.cloud__pic::before{
    content:none;
}

/* gentle lift instead of the big zoom */
.cloud li.cloud__pic:hover{
  
}

.cloud__pic img{
    display:block;
    width:auto;
    height:auto;
    max-width:130px;
    max-height:130px;
    border-radius:4px;
    opacity:.9;
    filter:saturate(.85);
    transition:opacity .25s, filter .25s;
}

.cloud__pic:hover img{
    opacity:1;
    filter:none;
}

/* empty frame for visitors who aren't logged in */
.cloud li.cloud__pic--hidden{
    display:inline-flex !important;
    flex-direction:column;
    align-items:center;
    gap:.25rem;
    padding:0;
    background:none;
    border:none;
    box-shadow:none;
    opacity:.6;
}

/* no tape */
.cloud li.cloud__pic--hidden::before{
    content:none;
}

/* keep it still on hover */
.cloud li.cloud__pic--hidden:hover{
    transform:none !important;
}

.cloud__pic-frame{
    display:grid;
    place-items:center;
    width:72px;
    height:56px;
    color:#c4c9d0;
    background:transparent;
    border:1px dashed #d1d5db;
    border-radius:6px;
}

.cloud__pic-frame svg{
    width:20px;
    height:20px;
}

.cloud__pic-note{
    font-family:inherit;
    font-size:.7rem;
    color:#9ca3af;
    text-transform:none;
    letter-spacing:0;
}

/* upload button */

.upload{
    display:flex;
    justify-content:center;
    margin-top:1.4rem;
}

.upload__input{
    position:absolute;
    width:1px;
    height:1px;
    opacity:0;
    overflow:hidden;
}

.upload__btn{
    position:relative;
    display:inline-block;
    padding:.55rem 1.1rem;
    background:var(--yellow);
    border:3px solid #222;
    border-radius:10px;
    box-shadow:5px 5px 0 #222;
    font-weight:800;
    cursor:pointer;
    transition:.2s;
}

.upload__btn:hover{
    transform:scale(1.04);
}

.upload__btn:focus-within{
    outline:3px solid var(--blue);
    outline-offset:3px;
}

.upload__btn.is-busy{
    opacity:.6;
    cursor:progress;
}

.upload__btn.is-busy span::after{
    content:"…";
}
