/* ---------- Reset ---------- */
* {
    box-sizing: border-box; 	/* content area stays fix, even adding borde,border... margin is outside the box */
    margin: 0;
    padding: 0;
}

/* ---------- Base Font ---------- */
body {
    font-family: 'Noto Sans JP', 'Open Sans', sans-serif;
    height: 100%;
    overflow: hidden;			/* I don't wanna have scoll bars or content that goes through the content board limits */
    position: relative;         /* Prepares the body to be a reference point for any absolute/fixed children in the future */
    line-height: 1.5;
    background-color: white; 	/* default for pages without custom background */
}

a {
    text-decoration: none;
    cursor: pointer;
}

/* ---------- Simple Responsiveness ---------- */
html, body {
    min-height: 100%; 			/* max height is already mentioned in the class body itself */
}

/* ---------- Sakura ---------- */
#sakura-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.sakura {
    position: absolute;
    top: -10%;
    background: radial-gradient(circle, #f9c2c2 40%, transparent 70%);
    border-radius: 50%;
    opacity: 0.8;
    pointer-events: none;
    animation: fall var(--duration) linear;
}

@keyframes fall {
    0% { transform: translateX(0) translateY(0) rotate(0deg); opacity: 0.5; }
    25% { transform: translateX(calc(var(--sway) * 0.25)) translateY(25vh) rotate(calc(var(--spin) * 0.5)); opacity: 0.4; }
    50% { transform: translateX(calc(var(--sway) * 0.5)) translateY(55vh) rotate(calc(var(--spin) * 1)); opacity: 0.3; }
    75% { transform: translateX(calc(var(--sway) * 0.75)) translateY(85vh) rotate(calc(var(--spin) * 1.5)); opacity: 0.1; }
    100% { transform: translateX(var(--sway)) translateY(130vh) rotate(calc(var(--spin) * 2)); opacity: 0; }
}

/* ---------- Ambient Petal Effect ---------- */
#ambient-petals {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
    z-index: 0;
}

.ambient-petal {
    position: absolute;
    width: 40px;
    height: 40px;
    background: radial-gradient(circle, rgba(249, 194, 194, 0.5) 30%, transparent 70%);
    border-radius: 50%;
    opacity: 0;
    animation: ambient-petal-fade 3s ease-out forwards;
}

@keyframes ambient-petal-fade {
    0% {
        opacity: 0;
        transform: translateY(0) scale(0.8);
    }
    50% {
        opacity: 0.4;
        transform: translateY(-20px) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-40px) scale(1.1);
    }
}