* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: crosshair;
}

body {
    font-family: 'Reenie Beanie', cursive;
    background-color: #ffffff;
    background-image: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 19px,
            rgba(200, 200, 200, 0.3) 19px,
            rgba(200, 200, 200, 0.3) 20px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 19px,
            rgba(200, 200, 200, 0.3) 19px,
            rgba(200, 200, 200, 0.3) 20px
        ),
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><filter id="noise"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="4" stitchTiles="stitch"/><feColorMatrix type="saturate" values="0"/></filter><rect width="200" height="200" filter="url(%23noise)" opacity="0.08"/></svg>');
    background-size: 20px 20px, 20px 20px, 100% 100%;
    color: #4a4a4a;
    padding: 80px 40px;
    line-height: 1.8;
    transition: all 0.8s ease;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
    background: radial-gradient(
        circle 200px at var(--mouse-x, 50%) var(--mouse-y, 50%),
        transparent 0%,
        #050508 100%
    );
    opacity: 1;
    transition: opacity 0.8s ease;
}

body.light-on::before {
    opacity: 0;
}

body.light-on {
    background-color: #ffffff;
    background-image: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 19px,
            rgba(200, 200, 200, 0.3) 19px,
            rgba(200, 200, 200, 0.3) 20px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 19px,
            rgba(200, 200, 200, 0.3) 19px,
            rgba(200, 200, 200, 0.3) 20px
        ),
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><filter id="noise"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="4" stitchTiles="stitch"/><feColorMatrix type="saturate" values="0"/></filter><rect width="200" height="200" filter="url(%23noise)" opacity="0.08"/></svg>');
    background-size: 20px 20px, 20px 20px, 100% 100%;
    color: #4a4a4a;
}

.lamp-container {
    position: fixed;
    top: 0;
    right: 30px;
    z-index: 1000;
}

.lamp {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-top: -10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: bob 3s ease-in-out infinite;
    will-change: transform;
}

@keyframes bob {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(8px);
    }
}

.lamp:hover {
    animation: bob-to-pull 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes bob-to-pull {
    to {
        transform: translateY(12px);
    }
}

.string {
    width: 2px;
    height: 80px;
    background-color: #a8a8a8;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

body.light-on .string {
    background-color: #7a6a5a;
}

.pull {
    width: 12px;
    height: 20px;
    background-color: #a8a8a8;
    border-radius: 6px;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

body.light-on .pull {
    background-color: #7a6a5a;
}

.container {
    max-width: 800px;
    margin: 0 auto;
}

.poem {
    margin-bottom: 180px;
    padding: 20px;
}

.poem-left {
    text-align: left;
    padding-right: 100px;
}

.poem-right {
    text-align: right;
    padding-left: 100px;
}

.poem-center {
    text-align: center;
}

h1 {
    font-size: 3em;
    text-align: center;
    margin-bottom: 60px;
    margin-top: 60px;
    color: #f0f0f0;
    transition: color 0.8s ease;
    position: relative;
    z-index: 10;
}

body.light-on h1 {
    color: #4a4a4a;
}

h2 {
    font-size: 2em;
    text-align: center;
    margin: 100px 0 80px 0;
    color: #4a4a4a;
    transition: color 0.8s ease;
}

body.light-on h2 {
    color: #4a4a4a;
}

.intro {
    text-align: center;
    margin-bottom: 150px;
    position: relative;
    z-index: 10;
}

.intro-text {
    font-size: 1.8em;
    margin-bottom: 20px;
    font-weight: normal;
    color: #d8d8d8;
    transition: color 0.8s ease;
}

body.light-on .intro-text {
    color: #4a4a4a;
}

.intro-desc {
    font-size: 1.3em;
    line-height: 1.8;
    font-style: italic;
    transition: opacity 0.8s ease;
    color: #c8c8c8;
}

body.light-on .intro-desc {
    color: #4a4a4a;
}

h3 {
    font-size: 2em;
    margin-top: 0;
    margin-bottom: 30px;
    color: #4a4a4a;
    transition: color 0.8s ease;
}

body.light-on h3 {
    color: #4a4a4a;
}

p {
    font-size: 1.5em;
    margin: 0;
    line-height: 1.9;
    transition: color 0.8s ease;
    color: #4a4a4a;
}

body.light-on p {
    color: #4a4a4a;
}

br {
    display: block;
    margin: 4px 0;
}

.indent-1 {
    display: inline-block;
    padding-left: 30px;
}

.indent-2 {
    display: inline-block;
    padding-left: 60px;
}

.indent-3 {
    display: inline-block;
    padding-left: 90px;
}

.line-center {
    display: block;
    text-align: center;
    margin: 4px 0;
}

.line-right {
    display: block;
    text-align: right;
    margin: 4px 0;
}

footer {
    text-align: center;
    margin-top: 150px;
    padding: 40px 0 80px 0;
    font-size: 1.3em;
    position: relative;
    z-index: 10;
}

footer p {
    margin: 10px 0;
    font-size: 1.3em;
    display: block;
    color: #f0f0f0;
    transition: color 0.8s ease;
}

body.light-on footer p {
    color: #4a4a4a;
}

footer .footer-portfolio {
    margin-top: 40px;
}

footer a {
    color: #f0f0f0;
    text-decoration: underline;
    transition: color 0.3s ease;
    cursor: pointer;
}

footer a:hover {
    color: #000000;
}

body.light-on footer a {
    color: #4a4a4a;
}

body.light-on footer a:hover {
    opacity: 0.7;
    color: #4a4a4a;
}

.poem-image {
    max-width: 400px;
    width: 100%;
    opacity: 0.85;
    margin: 50px 0;
    transition: opacity 0.8s ease;
}

body.light-on .poem-image {
    opacity: 0.85;
}

.moon-image {
    float: right;
    margin-left: 50px;
    margin-bottom: 40px;
    max-width: 350px;
}

.heart-image {
    float: right;
    margin-left: 50px;
    margin-bottom: 40px;
    max-width: 350px;
}

.ocean-image {
    display: block;
    margin: 120px auto;
    max-width: 500px;
}

.cherry-image {
    float: left;
    margin-right: 50px;
    margin-bottom: 40px;
    max-width: 450px;
}

.tree-image {
    float: right;
    margin-left: 50px;
    margin-bottom: 40px;
    max-width: 380px;
}
.poem::after {
    content: "";
    display: table;
    clear: both;
}

@media (max-width: 768px) {
    body {
        padding: 30px 15px;
    }
    
    .lamp-container {
        top: 0;
        right: 15px;
    }
    
    .string {
        height: 60px;
    }
    
    .pull {
        width: 10px;
        height: 16px;
    }
    
    .poem-left, .poem-right {
        padding-left: 20px;
        padding-right: 20px;
        text-align: left;
    }
    
    .poem-image {
        max-width: 100%;
        float: none;
        margin: 30px auto;
        display: block;
    }
    
    .moon-image, .tree-image {
        float: none;
        margin: 30px auto;
    }
    
    .indent-1 {
        padding-left: 15px;
    }
    
    .indent-2 {
        padding-left: 30px;
    }
    
    .indent-3 {
        padding-left: 45px;
    }
    
    .line-center, .line-right {
        text-align: left;
    }
    
    h1 {
        font-size: 2.5em;
        margin-bottom: 60px;
    }
    
    p {
        font-size: 1.3em;
    }
}