:root {
    --main-red: #8b1e1e;
    --dark-red: #6b1515;
    --cream: #f5e6d3;
    --paper: #fff7ed;
    --text: #3b2b1f;
}

body {
    cursor: url("IMG_3032.png"), auto;
}
/* =======================
   BASE PAGE STYLE
======================= */

body {
    background-color: var(--cream);
    color: var(--text);
    font-family: Georgia, serif;
    margin: 0;
    padding: 0;
    background-image: radial-gradient(#e9d2b8 1px, transparent 1px);
    background-size: 20px 20px;
}

/* =======================
   HEADER
======================= */

header {
    background-color: var(--main-red);
    color: white;
    text-align: center;
    padding: 30px;
}

/* =======================
   NAV BAR
======================= */

nav {
    background-color: var(--dark-red);
    text-align: center;
    padding: 10px;
}

nav a {
    color: white;
    text-decoration: none;
    margin: 0 15px;
    font-weight: bold;
}

nav a:hover {
    text-decoration: underline;
}

/* =======================
   LAYOUT CONTAINER
======================= */

.container {
    max-width: 900px;
    margin: auto;
    padding: 20px;
}

/* =======================
   GENERAL BOX STYLE
======================= */

.box, .profile, .post {
    background: var(--paper);
    border: 2px solid var(--main-red);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(139, 30, 30, 0.2);
}

.post {
    background: white;
    border-left: 5px solid var(--main-red);
}

.date {
    color: #777;
    font-size: 0.9em;
}

/* =======================
   HEADINGS
======================= */

h1, h2 {
    color: var(--main-red);
    letter-spacing: 1px;
}

h2 {
    border-bottom: 2px solid var(--main-red);
    padding-bottom: 5px;
}

/* =======================
   LINKS
======================= */

a {
    color: var(--main-red);
}

a:hover {
    color: var(--dark-red);
}

/* =======================
   BUTTONS
======================= */

.button, a.button {
    display: inline-block;
    background-color: var(--main-red);
    color: white;
    padding: 10px 15px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: 0.2s ease;
}

.button:hover, a.button:hover {
    background-color: var(--dark-red);
}

/* =======================
   STAR BOX (FEATURE BOX)
======================= */

.star-box {
    position: relative;
    background: var(--paper);
    border: 2px solid var(--main-red);
    padding: 25px;
    margin: 30px auto;
    max-width: 600px;
    text-align: center;
    box-shadow: 0 0 15px rgba(139, 30, 30, 0.25);
}

.star-box::before {
    content: "★";
    position: absolute;
    top: -30px;
    left: -30px;
    font-size: 120px;
    color: rgba(139, 30, 30, 0.15);
}

.star-box::after {
    content: "★";
    position: absolute;
    bottom: -30px;
    right: -30px;
    font-size: 100px;
    color: rgba(139, 30, 30, 0.12);
}

.star-box * {
    position: relative;
    z-index: 1;
}

/* =======================
   DIVIDER
======================= */
/* Falling Ottoman-style stars */

.stars {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 999;
}

.stars span {
    position: absolute;
    top: -10%;
    color: #d4af37; /* gold */
    text-shadow:
        0 0 5px #d4af37,
        0 0 10px #d4af37;
    animation: fall linear infinite;
}

/* Different sizes, positions, and speeds */

.stars span:nth-child(1) {
    left: 5%;
    font-size: 18px;
    animation-duration: 10s;
}

.stars span:nth-child(2) {
    left: 18%;
    font-size: 24px;
    animation-duration: 14s;
}

.stars span:nth-child(3) {
    left: 33%;
    font-size: 16px;
    animation-duration: 11s;
}

.stars span:nth-child(4) {
    left: 47%;
    font-size: 22px;
    animation-duration: 15s;
}

.stars span:nth-child(5) {
    left: 61%;
    font-size: 20px;
    animation-duration: 12s;
}

.stars span:nth-child(6) {
    left: 74%;
    font-size: 28px;
    animation-duration: 17s;
}

.stars span:nth-child(7) {
    left: 86%;
    font-size: 18px;
    animation-duration: 13s;
}

.stars span:nth-child(8) {
    left: 95%;
    font-size: 25px;
    animation-duration: 16s;
}

@keyframes fall {
    from {
        transform: translateY(-100px) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    to {
        transform: translateY(120vh) rotate(360deg);
        opacity: 0;
    }
}

.divider {
    border: none;
    height: 2px;
    background: var(--main-red);
    margin: 20px 0;
}

/* =======================
   FOOTER
======================= */

footer {
    background-color: var(--main-red);
    color: white;
    text-align: center;
    padding: 15px;
    margin-top: 20px;
}