/* ===== LOFI STUDY THEME ===== */
body {
  margin: 0;
  font-family: "Courier New", monospace;
  background: #0b0c10;
  color: #d6d6d6;
}

/* NAV BAR */
.lofi-nav {
  position: sticky;
  top: 0;
  z-index: 999;
  display: flex;
  justify-content: center;
  gap: 25px;

  padding: 12px 20px;

  background: rgba(10, 10, 15, 0.7);
  backdrop-filter: blur(6px);

  border-bottom: 1px solid rgba(150, 150, 255, 0.15);

  box-shadow: 0 0 15px rgba(120, 120, 255, 0.08);
}

/* LINKS */
.lofi-nav a {
  color: #bdbdbd;
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 2px;

  transition: 0.3s ease;
  position: relative;
}

/* glow hover effect */
.lofi-nav a:hover {
  color: #ffffff;
  text-shadow:
    0 0 6px rgba(140, 160, 255, 0.8),
    0 0 12px rgba(140, 160, 255, 0.4);
  transform: translateY(-1px);
}

/* animated underline glow */
.lofi-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 1px;
  background: rgba(160, 180, 255, 0.8);
  box-shadow: 0 0 8px rgba(160, 180, 255, 0.6);
  transition: 0.3s ease;
}

.lofi-nav a:hover::after {
  width: 100%;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Courier New", monospace;
    color: #e8e8f2;

    /* soft night gradient */
    background: linear-gradient(
        180deg,
        #0f1020 0%,
        #1a1b33 40%,
        #2a2b4a 100%
    );

    overflow-x: hidden;
}

/* ===== HEADER (image space like lofi videos) ===== */
header {
    height: 320px;
    width: 100%;
    position: relative;

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

    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);

    overflow: hidden;
}

header img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;

    /* lofi soft filter */
    filter: blur(0.3px) saturate(0.85) contrast(0.9);
}

/* placeholder text if no image */
header .placeholder {
    font-size: 13px;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.5);
    z-index: 2;
    text-transform: lowercase;
}

/* ===== PAGE LAYOUT ===== */
.container {
    max-width: 950px;
    margin: 0 auto;
    padding: 60px 20px;
    position: relative;
    z-index: 1;
}

/* ===== LOFI TEXT CARDS ===== */
.box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);

    padding: 22px;
    margin-bottom: 20px;
    border-radius: 14px;

    backdrop-filter: blur(10px);

    /* soft shadow = floating paper vibe */
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35);

    transition: transform 0.25s ease, background 0.25s ease;
}

.box:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.07);
}

/* ===== TEXT ===== */
h1, h2 {
    color: #cfd6ff;
    font-weight: normal;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

p {
    line-height: 1.75;
    color: rgba(235, 235, 245, 0.85);
}

/* soft emphasis text */
em {
    color: #b8c0ff;
}

/* small notes */
.small {
    font-size: 12px;
    opacity: 0.6;
    margin-top: 10px;
}

/* ===== SCROLLBAR (soft night aesthetic) ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0f1020;
}

::-webkit-scrollbar-thumb {
    background: #3b3c66;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #4a4c80;
}

/* ===== OPTIONAL LOFI “FLOAT” EFFECT FOR BOXES ===== */
@keyframes floatSoft {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-2px); }
    100% { transform: translateY(0px); }
}

.box {
    animation: floatSoft 6s ease-in-out infinite;
}

/* ===== RAIN OVERLAY ===== */

.rain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999; /* sits above everything */
    animation: rainMove 0.6s linear infinite;
    opacity: 0.25;
}

/* moving rain effect */
@keyframes rainMove {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 20px 100px;
    }
}

body {
  margin: 0;
  background: #0b0c10;
  font-family: "Courier New", monospace;
  color: #d6d6d6;
}

