body {
    background-color: #efeadf;
    /*background-image: url("https://www.transparenttextures.com/patterns/gplay.png");  Match your site's background */
    font-family: 'Courier New', Courier, monospace;
    color: #454557; /*#32373A*/
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    overflow: hidden;
}

/* heading */
h1 {
    -webkit-text-stroke:2px rgba(0,0,0,0.1);
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-style: italic;
    color: #A22633;
    margin: 1px;
    filter: drop-shadow(2px 2px 0px rgba(239, 234, 223, 1) );
    margin-bottom: 45px;
}



/* post-it stack- container */
.deck-container {
    position: relative;
    width: 350px;
    height: 350px;
    margin-bottom: 65px;
    perspective: 1000px; /* Gives a 3D depth effect when swiping */
    
    
    display: flex;
    align-items: center;
    justify-content: center
}

/* solo post-it note */
.post-it {
    position: absolute;
    width: 330px;
    height: 330px;
    padding: 20px;
    box-sizing: border-box;
    box-shadow: 2px 5px 15px rgba(0,0,0,0.15);
    cursor: pointer;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.6s ease;
    transform-origin: bottom left;
    user-select: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background-image: url("https://www.transparenttextures.com/patterns/double-lined.png");
    
    transform-origin: center center;
    transform: rotate(var(--rotation, 0deg)); /* to be handled by js*/
    z-index: var(--z-index, 1); /* to be handled by js*/
}

/* Subtle pin/tape effect at the top */
.post-it::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 40%;
    width: 40px;
    height: 15px;
    background: rgba(239, 234, 223, 0.4);
    transform: rotate(-2deg);
}
/* Post-it content text layout */
.post-it .date {
    font-weight: bold;
    font-family: 'Lora', serif;
    font-size: 1.2rem;
    margin-bottom: 10px;
    border-bottom: 1px dashed rgba(0,0,0,0.2);
    padding-bottom: 5px;
}
.post-it .log-content {
    font-size: 0.95rem;
    line-height: 1.4;
    overflow-y: auto;
}
/* The Swipe animation class triggered by JS */
.post-it.swiped {
    transform: translate(var(--swipe-direction, 200%),var(--swipe-y, 0%)) rotate(var(--swipe-rotate, 45deg)) !important;
    opacity: 0;
    pointer-events: none; 
}
.mosaic-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(3, 1fr);
    justify-content: center;
    align-content: center;
    gap: 2vmin;
    padding: 10vmin !important;
    box-sizing: border-box;
    overflow: hidden;
    pointer-events: none;
    opacity: 0.8;
    filter: grayscale(10%) sepia(10%);
    mix-blend-mode: multiply;
}

.mosaic-bg img {
    /* Forces images to dynamically shrink to fit the layout bounds gracefully */
    width: 100%;
    height: 100%;
    max-width: 250px;
    max-height: 250px;
    object-fit: cover;
    border-radius: 3px;
    justify-self: center;
    align-self: center;
}
/* Bottom Control Button */
.reset-btn {
    background: #efeadf;
    opacity: 0.7;
    font-size: 1.1em;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #918d84;
    cursor: pointer;
    transition: color 0.2s;
    letter-spacing: 0.1em;
    border: none;
    padding: 10px 10px;
    border-radius: 5px;
    font-family: 'Courier New', Courier, monospace;
}
.reset-btn:hover {
    color: #A22633;
    transform: scale(1.01);
    opacity: 1;
}
.reset-btn:active {
    transform: scale(0.97);
}