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

body {
    background-color: #000;
    overflow: hidden;
    font-family: 'Noto Serif SC', serif;
    color: white;
    height: 100vh;
    width: 100vw;
}

#canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#start-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    transition: opacity 1s;
}

#start-btn {
    padding: 15px 40px;
    font-size: 1.5rem;
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
    border-radius: 30px;
    cursor: pointer;
    font-family: 'Ma Shan Zheng', cursive;
    transition: all 0.3s;
}

#start-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

#poem-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    text-align: center;
    width: 80%;
    pointer-events: none; /* Let clicks pass through if needed */
}

.poem-line {
    font-size: 1.4rem;
    margin: 18px 0;
    opacity: 0;
    transform: translateY(30px) scale(0.9);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 0 20px rgba(255, 215, 0, 0.5);
    line-height: 1.8;
    color: #fff;
    filter: blur(8px);
    transition: all 0.5s ease;
}

/* Dynamic Font Sizing for smaller screens */
@media (max-width: 768px) {
    .poem-line {
        font-size: 1.1rem;
        margin: 12px 0;
    }
}

.hidden {
    display: none !important;
}

/* Animations */
@keyframes magicalAppear {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
        filter: blur(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: scale(1.1);
        filter: blur(5px);
    }
}

.fade-in-up {
    animation: magicalAppear 2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.fade-out {
    animation: fadeOut 1s ease forwards;
}

/* Todo Phase Styles */
#todo-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    z-index: 20;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    transition: opacity 1s;
}

#todo-center-text {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 3rem;
    color: #ff4d4d; /* Bright Red */
    text-shadow: 0 0 15px rgba(255, 0, 0, 0.6);
    z-index: 30;
    text-align: center;
    padding: 20px;
    width: 100%;
}

.todo-item {
    position: absolute;
    font-family: 'Ma Shan Zheng', cursive;
    color: rgba(255, 255, 255, 0.9);
    opacity: 0;
    white-space: nowrap;
    animation: fadeInTodo 1.5s ease forwards;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

@keyframes fadeInTodo {
    0% { opacity: 0; transform: scale(0.5); filter: blur(5px); }
    100% { opacity: 1; transform: scale(1); filter: blur(0); }
}

@media (max-width: 768px) {
    #todo-center-text {
        font-size: 2rem;
    }
    .todo-item {
        font-size: 1rem !important; /* Force smaller size on mobile */
    }
}
