body {
    margin: 0;
    padding: 0;
    background-color: #000;
    overflow: hidden;
    color: #fff;
    font-family: 'Times New Roman', 'SimSun', serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    transition: background-color 3s ease-in-out;
}

body.light-mode {
    background-color: #fff;
    color: #000;
}

#container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

canvas {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    pointer-events: none;
}

#content-container {
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    opacity: 0;
    pointer-events: none;
}

#content-container.visible {
    opacity: 1;
    pointer-events: auto;
    transition: opacity 1s ease-in-out;
}

#cake-container {
    margin-bottom: 20px;
}

/* SVG Line Animation */
.cake-line {
    stroke-dasharray: 500;
    stroke-dashoffset: 500;
    stroke: #000; /* Black */
    filter: drop-shadow(0 0 3px rgba(0,0,0,0.3)) 
            drop-shadow(0 2px 4px rgba(0,0,0,0.2))
            drop-shadow(0 4px 8px rgba(100,100,255,0.15)); /* Subtle blue tint */
}

.cake-line.animate {
    animation: draw 3s ease-out forwards;
}

/* Stagger the animation for each line */
.cake-line:nth-child(1).animate { animation-delay: 0s; }
.cake-line:nth-child(2).animate { animation-delay: 0.5s; }
.cake-line:nth-child(3).animate { animation-delay: 1s; }
.cake-line:nth-child(4).animate { animation-delay: 1.5s; }
.cake-line:nth-child(5).animate { animation-delay: 2s; }

@keyframes draw {
    to {
        stroke-dashoffset: 0;
    }
}

#message {
    text-align: center;
    width: 100%;
    margin-top: 20px;
    opacity: 0;
}

#message.fade-in {
    animation: fadeInText 2s ease-out forwards;
    animation-delay: 2.5s; /* Start after cake drawing mostly done */
}

@keyframes fadeInText {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h1 {
    font-size: 2.5rem;
    padding: 0 20px;
    font-weight: bold;
    color: #000;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2), 
                 0 4px 8px rgba(0,0,0,0.1),
                 0 0 20px rgba(100,100,255,0.2); /* Subtle shadow with blue tint */
}

.hidden {
    opacity: 0 !important;
}

