/* Smooth scrolling + reduced motion */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 30px;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .money,
    .star {
        animation: none !important;
    }
}

/* Font */
@font-face {
    font-family: 'BtTelecom';
    src: url('fonts/bttelecom-y5ma-webfont.woff2') format('woff2'),
        url('fonts/bttelecom-y5ma-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* ────────────────────────────────────────
   Base layout
──────────────────────────────────────── */
body {
    font-family: 'Times New Roman', serif;
    background-color: #0a0a0a;
    margin: 0;
    padding: 20px;
    color: #e0e0e0;
    overflow-x: hidden;
}

#content {
    position: relative;
    z-index: 10;
}

/* Newspaper container */
.newspaper {
    max-width: 100%;    /* full width inside the container */
    width: 100%;
    margin: 0 auto;
    background-color: #111111;
    padding: 30px;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.7);
    border: 1px solid #2a2a2a;
    border-radius: 6px;
    position: relative;
    overflow: visible;
    scroll-snap-type: none;

    /* Paper texture */
    background-image:
        url('https://images.rawpixel.com/image_800/cHJpdmF0ZS9sci9pbWFnZXMvd2Vic2l0ZS8yMDIyLTA1L3B4NTQ2Nzk4LWltYWdlLWt3dnhwdG83LmpwZw.jpg'),
        linear-gradient(rgba(255, 255, 255, 0.008) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.006) 1px, transparent 1px);
    background-size: cover, 100% 20px, 20px 100%;
    background-blend-mode: overlay, multiply, multiply;
    background-position: center;
    transition: transform 0.25s ease;
}

.page-container {
    max-width: 900px;       /* limits how wide it can get on desktop */
    margin: 0 auto;         /* center horizontally */
    padding: 0 15px;        /* small horizontal padding */
    box-sizing: border-box; /* ensures padding doesn't break width */
}


.newspaper:hover {
    transform: scale(1.007);
}

.newspaper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 30%, rgba(120, 90, 255, 0.06) 0%, transparent 60%);
    pointer-events: none;
    animation: subtle-glow 14s infinite alternate;
    mix-blend-mode: screen;
    opacity: 0.7;
}

@keyframes subtle-glow {
    0% { opacity: 0.5; transform: scale(1); }
    100% { opacity: 0.2; transform: scale(1.12); }
}

/* ────────────────────────────────────────
   Typography & sections
──────────────────────────────────────── */
.header,
.heading {
    font-family: 'BtTelecom', 'Times New Roman', serif;
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    border-bottom: 2px solid #444;
    padding-bottom: 12px;
    margin-bottom: 25px;
    color: #ccc;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.title {
    font-family: 'BtTelecom', 'Times New Roman', serif;
    font-size: 38px;
    text-align: center;
    margin: 25px 0 35px;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 0 12px rgba(255, 200, 80, 0.4);
}

.section {
    margin-bottom: 48px;
    padding: 0 15px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.section:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(255, 220, 80, 0.15);
}

.section::after {
    content: "";
    display: block;
    clear: both;
}

.heading {
    font-size: 52px;
    font-weight: bold;
    color: #ffdd99;
    text-transform: lowercase;
    margin: 0 0 15px;
    text-shadow: 0 0 15px rgba(255, 190, 80, 0.5);
}

.text {
    font-size: 29px;
    line-height: 1.75;
    margin: 0 0 20px;
    color: #d8d8d8;
    hyphens: auto;
}

/* ────────────────────────────────────────
   Images – centered + float wrapping
──────────────────────────────────────── */
.image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 18px auto;
    border: 1px solid #3a3a3a;
    border-radius: 6px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    cursor: pointer;
}

.image:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 28px rgba(255, 220, 80, 0.35);
}

/* Floated versions – text wraps nicely */
.image.left {
    float: left;
    width: 48%;
    max-width: 400px;
    margin: 0 28px 24px 0;
}

.image.right {
    float: right;
    width: 48%;
    max-width: 400px;
    margin: 0 0 24px 28px;
}

/* Mobile – stack full-width, scale text */
@media (max-width: 768px) {
    .image.left,
    .image.right {
        float: none !important;
        width: 100% !important;
        max-width: none !important;
        margin: 20px auto !important;
    }

    .title { font-size: 6vw; }
    .heading { font-size: 8vw; }
    .text { font-size: 4.5vw; line-height: 1.6; }
}

/* ────────────────────────────────────────
   Footer
──────────────────────────────────────── */
.footer {
    font-family: 'BtTelecom', 'Times New Roman', serif;
    text-align: center;
    font-size: 15px;
    border-top: 2px solid #444;
    padding-top: 18px;
    margin-top: 40px;
    color: #999;
}

/* ────────────────────────────────────────
   Floating money & stars
──────────────────────────────────────── */
.floating-elements {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 5;
    overflow: hidden;
}

.money,
.star {
    position: absolute;
    opacity: 0.18;
    will-change: transform;
}

.money {
    width: 80px;
    height: 40px;
    background: url('https://storage.needpix.com/rsynced_images/money-48103_1280.png') center/contain no-repeat;
    filter: brightness(1.4) contrast(1.1) drop-shadow(0 0 8px rgba(255, 220, 100, 0.4));
    animation: float-money 40s infinite linear;
}

.star {
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 18px solid #ffdd88;
    transform: rotate(45deg);
    box-shadow: 0 0 14px #ffcc66;
    animation: float-star 28s infinite linear, twinkle 3.8s infinite;
}

.money1 { top: 12%; left: 6%; animation-duration: 48s; animation-delay: -4s; }
.money2 { top: 38%; right: 10%; animation-duration: 55s; animation-delay: -15s; }
.money3 { bottom: 22%; left: 15%; animation-duration: 42s; animation-delay: -22s; }
.money4 { top: 68%; right: 18%; animation-duration: 50s; animation-delay: -35s; }

.star1 { top: 8%; left: 4%; animation-delay: -2s; }
.star2 { top: 35%; right: 12%; animation-delay: -5s; }
.star3 { bottom: 28%; left: 20%; animation-delay: -11s; }
.star4 { top: 62%; right: 7%; animation-delay: -18s; }

@keyframes float-money {
    0% { transform: translateY(0vh) translateX(0) rotate(0deg); }
    50% { transform: translateY(-40vh) translateX(30px) rotate(180deg); }
    100% { transform: translateY(-100vh) translateX(-20px) rotate(360deg); }
}

@keyframes float-star {
    0% { transform: translateY(0vh) rotate(45deg) scale(1); }
    100% { transform: translateY(-120vh) rotate(405deg) scale(0.6); }
}

@keyframes twinkle {
    0%, 100% { opacity: 0.25; transform: scale(1) rotate(45deg); }
    50% { opacity: 0.85; transform: scale(1.5) rotate(45deg); }
}

/* Reduce floating elements on mobile */
@media (max-width: 768px) {
    .money { width: 50px; height: 25px; }
    .star { width: 6px; height: 6px; }
}

/* Dark scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0a0a0a; border-radius: 10px; }
::-webkit-scrollbar-thumb { background: linear-gradient(#444, #666); border-radius: 10px; box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.6); }
::-webkit-scrollbar-thumb:hover { background: #777; }
