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

body {
    overflow: hidden;
    background: #87CEEB;
    font-family: 'Arial', sans-serif;
    cursor: pointer;
}

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

.text-overlay {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.fade-text {
    position: absolute;
    color: white;
    font-size: 6rem;
    font-weight: bold;
    text-align: center;
    opacity: 0;
    text-shadow: 
        2px 2px 0 rgba(0, 0, 0, 0.2),
        -2px 2px 0 rgba(0, 0, 0, 0.2),
        2px -2px 0 rgba(0, 0, 0, 0.2),
        -2px -2px 0 rgba(0, 0, 0, 0.2);
}

.message-1 {
    animation: fadeInOut 4s ease-in-out forwards;
}

.message-2 {
    animation: fadeInOut 4s ease-in-out 5s forwards;
}

.permanent-text {
    position: absolute;
    bottom: 5%;
    font-size: 4.5rem;
    font-weight: bold;
    text-align: center;
    background: linear-gradient(
        238deg,
        rgba(255, 255, 255, 0.8) 0%,
        rgba(255, 255, 255, 1) 10%,
        rgba(220, 220, 220, 0.8) 20%,
        rgba(255, 255, 255, 1) 30%,
        rgba(220, 220, 220, 0.8) 40%,
        rgba(255, 255, 255, 1) 50%,
        rgba(220, 220, 220, 0.8) 60%,
        rgba(255, 255, 255, 1) 70%,
        rgba(220, 220, 220, 0.8) 80%,
        rgba(255, 255, 255, 1) 90%,
        rgba(255, 255, 255, 0.8) 100%
    );
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: shimmer 3s linear infinite, fadeIn 2s ease-in-out 9s forwards;
    opacity: 0;
    text-shadow: 
        2px 2px 4px rgba(0, 0, 0, 0.1),
        -2px 2px 4px rgba(0, 0, 0, 0.1),
        2px -2px 4px rgba(0, 0, 0, 0.1),
        -2px -2px 4px rgba(0, 0, 0, 0.1);
}

@keyframes fadeInOut {
    0% { 
        opacity: 0;
        transform: translateY(20px);
    }
    10%, 90% { 
        opacity: 1;
        transform: translateY(0);
    }
    100% { 
        opacity: 0;
        transform: translateY(-20px);
    }
}

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

@keyframes shimmer {
    0% {
        background-position: 200% 50%;
    }
    100% {
        background-position: -200% 50%;
    }
}

@media (max-width: 768px) {
    .fade-text {
        font-size: 3.5rem;
    }
    .permanent-text {
        font-size: 3rem;
    }
}