.lofi-header {
  position: relative;
  height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(180deg, #0b0c10, #1a1c22);
  overflow: hidden;
}

/* soft grain overlay */
.overlay {
  filter: contrast(1.1) saturate(0.8);
  position: absolute;
  inset: 0;
  background: url("https://grainy-gradients.vercel.app/noise.svg");
  opacity: 0.08;
  pointer-events: none;
}

/* text */
.header-content h1 {
  font-size: 3rem;
  letter-spacing: 3px;
  color: #cfcfcf;
  text-shadow: 0 0 10px rgba(180, 180, 255, 0.2);
  animation: glow 4s infinite ease-in-out;
}

.header-content p {
  font-size: 0.9rem;
  opacity: 0.7;
  margin-top: -10px;
}

/* nav links */
.nav {
  margin-top: 20px;
}

.nav a {
  color: #aaa;
  text-decoration: none;
  margin: 0 10px;
  font-size: 0.85rem;
  transition: 0.3s;
}

.nav a:hover {
  color: #fff;
  text-shadow: 0 0 8px #8aaaff;
}

/* subtle glow animation */
@keyframes glow {
  0%, 100% { text-shadow: 0 0 10px rgba(160,160,255,0.2); }
  50% { text-shadow: 0 0 20px rgba(160,160,255,0.4); }
}

/* rain effect */
.rain {
  position: absolute;
  inset: 0;
  opacity: 0.15;
  animation: rain 0.5s linear infinite;
  pointer-events: none;
}

@keyframes rain {
  0% { background-position: 0 0; }
  100% { background-position: 0 100px; }
}


/* ===== Princess Decorations ===== */

.princess-banner{

position:relative;
margin:50px auto;
max-width:700px;

}

.banner-paper{

background:#fffdfd;
padding:35px;
border-radius:15px;
text-align:center;
box-shadow:0 8px 25px rgba(0,0,0,.08);

}

.banner-paper h2{

font-family:"Cormorant Garamond",serif;
font-size:40px;
color:#92566d;
margin-bottom:15px;

}

.banner-paper p{

font-style:italic;
color:#866270;

}

.tape{

position:absolute;
width:90px;
height:28px;
background:#e7c7cf;
opacity:.8;
top:-10px;
}

.left{

left:-25px;
transform:rotate(-15deg);

}

.right{

right:-25px;
transform:rotate(15deg);

}

.flower-row{

text-align:center;
font-size:28px;
margin:45px 0;
letter-spacing:10px;

}

.margin-notes{

display:flex;
justify-content:space-between;
gap:20px;
margin-bottom:40px;
flex-wrap:wrap;

}

.note{

background:#fff9fb;
border:2px dashed #e6c4ce;
padding:18px;
width:220px;
font-family:"Cormorant Garamond",serif;
font-size:22px;
color:#8d556c;
transform:rotate(-2deg);

}

.note:nth-child(2){

transform:rotate(2deg);

}

.note:nth-child(3){

transform:rotate(-4deg);

}

.scrapbook{

display:grid;
grid-template-columns:1fr 1fr;
gap:30px;
margin:60px 0;

}

.paper{

background:#fffdfd;
padding:35px;
border-radius:18px;
border:1px solid #ecd2d8;
box-shadow:0 6px 18px rgba(0,0,0,.05);

}

.paper h2{

font-family:"Cormorant Garamond",serif;
color:#91566d;
font-size:34px;
margin-bottom:20px;

}

.paper p{

margin-bottom:18px;

}

.letter{

background:#fff9fb;
padding:45px;
border-radius:18px;
margin:60px 0;
position:relative;
border:1px solid #edd7dd;

}

.wax-seal{

position:absolute;
top:-20px;
right:35px;
width:55px;
height:55px;
background:#c86d89;
border-radius:50%;
display:flex;
align-items:center;
justify-content:center;
color:white;
font-size:24px;

}

.letter h2{

font-family:"Cormorant Garamond",serif;
font-size:40px;
margin-bottom:25px;
color:#92566d;

}

.tiny-heart{

font-size:22px;
color:#c16d89;

}
/* ════════════════ Scrapbook Page ════════════════ */

.scrapbook-page{

background:#fff8fb;
padding:70px;
margin:70px 0;
border-radius:20px;
position:relative;
box-shadow:0 15px 40px rgba(0,0,0,.08);
overflow:hidden;

}

.scrapbook-page h2{

font-family:"Cormorant Garamond",serif;
font-size:42px;
color:#92566d;
text-align:center;
margin-bottom:35px;

}

.scrapbook-page p{

font-size:17px;
line-height:2;
margin-bottom:30px;

}

.lace-top{

position:absolute;
top:0;
left:0;
width:100%;
height:28px;

background:
repeating-radial-gradient(circle at 12px 12px,
white 0 10px,
transparent 10px 20px);

opacity:.7;

}

.corner-bow{

position:absolute;
font-size:40px;

}

.bow-left{

top:18px;
left:18px;
transform:rotate(-12deg);

}

.bow-right{

top:18px;
right:18px;
transform:rotate(12deg);

}

.stamp{

position:absolute;
right:40px;
top:90px;

width:90px;
height:90px;

border:2px dashed #d7aab8;
border-radius:50%;

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

font-family:"Cormorant Garamond",serif;

color:#b0637d;

transform:rotate(10deg);

}

.pressed-flowers{

display:flex;
justify-content:center;
gap:40px;

font-size:38px;

margin:45px 0;

opacity:.85;

}

.tear-divider{

height:16px;

margin:45px 0;

background:
repeating-linear-gradient(
90deg,
transparent,
transparent 10px,
#efd5dc 10px,
#efd5dc 20px
);

border-radius:50px;

opacity:.5;

}

.memory-box{

background:#fffdfd;

padding:35px;

border-left:5px solid #ddb8c5;

margin-bottom:25px;

border-radius:12px;

box-shadow:0 5px 15px rgba(0,0,0,.04);

}

.memory-box h3{

font-family:"Cormorant Garamond",serif;

font-size:30px;

margin-bottom:15px;

color:#92566d;

}

.signature{

text-align:right;

margin-top:50px;

font-family:"Cormorant Garamond",serif;

font-size:36px;

color:#a06077;

font-style:italic;

}