@font-face {
    src: url(/fonts/Spirit.woff2);
    font-family: 'spirits';
    font-display: swap;
}

body::-webkit-scrollbar {
    display: none;
}

::selection {
  background-color: #fef4fa;
  color: #8d7c76;
}

::-moz-selection {
  background-color: #fef4fa;
  color: #8d7c76;
}

body {
    -ms-overflow-style: none;  
    scrollbar-width: none;
    background-image: url(/media/backgrounds/pinkcheck.png);
    background-size: 40px;
    font-family: 'nunito', sans-serif;
    color: #616161;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    overflow: hidden; 
    box-sizing: border-box;
}

.calendar-card, .annotation-section {
    position: relative; 
    background: white;
    width: 100%;
    max-width: 650px; 
    min-height: 450px; 
    border-radius: 20px;
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.08), 
        0 5px 15px rgba(0, 0, 0, 0.04);
    flex-shrink: 0; 
}

.calendar-header {
    background-color: #ffeff7;
    padding: 35px 0; 
    text-align: center;
    border-bottom: 0px;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    box-shadow: 
        inset 4px 4px 0px rgba(255, 255, 255, 0.8), 
        inset -4px -4px 4px rgba(215, 127, 171, 0.15); 
    position: relative;
    overflow: hidden;
}

.month-title {
    font-family: 'spirits', cursive;
    color: #88685d;
    text-transform: lowercase;
    margin: 0;
    font-size: 4rem;
    text-shadow: 
        2px 2px 0px #ffffff, 
        -1px -1px 0px #6d534a;
    letter-spacing: 1px;
}

.entries-title {
    font-family: 'spirits', cursive;
    color: #88685d;
    text-transform: lowercase;
    margin: 0;
    font-size: 4rem;
    letter-spacing: 1px;
}

.weekdays-row {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    border-top: 1px solid #eeeeee;
    border-bottom: 1px solid #eeeeee;
    padding: 10px 50px; 
    background-color: #fff;
}

.weekday {
    text-align: center;
    font-size: 0.85rem;
    color: #adb5bd;
    text-transform: lowercase;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 12px;
    padding: 20px 50px 40px 50px; 
}

.day-square {
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    position: relative;
}

.day-square:hover {
    background-color: #ffeff7;
    border-color: #ffb3d9;
    color: #88685d;
    transform: scale(1.05);
}

.day-square.has-content {
    background-color: #ffeff7;
    font-weight: 800;
    color: #88685d;
    border-color: #ffb3d9;
}

.event-bubble {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: 120%; 
    left: 50%;
    transform: translateX(-50%);
    background: #f6dae8; 
    color: #616161;
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    white-space: nowrap;
    z-index: 100;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.event-bubble::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #f6dae8 transparent transparent transparent;
}

.day-square:hover .event-bubble {
    visibility: visible;
    opacity: 1;
    bottom: 130%; 
    font-weight: 500 !important;
}

.day-square.has-content .event-heart {
    content: url("https://kkul.neocities.org/media/graphics/white-heart.png");
}

.day-square:hover .event-heart {
    content: url("https://kkul.neocities.org/media/graphics/white-heart.png");
}

.event-heart {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 15px;
    height: auto;
    pointer-events: none;
    z-index: 5;
    transition: all 0.2s ease;
}

.empty-slot { visibility: hidden; }

.annotation-section {
    position: relative; 
    overflow: visible; 
    background: white;
    width: 100%;
    max-width: 650px;
    height: 520px; 
    display: none;
    padding: 40px 50px;
    box-sizing: border-box;
    border-radius: 20px; 
}

#random-image-container {
    position: static; 
}

.back-btn {
    font-size: 0.8rem;
    color: #f4abcb;
    cursor: pointer;
    margin-bottom: 20px;
    text-transform: lowercase;
    font-weight: 700;
}

.back-btn:hover {
  font-style: italic;
}

.placeholder {
    color: #adb5bd;
}

