html, body {
    width: 100%;
    overflow-x: hidden;
  }
body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(to bottom, #ffe6f2, #ffd1e6); /* soft pink gradient */
    color: #333;
    margin: 0;
    padding: 0 20px;
}

.header {
    text-align: center;
    margin-top: 30px;
}

.header h1 {
    font-family: 'Pacifico', cursive;
    color: #ff4d88;
    font-size: 2.5rem;
    margin-bottom: 0.3rem;
}

.header p {
    font-size: 1.2rem;
    color: #ff66aa;
}

.container {
    max-width: 700px;
    width: 100%;
    margin: 30px auto 120px;
    padding: 0 12px;
    box-sizing: border-box;
}


.entry {
    background: #ffe6f2;
    border-radius: 15px;
    padding: 15px 20px;
    margin-bottom: 20px;
    box-shadow: 0 6px 15px rgba(255, 182, 193, 0.4);
}

.entry .date {
    font-weight: bold;
    margin-bottom: 8px;
    color: #ff4d88;
}

.month-separator {
    text-align: center;
    font-weight: bold;
    padding: 15px 0;
    margin: 50px 0 30px;
    border-radius: 25px;
    color: white;
    font-size: 1.4rem;
    position: relative;
    overflow: hidden;
}

/* Themed separators */
.month-separator.october {
    background: linear-gradient(90deg, #ffb347, #ff7e5f); /* pumpkin-orange gradient */
}
.month-separator.november {
    background: linear-gradient(90deg, #a0522d, #d2b48c); /* brown/tan Thanksgiving colors */
}
.month-separator.december {
    background: linear-gradient(90deg, #99ccff, #6699ff); /* wintery blue */
}

/* Decorative side shapes */
.month-separator::before,
.month-separator::after {
    content: '❀';
    position: absolute;
    font-size: 1.8rem;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.7;
}

.month-separator::before {
    left: 10px;
}
.month-separator::after {
    right: 10px;
}

.surprise-btn {
    display: none;
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%); /* keeps centered */
    padding: 14px 26px;
    background: pink;
    color: #fff;
    font-size: 1.2rem;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(255, 182, 193, 0.6);
    transition: box-shadow 0.2s, background 0.2s; /* removed transform to prevent moving */
}
.surprise-btn:hover {
    box-shadow: 0 6px 14px rgba(255, 182, 193, 0.8);
    background: #ff66aa;
}

.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}
.popup.show {
    opacity: 1;
    pointer-events: auto;
}

.popup-content {
    background: #ffe6f2;
    padding: 35px 45px;
    border-radius: 25px;
    text-align: center;
    font-size: 1.5rem;
    color: #ff4d88;
    box-shadow: 0 8px 20px rgba(255, 182, 193, 0.7);
    animation: popIn 0.35s ease;
}

@keyframes popIn {
    0% { transform: scale(0.5); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.action-btn {
    margin-top: 15px;
    margin-left: 5px;
    margin-right: 5px;
    padding: 10px 22px;
    background: #ff99c8;
    border: 2px solid #ff4d88;
    color: white;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    transition: 0.2s;
}
.action-btn:hover {
    background: #ff75b5;
    transform: scale(1.05);
}

/* Floating hearts */
#hearts-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* so you can click buttons/text underneath */
    overflow: visible;
    z-index: 0; /* behind all content */
}

.heart {
    position: absolute;
    pointer-events: none;
    user-select: none;
    animation-name: floatHeart;
    animation-timing-function: linear;
}

@keyframes floatHeart {
    0% { transform: translateY(0) rotate(0deg); opacity: 1; }
    100% { transform: translateY(-150px) rotate(360deg); opacity: 0; }
}

/* SIDE GALLERY IMAGES — BALANCED SIZE */
.side-gallery {
    position: fixed;
    top: 80px;
    width: 140px; /* slightly smaller so all images fit */
    display: flex;
    flex-direction: column;
    gap: 22px; /* reduced spacing */
    z-index: 1;
    pointer-events: none;
}

/* Move toward center but not too far */
.left-gallery { left: 55px; }
.right-gallery { right: 55px; }

.side-gallery img {
    width: 100%;
    border-radius: 18px;
    border: 4px solid #ffbddd;
    background: #fff;
    padding: 6px;

    box-shadow:
        0 6px 16px rgba(255, 150, 200, 0.35),
        0 0 12px rgba(255, 180, 220, 0.5);

    object-fit: cover;

    animation: floatTilt 7s ease-in-out infinite;
}

/* Slight cute tilts */
.left-gallery img:nth-child(1) { transform: rotate(-3deg); }
.left-gallery img:nth-child(2) { transform: rotate(2deg); }
.left-gallery img:nth-child(3) { transform: rotate(-2deg); }
.left-gallery img:nth-child(4) { transform: rotate(3deg); }

.right-gallery img:nth-child(1) { transform: rotate(3deg); }
.right-gallery img:nth-child(2) { transform: rotate(-2deg); }
.right-gallery img:nth-child(3) { transform: rotate(2deg); }
.right-gallery img:nth-child(4) { transform: rotate(-3deg); }

/* Floating effect */
@keyframes floatTilt {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

@media (max-width: 900px) {
    .side-gallery {
        display: none;
    }
}

/* LEFT SIDE — make images smaller */
.left-gallery {
    left: 55px;
}

.left-gallery img {
    width: 110px !important;   /* smaller */
    padding: 5px;
    border-radius: 16px;
}

@media (max-width: 900px) {
    .side-gallery {
      position: relative;
      top: auto;
      left: auto;
      right: auto;
      width: 100%;
      flex-direction: row;
      justify-content: center;
      gap: 14px;
      margin: 18px auto 30px;
      display: flex;
      pointer-events: auto;
    }
  
    .side-gallery img {
      width: 70px !important;
    }
  }
  