.image-main {
    position: absolute;
    height: 370px;
    right: -150px;
    bottom: 0px;
    width: auto;
    z-index: 10;
    pointer-events: none;
    display: flex;
    justify-content: center;
}

.image-main::after {
    content: "";
    position: absolute;
    left: 45px;
    bottom: -3px; 
    width: 40%; 
    height: 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    filter: blur(8px);
    z-index: 1;
}

.image-logs {
    position: absolute;
    height: var(--img-h, 370px); 
    right: var(--img-r, -150px);
    bottom: var(--img-b, 0px);
    width: auto;
    z-index: 10;
    pointer-events: none;
    display: flex;
    justify-content: center;
}

.image-logs img {
    height: 100%;
    width: auto;
}

.image-logs::after {
    content: "";
    position: absolute;
    left: var(--sl, 45px);
    bottom: var(--sb, -3px); 
    width: var(--sw, 40%); 
    height: 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    filter: blur(8px);
    z-index: 1;
}

.corner-image {
    height: 100%;
    width: auto;  
    position: relative;
    z-index: 2;
}

.image-wrapper {
    position: absolute;
    height: var(--img-h, 300px); 
    right: var(--img-r, -120px);
    bottom: var(--img-b, 0px);
    width: auto;
    z-index: 10;
    pointer-events: none;
    display: flex;
    justify-content: center;
}

.image-wrapper::after {
    content: "";
    position: absolute;
    left: var(--sl, 45px);
    bottom: var(--sb, -3px); 
    width: var(--sw, 40%); 
    height: 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    filter: blur(8px);
    z-index: 1;
}

.scroll-container {
    height: 380px; 
    overflow-y: auto;
    padding-right: 10px;
}

.scroll-container::-webkit-scrollbar { display: none; }
.scroll-container { -ms-overflow-style: none; scrollbar-width: none; }

.log-template p {
    margin: 12px 0;
    font-size: 0.85rem;
    display: flex;
    align-items: center; 
    border-bottom: 1px dashed #ffe2f0;
    padding-bottom: 8px;
    line-height: 1.2;
    white-space: pre-wrap;
}

.log-template p::before {
    content: "";
    display: inline-block;
    width: 15px;  
    height: 15px;
    margin-right: 8px;
    margin-bottom: 2px;
    background-image: url("https://kkul.neocities.org/media/graphics/heart.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0; 
}

.log-template p strong {
    margin-right: 3px; 
    font-weight: 700;
}

.diary-section {
    margin-top: 20px;
}

.diary-title {
    font-size: 0.85rem;
    color: #f4abcb;
    margin-bottom: 5px;
}

.diary-entry {
    font-size: 0.85rem;
    line-height: 1.5;
    min-height: 100px;
    outline: none;
}

.daily-log-item {
    width: 100%;
}

.nav-arrow {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #ffdaed;
    box-shadow: 
        inset 2px 2px 0px rgba(255, 255, 255, 0.8), 
        inset -2px -2px 2px rgba(215, 127, 171, 0.15),
        0 4px 10px rgba(0, 0, 0, 0.05);
    color: #88685d;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    user-select: none;
    border: none;
    transition: opacity 0.4s ease, transform 0.3s ease, background-color 0.3s ease, visibility 0.4s;
}

#nav-left { left: 40px; }
#nav-right { right: 40px; }

.nav-arrow:hover {
    transform: translateY(-50%) scale(1.1);
}

.nav-arrow i, .nav-arrow span {
    line-height: 1;
}

.nav-arrow:hover {
    color: #88685d;
    transform: translateY(-50%) scale(1.2);
}

.nav-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-right {
    animation: slideInRight 0.5s ease-out forwards;
}

.slide-left {
    animation: slideInLeft 0.5s ease-out forwards;
}

.image-slide-up {
    animation: imgSlideUp 0.6s ease-out forwards;
}

@keyframes imgSlideUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}